Don't bother checking for $CC option to accept ISO C89.
[glibc.git] / ChangeLog
blobaf7b861f8b26e60835876fea5365e07e39990b2f
1 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
3         * configure.in (_AC_PROG_CC_C89): New definition.
4         * configure: Regenerate.
6         * configure.in (AC_PROG_CPP): New definition.
7         * configure: Regenerate.
9 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
11         * debug/tst-backtrace.h: New file.
12         * debug/tst-backtrace2.c: Include tst-backtrace.h.
13         (ret): Remove variable.
14         (x): Likewise.
15         (FAIL): Remove macro.
16         (NO_INLINE): Likewise.
17         (fn1): Use match function instead of strstr.
18         * debug/tst-backtrace3.c: Include tst-backtrace.h.
19         (ret): Remove variable.
20         (x): Likewise.
21         (FAIL): Remove macro.
22         (NO_INLINE): Likewise.
23         (fn): Use match function instead of strstr.
24         * debug/tst-backtrace4.c: Include tst-backtrace.h.
25         (ret): Remove variable.
26         (x): Likewise.
27         (FAIL): Remove macro.
28         (NO_INLINE): Likewise.
29         (handle_signal): Use match function instead of strstr.
30         * debug/tst-backtrace5.c: Include tst-backtrace.h.
31         (ret): Remove variable.
32         (x): Likewise.
33         (FAIL): Remove macro.
34         (NO_INLINE): Likewise.
35         (handle_signal): Use match function instead of strstr.
37 2013-01-23  Roland McGrath  <roland@hack.frob.com>
39         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
41 2013-01-23  David S. Miller  <davem@davemloft.net>
43         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
44         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
45         argument of CAS if possible.
46         * sysdeps/sparc/sparc64/bits/atomic.h
47         (__arch_compare_and_exchange_val_32_acq): Likewise.
48         (__arch_compare_and_exchange_val_64_acq): Likewise.
50 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
53         * sysdeps/posix/ulimit.c: ... this.
54         Include <limits.h>.
55         * sysdeps/unix/bsd/ulimit.c: Remove file.
57 2013-01-23  Adam Conrad  <adconrad@0c3.net>
59         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
60         (LDFLAGS-tst-array5): Likewise.
62 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
64         [BZ #15036]
65         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
66         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
67         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
68         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
70 2013-01-21  David S. Miller  <davem@davemloft.net>
72         * sysdeps/sparc/backtrace.c: New file.
73         * sysdeps/sparc/sparc32/backtrace.h: New file.
74         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
75         * sysdeps/sparc/sparc64/backtrace.h: New file.
76         * sysdeps/sparc/sparc64/backtrace.c: Delete.
77         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
78         -funwind-tables.
80 2013-01-21  Andreas Schwab  <schwab@suse.de>
82         [BZ #15020]
83         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
84         closed its stdout.
86 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
88         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
89         "mpa2.h".
90         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
92 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
93             Mark Mitchell  <mark@codesourcery.com>
94             Tom de Vries  <tom@codesourcery.com>
95             Paul Pluzhnikov  <ppluzhnikov@google.com>
97         * debug/tst-backtrace2.c: New file.
98         * debug/tst-backtrace3.c: Likewise.
99         * debug/tst-backtrace4.c: Likewise.
100         * debug/tst-backtrace5.c: Likewise.
101         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
102         (CFLAGS-tst-backtrace3.c): Likewise.
103         (CFLAGS-tst-backtrace4.c): Likewise.
104         (CFLAGS-tst-backtrace5.c): Likewise.
105         (LDFLAGS-tst-backtrace2): Likewise.
106         (LDFLAGS-tst-backtrace3): Likewise.
107         (LDFLAGS-tst-backtrace4): Likewise.
108         (LDFLAGS-tst-backtrace5): Likewise.
109         (tests): Add new tests tst-backtrace2, tst-backtrace3,
110         tst-backtrace4 and tst-backtrace5.
112 2013-01-18  Anton Blanchard  <anton@samba.org>
113             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
115         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
116         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
117         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
118         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
120         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
121         "+r" and remove output regs list as redundant.  Add explicit inline
122         asm to specify register of return val to work around compiler codegen
123         bug.  Remove (int) cast on return value.  Add return type parameter to
124         use in macro so that this macro does not truncate return value for
125         64-bit values.
126         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
127         pass to INTERNAL_VSYSCALL_NCS.
128         (INLINE_VSYSCALL): Add 'long int' as return type to
129         INTERNAL_VSYSCALL_NCS macro invocation.
130         (INTERNAL_VSYSCALL): Add 'long int' as return type to
131         INTERNAL_VSYSCALL_NCS macro invocation.
132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
134 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
136         [BZ #14496]
137         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
138         Fix application of SIMD FP exception mask.
140         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
141         mp_no from a power of two.
142         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
143         __mpexp_twomm1.  Use __pow_mp.
145         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
146         multiplication.
148 2013-01-17  David S. Miller  <davem@davemloft.net>
150         * sysdeps/sparc/fpu/libm-test-ulps: Update.
152 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
154         [BZ #15023]
155         * include/complex.h: Condition contents on [!_COMPLEX_H].
156         (__kernel_casinhf): New prototype.
157         (__kernel_casinh): Likewise.
158         (__kernel_casinhl): Likewise.
159         * math/Makefile (libm_calls): Add k_casinh.
160         * math/k_casinh.c: New file.
161         * math/k_casinhf.c: Likewise.
162         * math/k_casinhl.c: Likewise.
163         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
164         finite nonzero arguments.
165         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
166         finite nonzero arguments.
167         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
168         finite nonzero arguments.
169         * math/s_casinh.c: Do not include <float.h>.
170         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
171         * math/s_casinhf.c: Do not include <float.h>.
172         (__casinhf): Move code for finite nonzero arguments to
173         k_casinhf.c.
174         * math/s_casinhl.c: Do not include <float.h>.
175         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
176         redefine.
177         (__casinhl): Move code for finite nonzero arguments to
178         k_casinhl.c.
179         * math/libm-test.inc (cacos_test): Add more tests.
180         * sysdeps/i386/fpu/libm-test-ulps: Update.
181         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
183 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
185         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
186         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
187         [!HAVE_MREMAP]: Remove [defined linux] case.
188         * malloc/arena.c: Do not include <malloc-sysdep.h>.
190 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
192         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
194 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
196         * elf/elf.h (R_386_SIZE32): New relocation.
197         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
198         R_386_SIZE32.
199         (elf_machine_rela): Likewise.
200         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
201         R_X86_64_SIZE64 and R_X86_64_SIZE32.
203 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
205         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
206         (FP_FAST_FMA): Do not define.
207         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
208         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
209         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
210         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
211         !_SOFT_FLOAT]: Likewise.
212         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
213         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
214         value.
215         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
216         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
217         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
218         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
219         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
220         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
221         file.
223 2013-01-16  Andreas Schwab  <schwab@suse.de>
225         [BZ #14327]
226         * include/stdlib.h (__mktemp): Add declaration.
227         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
228         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
230 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
232         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
233         definitions.
234         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
235         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
236         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
237         definitions here.
238         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
239         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
240         definitions.
241         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
242         and ONE.
243         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
244         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
245         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
246         definitions.
247         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
248         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
249         definitions.
250         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
252         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
254 2013-01-15  David S. Miller  <davem@davemloft.net>
256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
257         trunc{,f} to libm-sysdep_routes.
258         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
260         file.
261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
263         file.
264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
265         file.
266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
268         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
269         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
270         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
271         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
272         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
273         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
276         nearbyint{,f} to libm-sysdep_routes.
277         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
279         New file.
280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
281         file.
282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
283         New file.
284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
285         file.
286         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
287         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
288         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
289         file.
290         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
291         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
292         file.
293         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
294         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
295         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
297         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
298         libc_feholdexcept and libc_fesetenv.
300 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
302         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
304 2013-01-14  David S. Miller  <davem@davemloft.net>
306         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
307         (SPARC_ASM_VIS2_IFUNC): Likewise.
308         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
310         use of 'siam' instruction.
311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
312         Likewise.
313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
314         Likewise.
315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
316         Likewise.
317         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
318         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
319         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
320         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
322         file.
323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
324         file.
325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
326         file.
327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
328         file.
329         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
330         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
331         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
332         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
334         new VIS2 routines.
335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
338         Likewise.
339         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
340         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
341         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
342         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
344         routines to libm-sysdep_routines.
345         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
348         fdim/fdimf to libm-sysdep_routines.
349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
350         file.
351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
353         file.
354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
355         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
356         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
357         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
358         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
359         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
360         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
362 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
364         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
365         to optimize copies.
367         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
368         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
369         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
371         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
372         local variable MPTWO.
373         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
374         Likewise.
376 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
378         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
379         GLOB_NOESCAPE.
381 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
383         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
385 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
387         * manual/pattern.texi (glob_t): Document gl_flags.
388         (glob64_t): Likewise.
390 2013-01-11  David S. Miller  <davem@davemloft.net>
392         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
393         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
394         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
395         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
396         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
397         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
398         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
399         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
400         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
401         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
402         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
403         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
404         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
406         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
407         sparc V9 rather than using V8 code.
408         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
409         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
411         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
412         Move to...
413         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
414         Here.
416 2013-01-11  Roland McGrath  <roland@hack.frob.com>
418         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
419         not in the main loop.
420         * configure: Regenerated.
422 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
424         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
425         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
426         to just #else.
427         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
428         [!__GLIBC_HAVE_LONG_LONG] case.
429         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
430         condition to just #else.
431         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
432         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
433         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
434         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
435         unconditional.
436         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
437         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
438         #elif condition to just #else.
439         * sysdeps/unix/sysv/linux/sys/sysmacros.h
440         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
441         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
442         #elif condition to just #else.
444 2013-01-11  Steve Ellcey  <sellcey@mips.com>
446         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
447         (EF_MIPS_ARCH_64): Fix value.
448         (EF_MIPS_ARCH_32R2): New.
449         (EF_MIPS_ARCH_64R2): New.
451 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
453         * Makeconfig (+link-pie-before-libc): New.
454         (+link-pie-after-libc): Likewise.
455         (+link-pie-tests): Likewise.
456         (+link-pie): Rewritten.
457         (link-before-libc): Remove $(config-LDFLAGS).
458         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
459         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
460         (config-LDFLAGS): Renamed to ...
461         (rtld-LDFLAGS): This.
462         (rtld-tests-LDFLAGS): New macro.
463         (link-libc-rpath-link): Likewise.
464         (link-libc-tests-rpath-link): Likewise.
465         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
466         (link-libc): Prepand $(link-libc-rpath-link).
467         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
468         (test-program-prefix): New macro.
469         (test-via-rtld-prefix): Likewise.
470         (test-program-cmd): Likewise.
471         (host-test-program-cmd): Likewise.
472         * Makefile ($(common-objpfx)testrun.sh): Replace
473         $(run-program-prefix) with $(test-program-prefix).
474         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
475         $(rtld-LDFLAGS).
476         ($(common-objpfx)shlib.lds): Likewise.
477         (build-module-helper): Likewise.
478         ($(common-objpfx)format.lds): Likewise.
479         * Rules (binaries-pie-tests): New.
480         (binaries-pie-notests): Likewise.
481         (binaries-pie): Rewritten.
482         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
483         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
484         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
485         (make-test-out): Replace $(host-built-program-cmd) with
486         $(host-test-program-cmd).
487         * config.make.in (build-hardcoded-path-in-tests): New variable.
488         * configure.in (--enable-hardcoded-path-in-tests): New configure
489         option.
490         (hardcoded_path_in_tests): New AC_SUBST.
491         * configure: Regenerated.
492         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
493         $(built-program-cmd) with $(test-program-cmd).
494         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
495         (test_program_cmd): This.
496         * elf/Makefile ($(objpfx)order.out): Run test with
497         $(test-program-prefix).
498         ($(objpfx)order2.out): Likewise.
499         ($(objpfx)tst-initorder.out): Likewise.
500         ($(objpfx)tst-initorder2.out): Likewise.
501         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
502         $(test-program-cmd).
503         ($(objpfx)tst-array1-static.out): Likewise.
504         ($(objpfx)tst-array2.out): Likewise.
505         ($(objpfx)tst-array3.out): Likewise.
506         ($(objpfx)tst-array4.out): Likewise.
507         ($(objpfx)tst-array5.out): Likewise.
508         ($(objpfx)tst-array5-static.out): Likewise.
509         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
510         $(test-program-cmd).
511         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
512         $(run-program-prefix) with $(test-program-prefix).
513         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
514         (test_program_prefix): This.
515         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
516         $(run-program-prefix) with $(test-program-prefix).
517         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
518         (test_program_prefix): This.
519         * iconvdata/tst-tables.sh: Likewise.
520         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
521         $(run-program-prefix) with $(test-program-prefix).
522         ($(objpfx)tst-translit.out): Likewise.
523         ($(objpfx)tst-gettext2.out): Likewise.
524         ($(objpfx)tst-gettext4.out): Likewise.
525         ($(objpfx)tst-gettext6.out): Likewise.
526         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
527         (test_program_prefix): This.
528         * intl/tst-gettext2.sh: Likewise.
529         * intl/tst-gettext4.sh  Likewise.
530         * intl/tst-gettext6.sh: Likewise.
531         * intl/tst-translit.sh: Likewise.
532         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
533         with $(test-program-cmd).
534         * libio/Makefile ($(objpfx)test-freopen.out): Replace
535         $(run-program-prefix) with $(test-program-prefix).
536         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
537         (test_program_prefix): This.
538         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
539         $(run-program-prefix) with $(test-program-prefix).
540         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
541         (test_program_prefix): This.
542         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
543         * posix/Makefile ($(objpfx)globtest.out): Replace
544         $(run-via-rtld-prefix) and $(test-wrapper) with
545         $(test-program-prefix) and $(test-via-rtld-prefix).
546         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
547         $(test-program-prefix).
548         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
549         $(host-test-program-cmd).
550         (tst-spawn-ARGS): Likewise.
551         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
552         $(test-program-prefix).
553         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
554         (test_via_rtld_prefix): This.
555         (test_wrapper): Renamed to ...
556         (test_program_prefix): This.
557         (run_program_prefix): Replaced by test_program_prefix.
558         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
559         (test_program_prefix): This.
560         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
561         with $(host-test-program-cmd).
562         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
563         $(run-program-prefix) with $(test-program-prefix).
564         ($(objpfx)tst-printf.out): Likewise.
565         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
566         $(test-program-cmd).
567         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
568         (test_program_prefix): This.
569         * stdio-common/tst-unbputc.sh: Likewise.
570         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
571         $(run-program-prefix) with $(test-program-prefix).
572         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
573         (test_program_prefix): This.
574         * string/Makefile ($(objpfx)tst-svc.out):  Replace
575         $(built-program-cmd) with $(test-program-cmd).
577 2013-01-11  Andreas Jaeger  <aj@suse.de>
579         [BZ #15003]
580         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
581         value. Sync with Linux 3.7.
583 2013-01-10  David S. Miller  <davem@davemloft.net>
585         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
586         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
587         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
589 2013-01-10  Roland McGrath  <roland@hack.frob.com>
591         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
592         never set.
593         * configure: Regenerated.
595 2013-01-10  David S. Miller  <davem@davemloft.net>
597         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
598         sparc V9 rather than using V8 code.
599         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
600         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
602 2013-01-10  Roland McGrath  <roland@hack.frob.com>
604         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
605         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
606         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
607         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
608         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
609         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
610         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
611         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
612         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
613         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
614         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
615         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
616         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
617         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
618         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
619         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
620         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
621         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
622         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
623         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
624         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
625         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
626         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
627         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
628         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
629         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
630         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
632 2013-01-10  David S. Miller  <davem@davemloft.net>
634         * sysdeps/sparc/fpu/libm-test-ulps: Update.
636 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
638         * posix/Makefile (tests-static): New variable.
639         (tests): Add $(tests-static).
640         (tst-exec-static-ARGS): New variable.
641         (tst-spawn-static-ARGS): Likewise.
642         * posix/tst-exec-static.c: New file.
643         * posix/tst-spawn-static.c: Likewise.
644         * posix/tst-exec.c: Support run directly.
645         * posix/tst-spawn.c: Likewise.
647 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
649         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
650         long.
651         * math/bits/mathcalls.h (llrint): Likewise.
652         (llround): Likewise.
653         * stdlib/stdlib.h (struct drand48_data): Likewise.
654         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
655         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
656         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
657         Likewise.
658         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
659         Likewise.
660         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
661         (elf_greg_t): Likewise.
662         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
663         (__jmp_buf): Likewise.
664         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
665         definitions.
666         (llrint): Likewise, for all definitions.
667         (llrintl): Likewise.
669         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
670         Remove [__GNUC__] condition.
671         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
672         condition to just [__USE_ISOC99].
673         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
675 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
677         [BZ #14200]
678         * sysdeps/unix/sysv/linux/x86/bits/environments.h
679         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
680         defined.
681         (_POSIX_V6_ILP32_OFF32): Likewise.
682         (_XBS5_ILP32_OFF32): Likewise.
683         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
684         (__ILP32_OFFBIG_LDFLAGS): Likewise.
686 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
688         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
690         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
691         doubles __mpexp_twomm1.  Adjust usage.
692         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
693         Remove.
695 2013-01-10  Andreas Schwab  <schwab@suse.de>
697         [BZ #14964]
698         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
699         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
701 2013-01-09  David S. Miller  <davem@davemloft.net>
703         [BZ #15003]
704         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
705         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
706         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
707         TCP_FASTOPEN): Define.
708         (tcp_repair_opt): New structure.
709         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
710         enum values.
711         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
712         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
713         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
714         (tcp_cookie_transactions): New structure.
716 2013-01-09  Anton Blanchard  <anton@samba.org>
718         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
719         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
720         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
721         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
723 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
725         * include/features.h (__USE_ANSI): Remove.
727 2013-01-09  Roland McGrath  <roland@hack.frob.com>
729         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
731         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
733 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
735         * sysdeps/s390/fpu/libm-test-ulps: Update.
737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
739         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
740         (__acr): Likewise.
741         (__cpy): Likewise.
742         (norm): Likewise.
743         (denorm): Likewise.
744         (__mp_dbl): Likewise.
745         (__dbl_mp): Likewise.
746         (add_magnitudes): Likewise.
747         (sub_magnitudes): Likewise.
748         (__add): Likewise.
749         (__sub): Likewise.
750         (__mul): Likewise.
751         (__inv): Likewise.
752         (__dvd): Likewise.
753         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
754         (__acr): Likewise.
755         (__cpy): Likewise.
756         (norm): Likewise.
757         (denorm): Likewise.
758         (__mp_dbl): Likewise.
759         (__dbl_mp): Likewise.
760         (add_magnitudes): Likewise.
761         (sub_magnitudes): Likewise.
762         (__add): Likewise.
763         (__sub): Likewise.
764         (__mul): Likewise.
765         (__inv): Likewise.
766         (__dvd): Likewise.
767         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
768         (__acr): Likewise.
769         (__cpy): Likewise.
770         (norm): Likewise.
771         (denorm): Likewise.
772         (__mp_dbl): Likewise.
773         (__dbl_mp): Likewise.
774         (add_magnitudes): Likewise.
775         (sub_magnitudes): Likewise.
776         (__add): Likewise.
777         (__sub): Likewise.
778         (__mul): Likewise.
779         (__inv): Likewise.
780         (__dvd): Likewise.
782 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
784         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
785         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
786         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
787         2 && __USE_EXTERN_INLINES]: Likewise.
789 2013-01-08  Andreas Jaeger  <aj@suse.de>
791         [BZ# 14985]
792         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
793         Remove.
794         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
795         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
797 2013-01-07  Anton Blanchard  <anton@samba.org>
799         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
800         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
801         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
802         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
803         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
804         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
805         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
806         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
807         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
808         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
809         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
810         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
811         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
812         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
813         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
814         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
815         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
816         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
817         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
818         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
819         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
820         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
821         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
822         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
823         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
824         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
825         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
826         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
827         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
828         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
829         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
830         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
831         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
832         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
833         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
834         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
835         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
836         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
837         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
838         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
839         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
840         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
841         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
843 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
845         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
846         (__MALLOC_PMT): Likewise.
847         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
848         [__GNUC__], only on [_LIBC].
849         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
850         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
851         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
852         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
853         forward declaration.
854         (realloc_hook_ini): Likewise.
855         (memalign_hook_ini): Likewise.
856         (__libc_memalign): Do not use __MALLOC_PMT in variable
857         declaration.
858         (__libc_valloc): Likewise.
859         (__libc_pvalloc): Likewise.
860         (__libc_calloc): Likewise.
861         (__posix_memalign): Likewise.
863         [BZ #14996]
864         * math/s_casinh.c: Include <float.h>.
865         (__casinh): Do not do computation with squaring and square root
866         for large arguments.
867         * math/s_casinhf.c: Include <float.h>.
868         (__casinhf): Do not do computation with squaring and square root
869         for large arguments.
870         * math/s_casinhl.c: Include <float.h>.
871         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
872         (__casinhl): Do not do computation with squaring and square root
873         for large arguments.
874         * math/libm-test.inc (casin_test): Add more tests.
875         (casinh_test): Likewise.
876         * sysdeps/i386/fpu/libm-test-ulps: Update.
877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
879 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
881         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
882         (__x86_64_raw_data_cache_size): Likewise.
883         (__x86_64_data_cache_size_half): Likewise.
884         (__x86_64_raw_data_cache_size_half): Likewise.
885         (__x86_64_shared_cache_size): Likewise.
886         (__x86_64_raw_shared_cache_size): Likewise.
887         (__x86_64_shared_cache_size_half): Likewise.
888         (__x86_64_raw_shared_cache_size_half): Likewise.
889         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
890         to ...
891         (__x86_data_cache_size): This.
892         (__x86_64_raw_data_cache_size): Renamed to ...
893         (__x86_raw_data_cache_size): This.
894         (__x86_64_data_cache_size_half): Renamed to ...
895         (__x86_data_cache_size_half): This.
896         (__x86_64_raw_data_cache_size_half): Renamed to ...
897         (__x86_raw_data_cache_size_half): This.
898         (__x86_64_shared_cache_size): Renamed to ...
899         (__x86_shared_cache_size): This.
900         (__x86_64_raw_shared_cache_size): Renamed to ...
901         (__x86_raw_shared_cache_size): This.
902         (__x86_64_shared_cache_size_half): Renamed to ...
903         (__x86_shared_cache_size_half): This.
904         (__x86_64_raw_shared_cache_size_half): Renamed to ...
905         (__x86_raw_shared_cache_size_half): This.
906         * sysdeps/x86_64/memcpy.S: Updated.
907         * sysdeps/x86_64/memset.S: Likewise.
908         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
909         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
910         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
912 2013-01-04  David S. Miller  <davem@davemloft.net>
914         * sysdeps/sparc/fpu/libm-test-ulps: Update.
916 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
918         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
919         1 to avoid redefinition warning.
920         (__USE_GNU): Don't define.
921         (init_signaling_nan): Protoize.
923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
925 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
927         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
928         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
929         (__cpymn): Likewise.
930         (norm): Remove commented code.
931         (denorm): Likewise.
932         (__mp_dbl): Likewise.
933         (__inv): Likewise.
934         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
935         (__cpymn): Likewise.
936         (norm): Remove commented code.
937         (denorm): Likewise.
938         (__mp_dbl): Likewise.
939         (__inv): Likewise.
941         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
942         mp_no value for 1.0 and 2.0.
943         (norm): Use RADIXI instead of radixi.d.
944         (denorm): Likewise.
945         (__mul): Use 0.0 instead of zero.d.
946         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
947         mp_no value for 1.0 and 2.0.
948         (norm): Use RADIXI instead of radixi.d.
949         (denorm): Likewise.
950         (__mul): Use 0.0 instead of zero.d.
952 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
954         [BZ #14994]
955         * math/s_casinh.c (__casinh): Reduce finite argument to first
956         quadrant then set signs of results at the end.
957         * math/s_casinhf.c (__casinhf): Likewise.
958         * math/s_casinhl.c (__casinhl): Likewise.
959         * math/libm-test.inc (casin_test): Add more tests.
960         (casinh_test): Likewise.
961         * sysdeps/i386/fpu/libm-test-ulps: Update.
962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
964 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
966         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
968         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
970         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
971         declarations.
972         (denorm): Likewise.
973         (__mp_dbl): Likewise.
974         (__inv): Likewise.
976         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
977         and adjust the header comment.
979         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
980         variable name from declaration.
982 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
984         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
985         Initialize COMMON_CPUID_INDEX_7 element.
986         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
987         (CPUID_RTM): Likewise.
988         (HAS_RTM): Likewise.
989         (COMMON_CPUID_INDEX_7): New enum.
991 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
993         [BZ #14981]
994         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
995         size is zero, record memory as freed.
997 2013-01-03  Andreas Jaeger  <aj@suse.de>
999         * po/ia.po: Add new Interlingua translation.
1001 2012-01-03  Allan McRae  <allan@archlinux.org>
1003         * locale/programs/localedef.c: Fix description of '--posix' flag.
1005 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
1007         * NEWS: Update dates in second copyright notice.
1008         * README: Update copyright dates in example.
1009         * manual/libc.texinfo: Update copyright dates.
1010         * scripts/test-installation.pl: Update copyright date in --version
1011         output.
1013         * hurd/ctty-input.c: Fix copyright notice formatting.
1014         * hurd/ctty-output.c: Likewise.
1015         * hurd/dtable.c: Likewise.
1016         * hurd/hurd-raise.c: Likewise.
1017         * hurd/hurdprio.c: Likewise.
1018         * hurd/msgportdemux.c: Likewise.
1019         * misc/sys/file.h: Likewise.
1020         * misc/sys/ioctl.h: Likewise.
1021         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
1022         * sysdeps/mach/hurd/chdir.c: Likewise.
1023         * sysdeps/mach/hurd/fchdir.c: Likewise.
1024         * sysdeps/mach/hurd/rename.c: Likewise.
1025         * sysdeps/mach/hurd/rmdir.c: Likewise.
1026         * sysdeps/mach/hurd/seekdir.c: Likewise.
1027         * sysdeps/mach/hurd/setsid.c: Likewise.
1028         * sysdeps/posix/wait3.c: Likewise.
1030         * All files with FSF copyright notices: Update copyright dates
1031         using scripts/update-copyrights.
1032         * intl/plural.c: Regenerated.
1033         * locale/programs/charmap-kw.h: Likewise.
1034         * locale/programs/locfile-kw.h: Likewise.
1036 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1038         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
1039         four values.
1041         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
1042         calculation loop and add branch prediction.
1044         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
1045         check access beyond bounds of m1np.
1047         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
1048         MPTWO.
1049         (__inv): Remove local variable MPTWO to use the global
1050         constant.
1051         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
1052         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
1053         variable MPTWO.
1054         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
1055         MP3HALFS static const.
1057 2013-01-01  David S. Miller  <davem@davemloft.net>
1059         * po/ca.po: Update from translation team.
1061 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
1063         * scripts/update-copyrights: New file.
1064         * Makeconfig: Reformat copyright notice.
1065         * ctype/ctype.h: Likewise.
1066         * debug/swprintf_chk.c: Likewise.
1067         * elf/dl-cache.c: Likewise.
1068         * elf/dl-debug.c: Likewise.
1069         * elf/dl-object.c: Likewise.
1070         * grp/initgroups.c: Likewise.
1071         * hurd/Makefile: Likewise.
1072         * hurd/hurd/signal.h: Likewise.
1073         * hurd/hurdfault.c: Likewise.
1074         * hurd/hurdioctl.c: Likewise.
1075         * hurd/hurdlookup.c: Likewise.
1076         * hurd/intr-msg.c: Likewise.
1077         * iconv/gconv_open.c: Likewise.
1078         * libio/swprintf.c: Likewise.
1079         * locale/lc-ctype.c: Likewise.
1080         * locale/nl_langinfo.c: Likewise.
1081         * mach/Machrules: Likewise.
1082         * mach/Makefile: Likewise.
1083         * malloc/obstack.h: Likewise.
1084         * manual/Makefile: Likewise.
1085         * manual/tsort.awk: Likewise.
1086         * misc/bits/stab.def: Likewise.
1087         * nis/nis_print_group_entry.c: Likewise.
1088         * nis/nis_table.c: Likewise.
1089         * nis/nss_compat/compat-pwd.c: Likewise.
1090         * nis/nss_compat/compat-spwd.c: Likewise.
1091         * po/Makefile: Likewise.
1092         * posix/fnmatch.c: Likewise.
1093         * posix/regex.h: Likewise.
1094         * resolv/Makefile: Likewise.
1095         * resolv/nss_dns/dns-network.c: Likewise.
1096         * resolv/res_hconf.c: Likewise.
1097         * scripts/gen-sorted.awk: Likewise.
1098         * soft-fp/soft-fp.h: Likewise.
1099         * stdio-common/printf.h: Likewise.
1100         * stdlib/monetary.h: Likewise.
1101         * stdlib/random.c: Likewise.
1102         * stdlib/random_r.c: Likewise.
1103         * sysdeps/generic/Makefile: Likewise.
1104         * sysdeps/gnu/Makefile: Likewise.
1105         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1106         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1107         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1108         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1109         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1110         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1111         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1112         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1113         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1114         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1115         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1116         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1117         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1118         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1119         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1120         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1121         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1122         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1123         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1124         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1125         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1126         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1127         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1128         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
1129         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
1130         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
1131         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
1132         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
1133         * sysdeps/mach/hurd/errnos.awk: Likewise.
1134         * sysdeps/mach/hurd/fork.c: Likewise.
1135         * sysdeps/mach/hurd/getcwd.c: Likewise.
1136         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
1137         * sysdeps/mach/hurd/mmap.c: Likewise.
1138         * sysdeps/mach/hurd/utimes.c: Likewise.
1139         * sysdeps/mach/hurd/xmknod.c: Likewise.
1140         * sysdeps/posix/profil.c: Likewise.
1141         * sysdeps/posix/readdir_r.c: Likewise.
1142         * sysdeps/powerpc/bits/mathdef.h: Likewise.
1143         * sysdeps/powerpc/bits/setjmp.h: Likewise.
1144         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
1145         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
1146         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
1147         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
1148         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
1149         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1150         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1151         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
1152         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
1153         * sysdeps/pthread/lio_listio.c: Likewise.
1154         * sysdeps/sparc/dl-procinfo.h: Likewise.
1155         * sysdeps/unix/i386/sysdep.S: Likewise.
1156         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1157         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
1158         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
1159         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1161         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
1162         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1163         * sysdeps/unix/sysv/linux/speed.c: Likewise.
1164         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
1165         * sysdeps/wordsize-32/divdi3.c: Likewise.
1166         * time/sys/time.h: Likewise.
1167         * wcsmbs/Makefile: Likewise.
1169 2013-01-01  David S. Miller  <davem@davemloft.net>
1171         * po/fr.po: Update from translation team.
1173         * catgets/gencat.c: Update copyright year.
1174         * csu/version.c: Likewise.
1175         * debug/catchsegv.sh: Likewise.
1176         * debug/pcprofiledump.c: Likewise.
1177         * debug/xtrace.sh: Likewise.
1178         * elf/ldconfig.c: Likewise.
1179         * elf/ldd.bash.in: Likewise.
1180         * elf/pldd.c: Likewise.
1181         * elf/sotruss.ksh: Likewise.
1182         * elf/sprof.c: Likewise.
1183         * iconv/iconv_prog.c: Likewise.
1184         * iconv/iconvconfig.c: Likewise.
1185         * locale/programs/locale.c: Likewise.
1186         * locale/programs/localedef.c: Likewise.
1187         * login/programs/pt_chown.c: Likewise.
1188         * malloc/memusage.sh: Likewise.
1189         * malloc/memusagestat.c: Likewise.
1190         * malloc/mtrace.pl: Likewise.
1191         * nscd/nscd.c: Likewise.
1192         * nss/getent.c: Likewise.
1193         * nss/makedb.c: Likewise.
1194         * posix/getconf.c: Likewise.
1196 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
1198         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
1199         numbers.
1201 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
1203         * math/bits/mathcalls.h (modf): Use __nonnull.
1205 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1207         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
1208         (split): Use macro CN instead of the bare value.
1209         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
1210         could be used.
1211         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
1212         instead of the bare value.
1213         (power1): Likewise.
1215 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1217         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
1218         __ATAN_TWOM.
1219         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1221         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
1222         their values.
1223         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1224         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1225         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1226         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1228 2012-12-28  Andreas Jaeger  <aj@suse.de>
1230         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
1231         values are from Linux 3.7.
1233         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
1234         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
1236 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1238         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
1239         TRUE case.
1241         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
1242         (norm): Likewise.
1243         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
1244         variables with preprocessor constants.
1245         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1246         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1247         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1249 2012-12-27  Bruno Haible  <bruno@clisp.org>
1251         [BZ #14317]
1252         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
1253         only if needed.
1255 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1257         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
1258         and use variable directly.
1259         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
1261         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
1262         MPONE.
1263         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
1264         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
1265         variable MPONE.
1266         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1267         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1268         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
1269         include directive.  Remove local variable MPONE.
1270         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
1271         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
1272         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
1274 2012-12-25  David S. Miller  <davem@davemloft.net>
1276         * version.h (RELEASE): Set to "development".
1277         (VERSION): Set to "2.17.90".
1278         * NEWS: Add 2.18 section.
1280 2012-12-21  David S. Miller  <davem@davemloft.net>
1282         * po/hr.po: Update from translation team.
1284 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1286         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
1288 2012-12-19  Steve Ellcey  <sellcey@mips.com>
1290         * NEWS:  Mention new memcpy for MIPS.
1292 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1294         * manual/contrib.texi (Contributors): Spelling correction.
1296 2012-12-15  David S. Miller  <davem@davemloft.net>
1298         * po/ru.po: Update from translation team.
1300 2012-12-13  David S. Miller  <davem@davemloft.net>
1302         * NEWS: Mention IFUNC testsuite enhancements.
1304         * po/pl.po: Update from translation team.
1305         * po/bg.po: Likewise.
1307         * manual/contrib.texi (Contributors): Update entries for Hongjiu
1308         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
1310 2012-12-11  David S. Miller  <davem@davemloft.net>
1312         * po/sv.po: Update from translation team.
1314         * po/vi.po: Update from translation team.
1316         * po/cs.po: Update from translation team.
1318         * po/de.po: Update from translation team.
1319         * po/eo.po: Likewise.
1320         * po/nl.po: Likewise.
1322 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1324         [BZ #14246]
1325         * manual/argp.texi (Argp Helper Functions): Move node to follow
1326         Argp Parsing State.
1328         [BZ #14872]
1329         * manual/conf.texi (Limits on File System Capacity): Mention if
1330         terminating null is included in the max size.
1332 2012-12-10  Andreas Jaeger  <aj@suse.de>
1334         * po/cs.po: Update from translation team.
1336 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
1338         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
1339         void pointer and cast to uintptr_t.
1340         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
1341         path.
1342         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1343         * sysdeps/s390/s390-64/memset.S: Likewise.
1345 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
1347         [BZ #14833]
1348         * menual/message.texi (Message Translation): Fix typos.
1349         (Helper programs for gettext): Likewise.
1351 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
1353         [BZ #14898]
1354         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
1355         Change to -1.
1357 2012-12-07  David S. Miller  <davem@davemloft.net>
1359         * po/libc.pot: Update.
1361 2012-12-07  Richard Henderson  <rth@redhat.com>
1363         [BZ #10114]
1364         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
1365         normal/normal case to before the switch.
1366         (_FP_DIV): Likewise.
1368 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
1369             Mike Frysinger  <vapier@gentoo.org>
1371         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
1372         check for __NR_fadvise64_64.
1374 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
1376         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
1377         0, not just to plain "0" as a statement.
1378         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
1379         with cw.
1381 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
1383         * NEWS: Use sourceware.org in Bugzilla URL.
1385 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1388         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
1390         * stdio-common/tst-put-error.c (do_test): Add newline to the
1391         padded test to ensure flush.
1393 2012-12-05  Jeff Law  <law@redhat.com>
1395         * sunrpc/etc.rpc (fedfs_admin): Add entry.
1397 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
1399         * README: Don't refer to ports add-on as distributed separately.
1400         Mention AArch64 in list of systems supported in the ports add-on.
1402         * LICENSES: Add more non-FSF copyright and license notices.
1404         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
1405         ((unused)).
1407         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
1409         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
1410         10000 as width of padded output.
1412 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
1414         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
1416         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
1417         variable LX with __attribute__ ((unused)).
1418         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
1419         Likewise.
1420         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
1421         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1422         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
1423         with __attribute__ ((unused)).
1425 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
1427         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
1429 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
1431         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
1432         (CFLAGS-nldbl-acos.c): New variable.
1433         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
1434         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
1435         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
1436         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
1437         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
1438         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
1439         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
1440         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
1441         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
1442         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
1443         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
1444         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
1445         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
1446         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
1447         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
1448         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
1449         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
1450         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
1451         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
1452         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
1453         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
1454         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
1455         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
1456         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
1457         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
1458         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
1459         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
1460         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
1461         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
1462         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
1463         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
1464         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
1465         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
1466         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
1467         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
1468         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
1469         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
1470         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
1471         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
1472         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
1473         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
1474         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
1475         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
1476         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
1477         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
1478         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
1479         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
1480         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
1481         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
1482         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
1483         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
1484         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
1485         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
1486         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
1487         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
1488         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
1489         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
1490         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
1491         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
1492         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
1493         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
1494         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
1495         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
1496         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
1497         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
1498         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
1499         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
1500         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
1501         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
1502         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
1503         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
1504         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
1505         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
1506         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
1507         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
1508         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
1509         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
1510         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
1511         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
1512         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
1513         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
1514         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
1515         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
1516         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
1517         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
1518         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
1519         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
1520         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
1521         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
1522         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
1523         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
1524         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
1525         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
1526         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
1527         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
1528         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
1529         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
1531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1532         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
1534         [BZ #14914]
1535         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
1536         whole low double instead of just low 47 bits when splitting values
1537         into two parts.
1539 2012-12-03  Allan McRae  <allan@archlinux.org>
1541         * manual/stdio.texi (Predefined Printf Handlers): Remove
1542         @hsep and @vsep usage.
1544 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
1546         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
1547         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
1549 2012-12-03  Jeff Law  <law@redhat.com>
1551         * time/sys/time.h (settimeofday): Do not mark TV argument
1552         as __nonnull.
1554 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
1556         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
1557         when currently writing and seek to current position when not.
1558         * libio/Makefile (tests): Remove bug-fclose1.
1559         * libio/bug-fclose1.c: Delete.
1561 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
1563         * manual/arith.texi (feenableexcept): Fix typo.
1564         (fedisableexcept): Likewise.
1566 2012-11-30  Roland McGrath  <roland@hack.frob.com>
1568         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
1569         second, differently-typed declaration, rather than a cast.
1571 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1573         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
1574         * include/rpc/svc.h: ... here.
1576 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
1578         [BZ #13013]
1579         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
1580         depending n and resplen2 to catch cases where answer
1581         equals answerp2.
1583 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
1585         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
1586         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
1588 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
1590         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
1592 2012-11-29  Roland McGrath  <roland@hack.frob.com>
1594         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
1596 2012-11-28  Jeff Law  <law@redhat.com>
1598         [BZ #13761]
1599         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
1600         dataset_temporary.  Track alloca usage into alloca_used.
1601         If dataset is large allocate and release it via malloc/free.
1603 2012-06-04  Florian Weimer  <fweimer@redhat.com>
1605         [BZ #14197]
1606         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
1608 2012-11-28  David S. Miller  <davem@davemloft.net>
1610         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1612 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
1614         [BZ #14803]
1615         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
1616         of pi/2 rounded to nearest to 64 bits.
1617         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
1618         nearest to 64 bits.
1619         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
1620         bits.
1622 2012-11-28  Jeff Law <law@redhat.com>
1623             Martin Osvald <mosvald@redhat.com>
1625         [BZ #14889]
1626         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
1627         * sunrpc/svc.c: Include time.h.
1628         (__svc_accept_failed): New function.
1629         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
1630         any reason other than EINTR, call __svc_accept_failed.
1631         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
1632         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
1634 2012-11-28  Andreas Schwab  <schwab@suse.de>
1636         * scripts/abilist.awk: Also handle indirect functions in .opd
1637         section.
1639 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
1641         [BZ #13881]
1642         * sysdeps/x86/fpu/powl_helper.c: New file.
1643         * sysdeps/x86/fpu/Makefile: Likewise.
1644         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
1645         (p3): New object.
1646         (__ieee754_powl): Use __powl_helper for finite arguments except
1647         integer exponents below 8.
1648         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
1649         (p3): New object.
1650         (__ieee754_powl): Use __powl_helper for finite arguments except
1651         integer exponents below 8.
1652         * math/libm-test.inc (pow_test): Add more tests and enable some
1653         previously disabled tests.
1654         * sysdeps/i386/fpu/libm-test-ulps: Update.
1655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1657 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1658             Carlos O'Donell  <carlos_odonell@mentor.com>
1660         * nss/makedb.c (is_prime): Assert that input is odd and greater
1661         than 4.  Note that fact in a comment too.
1662         (next_prime): Add 4 to input.
1664 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1666         [BZ #11741]
1667         * libio/Makefile (tests): Add test case tst-fwrite-error.
1668         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
1669         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1670         * libio/tst-fwrite-error.c: New test case.
1672 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
1674         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
1675         before casting to void *.
1676         * include/libc-internal.h (__pointer_type): New macro.
1677         (__integer_if_pointer_type_sub): Likewise.
1678         (__integer_if_pointer_type): Likewise.
1679         (cast_to_integer): Likewise.
1680         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
1681         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
1682         before casting to atomic64_t.
1683         (atomic_exchange_acq): Likewise.
1684         (__arch_exchange_and_add_body): Likewise.
1685         (__arch_add_body): Likewise.
1686         (atomic_add_negative): Likewise.
1687         (atomic_add_zero): Likewise.
1689 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
1691         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
1692         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
1693         (add_fdes): Likewise.
1694         (linear_search_fdes): Likewise.
1695         (binary_search_unencoded_fdes): Likewise.
1697 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
1699         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
1701 2012-11-24  Adam Conrad  <adconrad@0c3.net>
1703         * configure.in: Autodetect C++ header directories.
1704         * configure: Regenerated.
1706 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
1708         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
1710 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
1712         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1714 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
1716         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
1717         LDBL_MANT_DIG == 106]: Disable some tests.
1718         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
1719         Likewise.
1720         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
1721         Likewise.
1723         [BZ #14871]
1724         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
1725         input for small inputs.  Return +/- pi/2 for large inputs.
1726         * math/libm-test.inc (atan_test): Add more tests.
1728         * sysdeps/generic/unwind-dw2-fde-glibc.c
1729         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
1730         __attribute__ ((unused)).
1732         [BZ #14645]
1733         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
1734         x * y if x and y are nonzero and z is zero.
1736         [BZ #14811]
1737         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
1738         nonzero exponents with absolute value below 0x1p-117 to +/-
1739         0x1p-117.
1741         [BZ #14869]
1742         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
1743         up arguments below 2**-450, not just those below 2**-500.
1744         * math/libm-test.inc (hypot_test): Add another test.
1746         [BZ #14868]
1747         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
1748         Return a+b for ratio over 2**120, not 2**60.
1749         * math/libm-test.inc (hypot_test): Add another test.
1751         * math/libm-test.inc (clog_test): Use
1752         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
1753         (clog10_test): Likewise.
1755         [BZ #6778]
1756         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
1758 2012-11-22  Andreas Schwab  <schwab@suse.de>
1760         * sysdeps/i386/fpu/libm-test-ulps: Update.
1762 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
1764         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
1765         printf output with newline.
1767 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1769         [BZ #14865]
1770         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
1771         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
1772         -z nodlopen, -z initfirst and -z execstack support.
1773         * configure: Regenerated.
1775         * elf/elf.h (DF_1_NODIRECT): New macro.
1776         (DF_1_IGNMULDEF): Likewise.
1777         (DF_1_NOKSYMS): Likewise.
1778         (DF_1_NOHDR): Likewise.
1779         (DF_1_EDITED): Likewise.
1780         (DF_1_NORELOC): Likewise.
1781         (DF_1_SYMINTPOSE): Likewise.
1782         (DF_1_GLOBAUDIT): Likewise.
1783         (DF_1_SINGLETON): Likewise.
1784         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
1785         DT_1_SUPPORTED_MASK bits.
1786         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
1788 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
1790         * sysdeps/unix/make-syscalls.sh: Document prefixes.
1792 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
1794         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
1795         macro.
1797         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
1798         (sendmmsg): Move declarations...
1799         * socket/sys/socket.h: ... here.
1800         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
1801         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
1802         include it from...
1803         * socket/recvmmsg.c: ... this new file.
1804         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
1805         (sendmmsg): Rename to __sendmmsg, create weak alias and make
1806         definition of __sendmmsg hidden.
1807         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
1808         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
1809         Move ENOSYS stub into and include it from...
1810         * socket/sendmmsg.c: ... this new file.
1811         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
1812         (sysdep_routines): Move recvmmsg and sendmmsg...
1813         * socket/Makefile (routines): ... here.
1814         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
1815         (GLIBC_PRIVATE): Add __sendmmsg.
1816         * include/sys/socket.h (__sendmmsg): Add declarations.
1817         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
1818         sendmmsg.
1820 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
1822         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
1823         variable I1 with __attribute__ ((unused)).
1824         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
1826 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
1828         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
1829         DUMMY variables with __attribute__ ((unused)).
1831         * bits/byteswap.h: Include <bits/types.h>.
1832         (__bswap_64): Use __uint64_t instead of unsigned long long int.
1834 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
1836         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
1837         string_t.  Do not manually set errno.
1838         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
1839         length with __strnlen.  Make sure to both set errno and return it on
1840         failure.
1842 2012-11-19  David S. Miller  <davem@davemloft.net>
1844         With help from Joseph Myers.
1845         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
1846         very large arguments properly.
1847         * math/libm-test.inc (atan_test): New tests.
1848         (atan2_test): New tests.
1849         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1850         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1852 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
1854         [BZ #14856]
1855         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
1856         Define to 3.
1858         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
1859         [POSIX] (EADDRNOTAVAIL): Likewise.
1860         [POSIX] (EAFNOSUPPORT): Likewise.
1861         [POSIX] (EALREADY): Likewise.
1862         [POSIX] (ECONNABORTED): Likewise.
1863         [POSIX] (ECONNREFUSED): Likewise.
1864         [POSIX] (ECONNRESET): Likewise.
1865         [POSIX] (EDESTADDRREQ): Likewise.
1866         [POSIX] (EDQUOT): Likewise.
1867         [POSIX] (EHOSTUNREACH): Likewise.
1868         [POSIX] (EIDRM): Likewise.
1869         [POSIX] (EISCONN): Likewise.
1870         [POSIX] (ELOOP): Likewise.
1871         [POSIX] (EMULTIHOP): Likewise.
1872         [POSIX] (ENETDOWN): Likewise.
1873         [POSIX] (ENETUNREACH): Likewise.
1874         [POSIX] (ENOBUFS): Likewise.
1875         [POSIX] (ENODATA): Likewise.
1876         [POSIX] (ENOLINK): Likewise.
1877         [POSIX] (ENOMSG): Likewise.
1878         [POSIX] (ENOPROTOOPT): Likewise.
1879         [POSIX] (ENOSR): Likewise.
1880         [POSIX] (ENOSTR): Likewise.
1881         [POSIX] (ENOTCONN): Likewise.
1882         [POSIX] (ENOTSOCK): Likewise.
1883         [POSIX] (EOPNOTSUPP): Likewise.
1884         [POSIX] (EOVERFLOW): Likewise.
1885         [POSIX] (EPROTO): Likewise.
1886         [POSIX] (EPROTONOSUPPORT): Likewise.
1887         [POSIX] (EPROTOTYPE): Likewise.
1888         [POSIX] (ESTALE): Likewise.
1889         [POSIX] (ETIME): Likewise.
1890         [POSIX] (ETXTBSY): Likewise.
1891         [POSIX] (EWOULDBLOCK): Likewise.
1892         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
1893         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
1894         [POSIX] (SEEK_CUR): Likewise.
1895         [POSIX] (SEEK_END): Likewise.
1896         [POSIX || UNIX98] (mode_t): Do not require.
1897         [POSIX] (off_t): Likewise.
1898         [POSIX] (pid_t): Likewise.
1899         [POSIX] (sys/stat.h): Do not allow header.
1900         [POSIX] (unistd.h): Likewise.
1901         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
1902         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
1903         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
1904         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
1905         require.
1906         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
1907         sigevent): Specify elements.
1908         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
1909         entry.
1910         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
1911         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
1913         * conform/data/cpio.h-data [POSIX]: Disable whole file.
1914         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
1915         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
1916         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
1917         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
1918         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
1919         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
1920         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
1921         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
1922         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
1923         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
1924         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
1925         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
1926         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
1927         Likewise.
1928         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
1929         Likewise.
1930         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
1931         Likewise.
1932         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
1933         Likewise.
1934         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
1935         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
1936         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
1937         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
1938         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
1939         Specify lower bound on value.
1940         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
1941         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
1942         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
1943         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
1944         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
1945         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
1946         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
1947         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
1948         value.
1949         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
1950         as optional.
1951         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
1952         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
1953         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
1954         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
1955         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
1956         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
1957         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
1958         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
1959         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
1960         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
1961         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
1962         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
1963         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
1964         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
1965         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
1966         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
1967         entry.
1968         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
1969         optional.
1970         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
1971         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
1972         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
1973         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
1974         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
1975         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
1976         Likewise.
1977         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
1978         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
1979         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
1980         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
1981         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
1982         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
1983         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
1984         as optional.
1985         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
1986         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
1987         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
1988         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
1989         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
1990         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
1991         specify as optional.
1992         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
1993         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
1994         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
1995         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
1996         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
1997         [XPG3] (NL_LANGMAX): Likewise.
1998         [POSIX || XPG3] (NL_MSGMAX): Likewise.
1999         [POSIX || XPG3] (NL_NMAX): Likewise.
2000         [POSIX || XPG3] (NL_SETMAX): Likewise.
2001         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
2002         [XPG3] (NZERO): Likewise.
2003         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
2004         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
2005         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
2006         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
2007         (REG_ERANGE): Expect.
2008         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
2009         optional-constant.
2010         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
2011         Use (void) in prototype.
2012         [POSIX] (*_t): Allow.
2013         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
2014         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
2015         (WRDE_BADVAL): Expect.
2017         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
2018         expect.
2019         [XPG3 || XPG4] (O_RSYNC): Likewise.
2020         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
2021         Likewise.
2022         [XPG3 || XPG4] (pthread_sigmask): Likewise.
2023         [XPG3 || XPG4] (sigqueue): Likewise.
2024         [XPG3 || XPG4] (sigtimedwait): Likewise.
2025         [XPG3 || XPG4] (sigwaitinfo): Likewise.
2026         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
2027         [XPG3 || XPG4] (vsnprintf): Likewise.
2028         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
2029         Likewise.
2030         [XPG3 || XPG4] (blksize_t): Likewise.
2031         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
2032         Likewise.
2033         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
2034         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
2035         [XPG3 || XPG4] (struct itimerspec): Likewise.
2036         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
2037         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
2038         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
2039         [XPG3 || XPG4] (clockid_t): Likewise.
2040         [XPG3 || XPG4] (timer_t): Likewise.
2041         [XPG3 || XPG4] (clock_getres): Likewise.
2042         [XPG3 || XPG4] (clock_gettime): Likewise.
2043         [XPG3 || XPG4] (clock_settime): Likewise.
2044         [XPG3 || XPG4] (nanosleep): Likewise.
2045         [XPG3 || XPG4] (timer_create): Likewise.
2046         [XPG3 || XPG4] (timer_delete): Likewise.
2047         [XPG3 || XPG4] (timer_gettime): Likewise.
2048         [XPG3 || XPG4] (timer_getoverrun): Likewise.
2049         [XPG3 || XPG4] (timer_settime): Likewise.
2050         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
2051         [XPG3 || XPG4] (getlogin_r): Likewise.
2052         [XPG3 || XPG4] (pread): Likewise.
2053         [XPG3 || XPG4] (pthread_atfork): Likewise.
2054         [XPG3 || XPG4] (pwrite): Likewise.
2056         [BZ #14835]
2057         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
2058         <bits/siginfo.h>.
2060 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
2062         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
2063         finalizing MALLSTREAM.
2065         * sysdeps/mach/hurd/syncfs.c: New file.
2067 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2069         [BZ #14719]
2070         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
2071         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
2072         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
2073         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
2074         (_nss_dns_gethostbyname4_r): Likewise.
2075         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
2076         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
2078 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
2080         [BZ #13763]
2081         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
2083 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
2085         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
2086         * elf/cache.c (print_entry): Print ",AArch64" for
2087         FLAG_AARCH64_LIB64
2089         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
2090         * elf/cache.c (print_entry): Print ",hard-float" for
2091         FLAG_ARM_LIBHF.
2093 2012-11-18  David S. Miller  <davem@davemloft.net>
2095         With help from Joseph Myers.
2096         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
2097         cutoff to 2**-13.
2098         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
2099         cutoff to 2**-25.
2100         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
2101         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
2102         small.
2103         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
2104         * math/libm-test.inc (y0_test): New tests.
2105         (y1_test): New tests.
2106         * sysdeps/i386/fpu/libm-test-ulps: Update.
2107         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2108         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2110 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
2112         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
2113         64-bit targets.
2114         * configure: Regenerated.
2116 2012-11-17  David S. Miller  <davem@davemloft.net>
2118         [BZ #14811]
2119         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
2120         nonzero exponents with absolute value below 0x1p-128 to +/-
2121         0x1p-128.
2123 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
2125         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
2127         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
2129         * posix/getconf-speclist.c: New file.
2130         * posix/posix-envs.def: Likewise.
2131         * posix/confstr.c (START_ENV_GROUP): New macro.
2132         (END_ENV_GROUP): Likewise.
2133         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
2134         (KNOWN_PRESENT_ENV_STRING): Likewise.
2135         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
2136         (UNKNOWN_ENVIRONMENT): Likewise.
2137         (confstr): Include posix-envs.def instead of handling
2138         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
2139         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
2140         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
2141         (END_ENV_GROUP): Likewise.
2142         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
2143         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
2144         (UNKNOWN_ENVIRONMENT): Likewise.
2145         (__sysconf): Include posix-envs.def instead of handling associated
2146         cases directly here.
2147         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
2148         preprocessing getconf-speclist.c rather than running getconf or
2149         generating empty file.
2151 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
2153         * scripts/check-local-headers.sh: Ignore 'mach' headers.
2155 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
2157         [BZ #14672]
2158         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
2160 2012-11-16  David S. Miller  <davem@davemloft.net>
2162         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
2163         smaller than LDBL_EPSILON/2.0L, just return xm1.
2165 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
2167         * elf/tst-array1.c (init): Set constructor priority to 1000.
2168         (fini): Set destructor priority to 1000.
2169         * elf/tst-array2dep.c: Likewise.
2171 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2173         [BZ #11741]
2174         * libio/fileops.c (_IO_new_file_write): Correctly return error.
2175         (_IO_new_file_xsputn): Also return EOF if none of the input
2176         data was written when overflow failed.
2177         * libio/iopadn.c (_IO_padn): Likewise.
2178         * libio/iowpadn.c (_IO_wpadn): Likewise.
2179         * stdio-common/tst-put-error.c: Add copyright notice.
2180         (do_test): Add case for printing padded string.
2181         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
2182         _IO_padn returned error.
2183         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
2184         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
2185         return EOF.
2187 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2189         * libio/libioP.h: Add comment note that the references to C++
2190         bits are now obsolete.
2192 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2194         * math/libm-test.inc (check_complex): Use asprintf.
2196 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
2198         * debug/pcprofiledump.c (print_version): Update copyright year.
2199         * malloc/memusagestat.c (print_version): Likewise.
2201 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
2203         [BZ #14831]
2204         * elf/Makefile (tests): Add tst-audit8.
2205         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
2206         ($(objpfx)tst-audit8.out): New target.
2207         (tst-audit8-ENV): New variable.
2208         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
2209         audit if l_reloc_result is NULL.
2210         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
2211         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
2212         * elf/tst-audit8.c: New file.
2214 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2216         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
2217         * misc/Makefile (CFLAGS-select.c): Define.
2218         * posix/Makefile (CFLAGS-pause.c): Define.
2220 2012-11-13  David S. Miller  <davem@davemloft.net>
2222         * crypt/Makefile: Move test targets after toplevel Rules
2223         inclusion.  Grab any necessary sysdep routines when linking.
2224         * crypt/md5.c (md5_process_block): Remove define, we will always
2225         name it __md5_process_block.
2226         (md5_finish_ctx): Update md5_process_block call.
2227         (md5_stream): Likewise.
2228         (md5_process_bytes): Likewise.
2229         (md5_process_block): Rename to __md5_process_block and move to ...
2230         * crypt/md5-block.c: ... here.
2231         * crypt/sha256.c (sha256_process_block): Move to ...
2232         * crypt/sha256-block.c: ... here.
2233         * crypt/sha512.c (sha512_process_block): Move to ...
2234         * crypt/sha512-block.c: ... here.
2235         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
2236         path.
2237         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
2238         * sysdeps/sparc/sparc64/multiarch/Makefile
2239         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
2240         crypt subdir.
2241         (localedef-aux): Add md5 crypto assembler when in locale subdir.
2242         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
2243         multiarch changes.
2244         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
2245         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
2246         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
2247         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
2248         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
2249         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
2250         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
2251         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
2252         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
2253         file.
2254         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
2255         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
2256         file.
2257         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
2259 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
2261         * timezone/tzselect.ksh: Update from tzcode git revision
2262         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
2263         * timezone/zdump.c: Likewise.
2264         * timezone/zic.c: Likewise.
2265         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
2266         in TZVERSION setting, not $(PKGVERSION).
2267         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
2268         REPORT_BUGS_TO settings.
2270         [BZ #14838]
2271         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
2272         macro.
2274 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2276         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
2277         detection to immediately after _FP_ROUND().
2278         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
2279         bits are 0.
2281 2012-11-11  David S. Miller  <davem@davemloft.net>
2283         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
2284         inttypes.h
2285         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
2286         __close rather than their public counterparts.
2288 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
2290         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
2291         file.
2292         [UNIX98] (sem_timedwait): Do not expect.
2293         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
2294         [XPG4 || UNIX98] (sockatmark): Do not expect.
2295         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
2296         (clock_getcpuclockid): Do not expect.
2297         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
2298         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
2299         Do not expect.
2300         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
2301         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
2302         [UNIX98] (vwscanf): Likewise.
2303         [UNIX98] (vswscanf): Likewise.
2305 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
2307         * timezone/version.h: Remove file.
2308         * timezone/README: Do not refer to version.h.
2309         * timezone/Makefile ($(objpfx)zic.o): New dependency on
2310         $(objpfx)version.h.
2311         ($(objpfx)zdump.o): Likewise.
2312         ($(objpfx)version.h): New target.
2314         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
2315         2012i.
2316         * timezone/README: Don't mention modification to tzselect.ksh.
2317         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
2318         work on unmodified tzselect.ksh.  Substitute version numbers in
2319         tzselect.ksh.
2321         * Makefile (format-me): Remove.
2322         (INSTALL): Adjust indentation.  Use commands directly instead of
2323         using $(format-me).
2325         * aclocal.m4 (ACX_PKGVERSION): New macro.
2326         (ACX_BUGURL): Likewise.
2327         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
2328         (PKGVERSION): New AC_DEFINE_UNQUOTED.
2329         (REPORT_BUGS_TO): Likewise.
2330         * configure: Regenerated.
2331         * config.h.in (PKGVERSION): New macro.
2332         (REPORT_BUGS_TO): Likewise.
2333         * config.make.in (PKGVERSION): New variable.
2334         (PKGVERSION_TEXI): Likewise.
2335         (REPORT_BUGS_TO): Likewise.
2336         (REPORT_BUGS_TEXI): Likewise.
2337         * Makefile (format-me): Use -I$(common-objpfx)manual.
2338         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
2339         ($(common-objpfx)manual/%): New target.
2340         (manual/%): Remove target.
2341         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
2342         (print_version): Use PKGVERSION.
2343         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
2344         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
2345         and REPORT_BUGS_TO.
2346         ($(objpfx)xtrace): Likewise.
2347         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
2348         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
2349         (print_version): Use PKGVERSION.
2350         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
2351         (do_version): Use PKGVERSION.
2352         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
2353         REPORT_BUGS_TO.
2354         (common-ldd-rewrite): Likewise.
2355         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
2356         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
2357         (print_version): Use PKGVERSION.
2358         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
2359         * elf/pldd.c (argp_program_bug_address): Remove variable.
2360         (more_help): New function.
2361         (argp): Use more_help.
2362         (print_version): Use PKGVERSION.
2363         * elf/sln.c (main): Use PKGVERSION.
2364         (usage): Use REPORT_BUGS_TO.
2365         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
2366         (top level): Use PKGVERSION.
2367         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
2368         (print_version): Use PKGVERSION.
2369         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
2370         (print_version): Use PKGVERSION.
2371         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
2372         (print_version): Use PKGVERSION.
2373         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
2374         (print_version): Use PKGVERSION.
2375         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
2376         (print_version): Use PKGVERSION.
2377         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
2378         (print_version): Use PKGVERSION.
2379         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
2380         and BUGURL.
2381         ($(objpfx)memusage): Likewise.
2382         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
2383         (do_version): Use PKGVERSION.
2384         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
2385         (print_version): Use PKGVERSION.
2386         * malloc/mtrace.pl ($PACKAGE): Remove variable.
2387         ($PKGVERSION): New variable.
2388         ($REPORT_BUGS_TO): Likewise.
2389         (usage): Use $REPORT_BUGS_TO.
2390         (top level): Use $PKGVERSION.
2391         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
2392         ($(objpfx)pkgvers.texi): New rule.
2393         ($(objpfx)stamp-pkgvers): Likewise.
2394         * manual/install.texi: Include pkgvers.texi.
2395         (--with-pkgversion): Document new configure option.
2396         (--with-bugurl): Likewise.
2397         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
2398         than necessarily for this particular distribution.  Use
2399         REPORT_BUGS_TO for where to report bugs.
2400         * INSTALL: Regenerated.
2401         * manual/libc.texinfo: Include pkgvers.texi.
2402         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
2403         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
2404         (print_version): Use PKGVERSION.
2405         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
2406         (print_version): Use PKGVERSION.
2407         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
2408         (print_version): Use PKGVERSION.
2409         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
2410         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
2411         macro.
2412         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
2413         (print_version): Use PKGVERSION.
2414         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
2415         (print_version): Use PKGVERSION.
2416         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
2417         and PKGVERSION.
2419         * timezone/checktab.awk: Update from tzcode 2012i.
2420         * timezone/ialloc.c: Likewise.
2421         * timezone/private.h: Likewise.
2422         * timezone/scheck.c: Likewise.
2423         * timezone/tzfile.h: Likewise.
2424         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
2425         (TZVERSION): Hardcode tzcode version number.
2426         * timezone/zdump.c: Update from tzcode 2012i.
2427         * timezone/zic.c: Likewise.
2428         * timezone/version.h: New file.
2429         * timezone/README: Describe version.h.  Update upstream location.
2431         [BZ #14824]
2432         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
2433         (mktemp): Enable declaration.
2434         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
2435         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
2436         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
2437         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
2438         Likewise.
2439         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
2440         Likewise.
2441         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
2442         Likewise.
2443         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
2444         Likewise.
2445         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
2446         Likewise.
2447         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
2448         Likewise.
2450         [BZ #14821]
2451         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
2452         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
2453         for copies of such integer values.
2454         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
2455         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
2457 2012-11-09  Andreas Jaeger  <aj@suse.de>
2459         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
2460         definitions and declarations that are provided by
2461         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2463 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2465         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
2466         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
2467         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
2468         definition.
2470 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2472         * elf/elf.h: Update comment before AArch64 relocations.
2474 2012-11-07  David S. Miller  <davem@davemloft.net>
2476         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
2477         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
2478         (__start_context): Declare.
2479         (__makecontext_ret): Delete.
2480         (__makecontext): Hook up __start_context instead of
2481         __makecontext_ret.
2482         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
2483         (sysdep_routines): Add __start_context when in stdlib.
2485 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2487         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
2488         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
2489         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
2490         hardcoded "nm".
2491         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
2492         (READELF): New variable.  Use it instead of hardcoded "readelf".
2494 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
2496         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
2497         * sysdeps/x86/Makefile: Here.
2498         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
2499         * sysdeps/x86/tst-xmmymm.sh: This.
2501 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2503         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
2504         expectations.
2505         [UNIX98] (pthread_barrier_t): Do not expect.
2506         [UNIX98] (pthread_barrierattr_t): Likewise.
2507         [UNIX98] (pthread_spinlock_t): Likewise.
2508         [UNIX98] (pthread_barrier_destroy): Likewise.
2509         [UNIX98] (pthread_barrier_init): Likewise.
2510         [UNIX98] (pthread_barrier_wait): Likewise.
2511         [UNIX98] (pthread_barrierattr_destroy): Likewise.
2512         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
2513         [UNIX98] (pthread_barrierattr_init): Likewise.
2514         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
2515         [UNIX98] (pthread_getcpuclockid): Likewise.
2516         [UNIX98] (pthread_mutex_timedlock): Likewise.
2517         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
2518         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
2519         [UNIX98] (pthread_sigmask): Likewise.
2520         [UNIX98] (pthread_spin_destroy): Likewise.
2521         [UNIX98] (pthread_spin_init): Likewise.
2522         [UNIX98] (pthread_spin_lock): Likewise.
2523         [UNIX98] (pthread_spin_trylock): Likewise.
2524         [UNIX98] (pthread_spin_unlock): Likewise.
2525         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
2526         Do not expect.
2527         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
2528         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
2529         [XPG3 || XPG4] (pthread_cond_t): Likewise.
2530         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
2531         [XPG3 || XPG4] (pthread_key_t): Likewise.
2532         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
2533         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
2534         [XPG3 || XPG4] (pthread_once_t): Likewise.
2535         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
2536         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
2537         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
2538         [XPG3 || XPG4] (pthread_t): Likewise.
2540         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
2541         not expect.
2542         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
2544         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
2545         Change function return type to int.
2547         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
2548         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
2549         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
2550         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
2551         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
2552         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
2553         [!POSIX] (posix_madvise): Likewise.
2554         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
2555         && !UNIX98].
2556         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
2557         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
2558         (mode_t): Likewise.
2559         (posix_mem_offset): Likewise.
2560         (posix_typed_mem_get_info): Likewise.
2561         (posix_typed_mem_open): Likewise.
2563         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
2564         Change condition to [XOPEN2K8].
2566         * conform/conformtest.pl: Preprocess allow-header data with -x c
2567         instead of from stdin.
2568         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
2569         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
2570         [C99-based standards] (cerfc): Likewise.
2571         [C99-based standards] (cexp2): Likewise.
2572         [C99-based standards] (cexpm1): Likewise.
2573         [C99-based standards] (clog10): Likewise.
2574         [C99-based standards] (clog1p): Likewise.
2575         [C99-based standards] (clog2): Likewise.
2576         [C99-based standards] (clgamma): Likewise.
2577         [C99-based standards] (ctgamma): Likewise.
2578         [C99-based standards] (cerff): Likewise.
2579         [C99-based standards] (cerfcf): Likewise.
2580         [C99-based standards] (cexp2f): Likewise.
2581         [C99-based standards] (cexpm1f): Likewise.
2582         [C99-based standards] (clog10f): Likewise.
2583         [C99-based standards] (clog1pf): Likewise.
2584         [C99-based standards] (clog2f): Likewise.
2585         [C99-based standards] (clgammaf): Likewise.
2586         [C99-based standards] (ctgammaf): Likewise.
2587         [C99-based standards] (cerfl): Likewise.
2588         [C99-based standards] (cerfcl): Likewise.
2589         [C99-based standards] (cexp2l): Likewise.
2590         [C99-based standards] (cexpm1l): Likewise.
2591         [C99-based standards] (clog10l): Likewise.
2592         [C99-based standards] (clog1pl): Likewise.
2593         [C99-based standards] (clog2l): Likewise.
2594         [C99-based standards] (clgammal): Likewise.
2595         [C99-based standards] (ctgammal): Likewise.
2596         * conform/data/inttypes.h-data [C99-based standards]: Include
2597         stdint.h-data.  Remove all expectations for stdint.h contents.
2598         [C99-based standards] (PRI*): Do not allow.
2599         [C99-based standards] (SCN*): Likewise.
2600         [C99-based standards] (*_t): Likewise.
2601         [C99-based-standards] (PRId8): Expect macro.
2602         [C99-based-standards] (PRIi8): Likewise.
2603         [C99-based-standards] (PRIo8): Likewise.
2604         [C99-based-standards] (PRIu8): Likewise.
2605         [C99-based-standards] (PRIx8): Likewise.
2606         [C99-based-standards] (PRIX8): Likewise.
2607         [C99-based-standards] (SCNd8): Likewise.
2608         [C99-based-standards] (SCNi8): Likewise.
2609         [C99-based-standards] (SCNo8): Likewise.
2610         [C99-based-standards] (SCNu8): Likewise.
2611         [C99-based-standards] (SCNx8): Likewise.
2612         [C99-based-standards] (PRIdLEAST8): Likewise.
2613         [C99-based-standards] (PRIiLEAST8): Likewise.
2614         [C99-based-standards] (PRIoLEAST8): Likewise.
2615         [C99-based-standards] (PRIuLEAST8): Likewise.
2616         [C99-based-standards] (PRIxLEAST8): Likewise.
2617         [C99-based-standards] (PRIXLEAST8): Likewise.
2618         [C99-based-standards] (SCNdLEAST8): Likewise.
2619         [C99-based-standards] (SCNiLEAST8): Likewise.
2620         [C99-based-standards] (SCNoLEAST8): Likewise.
2621         [C99-based-standards] (SCNuLEAST8): Likewise.
2622         [C99-based-standards] (SCNxLEAST8): Likewise.
2623         [C99-based-standards] (PRIdFAST8): Likewise.
2624         [C99-based-standards] (PRIiFAST8): Likewise.
2625         [C99-based-standards] (PRIoFAST8): Likewise.
2626         [C99-based-standards] (PRIuFAST8): Likewise.
2627         [C99-based-standards] (PRIxFAST8): Likewise.
2628         [C99-based-standards] (PRIXFAST8): Likewise.
2629         [C99-based-standards] (SCNdFAST8): Likewise.
2630         [C99-based-standards] (SCNiFAST8): Likewise.
2631         [C99-based-standards] (SCNoFAST8): Likewise.
2632         [C99-based-standards] (SCNuFAST8): Likewise.
2633         [C99-based-standards] (SCNxFAST8): Likewise.
2634         [C99-based-standards] (PRId16): Likewise.
2635         [C99-based-standards] (PRIi16): Likewise.
2636         [C99-based-standards] (PRIo16): Likewise.
2637         [C99-based-standards] (PRIu16): Likewise.
2638         [C99-based-standards] (PRIx16): Likewise.
2639         [C99-based-standards] (PRIX16): Likewise.
2640         [C99-based-standards] (SCNd16): Likewise.
2641         [C99-based-standards] (SCNi16): Likewise.
2642         [C99-based-standards] (SCNo16): Likewise.
2643         [C99-based-standards] (SCNu16): Likewise.
2644         [C99-based-standards] (SCNx16): Likewise.
2645         [C99-based-standards] (PRIdLEAST16): Likewise.
2646         [C99-based-standards] (PRIiLEAST16): Likewise.
2647         [C99-based-standards] (PRIoLEAST16): Likewise.
2648         [C99-based-standards] (PRIuLEAST16): Likewise.
2649         [C99-based-standards] (PRIxLEAST16): Likewise.
2650         [C99-based-standards] (PRIXLEAST16): Likewise.
2651         [C99-based-standards] (SCNdLEAST16): Likewise.
2652         [C99-based-standards] (SCNiLEAST16): Likewise.
2653         [C99-based-standards] (SCNoLEAST16): Likewise.
2654         [C99-based-standards] (SCNuLEAST16): Likewise.
2655         [C99-based-standards] (SCNxLEAST16): Likewise.
2656         [C99-based-standards] (PRIdFAST16): Likewise.
2657         [C99-based-standards] (PRIiFAST16): Likewise.
2658         [C99-based-standards] (PRIoFAST16): Likewise.
2659         [C99-based-standards] (PRIuFAST16): Likewise.
2660         [C99-based-standards] (PRIxFAST16): Likewise.
2661         [C99-based-standards] (PRIXFAST16): Likewise.
2662         [C99-based-standards] (SCNdFAST16): Likewise.
2663         [C99-based-standards] (SCNiFAST16): Likewise.
2664         [C99-based-standards] (SCNoFAST16): Likewise.
2665         [C99-based-standards] (SCNuFAST16): Likewise.
2666         [C99-based-standards] (SCNxFAST16): Likewise.
2667         [C99-based-standards] (PRId32): Likewise.
2668         [C99-based-standards] (PRIi32): Likewise.
2669         [C99-based-standards] (PRIo32): Likewise.
2670         [C99-based-standards] (PRIu32): Likewise.
2671         [C99-based-standards] (PRIx32): Likewise.
2672         [C99-based-standards] (PRIX32): Likewise.
2673         [C99-based-standards] (SCNd32): Likewise.
2674         [C99-based-standards] (SCNi32): Likewise.
2675         [C99-based-standards] (SCNo32): Likewise.
2676         [C99-based-standards] (SCNu32): Likewise.
2677         [C99-based-standards] (SCNx32): Likewise.
2678         [C99-based-standards] (PRIdLEAST32): Likewise.
2679         [C99-based-standards] (PRIiLEAST32): Likewise.
2680         [C99-based-standards] (PRIoLEAST32): Likewise.
2681         [C99-based-standards] (PRIuLEAST32): Likewise.
2682         [C99-based-standards] (PRIxLEAST32): Likewise.
2683         [C99-based-standards] (PRIXLEAST32): Likewise.
2684         [C99-based-standards] (SCNdLEAST32): Likewise.
2685         [C99-based-standards] (SCNiLEAST32): Likewise.
2686         [C99-based-standards] (SCNoLEAST32): Likewise.
2687         [C99-based-standards] (SCNuLEAST32): Likewise.
2688         [C99-based-standards] (SCNxLEAST32): Likewise.
2689         [C99-based-standards] (PRIdFAST32): Likewise.
2690         [C99-based-standards] (PRIiFAST32): Likewise.
2691         [C99-based-standards] (PRIoFAST32): Likewise.
2692         [C99-based-standards] (PRIuFAST32): Likewise.
2693         [C99-based-standards] (PRIxFAST32): Likewise.
2694         [C99-based-standards] (PRIXFAST32): Likewise.
2695         [C99-based-standards] (SCNdFAST32): Likewise.
2696         [C99-based-standards] (SCNiFAST32): Likewise.
2697         [C99-based-standards] (SCNoFAST32): Likewise.
2698         [C99-based-standards] (SCNuFAST32): Likewise.
2699         [C99-based-standards] (SCNxFAST32): Likewise.
2700         [C99-based-standards] (PRId64): Likewise.
2701         [C99-based-standards] (PRIi64): Likewise.
2702         [C99-based-standards] (PRIo64): Likewise.
2703         [C99-based-standards] (PRIu64): Likewise.
2704         [C99-based-standards] (PRIx64): Likewise.
2705         [C99-based-standards] (PRIX64): Likewise.
2706         [C99-based-standards] (SCNd64): Likewise.
2707         [C99-based-standards] (SCNi64): Likewise.
2708         [C99-based-standards] (SCNo64): Likewise.
2709         [C99-based-standards] (SCNu64): Likewise.
2710         [C99-based-standards] (SCNx64): Likewise.
2711         [C99-based-standards] (PRIdLEAST64): Likewise.
2712         [C99-based-standards] (PRIiLEAST64): Likewise.
2713         [C99-based-standards] (PRIoLEAST64): Likewise.
2714         [C99-based-standards] (PRIuLEAST64): Likewise.
2715         [C99-based-standards] (PRIxLEAST64): Likewise.
2716         [C99-based-standards] (PRIXLEAST64): Likewise.
2717         [C99-based-standards] (SCNdLEAST64): Likewise.
2718         [C99-based-standards] (SCNiLEAST64): Likewise.
2719         [C99-based-standards] (SCNoLEAST64): Likewise.
2720         [C99-based-standards] (SCNuLEAST64): Likewise.
2721         [C99-based-standards] (SCNxLEAST64): Likewise.
2722         [C99-based-standards] (PRIdFAST64): Likewise.
2723         [C99-based-standards] (PRIiFAST64): Likewise.
2724         [C99-based-standards] (PRIoFAST64): Likewise.
2725         [C99-based-standards] (PRIuFAST64): Likewise.
2726         [C99-based-standards] (PRIxFAST64): Likewise.
2727         [C99-based-standards] (PRIXFAST64): Likewise.
2728         [C99-based-standards] (SCNdFAST64): Likewise.
2729         [C99-based-standards] (SCNiFAST64): Likewise.
2730         [C99-based-standards] (SCNoFAST64): Likewise.
2731         [C99-based-standards] (SCNuFAST64): Likewise.
2732         [C99-based-standards] (SCNxFAST64): Likewise.
2733         [C99-based-standards] (PRIdMAX): Likewise.
2734         [C99-based-standards] (PRIiMAX): Likewise.
2735         [C99-based-standards] (PRIoMAX): Likewise.
2736         [C99-based-standards] (PRIuMAX): Likewise.
2737         [C99-based-standards] (PRIxMAX): Likewise.
2738         [C99-based-standards] (PRIXMAX): Likewise.
2739         [C99-based-standards] (SCNdMAX): Likewise.
2740         [C99-based-standards] (SCNiMAX): Likewise.
2741         [C99-based-standards] (SCNoMAX): Likewise.
2742         [C99-based-standards] (SCNuMAX): Likewise.
2743         [C99-based-standards] (SCNxMAX): Likewise.
2744         [C99-based-standards] (PRIdPTR): Likewise.
2745         [C99-based-standards] (PRIiPTR): Likewise.
2746         [C99-based-standards] (PRIoPTR): Likewise.
2747         [C99-based-standards] (PRIuPTR): Likewise.
2748         [C99-based-standards] (PRIxPTR): Likewise.
2749         [C99-based-standards] (PRIXPTR): Likewise.
2750         [C99-based-standards] (SCNdPTR): Likewise.
2751         [C99-based-standards] (SCNiPTR): Likewise.
2752         [C99-based-standards] (SCNoPTR): Likewise.
2753         [C99-based-standards] (SCNuPTR): Likewise.
2754         [C99-based-standards] (SCNxPTR): Likewise.
2755         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
2756         allow.
2757         * conform/data/stdint.h-data: Update comments to clarify
2758         requirements.
2759         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
2760         type.
2761         [C99-based standards] (INT8_MAX): Likewise.
2762         [C99-based standards] (INT16_MIN): Likewise.
2763         [C99-based standards] (INT16_MAX): Likewise.
2764         [C99-based standards] (INT32_MIN): Likewise.
2765         [C99-based standards] (INT32_MAX): Likewise.
2766         [C99-based standards] (INT64_MIN): Likewise.
2767         [C99-based standards] (INT64_MAX): Likewise.
2768         [C99-based standards] (UINT8_MAX): Likewise.
2769         [C99-based standards] (UINT16_MAX): Likewise.
2770         [C99-based standards] (UINT32_MAX): Likewise.
2771         [C99-based standards] (UINT64_MAX): Likewise.
2772         [C99-based standards] (INT_LEAST8_MIN): Likewise.
2773         [C99-based standards] (INT_LEAST8_MAX): Likewise.
2774         [C99-based standards] (INT_LEAST16_MIN): Likewise.
2775         [C99-based standards] (INT_LEAST16_MAX): Likewise.
2776         [C99-based standards] (INT_LEAST32_MIN): Likewise.
2777         [C99-based standards] (INT_LEAST32_MAX): Likewise.
2778         [C99-based standards] (INT_LEAST64_MIN): Likewise.
2779         [C99-based standards] (INT_LEAST64_MAX): Likewise.
2780         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
2781         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
2782         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
2783         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
2784         [C99-based standards] (INT_FAST8_MIN): Likewise.
2785         [C99-based standards] (INT_FAST8_MAX): Likewise.
2786         [C99-based standards] (INT_FAST16_MIN): Likewise.
2787         [C99-based standards] (INT_FAST16_MAX): Likewise.
2788         [C99-based standards] (INT_FAST32_MIN): Likewise.
2789         [C99-based standards] (INT_FAST32_MAX): Likewise.
2790         [C99-based standards] (INT_FAST64_MIN): Likewise.
2791         [C99-based standards] (INT_FAST64_MAX): Likewise.
2792         [C99-based standards] (UINT_FAST8_MAX): Likewise.
2793         [C99-based standards] (UINT_FAST16_MAX): Likewise.
2794         [C99-based standards] (UINT_FAST32_MAX): Likewise.
2795         [C99-based standards] (UINT_FAST64_MAX): Likewise.
2796         [C99-based standards] (INTPTR_MIN): Likewise.
2797         [C99-based standards] (INTPTR_MAX): Likewise.
2798         [C99-based standards] (UINTPTR_MAX): Likewise.
2799         [C99-based standards] (INTMAX_MIN): Likewise.
2800         [C99-based standards] (INTMAX_MAX): Likewise.
2801         [C99-based standards] (UINTMAX_MAX): Likewise.
2802         [C99-based standards] (PTRDIFF_MIN): Likewise.
2803         [C99-based standards] (PTRDIFF_MAX): Likewise.
2804         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
2805         [C99-based standards] (SIZE_MAX): Likewise.
2806         [C99-based standards] (WCHAR_MAX): Likewise.
2807         [C99-based standards] (WINT_MAX): Likewise.
2808         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
2809         constraint on value.
2810         [C99-based standards] (WCHAR_MIN): Likewise.
2811         [C99-based standards] (WINT_MIN): Likewise.
2812         [C99-based standards] (*_t): Allow.
2813         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
2814         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
2815         Include math.h-data and complex.h-data.  Remove all expectations
2816         of math.h and complex.h contents.
2817         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
2818         at end of line.
2819         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
2820         (struct tm): Expect tag.
2821         [C99-based-standards] (wcstof): Expect function.
2822         [C99-based-standards] (wcstold): Likewise.
2823         [C99-based-standards] (wcstoll): Likewise.
2824         [C99-based-standards] (wcstoull): Likewise.
2825         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
2826         macro-int-constant.  Specify type.
2827         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
2828         constraint on value.
2829         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
2830         Specify type.
2831         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
2832         Specify value.
2833         [ISO C standards]: Do not allow headers.
2834         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
2835         wcs[abcdefghijklmnopqrstuvwxyz]*.
2836         [ISO C standards] (*_t): Do not allow.
2837         * conform/data/wctype.h-data [C99-based standards] (iswblank):
2838         Expect function.
2839         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
2840         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
2841         Specify type.
2842         [ISO C standards]: Do not allow headers.
2843         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
2844         is[abcdefghijklmnopqrstuvwxyz]*.
2845         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
2846         to[abcdefghijklmnopqrstuvwxyz]*.
2847         [ISO C standards] (*_t): Do not allow.
2848         * conform/data/stdalign.h-data: New file.
2849         * conform/data/stdbool.h-data: Likewise.
2850         * conform/data/stdnoreturn.h-data: Likewise.
2852 2012-11-07  Roland McGrath  <roland@hack.frob.com>
2854         [BZ #14815]
2855         * manual/filesys.texi (Directory Entries): Typo fix.
2856         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
2858 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2860         * elf/elf.h (EM_AARCH64): New macro.
2861         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
2862         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
2863         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
2864         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
2865         (R_AARCH64_TLSDESC): Likewise.
2866         (NT_ARM_TLS): Likewise.
2867         (NT_ARM_HW_BREAK): Likewise.
2868         (NT_ARM_HW_WATCH): Likewise.
2870 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2872         [BZ #14811]
2873         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
2874         (__ieee754_powl): Saturate nonzero exponents with absolute value
2875         below 0x1p-79 to +/- 0x1p-79.
2876         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
2877         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
2878         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
2879         nonzero exponents with absolute value below 0x1p-32 to +/-
2880         0x1p-32.
2881         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
2882         (__ieee754_powl): Saturate nonzero exponents with absolute value
2883         below 0x1p-79 to +/- 0x1p-79.
2884         * math/libm-test.inc (pow_test): Add more tests.
2886 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2888         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
2889         _dl_s390_cap_flags with kernel. Increase string length.
2890         (_dl_s390_platforms): Add z196 and zEC12.
2892 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2894         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
2895         Change XOPEN21K to XOPEN2K.
2897 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
2899         * string/memmove.c: Use memcpy when possible.
2901 2012-11-06  Andreas Jaeger  <aj@suse.de>
2903         * po/eo.po: Update from translation team.
2905 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
2907         [BZ #14793]
2908         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
2909         exponent and small x and y exponents, scale x or y up.  Increase
2910         by 2 the exponent used in scaling up.
2911         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2912         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2913         * math/libm-test.inc (fma_test): Add more tests.
2914         (fma_test_towardzero): Likewise.
2915         (fma_test_downward): Likewise.
2916         (fma_test_upward): Likewise.
2918 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
2920         [BZ #14805]
2921         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
2922         fenv_t *.
2924         [BZ #14801]
2925         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
2926         namespace for names of struct fields.
2927         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
2928         fenv_t fields.
2929         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
2930         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
2932 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2934         [BZ #3665]
2935         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2937 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2939         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
2940         PTR_DEMANGLE.
2942         [BZ #5246]
2943         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
2944         PTR_DEMANGLE.
2946 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
2948         [BZ #14797]
2949         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
2950         definitely overflow as x * y not x * y + z.
2951         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2952         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2953         * math/libm-test.inc (fma_test): Add more tests.
2954         (fma_test_towardzero): Likewise.
2955         (fma_test_downward): Likewise.
2956         (fma_test_upward): Likewise.
2958 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2960         [BZ #157]
2962         * include/stub-tag.h: Remove file.
2963         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
2964         '#include' of it.
2965         * manual/maint.texi (Porting): Don't reference it.
2966         * Makerules ($(objpfx)stubs): Likewise.
2967         * dirent/closedir.c: Don't include <stub-tag.h>.
2968         * dirent/dirfd.c: Likewise.
2969         * dirent/fdopendir.c: Likewise.
2970         * dirent/getdents.c: Likewise.
2971         * dirent/getdents64.c: Likewise.
2972         * dirent/opendir.c: Likewise.
2973         * dirent/readdir.c: Likewise.
2974         * dirent/readdir64.c: Likewise.
2975         * dirent/readdir64_r.c: Likewise.
2976         * dirent/readdir_r.c: Likewise.
2977         * dirent/rewinddir.c: Likewise.
2978         * dirent/seekdir.c: Likewise.
2979         * dirent/telldir.c: Likewise.
2980         * gmon/profil.c: Likewise.
2981         * grp/setgroups.c: Likewise.
2982         * inet/if_index.c: Likewise.
2983         * io/access.c: Likewise.
2984         * io/chdir.c: Likewise.
2985         * io/chmod.c: Likewise.
2986         * io/chown.c: Likewise.
2987         * io/close.c: Likewise.
2988         * io/dup.c: Likewise.
2989         * io/dup2.c: Likewise.
2990         * io/dup3.c: Likewise.
2991         * io/euidaccess.c: Likewise.
2992         * io/faccessat.c: Likewise.
2993         * io/fchdir.c: Likewise.
2994         * io/fchmod.c: Likewise.
2995         * io/fchmodat.c: Likewise.
2996         * io/fchown.c: Likewise.
2997         * io/fchownat.c: Likewise.
2998         * io/fcntl.c: Likewise.
2999         * io/flock.c: Likewise.
3000         * io/fstatfs.c: Likewise.
3001         * io/fstatfs64.c: Likewise.
3002         * io/fstatvfs.c: Likewise.
3003         * io/fstatvfs64.c: Likewise.
3004         * io/futimens.c: Likewise.
3005         * io/fxstat.c: Likewise.
3006         * io/fxstat64.c: Likewise.
3007         * io/fxstatat.c: Likewise.
3008         * io/fxstatat64.c: Likewise.
3009         * io/getcwd.c: Likewise.
3010         * io/isatty.c: Likewise.
3011         * io/lchmod.c: Likewise.
3012         * io/lchown.c: Likewise.
3013         * io/link.c: Likewise.
3014         * io/linkat.c: Likewise.
3015         * io/lseek.c: Likewise.
3016         * io/lseek64.c: Likewise.
3017         * io/lxstat64.c: Likewise.
3018         * io/mkdir.c: Likewise.
3019         * io/mkdirat.c: Likewise.
3020         * io/mkfifo.c: Likewise.
3021         * io/mkfifoat.c: Likewise.
3022         * io/open.c: Likewise.
3023         * io/open64.c: Likewise.
3024         * io/openat.c: Likewise.
3025         * io/openat64.c: Likewise.
3026         * io/pipe.c: Likewise.
3027         * io/pipe2.c: Likewise.
3028         * io/poll.c: Likewise.
3029         * io/posix_fadvise.c: Likewise.
3030         * io/posix_fadvise64.c: Likewise.
3031         * io/posix_fallocate.c: Likewise.
3032         * io/posix_fallocate64.c: Likewise.
3033         * io/read.c: Likewise.
3034         * io/readlink.c: Likewise.
3035         * io/readlinkat.c: Likewise.
3036         * io/rmdir.c: Likewise.
3037         * io/sendfile.c: Likewise.
3038         * io/sendfile64.c: Likewise.
3039         * io/statfs.c: Likewise.
3040         * io/statfs64.c: Likewise.
3041         * io/statvfs.c: Likewise.
3042         * io/statvfs64.c: Likewise.
3043         * io/symlink.c: Likewise.
3044         * io/symlinkat.c: Likewise.
3045         * io/ttyname.c: Likewise.
3046         * io/ttyname_r.c: Likewise.
3047         * io/umask.c: Likewise.
3048         * io/unlink.c: Likewise.
3049         * io/unlinkat.c: Likewise.
3050         * io/utime.c: Likewise.
3051         * io/utimensat.c: Likewise.
3052         * io/write.c: Likewise.
3053         * io/xmknod.c: Likewise.
3054         * io/xmknodat.c: Likewise.
3055         * io/xstat.c: Likewise.
3056         * io/xstat64.c: Likewise.
3057         * login/getpt.c: Likewise.
3058         * login/grantpt.c: Likewise.
3059         * login/unlockpt.c: Likewise.
3060         * math/e_acoshl.c: Likewise.
3061         * math/e_acosl.c: Likewise.
3062         * math/e_asinl.c: Likewise.
3063         * math/e_atan2l.c: Likewise.
3064         * math/e_atanhl.c: Likewise.
3065         * math/e_coshl.c: Likewise.
3066         * math/e_expl.c: Likewise.
3067         * math/e_fmodl.c: Likewise.
3068         * math/e_gammal_r.c: Likewise.
3069         * math/e_hypotl.c: Likewise.
3070         * math/e_j0l.c: Likewise.
3071         * math/e_j1l.c: Likewise.
3072         * math/e_jnl.c: Likewise.
3073         * math/e_lgammal_r.c: Likewise.
3074         * math/e_log10l.c: Likewise.
3075         * math/e_log2l.c: Likewise.
3076         * math/e_logl.c: Likewise.
3077         * math/e_powl.c: Likewise.
3078         * math/e_rem_pio2l.c: Likewise.
3079         * math/e_sinhl.c: Likewise.
3080         * math/e_sqrtl.c: Likewise.
3081         * math/fclrexcpt.c: Likewise.
3082         * math/fedisblxcpt.c: Likewise.
3083         * math/feenablxcpt.c: Likewise.
3084         * math/fegetenv.c: Likewise.
3085         * math/fegetexcept.c: Likewise.
3086         * math/fegetround.c: Likewise.
3087         * math/feholdexcpt.c: Likewise.
3088         * math/fesetenv.c: Likewise.
3089         * math/fesetround.c: Likewise.
3090         * math/feupdateenv.c: Likewise.
3091         * math/fgetexcptflg.c: Likewise.
3092         * math/fraiseexcpt.c: Likewise.
3093         * math/fsetexcptflg.c: Likewise.
3094         * math/ftestexcept.c: Likewise.
3095         * math/k_cosl.c: Likewise.
3096         * math/k_rem_pio2l.c: Likewise.
3097         * math/k_sinl.c: Likewise.
3098         * math/k_tanl.c: Likewise.
3099         * math/s_asinhl.c: Likewise.
3100         * math/s_atanl.c: Likewise.
3101         * math/s_cbrtl.c: Likewise.
3102         * math/s_erfl.c: Likewise.
3103         * math/s_expm1l.c: Likewise.
3104         * math/s_log1pl.c: Likewise.
3105         * math/s_tanhl.c: Likewise.
3106         * misc/acct.c: Likewise.
3107         * misc/brk.c: Likewise.
3108         * misc/chflags.c: Likewise.
3109         * misc/chroot.c: Likewise.
3110         * misc/fchflags.c: Likewise.
3111         * misc/fgetxattr.c: Likewise.
3112         * misc/flistxattr.c: Likewise.
3113         * misc/fremovexattr.c: Likewise.
3114         * misc/fsetxattr.c: Likewise.
3115         * misc/fsync.c: Likewise.
3116         * misc/ftruncate.c: Likewise.
3117         * misc/futimes.c: Likewise.
3118         * misc/futimesat.c: Likewise.
3119         * misc/getdomain.c: Likewise.
3120         * misc/getdtsz.c: Likewise.
3121         * misc/gethostid.c: Likewise.
3122         * misc/gethostname.c: Likewise.
3123         * misc/getloadavg.c: Likewise.
3124         * misc/getpagesize.c: Likewise.
3125         * misc/getsysstats.c: Likewise.
3126         * misc/getxattr.c: Likewise.
3127         * misc/gtty.c: Likewise.
3128         * misc/ioctl.c: Likewise.
3129         * misc/lgetxattr.c: Likewise.
3130         * misc/listxattr.c: Likewise.
3131         * misc/llistxattr.c: Likewise.
3132         * misc/lremovexattr.c: Likewise.
3133         * misc/lsetxattr.c: Likewise.
3134         * misc/lutimes.c: Likewise.
3135         * misc/madvise.c: Likewise.
3136         * misc/mincore.c: Likewise.
3137         * misc/mlock.c: Likewise.
3138         * misc/mlockall.c: Likewise.
3139         * misc/mmap.c: Likewise.
3140         * misc/mprotect.c: Likewise.
3141         * misc/msync.c: Likewise.
3142         * misc/munlock.c: Likewise.
3143         * misc/munlockall.c: Likewise.
3144         * misc/munmap.c: Likewise.
3145         * misc/preadv.c: Likewise.
3146         * misc/preadv64.c: Likewise.
3147         * misc/ptrace.c: Likewise.
3148         * misc/pwritev.c: Likewise.
3149         * misc/pwritev64.c: Likewise.
3150         * misc/readv.c: Likewise.
3151         * misc/reboot.c: Likewise.
3152         * misc/remap_file_pages.c: Likewise.
3153         * misc/removexattr.c: Likewise.
3154         * misc/revoke.c: Likewise.
3155         * misc/select.c: Likewise.
3156         * misc/setdomain.c: Likewise.
3157         * misc/setegid.c: Likewise.
3158         * misc/seteuid.c: Likewise.
3159         * misc/sethostid.c: Likewise.
3160         * misc/sethostname.c: Likewise.
3161         * misc/setregid.c: Likewise.
3162         * misc/setreuid.c: Likewise.
3163         * misc/setxattr.c: Likewise.
3164         * misc/sstk.c: Likewise.
3165         * misc/stty.c: Likewise.
3166         * misc/swapoff.c: Likewise.
3167         * misc/swapon.c: Likewise.
3168         * misc/sync.c: Likewise.
3169         * misc/syncfs.c: Likewise.
3170         * misc/syscall.c: Likewise.
3171         * misc/truncate.c: Likewise.
3172         * misc/ualarm.c: Likewise.
3173         * misc/usleep.c: Likewise.
3174         * misc/ustat.c: Likewise.
3175         * misc/utimes.c: Likewise.
3176         * misc/vhangup.c: Likewise.
3177         * misc/writev.c: Likewise.
3178         * posix/_exit.c: Likewise.
3179         * posix/alarm.c: Likewise.
3180         * posix/execve.c: Likewise.
3181         * posix/fexecve.c: Likewise.
3182         * posix/fork.c: Likewise.
3183         * posix/fpathconf.c: Likewise.
3184         * posix/getaddrinfo.c: Likewise.
3185         * posix/getegid.c: Likewise.
3186         * posix/geteuid.c: Likewise.
3187         * posix/getgid.c: Likewise.
3188         * posix/getgroups.c: Likewise.
3189         * posix/getlogin.c: Likewise.
3190         * posix/getlogin_r.c: Likewise.
3191         * posix/getpgid.c: Likewise.
3192         * posix/getpid.c: Likewise.
3193         * posix/getppid.c: Likewise.
3194         * posix/getresgid.c: Likewise.
3195         * posix/getresuid.c: Likewise.
3196         * posix/getsid.c: Likewise.
3197         * posix/getuid.c: Likewise.
3198         * posix/glob64.c: Likewise.
3199         * posix/nanosleep.c: Likewise.
3200         * posix/pathconf.c: Likewise.
3201         * posix/pause.c: Likewise.
3202         * posix/posix_madvise.c: Likewise.
3203         * posix/pread.c: Likewise.
3204         * posix/pread64.c: Likewise.
3205         * posix/pwrite.c: Likewise.
3206         * posix/pwrite64.c: Likewise.
3207         * posix/sched_getaffinity.c: Likewise.
3208         * posix/sched_getp.c: Likewise.
3209         * posix/sched_gets.c: Likewise.
3210         * posix/sched_primax.c: Likewise.
3211         * posix/sched_primin.c: Likewise.
3212         * posix/sched_rr_gi.c: Likewise.
3213         * posix/sched_setaffinity.c: Likewise.
3214         * posix/sched_setp.c: Likewise.
3215         * posix/sched_sets.c: Likewise.
3216         * posix/sched_yield.c: Likewise.
3217         * posix/setgid.c: Likewise.
3218         * posix/setlogin.c: Likewise.
3219         * posix/setpgid.c: Likewise.
3220         * posix/setresgid.c: Likewise.
3221         * posix/setresuid.c: Likewise.
3222         * posix/setsid.c: Likewise.
3223         * posix/setuid.c: Likewise.
3224         * posix/sleep.c: Likewise.
3225         * posix/spawni.c: Likewise.
3226         * posix/sysconf.c: Likewise.
3227         * posix/times.c: Likewise.
3228         * posix/wait.c: Likewise.
3229         * posix/wait3.c: Likewise.
3230         * posix/wait4.c: Likewise.
3231         * posix/waitpid.c: Likewise.
3232         * resolv/gai_sigqueue.c: Likewise.
3233         * resource/getpriority.c: Likewise.
3234         * resource/getrlimit.c: Likewise.
3235         * resource/getrusage.c: Likewise.
3236         * resource/nice.c: Likewise.
3237         * resource/setpriority.c: Likewise.
3238         * resource/setrlimit.c: Likewise.
3239         * resource/ulimit.c: Likewise.
3240         * rt/aio_cancel.c: Likewise.
3241         * rt/aio_fsync.c: Likewise.
3242         * rt/aio_read.c: Likewise.
3243         * rt/aio_sigqueue.c: Likewise.
3244         * rt/aio_suspend.c: Likewise.
3245         * rt/aio_write.c: Likewise.
3246         * rt/clock_getres.c: Likewise.
3247         * rt/clock_gettime.c: Likewise.
3248         * rt/clock_nanosleep.c: Likewise.
3249         * rt/clock_settime.c: Likewise.
3250         * rt/lio_listio.c: Likewise.
3251         * rt/mq_close.c: Likewise.
3252         * rt/mq_getattr.c: Likewise.
3253         * rt/mq_notify.c: Likewise.
3254         * rt/mq_open.c: Likewise.
3255         * rt/mq_receive.c: Likewise.
3256         * rt/mq_send.c: Likewise.
3257         * rt/mq_setattr.c: Likewise.
3258         * rt/mq_timedreceive.c: Likewise.
3259         * rt/mq_timedsend.c: Likewise.
3260         * rt/mq_unlink.c: Likewise.
3261         * rt/shm_open.c: Likewise.
3262         * rt/shm_unlink.c: Likewise.
3263         * rt/timer_create.c: Likewise.
3264         * rt/timer_delete.c: Likewise.
3265         * rt/timer_getoverr.c: Likewise.
3266         * rt/timer_gettime.c: Likewise.
3267         * rt/timer_settime.c: Likewise.
3268         * setjmp/__longjmp.c: Likewise.
3269         * setjmp/setjmp.c: Likewise.
3270         * signal/kill.c: Likewise.
3271         * signal/killpg.c: Likewise.
3272         * signal/raise.c: Likewise.
3273         * signal/sigaction.c: Likewise.
3274         * signal/sigaltstack.c: Likewise.
3275         * signal/sigblock.c: Likewise.
3276         * signal/sigignore.c: Likewise.
3277         * signal/sigintr.c: Likewise.
3278         * signal/signal.c: Likewise.
3279         * signal/sigpause.c: Likewise.
3280         * signal/sigpending.c: Likewise.
3281         * signal/sigqueue.c: Likewise.
3282         * signal/sigreturn.c: Likewise.
3283         * signal/sigset.c: Likewise.
3284         * signal/sigsetmask.c: Likewise.
3285         * signal/sigstack.c: Likewise.
3286         * signal/sigsuspend.c: Likewise.
3287         * signal/sigtimedwait.c: Likewise.
3288         * signal/sigvec.c: Likewise.
3289         * signal/sigwait.c: Likewise.
3290         * signal/sigwaitinfo.c: Likewise.
3291         * signal/sysv_signal.c: Likewise.
3292         * socket/accept.c: Likewise.
3293         * socket/accept4.c: Likewise.
3294         * socket/bind.c: Likewise.
3295         * socket/connect.c: Likewise.
3296         * socket/getpeername.c: Likewise.
3297         * socket/getsockname.c: Likewise.
3298         * socket/getsockopt.c: Likewise.
3299         * socket/isfdtype.c: Likewise.
3300         * socket/listen.c: Likewise.
3301         * socket/recv.c: Likewise.
3302         * socket/recvfrom.c: Likewise.
3303         * socket/recvmsg.c: Likewise.
3304         * socket/send.c: Likewise.
3305         * socket/sendmsg.c: Likewise.
3306         * socket/sendto.c: Likewise.
3307         * socket/setsockopt.c: Likewise.
3308         * socket/shutdown.c: Likewise.
3309         * socket/sockatmark.c: Likewise.
3310         * socket/socket.c: Likewise.
3311         * socket/socketpair.c: Likewise.
3312         * stdio-common/ctermid.c: Likewise.
3313         * stdio-common/cuserid.c: Likewise.
3314         * stdio-common/remove.c: Likewise.
3315         * stdio-common/rename.c: Likewise.
3316         * stdio-common/renameat.c: Likewise.
3317         * stdio-common/tempname.c: Likewise.
3318         * stdlib/getcontext.c: Likewise.
3319         * stdlib/makecontext.c: Likewise.
3320         * stdlib/setcontext.c: Likewise.
3321         * stdlib/swapcontext.c: Likewise.
3322         * stdlib/system.c: Likewise.
3323         * streams/fattach.c: Likewise.
3324         * streams/fdetach.c: Likewise.
3325         * streams/getmsg.c: Likewise.
3326         * streams/getpmsg.c: Likewise.
3327         * streams/putmsg.c: Likewise.
3328         * streams/putpmsg.c: Likewise.
3329         * sysdeps/unix/bsd/getpt.c: Likewise.
3330         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
3331         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
3332         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
3333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
3334         Likewise.
3335         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
3336         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
3337         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
3338         * sysvipc/msgctl.c: Likewise.
3339         * sysvipc/msgget.c: Likewise.
3340         * sysvipc/msgrcv.c: Likewise.
3341         * sysvipc/msgsnd.c: Likewise.
3342         * sysvipc/semctl.c: Likewise.
3343         * sysvipc/semget.c: Likewise.
3344         * sysvipc/semop.c: Likewise.
3345         * sysvipc/semtimedop.c: Likewise.
3346         * sysvipc/shmat.c: Likewise.
3347         * sysvipc/shmctl.c: Likewise.
3348         * sysvipc/shmdt.c: Likewise.
3349         * sysvipc/shmget.c: Likewise.
3350         * termios/tcdrain.c: Likewise.
3351         * termios/tcflow.c: Likewise.
3352         * termios/tcflush.c: Likewise.
3353         * termios/tcgetattr.c: Likewise.
3354         * termios/tcgetpgrp.c: Likewise.
3355         * termios/tcsendbrk.c: Likewise.
3356         * termios/tcsetattr.c: Likewise.
3357         * termios/tcsetpgrp.c: Likewise.
3358         * time/adjtime.c: Likewise.
3359         * time/clock.c: Likewise.
3360         * time/getitimer.c: Likewise.
3361         * time/gettimeofday.c: Likewise.
3362         * time/setitimer.c: Likewise.
3363         * time/settimeofday.c: Likewise.
3364         * time/stime.c: Likewise.
3365         * time/time.c: Likewise.
3367 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
3369         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
3370         /usr/old/bin.
3372         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
3373         instead of spaces.
3374         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
3376 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
3378         [BZ #14796]
3379         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
3380         FE_TONEAREST before applying Dekker multiplication and Knuth
3381         addition.  Clear inexact exceptions and check for exact zero
3382         results afterwards.
3383         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3384         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
3385         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3386         * math/libm-test.inc (fma_test): Add more tests.
3387         (fma_test_towardzero): Likewise.
3388         (fma_test_downward): Likewise.
3389         (fma_test_upward): Likewise.
3390         * sysdeps/generic/math_private.h (default_libc_fesetround): New
3391         function.
3392         (libc_fesetround): New macro.
3393         (libc_fesetroundf): Likewise.
3394         (libc_fesetroundl): Likewise.
3395         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
3396         function.
3397         (libc_fesetround_387): Likewise.
3398         (libc_fesetroundf): New macro.
3399         (libc_fesetround): Likewise.
3400         (libc_fesetroundl): Likewise.
3401         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
3402         function.
3403         (libc_fesetroundf): New macro.
3404         (libc_fesetround): Likewise.
3405         (libc_fesetroundl): Likewise.
3406         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
3407         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
3408         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
3409         libm_hidden_ver.
3410         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
3411         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
3412         libm_hidden_def.
3413         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
3414         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
3415         libm_hidden_ver.
3416         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
3417         libm_hidden_def.
3419         [BZ #3439]
3420         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
3421         integer constant usable in #if and use that to give value to enum
3422         constant.
3423         (FE_DIVBYZERO): Likewise.
3424         (FE_UNDERFLOW): Likewise.
3425         (FE_OVERFLOW): Likewise.
3426         (FE_INVALID): Likewise.
3427         (FE_INVALID_SNAN): Likewise.
3428         (FE_INVALID_ISI): Likewise.
3429         (FE_INVALID_IDI): Likewise.
3430         (FE_INVALID_ZDZ): Likewise.
3431         (FE_INVALID_IMZ): Likewise.
3432         (FE_INVALID_COMPARE): Likewise.
3433         (FE_INVALID_SOFTWARE): Likewise.
3434         (FE_INVALID_SQRT): Likewise.
3435         (FE_INVALID_INTEGER_CONVERSION): Likewise.
3436         (FE_TONEAREST): Likewise.
3437         (FE_TOWARDZERO): Likewise.
3438         (FE_UPWARD): Likewise.
3439         (FE_DOWNWARD): Likewise.
3440         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
3441         (FE_DIVBYZERO): Likewise.
3442         (FE_OVERFLOW): Likewise.
3443         (FE_UNDERFLOW): Likewise.
3444         (FE_INEXACT): Likewise.
3445         (FE_TONEAREST): Likewise.
3446         (FE_DOWNWARD): Likewise.
3447         (FE_UPWARD): Likewise.
3448         (FE_TOWARDZERO): Likewise.
3449         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
3450         (FE_UNDERFLOW): Likewise.
3451         (FE_OVERFLOW): Likewise.
3452         (FE_DIVBYZERO): Likewise.
3453         (FE_INVALID): Likewise.
3454         (FE_TONEAREST): Likewise.
3455         (FE_TOWARDZERO): Likewise.
3456         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
3457         (FE_OVERFLOW): Likewise.
3458         (FE_UNDERFLOW): Likewise.
3459         (FE_DIVBYZERO): Likewise.
3460         (FE_INEXACT): Likewise.
3461         (FE_TONEAREST): Likewise.
3462         (FE_TOWARDZERO): Likewise.
3463         (FE_UPWARD): Likewise.
3464         (FE_DOWNWARD): Likewise.
3465         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
3466         (FE_DIVBYZERO): Likewise.
3467         (FE_OVERFLOW): Likewise.
3468         (FE_UNDERFLOW): Likewise.
3469         (FE_INEXACT): Likewise.
3470         (FE_TONEAREST): Likewise.
3471         (FE_DOWNWARD): Likewise.
3472         (FE_UPWARD): Likewise.
3473         (FE_TOWARDZERO): Likewise.
3475 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
3477         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
3479 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
3481         * scripts/cross-test-ssh.sh (command): Use newlines to separate
3482         commands.  Quote $PWD.
3483         (blacklist_exports): Don't use remove_newlines.  Replace "declare
3484         -x" by "export".
3485         (remove_newlines): Remove.
3487 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
3489         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
3490         * stdlib/stdlib.h (atof): Moved to ...
3491         * include/bits/stdlib-float.h: Here.  New file.
3492         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
3493         * stdlib/bits/stdlib-float.h: New file.
3494         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
3495         -mno-sse -mno-mmx.
3496         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
3497         <xmmintrin.h>.
3499 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
3501         * conform/conformtest.pl (@headers): Add fenv.h.
3502         * conform/data/fenv.h-data: New file.
3503         * include/fenv.h [_ISOMAC]: Disable all contents of file except
3504         include of <math/fenv.h>.
3506         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
3507         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
3508         && !UNIX98].  Enables tests for XOPEN2K8.
3509         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
3510         POSIX2008]: Likewise.
3512         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
3513         (struct rusage): Do not expect type or its members.
3515         [BZ #3439]
3516         * math/math.h (FP_NAN): Define macro to integer constant usable in
3517         #if and use that to give value to enum constant.
3518         (FP_INFINITE): Likewise.
3519         (FP_ZERO): Likewise.
3520         (FP_SUBNORMAL): Likewise.
3521         (FP_NORMAL): Likewise.
3523 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
3525         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
3526         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
3527         arguments.
3529 2012-11-02  Roland McGrath  <roland@hack.frob.com>
3531         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
3532         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
3533         autoconf-time if not.
3534         * configure.in: Remove AC_PREREQ.
3536 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3538         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
3539         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
3540         of the internal implementation.
3542 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
3544         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
3545         except include of <misc/sys/syslog.h>.
3547 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
3549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
3550         function returns with a NULL context exit with zero.
3552 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3554         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
3556 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
3558         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
3559         (run_program_cmd): This.
3560         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
3561         (tst_langinfo): New variable.  Use it.
3563 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
3565         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
3566         floating point opcodes.
3568 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
3570         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
3571         variable.
3573         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
3575         * sysdeps/mach/hurd/powerpc: Remove directory.
3576         * sysdeps/mach/powerpc: Likewise.
3578 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
3580         * scripts/check-local-headers.sh: Ignore c++ headers.
3582 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
3584         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
3585         __libc_cleanup_region_start argument.
3587 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
3589         [BZ #14784]
3590         [BZ #14785]
3591         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
3592         x * y using scaling, not as x * y + z.
3593         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3594         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3595         * math/libm-test.inc (fma_test): Add more tests.
3596         (fma_test_towardzero): Likewise.
3597         (fma_test_downward): Likewise.
3598         (fma_test_upward): Likewise.
3600 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
3602         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
3604 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
3606         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
3607         New variable.
3609 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
3611         * rt/tst-shm.c (worker): Correct checking for mmap failure.
3613 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
3615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3616         Fix sort order.
3617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3618         Likewise.
3620 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3623         Fix the order of the list for glibc 2.17.
3624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3625         Likewise.
3627 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
3629         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3631 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
3633         [BZ #14610]
3634         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
3635         for low part of x being zero before using __atanl (y).
3636         * math/libm-test.inc (atan2_test): Add another test.
3638         * manual/install.texi (Configuring and compiling): Document
3639         general use of test-wrapper and test-wrapper-env.
3640         * INSTALL: Regenerated.
3642         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
3643         (__fma): Do not extract and scale down low bits on after-rounding
3644         systems when result rounded to normal precision would have normal
3645         exponent.
3646         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
3647         (__fmal): Do not extract and scale down low bits on after-rounding
3648         systems when result rounded to normal precision would have normal
3649         exponent.
3650         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
3651         (__fmal): Do not extract and scale down low bits on after-rounding
3652         systems when result rounded to normal precision would have normal
3653         exponent.
3654         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
3655         macro.
3656         (fma_test): Add more tests.
3657         (fma_test_towardzero): Likewise.
3658         (fma_test_downward): Likewise.
3659         (fma_test_upward): Likewise.
3661 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3663         * sysdeps/i386/tininess.h: Renamed to ...
3664         * sysdeps/x86/tininess.h: This.
3665         * sysdeps/x86_64/tininess.h: Removed.
3667 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
3669         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
3670         input.  Use $(build-program-cmd).
3671         ($(objpfx)tst-array1-static.out): Likewise.
3672         ($(objpfx)tst-array2.out): Likewise.
3673         ($(objpfx)tst-array3.out): Likewise.
3674         ($(objpfx)tst-array4.out): Likewise.
3675         ($(objpfx)tst-array5.out): Likewise.
3676         ($(objpfx)tst-array5-static.out): Likewise.
3678 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
3680         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
3681         if defined.
3683         * nss/nsswitch.h (nss_interface_function): Provide new
3684         macro for use with NSS functions.
3685         * grp/initgroups.c: Use new macro.
3686         * nss/getXXbyYY.c: Likewise.
3687         * nss/getXXbyYY_r.c: Likewise.
3688         * nss/getXXent.c: Likewise.
3689         * nss/getXXent_r.c: Likewise.
3690         * sysdeps/posix/getaddrinfo.c: Likewise.
3692 2012-10-30  Andreas Jaeger  <aj@suse.de>
3694         * po/ru.po: Update Russion translation from translation project.
3696 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
3698         [BZ #14152]
3699         [BZ #14783]
3700         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
3701         result and shift together with sticky bit instead of replicating
3702         round-to-nearest rounding.
3703         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3704         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3705         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
3706         missing underflow exceptions.
3707         (fma_test_towardzero): Add more tests.
3708         (fma_test_downward): Likewise.
3709         (fma_test_upward): Likewise.
3711         [BZ #14047]
3712         * sysdeps/generic/tininess.h: New file.
3713         * sysdeps/i386/tininess.h: Likewise.
3714         * sysdeps/sh/tininess.h: Likewise.
3715         * sysdeps/x86_64/tininess.h: Likewise.
3716         * stdlib/tst-strtod-underflow.c: Likewise.
3717         * stdlib/tst-tininess.c: Likewise.
3718         * stdlib/strtod_l.c: Include <tininess.h>.
3719         (round_and_return): Do not set errno for exact underflow cases.
3720         Force an underflow exception when setting errno for underflow.
3721         Determine underflow based on rounding to normal precision if
3722         TININESS_AFTER_ROUNDING.
3723         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
3724         ERANGE for exact underflow cases.
3725         * stdlib/Makefile (tests): Add tst-tininess and
3726         tst-strtod-underflow.
3727         ($(objpfx)tst-tininess): Use $(link-libm).
3728         ($(objpfx)tst-strtod-underflow): Likewise.
3730 2012-10-30  Andreas Jaeger  <aj@suse.de>
3732         [BZ#14767]
3733         * elf/Makefile (tests): Remove conditional for have-initfini-array
3734         since this is now always required and the variable does not exist
3735         anymore.
3736         (tests-static): Likewise.
3737         (modules-names): Likewise.
3739         * po/eo.po: Add Esperanto translation from translation project.
3741         * elf/tst-array1.c (fini_array): Make writeable so that it can be
3742         merged with constructor/destructor.
3743         (init_array): Likewise.
3744         * elf/tst-array2dep.c (fini_array): Likewise.
3745         (init_array): Likewise.
3747 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
3749         * manual/message.texi: Delete @cartouche tags.
3751 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
3753         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
3754         EOPNOTSUPP.
3755         * sysdeps/mach/hurd/fsync.c: Likewise.
3757         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
3758         [_POSIX_REALTIME_SIGNALS]: Change condition to
3759         [_POSIX_REALTIME_SIGNALS > 0].
3761 2012-10-27  Andreas Jaeger  <aj@suse.de>
3763         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
3764         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
3765         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
3766         [__WORDSIZE != 64]: Likewise.
3768 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3770         *  iconvdata/tst-table.sh: Remove ${SHELL}.
3771         *  iconvdata/tst-tables.sh: Likewise.
3773 2012-10-25  David S. Miller  <davem@davemloft.net>
3775         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3776         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
3777         of strtoull.
3779         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
3780         ifunc-impl-list.c
3781         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3782         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
3783         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
3784         file.
3786 2012-10-25  Roland McGrath  <roland@hack.frob.com>
3788         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3789         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
3790         __getdirentries.
3792 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
3793             Jim Blandy  <jimb@codesourcery.com>
3795         * scripts/cross-test-ssh.sh: New file.
3796         * manual/install.texi (Configuring and compiling): Document use of
3797         cross-test-ssh.sh.
3798         * INSTALL: Regenerated.
3800 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
3802         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
3803         EOPNOTSUPP.
3805 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
3807         * Makeconfig (run-program-prefix): Fix comment.
3809 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
3810             Jim Blandy  <jimb@codesourcery.com>
3812         * Makeconfig (test-wrapper): New variable,
3813         (test-wrapper-env): Likewise.
3814         [$(cross-compiling) = yes && $(test-wrapper) != ""]
3815         (run-built-tests): Define to yes.
3816         (run-program-prefix): Use $(test-wrapper).
3817         (built-program-cmd): Likewise.
3818         * Rules (make-test-out): Use $(test-wrapper-env) and
3819         $(host-built-program-cmd).
3820         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
3821         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
3822         tst-pathopt.sh.
3823         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
3824         $(test-wrapper-env) to tst-rtld-load-self.sh.
3825         ($(objpfx)order2.out): Use $(test-wrapper).
3826         ($(objpfx)tst-initorder.out): Likewise.
3827         ($(objpfx)tst-initorder2.out): Likewise.
3828         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
3829         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
3830         (test_wrapper_env): New variable.  Use it to run ld.so.
3831         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
3832         Use it to run ld.so.
3833         (test_wrapper_env): Likewise.
3834         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
3835         $(test-wrapper) to run-iconv-test.sh.
3836         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
3837         (ICONV): Use $test_wrapper.
3838         * posix/Makefile ($(objpfx)globtest.out): Pass
3839         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
3840         globtest.sh, not $(run-program-prefix).
3841         * posix/globtest.sh (run_via_rtld_prefix): New variable.
3842         (test_wrapper): Likewise.
3843         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
3844         set together with run_via_rtld_prefix.
3845         (run_program_prefix): Define in terms of test_wrapper and
3846         run_via_rtld_prefix.
3848 2012-10-24  Roland McGrath  <roland@hack.frob.com>
3850         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
3851         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
3852         Targets removed.
3854         [BZ #14743]
3855         * include/time.h: Remove librt_hidden_proto (clock_gettime).
3856         Declare __clock_getres, __clock_gettime, __clock_settime,
3857         __clock_nanosleep, and __clock_getcpuclockid.
3858         * rt/clock_gettime.c: Define __clock_gettime as an alias.
3859         Remove librt_hidden_def (clock_gettime).
3860         * sysdeps/unix/clock_gettime.c: Likewise.
3861         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
3862         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
3863         * rt/clock_getres.c: Define __clock_getres as an alias.
3864         * sysdeps/posix/clock_getres.c: Likewise.
3865         * rt/clock_settime.c: Define __clock_settime as an alias.
3866         * sysdeps/unix/clock_settime.c: Likewise.
3867         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
3868         * sysdeps/unix/clock_nanosleep.c: Likewise.
3869         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
3870         * rt/clock-compat.c: New file.
3871         * rt/Makefile (librt-routines): Add clock-compat and move
3872         $(clock-routines) to ...
3873         (routines): ... here, new variable.
3874         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
3875         Don't add get_clockfreq here.
3876         * rt/Versions (libc: GLIBC_2.17): New version set.
3877         Add clock_* symbols here.
3878         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
3879         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
3880         (GLIBC_2.17): Add clock_* symbols.
3881         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3882         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3883         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3885         Likewise.
3886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3887         Likewise.
3888         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3889         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3890         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3891         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3892         * NEWS: Mention the move.
3894         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
3895         Use __open, __read, __close rather than their public counterparts.
3896         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3897         (__get_clockfreq_via_cpuinfo): Likewise.
3898         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
3899         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
3901         * config.h.in (HAVE_IFUNC): New #undef.
3902         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
3903         was successful.
3904         * configure: Regenerated.
3906 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
3908         * configure.in: Move READELF check to start of file.
3909         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
3910         libc_cv_asm_gnu_indirect_function in the process.
3911         * configure: Regenerated.
3913 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
3915         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
3916         send the output to /dev/null.
3917         (libc_cv_cc_with_libunwind): Likewise.
3918         (libc_cv_as_noexecstack): Likewise.
3919         * configure: Regenerate.
3921 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
3923         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
3925         * posix/globtest.sh (TMPDIR): Do not set.
3926         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
3927         (testout): Likewise.
3929 2012-10-24  Andreas Jaeger  <aj@suse.de>
3931         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
3932         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
3933         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
3934         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
3935         posix_fadvise64, posix_fallocate64.
3937         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
3938         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
3939         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
3940         Likewise.
3941         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
3942         Likewise.
3943         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
3945         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
3946         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
3947         <bits/fcntl-linux.h>.
3948         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
3950         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
3951         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
3952         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
3953         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
3954         [__WORDSIZE != 64]: Likewise.
3956 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
3958         * Makeconfig (run-built-tests): New variable.
3959         * Rules [$(cross-compiling) = yes]: Change condition to
3960         [$(run-built-tests) = no].
3961         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
3962         to [$(run-built-tests) = yes].
3963         * elf/Makefile [$(cross-compiling) = no]: Likewise
3964         * grp/Makefile [$(cross-compiling) = no]: Likewise.
3965         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
3966         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
3967         * intl/Makefile [$(cross-compiling) = no]: Likewise.
3968         * io/Makefile [$(cross-compiling) = no]: Likewise.
3969         * libio/Makefile [$(cross-compiling) = no]: Likewise.
3970         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
3971         * misc/Makefile [$(cross-compiling) = no]: Likewise.
3972         * posix/Makefile [$(cross-compiling) = no]: Likewise.
3973         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
3974         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
3975         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
3976         * string/Makefile [$(cross-compiling) = no]: Likewise.
3978         * posix/Makefile ($(objpfx)globtest.out): Pass
3979         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
3980         $(rtld-installed-name).
3981         * posix/globtest.sh (elf_objpfx): Remove variable.
3982         (rtld_installed_name): Likewise.
3983         (library_path): Likewise.
3984         (run_program_prefix): New variable.  Use for running globtest
3985         binary.
3987 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
3988             Joseph Myers  <joseph@codesourcery.com>
3990         * Makeconfig (host-built-program-cmd): New variable.
3991         * elf/Makefile (tst-stackguard1-ARGS): Use
3992         $(host-built-program-cmd).
3993         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
3994         (tst-spawn-ARGS): Likewise.
3995         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
3997 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
3998             Jim Blandy  <jimb@codesourcery.com>
4000         * Makeconfig (run-via-rtld-prefix): New variable.
4001         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
4002         (built-program-cmd): Likewise.
4004 2012-10-22  Andreas Jaeger  <aj@suse.de>
4006         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
4007         __O_RSYNC if it exists, otherwise to O_SYNC.
4009 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
4010             Joseph Myers  <joseph@codesourcery.com>
4012         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
4013         /dev/null.
4014         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
4015         from /dev/null
4016         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
4017         /dev/null.
4019 2012-10-22  Andreas Jaeger  <aj@suse.de>
4021         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
4022         Define always.
4023         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
4025         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4026         bits/fcntl-linux.h.
4028         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
4029         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
4031         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
4032         to __O_LARGEFILE.
4033         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
4034         to __O_LARGEFILE.
4036 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
4037             Joseph Myers  <joseph@codesourcery.com>
4039         * config.make.in (NM): New variable.
4041 2012-10-21  Andreas Jaeger  <aj@suse.de>
4043         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
4044         definitions and declarations that are provided by
4045         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
4047 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4049         [BZ #14683]
4050         * elf/Makefile (tests-static): Add tst-leaks1-static.
4051         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
4052         ($(objpfx)tst-leaks1-static): New rule.
4053         ($(objpfx)tst-leaks1-static-mem): Likewise.
4054         (tst-leaks1-static-ENV): New macro.
4055         * elf/dl-open.c (dl_open_worker): Check the main application
4056         only if SHARED is defined.
4057         * elf/tst-leaks1-static.c: New file.
4059 2012-10-20  Andreas Jaeger  <aj@suse.de>
4061         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
4062         generic values for Linux.
4063         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
4064         and declarations that are provided by <bits/fcntl-linux.h> and
4065         include <bits/fcntl-linux.h>.
4066         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4067         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4069 2012-10-20  Roland McGrath  <roland@hack.frob.com>
4071         * io/fcntl.h: Move include of <bits/types.h> to the top and
4072         include it unconditionally.
4074 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4076         * wcsmbs/Makefile (tests-ifunc): New variable.
4077         (tests): Add $(tests-ifunc).
4078         * wcsmbs/test-wcschr-ifunc.c: New file.
4079         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
4080         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
4081         * wcsmbs/test-wcslen-ifunc.c: Likewise.
4082         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
4083         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
4085         * string/Makefile (tests-ifunc): New variable.
4086         (tests): Add $(tests-ifunc).
4087         * string/test-memccpy.c (TEST_NAME): New macro.
4088         * string/test-memchr.c (TEST_NAME): Likewise.
4089         * string/test-memcmp.c (TEST_NAME): Likewise.
4090         * string/test-memcpy.c (TEST_NAME): Likewise.
4091         * string/test-memmem.c (TEST_NAME): Likewise.
4092         * string/test-memmove.c (TEST_NAME): Likewise.
4093         * string/test-memset.c (TEST_NAME): Likewise.
4094         * string/test-rawmemchr.c (TEST_NAME): Likewise.
4095         * string/test-stpcpy.c (TEST_NAME): Likewise.
4096         * string/test-stpncpy.c (TEST_NAME): Likewise.
4097         * string/test-strcasecmp.c (TEST_NAME): Likewise.
4098         * string/test-strcasestr.c (TEST_NAME): Likewise.
4099         * string/test-strcat.c (TEST_NAME): Likewise.
4100         * string/test-strchr.c (TEST_NAME): Likewise.
4101         * string/test-strcmp.c(TEST_NAME): Likewise.
4102         * string/test-strcpy.c (TEST_NAME): Likewise.
4103         * string/test-strcspn.c (TEST_NAME): Likewise.
4104         * string/test-strlen.c (TEST_NAME): Likewise.
4105         * string/test-strncasecmp.c (TEST_NAME): Likewise.
4106         * string/test-strncmp.c (TEST_NAME): Likewise.
4107         * string/test-strncpy.c (TEST_NAME): Likewise.
4108         * string/test-strnlen.c (TEST_NAME): Likewise.
4109         * string/test-strpbrk.c (TEST_NAME): Likewise.
4110         * string/test-strrchr.c (TEST_NAME): Likewise.
4111         * string/test-strspn.c (TEST_NAME): Likewise.
4112         * string/test-strstr.c (TEST_NAME): Likewise.
4113         * string/test-bcopy-ifunc.c: New file.
4114         * string/test-bzero-ifunc.c: Likewise.
4115         * string/test-memccpy-ifunc.c: Likewise.
4116         * string/test-memchr-ifunc.c: Likewise.
4117         * string/test-memcmp-ifunc.c: Likewise.
4118         * string/test-memcpy-ifunc.c: Likewise.
4119         * string/test-memmem-ifunc.c: Likewise.
4120         * string/test-memmove-ifunc.c: Likewise.
4121         * string/test-mempcpy-ifunc.c: Likewise.
4122         * string/test-memset-ifunc.c: Likewise.
4123         * string/test-rawmemchr-ifunc.c: Likewise.
4124         * string/test-stpcpy-ifunc.c: Likewise.
4125         * string/test-stpncpy-ifunc.c: Likewise.
4126         * string/test-strcasecmp-ifunc.c: Likewise.
4127         * string/test-strcasestr-ifunc.c: Likewise.
4128         * string/test-strcat-ifunc.c: Likewise.
4129         * string/test-strchr-ifunc.c: Likewise.
4130         * string/test-strchrnul-ifunc.c: Likewise.
4131         * string/test-strcmp-ifunc.c: Likewise.
4132         * string/test-strcpy-ifunc.c: Likewise.
4133         * string/test-strcspn-ifunc.c: Likewise.
4134         * string/test-strlen-ifunc.c: Likewise.
4135         * string/test-strncasecmp-ifunc.c: Likewise.
4136         * string/test-strncat-ifunc.c: Likewise.
4137         * string/test-strncmp-ifunc.c: Likewise.
4138         * string/test-strncpy-ifunc.c: Likewise.
4139         * string/test-strnlen-ifunc.c: Likewise.
4140         * string/test-strpbrk-ifunc.c: Likewise.
4141         * string/test-strrchr-ifunc.c: Likewise.
4142         * string/test-strspn-ifunc.c: Likewise.
4143         * string/test-strstr-ifunc.c: Likewise.
4145         * debug/Makefile (tests-ifunc): New variable.
4146         (tests): Add $(tests-ifunc).
4147         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
4148         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
4149         * debug/test-stpcpy_chk-ifunc.c: New file.
4150         * debug/test-strcpy_chk-ifunc.c: Likewise.
4152 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
4154         [BZ #13601]
4155         * elf/dl-load.c (open_verify): Retry read if the entire ELF
4156         header is not read in.
4158 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
4160         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
4161         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
4162         directly.  Pass built executable to script as
4163         $(built-program-cmd).
4164         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
4165         $testprogram without using LD_LIBRARY_PATH and $ldso.
4167         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
4168         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
4169         $(rtld-installed-name).
4170         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
4171         (rtld_installed_name): Likewise.
4172         (library_path): Likewise.
4173         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
4174         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
4175         $(run-program-prefix) to tst-tables.sh.
4176         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
4177         it to run tst-table-from and tst-table-to.
4178         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
4179         Pass it to tst-table.sh.
4180         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
4181         $(run-program-prefix) to tst-gettext.sh.
4182         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
4183         tst-translit.sh.
4184         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
4185         tst-gettext2.sh.
4186         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
4187         to run tst-gettext.
4188         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
4189         to run tst-gettext2.
4190         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
4191         to run tst-translit.
4192         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
4193         $(run-program-prefix) to tst-mtrace.sh.
4194         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
4195         to run tst-mtrace.
4196         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
4197         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
4198         $(rtld-installed-name).
4199         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
4200         (rtld_installed_name): Likewise.
4201         (run_program_prefix): New variable.  Use it to run wordexp-test.
4203         * Makeconfig (ARCH): Remove all definitions.
4204         (machine): Likewise.
4205         [ARCH]: Remove conditional code.
4206         [!objdir]: Give error.
4207         [!objdir] (objpfx): Remove.
4208         [!objdir] (common-objpfx): Likewise.
4209         [!objdir] (common-objdir): Likewise.
4210         * configure.in (config_makefile): Remove.  Hardcode Makefile in
4211         AC_CONFIG_FILES call.
4212         * configure: Regenerated.
4214         [BZ #13888]
4215         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
4216         or TMPDIR.
4217         (testout): Likewise.
4219         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
4220         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
4221         $(rtld-installed-name).
4222         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
4223         (rtld_installed_name): Likwise.
4224         (runit): Remove function.
4225         (run_getconf): New variable,  Use it for running getconf binary.
4227 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
4229         [BZ #14716]
4230         * string/test-memmem.c (check_result): New function.
4231         (do_one_test): Use it.
4232         (check1): New function.
4233         (test_main): Use it.
4235 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4237         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
4239 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
4241         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
4242         (_G_LSEEK64): Likewise.
4243         (_G_MMAP64): Likewise.
4244         (_G_FSTAT64): Likewise.
4245         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
4246         (_G_LSEEK64): Likewise.
4247         (_G_MMAP64): Likewise.
4248         (_G_FSTAT64): Likewise.
4249         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
4250         unconditional.  Call __mmap64 directly.
4251         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
4252         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
4253         __lseek64 directly.
4254         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
4255         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
4256         __mmap64 directly.
4257         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
4258         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
4259         __lseek64 directly.
4260         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
4261         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
4262         __lseek64 directly.
4263         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
4264         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
4265         __lseek64 directly.
4266         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
4267         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
4268         __fxstat64 directly.
4269         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
4270         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
4271         unconditional.
4272         (freopen64) [!_G_OPEN64]: Remove conditional code.
4273         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
4274         unconditional.
4275         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
4276         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
4277         unconditional.
4278         (ftello64) [!_G_LSEEK64]: Remove conditional code.
4279         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
4280         unconditional.
4281         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
4282         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
4283         unconditional.
4284         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
4285         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
4286         unconditional.
4287         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
4288         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
4289         unconditional.
4290         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
4291         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
4292         unconditional.
4293         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
4295 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4297         [BZ #12140]
4298         * manual/memory.texi (Malloc Tunable Parameters): Add note
4299         about free list pointers overwriting some perturb bytes.
4300         Wording suggested by Roland McGrath.
4302 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
4304         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
4305         (lgamma_test): Likewise.
4306         (tgamma_test): Likewise.
4308 2012-10-16  Florian Weimer  <fweimer@redhat.com>
4310         [BZ #14700]
4311         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
4312         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
4314 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
4316         * NEWS: Mention BZ #14716.
4317         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
4318         when removing AVAILABLE1_USES_J macro.
4320 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
4322         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
4323         (__bswap_64): __uint64_t for unsigned 64-bit int.
4325 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
4327         * include/string.h (memmem): Declare libc hidden alias.
4328         * string/memmem.c (memmem): Define libc hidden alias.
4329         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
4330         __read, __close instead of open, read, close.
4332 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
4334         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
4335         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
4336         global and hidden.
4337         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
4338         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
4339         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
4340         Likewise.
4341         (__rawmemchr_sse2): Likewise.
4342         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
4343         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
4344         (__strchr_sse2): Likewise.
4345         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
4346         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
4347         (__strcasecmp_sse2): Likewise.
4348         (__strncasecmp_sse2): Likewise.
4349         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
4350         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
4351         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
4352         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
4353         (__strrchr_sse2): Likewise.
4354         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
4355         ifunc-impl-list.c.
4356         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
4357         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
4358         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
4359         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4360         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
4361         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
4362         * sysdeps/x86_64/multiarch/memset.S: Likewise.
4363         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
4364         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
4365         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
4366         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
4367         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
4368         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
4369         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
4370         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
4371         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
4372         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
4373         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
4374         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
4375         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
4376         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
4377         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
4378         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
4379         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
4380         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
4381         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4382         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
4383         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4384         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
4385         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
4387         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
4388         global and hidden.
4389         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
4390         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
4391         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
4392         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
4393         Likewise.
4394         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
4395         Likewise.
4396         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
4397         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
4398         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
4399         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
4400         ifunc-impl-list.c.
4401         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4402         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4403         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4404         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4405         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4406         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4407         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4408         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4409         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4410         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4411         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4412         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4413         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4414         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
4415         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
4416         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4417         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
4418         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
4419         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4420         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4421         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4422         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4423         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4424         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4425         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4426         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
4427         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
4428         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
4429         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
4430         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4431         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
4432         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4433         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4434         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
4435         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4436         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4437         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4438         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4439         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4440         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4441         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
4443         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
4444         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
4445         * include/ifunc-impl-list.h: New file.
4446         * misc/ifunc-impl-list.c: Likewise.
4447         * misc/Makefile (routines): Add ifunc-impl-list.
4448         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
4449         * string/test-string.h: Include <ifunc-impl-list.h>.
4450         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
4451         impl_array): New variables.
4452         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
4453         are defined.
4454         (test_init): Call __libc_ifunc_impl_list to initialize
4455         func_list if TEST_IFUNC and TEST_NAME are defined.
4457         * string/Makefile (strop-tests): Add bcopy and bzero.
4458         * string/test-bcopy.c: New file.
4459         * string/test-bzero.c: Likewise.
4460         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
4461         defined.
4462         * string/test-memset.c: Support bzero test if TEST_BZERO is
4463         defined.
4464         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
4465         __libc_memmove.
4466         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
4467         __libc_memset.
4468         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
4469         of memset.
4471 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
4473         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
4474         * configure: Regenerated.
4476         * Makeconfig (+link-static-before-libc): Don't include
4477         $(link-static-libc).
4479         * libio/libio.h (_IO_pos_t): Remove.
4481 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
4483         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
4484         McGrath.
4486 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
4488         * crypt/crypt-entry.c: Include fips-private.h.
4489         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
4490         * crypt/md5c-test.c (main): Tolerate disabled MD5.
4491         * sysdeps/unix/sysv/linux/fips-private.h: New file.
4492         * sysdeps/generic/fips-private.h: New file, dummy fallback.
4494 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
4496         * crypt/crypt-private.h: Include stdbool.h.
4497         (_ufc_setup_salt_r): Return bool.
4498         * crypt/crypt-entry.c: Include errno.h.
4499         (__crypt_r): Return NULL with EINVAL for bad salt.
4500         * crypt/crypt_util.c (bad_for_salt): New.
4501         (_ufc_setup_salt_r): Check that salt is long enough and within
4502         the specified alphabet.
4503         * crypt/badsalttest.c: New file.
4504         * crypt/Makefile (tests): Add it.
4505         ($(objpfx)badsalttest): New.
4507 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
4509         * NEWS: Add entry for BZ #14602.
4511 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
4513         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
4514         type-generic.
4515         * math/libm-test.inc: Update comment listing what functions and
4516         macros are tested.
4517         (isgreater_test): New function.
4518         (isgreaterequal_test): Likewise.
4519         (isless_test): Likewise.
4520         (islessequal_test): Likewise.
4521         (islessgreater_test): Likewise.
4522         (isunordered_test): Likewise.
4523         (main): Call the new functions.
4525 2012-10-09  Roland McGrath  <roland@hack.frob.com>
4527         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
4528         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
4529         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
4530         * sysdeps/i386/configure: Regenerated.
4531         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
4532         * sysdeps/mach/configure: Regenerated.
4533         * sysdeps/mach/hurd/configure: Regenerated.
4534         * sysdeps/powerpc/configure: Regenerated.
4535         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4536         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4537         * sysdeps/s390/s390-32/configure: Regenerated.
4538         * sysdeps/s390/s390-64/configure: Regenerated.
4539         * sysdeps/sh/configure: Regenerated.
4540         * sysdeps/sparc/configure: Regenerated.
4541         * sysdeps/unix/sysv/linux/configure: Regenerated.
4542         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
4543         * sysdeps/x86_64/configure: Regenerated.
4545         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
4546         defined.  Don't check if MAP is NULL.
4548 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
4550         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
4551         (_G_stat64): Likewise.
4552         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
4553         (_G_stat64): Likewise.
4554         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
4555         instead of struct _G_stat64.
4556         * libio/fileops.c (mmap_remap_check): Likewise.
4557         (decide_maybe_mmap): Likewise.
4558         (_IO_new_file_seekoff): Likewise.
4559         (_IO_file_stat): Likewise.
4560         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
4561         _G_off64_t.
4562         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
4563         instead of struct _G_stat64.
4564         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
4566 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
4568         [BZ #14602]
4569         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
4570         Replace with ...
4571         (CHECK_EOL): New macro.
4572         (two_way_short_needle): Check beginning of haystack for EOL.  Use
4573         CHECK_EOL.
4574         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
4575         Replace with CHECK_EOL.
4576         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
4577         Replace with CHECK_EOL.
4579 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
4581         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
4582         type-generic.
4583         * math/libm-test.inc: Update comment listing what functions and
4584         macros are tested.
4585         (finite_test): New function.
4586         (isinf_test): Likewise.
4587         (isnan_test): Likewise.
4588         (fpclassify_test): Test subnormal input.
4589         (isfinite_test): Likewise.
4590         (isnormal_test): Likewise.
4591         (main): Call the new functions.
4593 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
4595         [BZ #14660]
4596         * Makerules (%.dynsym): Force C locale when running
4597         $(OBJDUMP) --dynamic-syms.
4599 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
4601         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
4602         <stdint.h>.
4604 2012-10-06  David S. Miller  <davem@davemloft.net>
4606         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
4607         upper 32-bits of the length value in %o2 since we use branch-on-register
4608         tests which consider the entire 64-bit register.
4610 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
4612         * string/test-strstr.c (check2): Add a test for page boundary.
4614 2012-10-05  David S. Miller  <davem@davemloft.net>
4616         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
4617         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
4618         file.
4619         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
4620         sysdep_routines.
4621         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
4622         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
4623         and bzero when HWCAP_SPARC_CRYPTO is present.
4625 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
4627         [BZ #14602]
4628         * string/test-strstr.c (check2): New function.
4629         (test_main): Call check2.
4631         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
4632         and bug-strchr1.
4633         * string/bug-strcasestr1.c (do_test): Moved to ...
4634         * string/test-strcasestr.c (check1): Here.  New function.
4635         (do_one_test): Break out result checking code into ...
4636         (check_result): This.  New function.
4637         (do_one_test): Call check_result.
4638         (test_main): Call check1.
4639         * string/bug-strchr1.c (do_test): Moved to ...
4640         * string/test-strchr.c (check1): Here.  New function.
4641         (do_one_test): Break out result checking code into ...
4642         (check_result): This.  New function.
4643         (do_one_test): Call check_result.
4644         (test_main): Call check1.
4645         * string/bug-strstr1.c (main): Moved to ...
4646         * string/test-strchr.c (check1): Here.  New function.
4647         (do_one_test): Break out result checking code into ...
4648         (check_result): This.  New function.
4649         (do_one_test): Call check_result.
4650         (test_main): Call check1.
4651         * string/bug-strcasestr1.c: Removed.
4652         * string/bug-strchr1.c: Likewise.
4653         * string/bug-strstr1.c: Likewise.
4655         * elf/Makefile (dl-routines): Add hwcaps.
4656         * elf/dl-support.c (_dl_important_hwcaps): Removed.
4657         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
4658         (_dl_important_hwcaps): Moved to ...
4659         * elf/dl-hwcaps.c: Here.  New file.
4660         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
4662         [BZ #14557]
4663         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
4664         if IS_IN_rtld isn't defined.
4666         * elf/dl-support.c (_dl_sysinfo_map): New.
4667         Include "get-dynamic-info.h" and "setup-vdso.h".
4668         (_dl_non_dynamic_init): Call setup_vdso.
4669         * elf/dynamic-link.h: Don't include <assert.h>.
4670         (elf_get_dynamic_info): Moved to ...
4671         * elf/get-dynamic-info.h: Here.  New file.
4672         * elf/dynamic-link.h: Include "get-dynamic-info.h".
4673         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
4674         * elf/setup-vdso.h: Here.  New file.
4675         * elf/rtld.c: Include "setup-vdso.h".
4676         (dl_main): Call setup_vdso.
4678 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
4680         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
4681         creal in comment listing functions tested.  List finite, isinf,
4682         isnan, isless, islessequal, isgreater, isgreaterequal,
4683         islessgreater, isunordered, lgamma_r and pow10 as functions and
4684         macros not tested.  Mention which functions not tested are aliases
4685         for other functions.  Fix typo.  Note that signs of NaNs are not
4686         tested.
4688         * scripts/config.guess: Update from config.git.
4689         * scripts/config.sub: Likewise.
4691 2012-10-04  Roland McGrath  <roland@hack.frob.com>
4693         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
4694         * misc/madvise.c (madvise): Renamed to __madvise.
4695         Make madvise a weak alias.
4696         * include/sys/mman.h: Declare __madvise.
4697         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
4698         * sysdeps/unix/syscalls.list
4699         (madvise): Make __madvise the strong name, and madvise a weak alias.
4700         * sysdeps/unix/sysv/linux/syscalls.list
4701         (madvise, mmap): Remove redundant entries.
4702         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
4703         * malloc/malloc.c (mtrim): Likewise.
4704         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
4706 2012-10-03  Roland McGrath  <roland@hack.frob.com>
4708         * sysdeps/mach/hurd/dl-cache.c: File removed.
4709         * config.h.in (USE_LDCONFIG): New #undef.
4710         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
4711         * configure: Regenerated.
4712         * elf/Makefile (dl-routines): Add dl-cache only under
4713         [$(use-ldconfig) = yes].
4714         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
4715         cache on [USE_LDCONFIG].
4716         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
4717         [USE_LDCONFIG].
4718         * elf/rtld.c (dl_main): Likewise.
4720 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
4722         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
4723         _SC_LEVEL4_CACHE_LINESIZE.
4725 2012-10-03  Roland McGrath  <roland@hack.frob.com>
4727         * sysdeps/unix/bsd/confstr.h: File removed.
4729 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
4731         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
4732         sys/sdt-config.h.
4734 2012-10-02  Roland McGrath  <roland@hack.frob.com>
4736         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
4737         Make 'mapoff' field ElfW(Off) rather than off_t.
4739 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
4741         * nscd/Makefile: Remove nscd-cflags and all its users.
4742         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
4743         (CFLAGS-nonlib): Add compiler flags for nscd modules.
4745         [BZ #10631]
4746         * malloc.c (malloc_printerr): Clarify error message.
4748 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
4750         [BZ #14648]
4751         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4752         Set bit_FMA_Usable if FMA is supported.
4753         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
4754         macro.
4755         (bit_FMA4_Usable): Updated.
4756         (index_FMA_Usable): New macro.
4757         (CPUID_FMA): Likewise
4758         (HAS_FMA): Defined with bit_FMA_Usable.
4760 2012-10-01  Roland McGrath  <roland@hack.frob.com>
4762         * bits/types.h (__swblk_t): Type removed.
4763         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
4764         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
4765         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4766         (__SWBLK_T_TYPE): Likewise.
4767         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4768         (__SWBLK_T_TYPE): Likewise.
4769         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4770         (__SWBLK_T_TYPE): Likewise.
4771         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4772         (__SWBLK_T_TYPE): Likewise.
4774 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
4775             Honza Horak <hhorak@redhat.com>
4777         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
4778         (xdr_mapname): Use YPMAXMAP as maxsize.
4779         (xdr_peername): Use YPMAXPEER as maxsize.
4780         (xdr_keydat): Use YPAXRECORD as maxsize.
4781         (xdr_valdat): Use YPMAXRECORD as maxsize.
4783 2012-10-01  Roland McGrath  <roland@hack.frob.com>
4785         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
4787         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
4788         * csu/init-first.c: ... here.
4789         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
4790         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
4791         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
4792         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
4793         * sysdeps/i386/init-first.c: File removed.
4794         * sysdeps/sh/init-first.c: File removed.
4796 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
4798         [BZ #14645]
4799         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
4800         if x * y might underflow to zero and z is zero.
4801         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4802         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4803         * math/libm-test.inc (min_subnorm_value): New variable.
4804         (fma_test): Add more tests.
4805         (fma_test_towardzero): Likewise.
4806         (fma_test_downward): Likewise
4807         (fma_test_upward): Likewise.
4808         (initialize): Set min_subnorm_value.
4810 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
4812         [BZ #14638]
4813         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
4814         0 + 0.
4815         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
4816         mode for addition resulting in exact zero.
4817         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
4818         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
4819         exact 0 + 0.
4820         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
4821         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4822         * math/libm-test.inc (fma_test): Add more tests.
4823         (fma_test_towardzero): New function.
4824         (fma_test_downward): Likewise.
4825         (fma_test_upward): Likewise.
4826         (main): Call the new functions.
4828 2012-09-28  David S. Miller  <davem@davemloft.net>
4830         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
4832 2012-09-28  Roland McGrath  <roland@hack.frob.com>
4834         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
4835         instead of SIGALRM.
4837         * sysdeps/gnu/_G_config.h: Moved to ...
4838         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
4839         * sysdeps/mach/hurd/_G_config.h: Moved to ...
4840         * sysdeps/generic/_G_config.h: ... here.
4842         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
4844         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
4846         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
4847         Conditionalize target on [libnss_test1.so-version].
4849         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
4851         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
4852         (elfobjdir): Move out of conditionals.
4854         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
4855         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
4856         (__nss_lookup_function): Conditionalize label remove_from_tree on
4857         [!DO_STATIC_NSS || SHARED], matching its only use.
4859 2012-09-28  David S. Miller  <davem@davemloft.net>
4861         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
4862         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
4863         file.
4864         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
4865         sysdep_routines.
4866         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
4867         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
4868         when HWCAP_SPARC_CRYPTO is present.
4870 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
4872         * io/tst-mknodat.c: Create a FIFO instead of a socket.
4874 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
4876         [BZ #6530]
4877         * stdio-common/vfprintf.c (process_string_arg): Revert
4878         2000-07-22 change.
4880 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
4882         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
4883         for testcase.
4884         * stdio-common/tst-sprintf.c: Include <locale.h>
4885         (main): Test sprintf's handling of incomplete multibyte
4886         characters.
4888 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4890         * elf/dl-runtime.c (VERSYMIDX): Removed.
4891         * elf/dl-version.c (VERSYMIDX): Likewise.
4892         * elf/do-rel.h (VERSYMIDX): Likewise.
4893         (VALIDX): Likewise.
4894         * elf/dynamic-link.h (VERSYMIDX): Likewise.
4895         * elf/rtld.c (VALIDX): Likewise.
4896         (ADDRIDX): Likewise.
4897         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
4898         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
4899         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
4900         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
4901         (VALIDX): Likewise.
4902         (ADDRIDX): Likewise.
4904 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
4906         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
4908 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
4910         [BZ #11438]
4911         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
4912         to global scope.
4913         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
4914         addresses are in the same scope as 192.0.2/24.
4915         * posix/gai.conf: Document new scope table defaults.
4917 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4919         [BZ #5298]
4920         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
4921         for ftell.  Compute offsets from write pointers instead.
4922         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
4924 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4926         [BZ #14543]
4927         * libio/Makefile (tests): New test case tst-fseek.
4928         * libio/tst-fseek.c: New test case to verify that fseek/ftell
4929         combination works in wide mode.
4930         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
4931         state when the external buffer state changes.
4933 2012-09-27  David S. Miller  <davem@davemloft.net>
4935         [BZ #14376]
4936         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
4937         pass reloc->r_addend in as the 'high' argument to
4938         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
4940         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4942 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
4944         * rt/tst-aio2.c: Include <pthread.h>.
4945         * rt/tst-aio3.c: Likewise.
4947 2012-09-27  Steve Ellcey  <sellcey@mips.com>
4949         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
4951 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4953         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
4954         contents on [SHARED].
4956 2012-09-26  Marek Polacek  <polacek@redhat.com>
4958         [BZ #14530]
4959         [BZ #13741]
4960         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
4961         for C++ and GCC <4.3 as well as for non GCC compilers.
4963 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
4965         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4967 2012-09-25  Roland McGrath  <roland@hack.frob.com>
4969         * Makefile.in (all, install): Declare with .PHONY.
4970         Reported by Michael Hope <michael.hope@linaro.org>.
4972 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4974         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
4975         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
4976         system header.
4977         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
4978         Likewise.
4979         (sydep_routines): Add the new and the internal functions.
4980         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
4981         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
4982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
4983         (GLIBC_2.17): Add the new function.
4984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4985         (GLIBC_2.17): Likewise.
4986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
4987         (GLIBC_2.17): Likewise.
4988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
4989         (GLIBC_2.17): Likewise.
4990         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
4992 2012-09-25  Alan Modra  <amodra@gmail.com>
4994         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
4995         Add release barrier before setting once_control to say
4996         initialisation is done.  Add hints on lwarx.  Use macro in
4997         place of isync.
4998         (clear_once_control): Add release barrier.
5000 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
5002         [BZ #13629]
5003         * math/s_clog.c (__clog): Handle more values close to |z| = 1
5004         specially.
5005         * math/s_clog10.c (__clog10): Likewise.
5006         * math/s_clog10f.c (__clog10f): Likewise.
5007         * math/s_clog10l.c (__clog10l): Likewise.
5008         * math/s_clogf.c (__clogf): Likewise.
5009         * math/s_clogl.c (__clogl): Likewise.
5010         * math/Makefile (libm-calls): Add x2y2m1.
5011         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
5012         (__x2y2m1): Likewise.
5013         (__x2y2m1l): Likewise.
5014         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
5015         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
5016         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
5017         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5018         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
5019         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
5020         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
5021         * sysdeps/i386/fpu/libm-test-ulps: Update.
5022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5024         [BZ #14621]
5025         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
5026         int as type of variable DEPTH.
5027         (glob): Use size_t instead of int as type of variables NEWCOUNT
5028         and OLD_PATHC.
5030 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5032         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
5033         Add s_sincosf-sse2.
5034         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
5035         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
5036         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
5037         macros for using routine as __sincosf_ia32.
5038         Use macro for function declaration and weak_alias.
5039         * sysdeps/i386/fpu/libm-test-ulps: Update.
5041         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
5042         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5044         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
5045         subnormal argument.
5046         * math/s_cexpf.c (__cexpf): Likewise.
5047         * math/s_csinf.c (__csinf): Likewise.
5048         * math/s_csinhf.c (__csinhf): Likewise.
5049         * math/s_ctanf.c (__ctanf): Likewise.
5050         * math/s_ctanhf.c (__ctanhf): Likewise.
5051         * math/s_ccosh.c (__ccoshf): Likewise.
5052         * math/s_cexp.c (__cexpl): Likewise.
5053         * math/s_csin.c (__csin): Likewise.
5054         * math/s_csinh.c (__csinh): Likewise.
5055         * math/s_ctan.c (__ctan): Likewise.
5056         * math/s_ctanh.c (ctanh): Likewise.
5057         * math/s_ccoshl.c (__ccoshl): Likewise.
5058         * math/s_cexpl.c (__cexpl): Likewise.
5059         * math/s_csinl.c (__csinl): Likewise.
5060         * math/s_csinhl.c (__csinhl): Likewise.
5061         * math/s_ctanl.c (__ctanl): Likewise.
5062         * math/s_ctanhl.c (__ctanhl): Likewise.
5064 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
5066         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
5067         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
5068         (_IO_off_t): Define to __off_t, not _G_off_t.
5069         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
5070         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
5071         (_IO_wint_t): Define to wint_t, not _G_wint_t.
5072         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
5073         type of __dummy and __dummy2 fields.
5074         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
5075         (_G_ssize_t): Likewise.
5076         (_G_off_t): Likewise.
5077         (_G_pid_t): Likewise.
5078         (_G_uid_t): Likewise.
5079         (_G_wchar_t): Likewise.
5080         (_G_wint_t): Likewise.
5081         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
5082         (_G_ssize_t): Likewise.
5083         (_G_off_t): Likewise.
5084         (_G_pid_t): Likewise.
5085         (_G_uid_t): Likewise.
5086         (_G_wchar_t): Likewise.
5087         (_G_wint_t): Likewise.
5088         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
5089         (_G_ssize_t): Likewise.
5090         (_G_off_t): Likewise.
5091         (_G_pid_t): Likewise.
5092         (_G_uid_t): Likewise.
5093         (_G_wchar_t): Likewise.
5094         (_G_wint_t): Likewise.
5096 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5098         * malloc/arena.c: Include malloc-sysdep.h.
5099         (shrink_heap): Use check_may_shrink_heap to decide if madvise
5100         is sufficient to shrink the heap or an unmap is needed.
5101         * sysdeps/generic/malloc-sysdep.h: New file.  Define
5102         new function check_may_shrink_heap.
5103         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
5104         new function check_may_shrink_heap.
5106 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5108         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
5109         comments.
5111 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
5113         * catgets/test-gencat.sh: Add "set -e".
5114         * elf/tst-pathopt.sh: Likewise.
5115         * grp/tst_fgetgrent.sh: Likewise.
5116         * iconvdata/run-iconv-test.sh: Likewise.
5117         * intl/tst-gettext.sh: Likewise.
5118         * intl/tst-gettext2.sh: Likewise.
5119         * intl/tst-gettext4.sh: Likewise.
5120         * intl/tst-gettext6.sh: Likewise.
5121         * intl/tst-translit.sh: Likewise.
5122         * io/ftwtest-sh: Likewise.
5123         * libio/test-freopen.sh: Likewise.
5124         * malloc/tst-mtrace.sh: Likewise.
5125         * posix/globtest.sh: Likewise.
5126         * posix/tst-getconf.sh: Likewise.
5127         * posix/wordexp-tst.sh: Likewise.
5128         * stdio-common/tst-printf.sh: Likewise.
5129         * stdio-common/tst-unbputc.sh: Likewise.
5130         * stdlib/tst-fmtmsg.sh: Likewise.
5131         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
5132         * catgets/Makefile: Do not specify -e option when running
5133         testsuite shell scripts.
5134         * elf/Makefile: Likewise.
5135         * grp/Makefile: Likewise.
5136         * iconvdata/Makefile: Likewise.
5137         * intl/Makefile: Likewise.
5138         * io/Makefile: Likewise.
5139         * libio/Makefile: Likewise.
5140         * malloc/Makefile: Likewise.
5141         * posix/Makefile: Likewise.
5142         * stdio-common/Makefile: Likewise.
5143         * stdlib/Makefile: Likewise.
5144         * sysdeps/x86_64/Makefile: Likewise.
5146         * io/ftwtest-sh: Add copyright header.
5147         * posix/globtest.sh: Likewise.
5148         * posix/tst-getconf.sh: Likewise.
5149         * posix/wordexp-tst.sh: Likewise.
5150         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
5152 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
5154         [BZ #13679]
5155         * Makeconfig (+link): Defined as $(+link-static) if
5156         $(build-shared) isn't yes.
5157         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
5158         isn't yes.
5159         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
5161         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
5163         [BZ #14562]
5164         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
5165         new chunk size with MALLOC_ALIGN_MASK.
5167 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
5169         [BZ #5044]
5170         * stdio-common/printf_fphex.c: Include <stdbool.h> and
5171         <rounding-mode.h>.
5172         (__printf_fphex): Determine rounding using get_rounding_mode and
5173         round_away.
5174         * stdio-common/tst-printf-round.c (struct hex_test): New
5175         structure.
5176         (hex_tests): New variable.
5177         (test_hex_in_one_mode): New function.
5178         (do_test): Also run tests for hex float output.
5180 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
5182         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
5183         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
5184         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
5185         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
5186         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
5187         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
5188         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
5189         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
5191 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
5193         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
5194         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
5195         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
5196         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
5198 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
5200         [BZ #14579]
5201         * elf/rtld.c (dl_main): Limit the check for self loading to normal
5202         mode only.
5203         * elf/tst-rtld-load-self.sh: New test.
5204         * elf/Makefile: Run it.
5206 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
5208         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
5209         (tst-writev-ENV): Remove.
5210         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
5212 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
5214         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
5216 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
5218         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
5219         unconditional.
5220         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
5221         Likewise.
5222         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
5223         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
5224         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
5225         Likewise.
5227 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5229         [BZ #14587]
5230         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
5231         * config.make.in (have-cpp-asm-debuginfo): Removed.
5232         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
5233         * configure: Regenerated.
5235 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
5237         [BZ #5044]
5238         * stdio-common/printf_fp.c: Include <stdbool.h> and
5239         <rounding-mode.h>.
5240         (___printf_fp): Determine rounding using get_rounding_mode and
5241         round_away.
5242         * stdio-common/tst-printf-round.c: New file.
5243         * stdio-common/Makefile (tests): Add tst-printf-round.
5244         (link-libm): New variable.
5245         ($(objpfx)tst-printf-round): Depend in $(link-libm).
5247 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5249         [BZ #14576]
5250         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
5251         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
5252         Likewise.
5253         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
5254         Likewise.
5256 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
5258         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
5259         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
5260         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
5261         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
5263 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
5265         [BZ #14518]
5266         * include/rounding-mode.h: New file.
5267         * sysdeps/generic/get-rounding-mode.h: Likewise.
5268         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
5269         * stdlib/strtod_l.c: Include <rounding-mode.h>.
5270         (MAX_VALUE): New macro.
5271         (MIN_VALUE): Likewise.
5272         (overflow_value): New function.
5273         (underflow_value): Likewise.
5274         (round_and_return): Use overflow_value and underflow_value to
5275         determine return values in overflow and underflow cases.  Use
5276         round_away to determine rounding depending on rounding mode.
5277         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
5278         determine return values in overflow and underflow cases.
5279         * stdlib/tst-strtod-round.c: Include <fenv.h>.
5280         (struct test_results): New structure.
5281         (struct test): Use struct test_results to store expected results
5282         for all rounding modes.
5283         (TEST): Include expected results for all rounding modes.
5284         (test_in_one_mode): New function.
5285         (do_test): Use test_in_one_mode to compute and check results.
5286         Check results for all rounding modes.
5287         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
5288         $(link-libm).
5290 2012-12-09  Allan McRae  <allan@archlinux.org>
5292         * sysdeps/i386/fpu/libm-test-ulps: Update
5294 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
5296         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
5297         (_G_int32_t): Likewise.
5298         (_G_uint16_t): Likewise.
5299         (_G_uint32_t): Likewise.
5300         (_G_HAVE_BOOL): Likewise.
5301         (_G_HAVE_ATEXIT): Likewise.
5302         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
5303         (_G_HAVE_IO_FILE_OPEN): Likewise.
5304         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
5305         (_G_int32_t): Likewise.
5306         (_G_uint16_t): Likewise.
5307         (_G_uint32_t): Likewise.
5308         (_G_HAVE_BOOL): Likewise.
5309         (_G_HAVE_ATEXIT): Likewise.
5310         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
5311         (_G_HAVE_IO_FILE_OPEN): Likewise.
5312         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
5313         (_G_int32_t): Likewise.
5314         (_G_uint16_t): Likewise.
5315         (_G_uint32_t): Likewise.
5316         (_G_HAVE_BOOL): Likewise.
5317         (_G_HAVE_ATEXIT): Likewise.
5318         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
5319         (_G_HAVE_IO_FILE_OPEN): Likewise.
5321 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5323         * csu/libc-tls.c: Update copyright years.
5325 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
5327         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
5328         [!_G_USING_THUNKS]: Remove conditional code.
5329         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
5330         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
5332         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
5333         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
5334         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
5335         (_G_VTABLE_LABEL_PREFIX): Likewise.
5336         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
5337         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
5338         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
5339         (_G_VTABLE_LABEL_PREFIX): Likewise.
5340         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
5341         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
5342         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
5343         (_G_VTABLE_LABEL_PREFIX): Likewise.
5344         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
5346 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5348         * libio/Makefile: Include ../Makeconfig before tests.
5349         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
5350         only if $(build-shared) is yes.
5352         * iconv/gconv_db.c: Update copyright years.
5354 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5356         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
5357         unwind info if defined PIC. Fix special cases description.
5358         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
5360         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
5361         DP_HI_MASK entry.
5362         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
5364 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5366         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
5368         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
5369         is NULL.
5371         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
5372         (LDLIBS-tst-chk4): This.
5373         (LDFLAGS-tst-chk5): Renamed to ...
5374         (LDLIBS-tst-chk5): This.
5375         (LDFLAGS-tst-chk6): Renamed to ...
5376         (LDLIBS-tst-chk6): This.
5377         (LDFLAGS-tst-lfschk4): Renamed to ...
5378         (LDLIBS-tst-lfschk4): This.
5379         (LDFLAGS-tst-lfschk5): Renamed to ...
5380         (LDLIBS-tst-lfschk5): This.
5381         (LDFLAGS-tst-lfschk6): Renamed to ...
5382         (LDLIBS-tst-lfschk6): This.
5384         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
5385         on $(common-objpfx)soversions.mk.
5387 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
5389         [BZ #10014]
5390         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
5391         example host name.
5393 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
5395         * malloc/arena.c (arena_get_retry): New function that gets
5396         another arena for the caller to try its request on.
5397         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
5398         current arena cannot fulfill the request.
5399         (__libc_memalign): Likewise.
5400         (__libc_memalign): Likewise.
5401         (__libc_pvalloc): Likewise.
5402         (__libc_calloc): Likewise.
5404 2012-09-05  John Tobey  <john.tobey@gmail.com>
5406         [BZ #13542]
5407         * manual/arith.texi (Operations on Complex): Fix description
5408         of carg branch cut.
5410 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
5412         [BZ #10014]
5413         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
5414         host name.
5416         [BZ #10038]
5417         * manual/memory.texi (Memory): Make order of menu items match
5418         order of sections.
5420 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5422         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
5423         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
5424         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
5426 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5428         * csu/libc-tls.c (static_dtv): Renamed to ...
5429         (_dl_static_dtv): This.  Make it global.
5430         (_dl_initial_dtv): Removed.
5431         (__libc_setup_tls): Updated.
5432         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
5433         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
5434         DL_INITIAL_DTV.
5436 2012-09-06  Petr Machata  <pmachata@redhat.com>
5438         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
5439         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
5440         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
5441         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
5443 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5445         [BZ #14545]
5446         * csu/libc-tls.c (_dl_initial_dtv): New variable.
5447         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
5448         freeing dtv[-1].
5450 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5452         [BZ #14544]
5453         * Makeconfig (link-static-before-libc): Replace $(+prector)
5454         with $(+prectorT).
5455         (link-static-after-libc): Replace $(+postctor) with
5456         $(+postctorT).
5457         (link-bounded): Replace $(+prector)/$(+postctor) with
5458         $(+prectorT)/$(+postctorT).
5459         (+prectorT): New macro.
5460         (+postctorT): Likewise.
5462 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
5464         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
5465         (round_str): Handle values above the maximum for IBM long double
5466         as inexact.
5467         * stdlib/tst-strtod-round.c (tests): Regenerated.
5469 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5471         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
5472         assembler flag.
5473         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
5474         zarch_nohighgprs around the zarch optimized routines.
5475         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
5476         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
5477         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
5478         for zarch.
5480 2012-09-05  David S. Miller  <davem@davemloft.net>
5482         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5484         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
5485         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
5486         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
5487         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
5488         entries.
5490 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5492         * malloc/arena.c: Fold copyright years.
5493         * malloc/mcheck.c, malloc/memusage.c: Likewise.
5495 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5497         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
5499 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5501         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
5503 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5505         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
5506         change internal state upon failure.
5508 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5510         * malloc/mcheck.c (mcheck_check_all): Fix typo.
5511         * malloc/memusage.c (mmap): Likewise.
5512         (mmap64, mremap): Likewise.  Adjust name in comment.
5514 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
5516         * libio/fileops.c: Fix typos in comments.
5517         * libio/oldfileops.c: Likewise.
5518         * libio/wfileops.c: Likewise.
5520 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
5522         [BZ #1349]
5523         * malloc/Makefile (tests): Add tst-malloc-usable test case.
5524         (tst-malloc-usable-ENV): Set environment for test case.
5525         * malloc/hooks.c (malloc_check_get_size): New function to get
5526         requested size.
5527         * malloc/malloc.c (musable): Use malloc_check_get_size.
5528         * malloc/tst-malloc-usable.c: New test case.
5530 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
5532         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
5534 2012-09-05  Allan McRae  <allan@archlinux.org>
5536         [BZ #13966]
5537         * configure.in (CXX_SYSINCLUDES): Use compiler output to
5538         determine header location.
5539         * configure: Regenerated.
5541 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
5543         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
5544         float format.
5545         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
5546         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
5547         format.
5548         (test): Regenerate.
5550 2012-09-04  David S. Miller  <davem@davemloft.net>
5552         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
5553         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
5554         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
5556 2012-09-04  Florian Weimer  <fweimer@redhat.com>
5558         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
5559         failures.
5561         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
5563 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
5565         [BZ #9914]
5566         * libio/iogetdelim.c: Include <limits.h>.
5567         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
5568         + len + 1 would overflow.
5570 2012-09-03  Andreas Jaeger  <aj@suse.de>
5572         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5573         * sysdeps/i386/fpu/libm-test-ulps: Update.
5575 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5577         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
5578         Add s_sinf-sse2, s_conf-sse2.
5580         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
5581         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
5582         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
5583         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
5585         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
5586         for using routine as __sinf_ia32.
5587         Use macro for function declaration and weak_alias.
5588         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
5589         for using routine as __cosf_ia32.
5590         Use macro for function declaration and weak_alias.
5592         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
5593         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
5595         * sysdeps/x86_64/fpu/s_sinf.S: New file.
5596         * sysdeps/x86_64/fpu/s_cosf.S: New file.
5597         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5599         * math/libm-test.inc (cos_test): Add more test cases.
5600         (sin_test): Likewise.
5601         (sincos_test): Likewise.
5603 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5605         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
5606         (IFUNC_RESOLVE): Make pointers to the specialized implementations
5607         hidden.
5608         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
5610 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
5612         [BZ #14538]
5613         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
5614         first element of the GOT.
5615         (elf_machine_load_address): Return the difference between
5616         the runtime address of _DYNAMIC and elf_machine_dynamic ().
5618 2012-09-01  Allan McRae  <allan@archlinux.org>
5620         [BZ #13412]
5621         * configure.in (AWK): Require gawk version 3.0 or later.
5622         * configure: Regenerated.
5624 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
5626         * sysdeps/unix/sysv/linux/kernel-features.h
5627         (__ASSUME_POSIX_CPU_TIMERS): Remove.
5628         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
5629         [__NR_clock_getres]: Make code unconditional.
5630         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
5631         (clock_getcpuclockid): Remove code left unreachable by removal of
5632         conditionals.
5633         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
5634         code unconditional.
5635         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
5636         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
5637         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
5638         Make code unconditional.
5639         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
5640         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
5641         * sysdeps/unix/sysv/linux/clock_settime.c
5642         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
5643         conditional code.
5644         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
5645         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
5647 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
5649         [BZ #14476]
5650         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
5651         scripts/test-installation.pl.
5653         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
5654         and $ld_so_version if it is set.
5656 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5658         [BZ #14516]
5659         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
5660         failure if reading from procfs failed.
5661         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
5663 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
5665         * sysdeps/unix/sysv/linux/kernel-features.h
5666         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
5667         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
5668         Remove conditional code.
5669         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5670         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
5671         Remove conditional code.
5672         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5673         * sysdeps/unix/sysv/linux/i386/fxstat.c
5674         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
5675         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5676         * sysdeps/unix/sysv/linux/i386/fxstatat.c
5677         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
5678         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5679         * sysdeps/unix/sysv/linux/i386/lxstat.c
5680         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
5681         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5682         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
5683         Remove conditional code.
5684         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5685         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
5686         Remove conditional code.
5687         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5688         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
5689         <kernel-features.h>.
5690         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
5691         Remove.
5692         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
5693         Remove conditional code.
5694         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5695         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
5696         Remove conditional.
5698 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
5700         [BZ #5400]
5701         * NEWS: Add fixed bug number.
5703 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
5705         [BZ #14519]
5706         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
5707         underflowing exponent in case of negative sign.
5708         * stdlib/tst-strtod-round-data: Add more tests.
5709         * stdlib/tst-strtod-round.c (tests): Regenerated.
5711         [BZ #3479]
5712         * stdlib/strtod_l.c (NDIG): Remove.
5713         (HEXNDIG): Likewise.
5714         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
5715         smallest representable value.
5716         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
5717         lie within an exact representation of 1/2 ulp of the result.
5718         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
5719         unconditionally.
5720         (TENS_P9_IDX): Define unconditionally.
5721         (TENS_P9_SIZE): Likewise.
5722         (TENS_P10_IDX): Likewise.
5723         (TENS_P10_SIZE): Likewise.
5724         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
5725         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
5726         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
5727         entries for 10^2^13 and 10^2^14.
5728         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
5729         (TENS_P13_IDX): Define.
5730         (TENS_P13_SIZE): Likewise.
5731         (TENS_P14_IDX): Likewise.
5732         (TENS_P14_SIZE): Likewise.
5733         (_fpioconst_pow10): Change array size to
5734         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
5735         unconditional.
5736         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
5737         1024]: Add entries for 10^2^13 and 10^2^14.
5738         [LAST_POW10 > _LAST_POW10]: Remove #error.
5739         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
5740         (_fpioconst_pow10): Change array size to
5741         FPIOCONST_POW10_ARRAY_SIZE.
5742         * stdlib/gen-fpioconst.c: New file.
5743         * stdlib/gen-tst-strtod-round.c: Likewise.
5744         * stdlib/tst-strtod-round-data: Likewise.
5745         * stdlib/tst-strtod-round.c: Likewise.
5746         * stdlib/Makefile (tests): Add tst-strtod-round.
5748         [BZ #14459]
5749         * stdlib/strtod_l.c: Include <stdint.h>.
5750         (NDEBUG): Do not define.
5751         (round_and_return): Change EXPONENT parameter to type intmax_t.
5752         Rearrange calculations to avoid internal overflow possibilities.
5753         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
5754         Rearrange calculations to avoid internal overflow possibilities.
5755         Assert that number fits inside MPNSIZE limbs.
5756         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
5757         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
5758         calculations and add assertions to avoid internal overflow
5759         possibilities.  Add casts to avoid signed/unsigned operations.
5760         * stdlib/tst-strtod-overflow.c: New file.
5761         * stdlib/Makefile (tests): Add tst-strtod-overflow.
5763 2012-08-25  Marek Polacek  <polacek@redhat.com>
5765         * time/time.h: Fix some typos in comments.
5767 2012-08-23  Roland McGrath  <roland@hack.frob.com>
5769         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
5770         * posix/tst-rfc3484-2.c: Likewise.
5771         * posix/tst-rfc3484-3.c: Likewise.
5773 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
5775         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
5776         (EF_ARM_ABI_FLOAT_HARD): Likewise.
5778 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
5780         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
5781         #include of fxstatat64.c.
5783 2012-08-22  Roland McGrath  <roland@hack.frob.com>
5785         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
5786         * shadow/getspent_r.c: Likewise.
5787         * shadow/getspnam.c: Likewise.
5788         * shadow/getspnam_r.c: Likewise.
5789         * gshadow/getsgent.c: Likewise.
5790         * gshadow/getsgent_r.c: Likewise.
5791         * gshadow/getsgnam.c: Likewise.
5792         * gshadow/getsgnam_r.c: Likewise.
5793         * inet/getnetbyad.c: Likewise.
5794         * inet/getnetbyad_r.c: Likewise.
5795         * inet/getnetbynm.c: Likewise.
5796         * inet/getnetbynm_r.c: Likewise.
5797         * inet/getnetent.c: Likewise.
5798         * inet/getnetent_r.c: Likewise.
5799         * inet/getproto.c: Likewise.
5800         * inet/getproto_r.c: Likewise.
5801         * inet/getprtent.c: Likewise.
5802         * inet/getprtent_r.c: Likewise.
5803         * inet/getprtname.c: Likewise.
5804         * inet/getprtname_r.c: Likewise.
5805         * inet/getrpcbyname.c: Likewise.
5806         * inet/getrpcbyname_r.c: Likewise.
5807         * inet/getrpcbynumber.c: Likewise.
5808         * inet/getrpcbynumber_r.c: Likewise.
5809         * inet/getrpcent.c: Likewise.
5810         * inet/getrpcent_r.c: Likewise.
5811         * inet/getaliasent.c: Likewise.
5812         * inet/getaliasent_r.c: Likewise.
5813         * inet/getaliasname.c: Likewise.
5814         * inet/getaliasname_r.c: Likewise.
5815         * nscd/getgrgid_r.c: Likewise.
5816         * nscd/getgrnam_r.c: Likewise.
5817         * nscd/gethstbyad_r.c: Likewise.
5818         * nscd/gethstbynm3_r.c: Likewise.
5819         * nscd/getpwnam_r.c: Likewise.
5820         * nscd/getpwuid_r.c: Likewise.
5821         * nscd/getsrvbynm_r.c: Likewise.
5822         * nscd/getsrvbypt_r.c: Likewise.
5823         * nscd/gai.c: Likewise.
5825         * configure.in (build_nscd): New substituted variable, set
5826         by --disable-build-nscd and defaults to $use_nscd.
5827         * configure: Regenerated.
5828         * config.make.in (build-nscd): New substituted variable.
5829         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
5830         Change conditional to require [$(build-nscd) = yes] as well.
5831         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
5833         [BZ# 13696]
5834         * configure.in (use_nscd): New substituted variable, set by
5835         --disable-nscd.  If enabled, define USE_NSCD.
5836         * configure: Regenerated.
5837         * config.h.in: Add USE_NSCD.
5838         * config.make.in (use-nscd): New substituted variable.
5839         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
5840         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
5841         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
5842         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
5843         (CFLAGS-getgrnam_r.c): Likewise.
5844         (CFLAGS-initgroups.c): Likewise.
5845         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
5846         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
5847         Variables removed.
5848         * inet/getnetgrent_r.c
5849         (nscd_setnetgrent): New function, broken out of ...
5850         (setnetgrent): ... here.  Call it.
5851         (innetgr): Conditionalize nscd bits on [USE_NSCD].
5852         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
5853         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
5854         * nscd/Makefile (routines, aux): Move definitions after include of
5855         Makeconfig.  Conditionalize on [$(use-nscd) != no].
5856         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
5857         Conditionalize on [USE_NSCD].
5858         (is_nscd, nscd_init_cb): Likewise.
5859         (nss_load_library): Conditionalize init callback on [USE_NSCD].
5860         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
5861         * nss/nss_db/db-init.c: Likewise.
5862         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
5863         [USE_NSCD].
5864         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
5865         (make_request): Use it.
5866         (cache_valid_p): New function.
5867         (__check_pf): Use it.
5868         * NEWS: Add item for --disable-nscd.
5870 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
5872         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
5873         to support sed >= 4.2.1-20-ga9bf076.
5874         * configure: Regenerated.
5876 2012-08-22  Roland McGrath  <roland@hack.frob.com>
5878         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
5879         Conditionalize whole body on [IREL].
5881 2012-08-22  Jeff Law <law@redhat.com>
5883         [BZ #14505]
5884         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
5885         if the family is PF_UNSPEC.
5887 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
5889         * Makerules (lib-version): Rename from V.
5890         (install-lib-nosubdir): Change V to lib-version.
5892 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
5894         [BZ #14252]
5895         * powerpc32/power6/wcschr.c: New file.
5896         * powerpc32/power6/wcscpy.c: New file.
5897         * powerpc32/power6/wcsrchr.c: New file.
5898         * powerpc64/power6/wcschr.c: New file.
5899         * powerpc64/power6/wcscpy.c: New file.
5900         * powerpc64/power6/wcsrchr.c: New file.
5902 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
5904         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
5905         (two_way_short_needle): Use it.
5906         * string/strstr.c (AVAILABLE1_USES_J): Define.
5907         * string/strcasestr.c: Likewise.
5909         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
5910         array references.
5911         * string/strcasestr.c (TOLOWER): Make side-effect safe.
5913         [BZ #11607]
5914         * NEWS: Add an entry.
5915         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
5916         define their defaults.
5917         (two_way_short_needle): Detect end-of-string on-the-fly.
5918         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
5919         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
5920         * string/bug-strcasestr1.c: New test.
5921         * string/Makefile: Run it.
5923 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
5925         [BZ #11607]
5926         * string/str-two-way.h (two_way_short_needle): Optimize matching of
5927         the first character.
5929 2012-08-21  Roland McGrath  <roland@hack.frob.com>
5931         * csu/elf-init.c (__libc_csu_irel): Function removed.
5932         * csu/libc-start.c (apply_irel): New function.
5933         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
5935 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
5937         * sysdeps/unix/sysv/linux/kernel-features.h
5938         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
5939         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
5940         <kernel-features.h>.
5941         [__NR_fadvise64_64]: Make code unconditional.
5942         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
5943         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
5944         !__NR_fadvise64_64)]: Likewise.
5945         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
5946         !__NR_fadvise64_64))]: Likewise.
5947         [__NR_fadvise64]: Make code unconditional.
5948         [!__NR_fadvise64]: Remove conditional code.
5949         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
5950         <kernel-features.h>.
5951         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
5952         unconditional.
5953         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
5954         conditional code.
5955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
5956         not include <kernel-features.h>.
5957         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
5958         unconditional.
5959         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
5960         conditional code.
5961         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
5962         include <kernel-features.h>.
5963         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
5964         unconditional.
5965         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
5966         conditional code.
5968 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5970         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
5971         slight instruction rearrangements per scrollpipe analysis.
5972         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5974 2012-08-20  Roland McGrath  <roland@hack.frob.com>
5976         * manual/syslog.texi (syslog; vsyslog, closelog):
5977         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
5978         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
5980         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
5981         DSOCAPS to match condition on defining it.
5983 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
5985         * sysdeps/unix/sysv/linux/kernel-features.h
5986         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
5987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
5988         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
5989         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
5990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
5991         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
5992         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
5993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
5994         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
5995         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
5997         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
5998         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
6000         * sysdeps/unix/sysv/linux/kernel-features.h
6001         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
6002         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
6003         unconditional.
6004         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6005         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
6006         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
6007         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6008         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
6009         Make code unconditional.
6010         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6011         (__mmap64) [!__NR_mmap2]: Likewise.
6012         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
6013         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
6014         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6015         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
6016         [__NR_mmap2]: Make code unconditional.
6017         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
6018         (__mmap64) [!__NR_mmap2]: Likewise.
6020 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6022         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
6024 2012-08-18  Andreas Jaeger  <aj@suse.de>
6026         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
6028 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
6030         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
6031         * include/unistd.h (__have_sock_cloexec): Likewise.
6032         (__have_pipe2): Likewise.
6033         (__have_dup3): Likewise.
6035 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
6037         [BZ #9685]
6038         * include/unistd.h (__have_pipe2): Change define into an extern int.
6039         (__have_dup3): Likewise.
6040         * socket/have_sock_cloexec.c: Include fcntl.h.
6041         (__have_pipe2): New variable.
6042         (__have_dup3): Likewise.
6044 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
6046         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
6048 2012-08-17  Marek Polacek  <polacek@redhat.com>
6050         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
6051         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
6053 2012-08-17  Roland McGrath  <roland@hack.frob.com>
6055         * configure.in: Add AC_SUBST for sysheaders.
6056         * configure: Regenerated.
6057         * config.make.in (sysheaders): New substituted variable.
6059         * sysdeps/unix/mkfifo.c: Moved ...
6060         * sysdeps/posix/mkfifo.c: ... here.
6061         * sysdeps/unix/mkfifoat.c: Moved ...
6062         * sysdeps/posix/mkfifoat.c: ... here.
6064         * sysdeps/unix/utime.c: Moved ...
6065         * sysdeps/posix/utime.c: ... here.
6067         * sysdeps/unix/time.c: Moved ...
6068         * sysdeps/posix/time.c: ... here.
6069         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
6070         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
6072         * sysdeps/unix/nice.c: Moved ...
6073         * sysdeps/posix/nice.c: ... here.
6075         * sysdeps/unix/alarm.c: Moved ...
6076         * sysdeps/posix/alarm.c: ... here.
6078         * intl/Makefile ($(codeset_mo)): Depend on the input file.
6080 2012-08-17  Jeff Law <law@redhat.com>
6082         * intl/Makefile (codeset_mo): New variable.
6083         ($(codeset_mo)): New target.
6084         (tst-codeset.out): Depend on that.  Remove explicit rule.
6085         (tst-gettext3.out, tst-gettext5.out): Likewise.
6086         (LOCPATH-ENV, tst-codeset-ENV): New variables.
6087         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
6088         * intl/tst-codeset.sh: Remove.
6089         * intl/tst-gettext3.sh: Likewise.
6090         * intl/tst-gettext5.sh: Likewise.
6092 2012-08-17  Roland McGrath  <roland@hack.frob.com>
6094         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
6095         * sysdeps/unix/syscalls.list: ... here.
6097         * sysdeps/posix/getaddrinfo.c
6098         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
6099         (gaiconf_init, gaiconf_reload): Use them.
6100         [!_STATBUF_ST_NSEC]
6101         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
6102         Define using time_t rather than struct timespec.
6104         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
6105         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
6106         Macros removed.
6107         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
6108         [!NO_THREADS].
6109         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
6110         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
6111         Likewise.
6113         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
6114         __libc_cleanup_push argument.
6116         * bits/param.h: New file.
6117         * misc/sys/param.h: New file.
6118         * include/sys/param.h: New file.
6119         * misc/Makefile (headers): Add bits/param.h.
6120         * sysdeps/generic/sys/param.h: File removed.
6121         * sysdeps/unix/sysv/linux/bits/param.h: New file.
6122         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
6123         * sysdeps/mach/hurd/bits/param.h: New file.
6124         * sysdeps/mach/hurd/sys/param.h: File removed.
6126         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
6127         last change.
6129         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
6130         [_IO_MTSAFE_IO].
6131         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
6132         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
6133         New macros.
6135         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
6136         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
6137         rather than -D_IO_MTSAFE_IO conditionally.
6138         * stdio-common/Makefile (CPPFLAGS): Likewise.
6139         * wcsmbs/Makefile (CPPFLAGS): Likewise.
6140         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
6141         Use $(libio-mtsafe).
6142         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
6143         of -D_IO_MTSAFE_IO.
6144         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
6145         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
6146         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
6147         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
6148         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
6149         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
6150         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
6151         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
6152         (CFLAGS-fread_u_chk.c): Likewise.
6153         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
6154         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
6155         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
6156         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
6157         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
6158         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
6159         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
6160         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
6161         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
6163         * libio/Makefile: Test [$(libc-reentrant) = yes]
6164         instead of [$(filter %REENTRANT, $(defines)) nonempty].
6166         * Makeconfig
6167         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
6168         * sysdeps/pthread/configure: File removed.
6169         * sysdeps/pthread/Makeconfig: New file.
6170         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
6171         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
6173 2012-08-16  Gary Benson  <gbenson@redhat.com>
6175         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
6176         unmapping the first object in a namespace.
6178 2012-08-16  Roland McGrath  <roland@hack.frob.com>
6180         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
6181         (__internal_setnetgrent): ... this.  Add internal_function to
6182         definition.  Add libc_hidden_def.
6183         (setnetgrent): Update caller.
6184         (internal_endnetgrent): Renamed to ...
6185         (__internal_endnetgrent): ... this.  Add internal_function to
6186         definition.  Add libc_hidden_def.
6187         (endnetgrent): Update caller.
6188         (internal_getnetgrent_r): Renamed to ...
6189         (__internal_getnetgrent_r): ... this.  Add internal_function to
6190         definition.  Add libc_hidden_def.
6191         (__getnetgrent_r): Update caller.
6192         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
6194 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
6196         * stdlib/longlong.h: Update from GCC.
6198 2012-08-16  Roland McGrath  <roland@hack.frob.com>
6200         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
6201         on _QL, which is set by umul_ppmm but never used.
6202         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
6203         variables, which are set by GMP macros but never used.
6204         * stdio-common/_itowa.c (_itowa): Likewise.
6205         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
6206         * stdlib/mod_1.c (mpn_mod_1): Likewise.
6208 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
6210         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
6211         struct La_sh_regs is not constant.
6212         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
6213         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
6214         and struct La_sparc64_regs are not constant.
6216 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
6218         * sysdeps/unix/sysv/linux/kernel-features.h
6219         (__ASSUME_POSIX_TIMERS): Remove.
6220         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
6221         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
6222         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
6223         Make code unconditional.
6224         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
6225         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
6226         Make code unconditional.
6227         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
6228         * sysdeps/unix/sysv/linux/clock_nanosleep.c
6229         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
6230         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
6231         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
6232         Make code unconditional.
6233         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
6234         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
6235         (__libc_missing_posix_timers): Remove.
6237 2012-08-15  Roland McGrath  <roland@hack.frob.com>
6239         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
6240         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
6242         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
6244         * elf/dl-sym.c: Include <stdlib.h>.
6246         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
6247         constants, which avoids warnings in 32-bit builds.
6249         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
6250         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
6252         * misc/lseek.c: File moved to ...
6253         * io/lseek.c: ... here.
6255         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
6257         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
6258         shifting LEN more than 31 bits at once.
6260 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6262         [BZ #14195]
6263         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
6264         segmentation fault for a case of two empty input strings.
6265         * string/test-strncasecmp.c (check1): Renamed to...
6266         (bz12205): ...this.
6267         (bz14195): Add new testcase for two empty input strings and N > 0.
6268         (test_main): Call new testcase, adapt for renamed function.
6270 2012-08-15  Andreas Jaeger  <aj@suse.de>
6272         [BZ #14090]
6273         * crypt/md5test2.c: New test, based on test supplied by Serge
6274         Belyshev <belyshev@depni.sinp.msu.ru>.
6275         * crypt/Makefile (xtests): Add md5test-giant..
6276         * crypt/Makefile ($(objpfx)md5test-giant): Add.
6278 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6280         [BZ #14090]
6281         * crypt/md5.c (md5_process_block): Don't assume the buffer
6282         length is less than 2**32.
6283         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
6284         length is less than 2**64.
6286 2012-08-15  Roland McGrath  <roland@hack.frob.com>
6288         * string/str-two-way.h: Include <sys/param.h>.
6289         (MAX): Macro removed.
6291         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
6292         Move #define and #undef of memmove to just before and after
6293         including <string.h>.
6295         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
6296         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
6297         and after including <string.h>.  Move declarations of
6298         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
6299         to before #include "string/memmove.c".
6301         * include/dirent.h: Declare __getdirentries.
6303         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
6304         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
6306 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
6308         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
6309         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
6310         * sysdeps/i386/configure: Regenerated.
6311         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
6312         STABS_CURRENT_FILE, and STABS_FUN.
6313         (END): Remove call to STABS_FUN_END.
6314         (STABS_CURRENT_FILE1): Delete.
6315         (STABS_CURRENT_FILE): Likewise.
6316         (STABS_FUN): Likewise.
6317         (STABS_FUN_END): Likewise.
6318         (STABS_FUN2): Likewise.
6319         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
6320         * sysdeps/x86_64/configure: Regenerated.
6322 2012-08-14  Roland McGrath  <roland@hack.frob.com>
6324         * elf/dl-open.c: Include <atomic.h>.
6325         * elf/dl-lookup.c: Likewise.
6327 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
6329         * sysdeps/unix/sysv/linux/kernel-features.h
6330         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
6331         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
6332         unconditionally.
6333         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
6334         unconditionally.
6335         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
6336         condition on __ASSUME_CLONE_THREAD_FLAGS.
6338 2012-08-14  Andreas Jaeger  <aj@suse.de>
6340         * sysdeps/i386/fpu/libm-test-ulps: Update.
6342 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
6344         * include/atomic.h (atomic_exchange_and_add): Split into ...
6345         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
6346         New atomic macros.
6348 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
6350         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6352 2012-08-13  Jeff Law <law@redhat.com>
6354         * manual/stdio.texi (snprintf): Clarify handling of the trailing
6355         null byte in the output string.
6357 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
6359         * sysdeps/unix/sysv/linux/kernel-features.h
6360         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
6361         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
6362         (__ASSUME_ARG_MAX_STACK_BASED): Define.
6363         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
6364         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
6365         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
6366         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
6368 2012-08-09  Jeff Law <law@redhat.com>
6370         [BZ #13939]
6371         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
6372         When avoid_arena is set, don't retry in the that arena.  Pick the
6373         next one, whatever it might be.
6374         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
6375         (arena_lock): Pass in new parameter to arena_get2.
6376         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
6377         arena_get2.
6378         (__libc_malloc): Unify retrying after main arena failure with
6379         __libc_memalign version.
6380         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
6382 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
6384         [BZ #14166]
6385         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
6386         to __redirect_strstr.
6387         (__strstr_sse42): Use typeof __redirect_strstr.
6388         (__strstr_ia32): Likewise.
6389         (__libc_strstr): New prototype.
6390         (strstr): Renamed to ...
6391         (__libc_strstr): This.
6392         (strstr): New strong alias of __libc_strstr.
6393         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
6394         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
6395         __redirect_time.
6396         Include <time.h>.
6397         (__libc_time): New prototype.
6398         (time_ifunc): Replace time with __libc_time.
6399         (time): New strong alias and hidden definition of __libc_time.
6400         (__GI_time): Remove strong alias.
6401         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
6402         Include <stddef.h>.
6403         (memmove): Redefined to __redirect_memmove.
6404         (__memmove_sse2): Use typeof __redirect_memmove.
6405         (__memmove_ssse3): Likewise.
6406         (__memmove_ssse3_back): Likewise.
6407         (__libc_memmove): New prototype.
6408         (memmove): Renamed to ...
6409         (__libc_memmove): This.
6410         (memmove): New strong alias of __libc_memmove.
6412 2012-08-08  Mark Salter  <msalter@redhat.com>
6414         * elf/elf.h
6415         (R_MN10300_TLS_GD): Define.
6416         (R_MN10300_TLS_LD): Likewise.
6417         (R_MN10300_TLS_LDO): Likewise.
6418         (R_MN10300_TLS_GOTIE): Likewise.
6419         (R_MN10300_TLS_IE): Likewise.
6420         (R_MN10300_TLS_LE): Likewise.
6421         (R_MN10300_TLS_DTPMOD): Likewise.
6422         (R_MN10300_TLS_DTPOFF): Likewise.
6423         (R_MN10300_TLS_TPOFF): Likewise.
6424         (R_MN10300_SYM_DIFF): Likewise.
6425         (R_MN10300_ALIGN): Likewise.
6426         (R_MN10300_NUM): Update.
6428 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
6430         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
6431         Remove.
6433 2012-08-08  Roland McGrath  <roland@hack.frob.com>
6435         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
6437         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
6438         sysdeps/unix -> sysdeps/posix move.
6439         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6441 2012-08-07      Allan McRae     <allan@archlinux.org>
6443         [BZ #14303]
6444         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
6445         (SUNOS_CPP): Likewise.
6446         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
6447         not found.
6448         (open_input): Call CPP using execvp.
6450 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
6452         * sysdeps/unix/sysv/linux/kernel-features.h
6453         (__ASSUME_PROT_GROWSUPDOWN): Remove.
6454         (__ASSUME_NO_CLONE_DETACHED): Likewise.
6455         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
6456         (__ASSUME_WAITID_SYSCALL): Likewise.
6457         * sysdeps/unix/sysv/linux/dl-execstack.c
6458         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
6459         code unconditional.
6460         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
6461         conditional code.
6462         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
6463         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
6464         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
6465         code.
6466         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
6467         unconditional.
6468         [__ASSUME_WAITID_SYSCALL]: Likewise.
6469         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
6471 2012-08-07  Roland McGrath  <roland@hack.frob.com>
6473         * sysdeps/unix/closedir.c: Renamed to ...
6474         * sysdeps/posix/closedir.c: ... here.
6475         * sysdeps/unix/dirfd.c: Renamed to ...
6476         * sysdeps/posix/dirfd.c: ... here.
6477         * sysdeps/unix/dirstream.h: Renamed to ...
6478         * sysdeps/posix/dirstream.h: ... here.
6479         * sysdeps/unix/fdopendir.c: Renamed to ...
6480         * sysdeps/posix/fdopendir.c: ... here.
6481         * sysdeps/unix/opendir.c: Renamed to ...
6482         * sysdeps/posix/opendir.c: ... here.
6483         * sysdeps/unix/readdir.c: Renamed to ...
6484         * sysdeps/posix/readdir.c: ... here.
6485         * sysdeps/unix/readdir_r.c: Renamed to ...
6486         * sysdeps/posix/readdir_r.c: ... here.
6487         * sysdeps/unix/rewinddir.c: Renamed to ...
6488         * sysdeps/posix/rewinddir.c: ... here.
6489         * sysdeps/unix/seekdir.c: Renamed to ...
6490         * sysdeps/posix/seekdir.c: ... here.
6491         * sysdeps/unix/telldir.c: Renamed to ...
6492         * sysdeps/posix/telldir.c: ... here.
6493         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
6494         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
6495         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6496         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
6498         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
6499         * bits/fcntl.h: ... here.
6501         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
6502         not 0.
6503         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
6504         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
6505         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
6506         (struct flock): Move l_start, l_len to the beginning.
6507         Use __pid_t for l_pid.
6508         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
6509         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
6510         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
6511         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
6512         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
6513         [__USE_LARGEFILE64] (struct flock64): New type.
6514         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
6516         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
6517         * bits/dirent.h: ... here.
6519         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
6520         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
6522 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
6524         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
6525         Change from 2.6.0 to 2.6.16.
6526         * sysdeps/unix/sysv/linux/configure: Regenerated.
6527         * sysdeps/unix/sysv/linux/kernel-features.h
6528         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
6529         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
6530         version.
6531         (__ASSUME_UTIMES): Likewise.
6532         (__ASSUME_CLONE_STOPPED): Remove.
6533         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
6534         architectures, not kernel version.
6535         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
6536         (__ASSUME_NO_CLONE_DETACHED): Likewise.
6537         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
6538         (__ASSUME_WAITID_SYSCALL): Likewise.
6539         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
6540         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
6541         * README: State 2.6.16 as minimum Linux kernel version.  Do not
6542         refer to older versions.
6544 2012-08-06  Roland McGrath  <roland@hack.frob.com>
6546         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
6547         Define alphasort64 as an alias.
6548         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
6549         Define versionsort64 as an alias.
6550         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
6551         Define scandir64 as an alias.
6552         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
6553         Define scandirat64 as an alias.
6554         * dirent/alphasort64.c (alphasort64):
6555         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
6556         * dirent/versionsort64.c: Likewise.
6557         * dirent/scandir64.c: Likewise.
6558         * dirent/scandirat64.c: Likewise.
6559         * sysdeps/wordsize-64/alphasort.c: File removed.
6560         * sysdeps/wordsize-64/alphasort64.c: File removed.
6561         * sysdeps/wordsize-64/scandir.c: File removed.
6562         * sysdeps/wordsize-64/scandir64.c: File removed.
6563         * sysdeps/wordsize-64/scandirat.c: File removed.
6564         * sysdeps/wordsize-64/scandirat64.c: File removed.
6565         * sysdeps/wordsize-64/versionsort.c: File removed.
6566         * sysdeps/wordsize-64/versionsort64.c: File removed.
6567         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
6568         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
6569         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
6570         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
6571         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
6572         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
6573         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
6574         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
6576         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
6577         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
6578         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
6579         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6580         [defined __arch64__ || defined __sparcv9]
6581         (__INO_T_MATCHES_INO64_T): New macro.
6582         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
6583         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
6584         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
6585         * sysdeps/unix/sysv/linux/bits/dirent.h
6586         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
6587         (_DIRENT_MATCHES_DIRENT64): New macro.
6589         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
6590         Define lockf64 as an alias.
6591         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
6592         Define fseeko64 as an alias.
6593         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
6594         Define ftello64 as an alias.
6595         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
6596         Define _IO_fgetpos64 and fgetpos64 as aliases.
6597         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
6598         Define _IO_fsetpos64 and fsetpos64 as aliases.
6599         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
6600         Conditionalize body on this.
6601         * libio/fseeko64.c: Likewise.
6602         * libio/ftello64.c: Likewise.
6603         * libio/iofgetpos64.c: Likewise.
6604         * libio/iofsetpos64.c: Likewise.
6605         * sysdeps/wordsize-64/lockf.c: File removed.
6606         * sysdeps/wordsize-64/lockf64.c: File removed.
6607         * sysdeps/wordsize-64/fseeko.c: File removed.
6608         * sysdeps/wordsize-64/fseeko64.c: File removed.
6609         * sysdeps/wordsize-64/ftello.c: File removed.
6610         * sysdeps/wordsize-64/ftello64.c: File removed.
6611         * sysdeps/wordsize-64/iofgetpos.c: File removed.
6612         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
6613         * sysdeps/wordsize-64/iofsetpos.c: File removed.
6614         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
6615         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
6616         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
6617         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
6618         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
6619         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
6620         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
6621         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
6622         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
6623         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
6624         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
6626         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
6627         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
6628         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
6629         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6630         [defined __arch64__ || defined __sparcv9]
6631         (__OFF_T_MATCHES_OFF64_T): New macro.
6632         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
6633         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
6634         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6635         (__OFF_T_MATCHES_OFF64_T): New macro.
6637 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
6639         * stdlib/secure-getenv.c (__secure_getenv): Replace
6640         GLIBC_2_16 with GLIBC_2_17.
6642 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
6644         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
6645         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6647 2012-08-03  David S. Miller  <davem@davemloft.net>
6649         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6651 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
6653         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
6654         Remove.
6655         (__ASSUME_CORRECT_SI_PID): Likewise.
6656         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
6657         (__ASSUME_TMPFS_NAME): Likewise.
6658         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
6659         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
6660         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
6661         (HAVE_AUX_SECURE): Make definition unconditional.
6662         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
6663         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
6665 2012-08-03  Roland McGrath  <roland@hack.frob.com>
6667         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
6668         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
6669         * sysdeps/mach/hurd/eloop-threshold.h: New file.
6670         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6671         __eloop_threshold instead of SYMLOOP_MAX.
6673         * sysdeps/generic/eloop-threshold.h: New file.
6674         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
6675         of MAXSYMLINKS.
6676         * elf/chroot_canon.c (chroot_canon): Likewise.
6678 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
6680         [BZ #13717]
6681         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
6682         Change to 2.6.0 everywhere.
6683         * sysdeps/unix/sysv/linux/configure: Regenerated.
6684         * sysdeps/unix/sysv/linux/kernel-features.h
6685         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
6686         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
6687         kernel versions.
6688         (__ASSUME_POSIX_TIMERS): Define unconditionally.
6689         (__ASSUME_FUTEX_REQUEUE): Remove.
6690         (__ASSUME_STATFS64): Define unconditionally.
6691         (__ASSUME_AT_SECURE): Likewise.
6692         (__ASSUME_CORRECT_SI_PID): Likewise.
6693         (__ASSUME_TGKILL): Define without depending on kernel version for
6694         i386.
6695         (__ASSUME_UTIMES): Likewise.
6696         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
6697         kernel version.
6698         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
6699         (__ASSUME_TMPFS_NAME): Likewise.
6700         * README: Update reference to Linux kernel versions.
6702 2012-08-02  Marek Polacek  <polacek@redhat.com>
6704         [BZ# 14150]
6705         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
6706         libc_cv_asm_type_prefix with %.
6707         * configure: Regenerated.
6708         * include/libc-symbols.h: Remove comment about
6709         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
6710         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
6711         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
6712         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
6713         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
6714         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
6715         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
6716         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
6717         * elf/tst-unique2mod1.c: Likewise.
6718         * elf/tst-unique1mod2.c: Likewise.
6719         * elf/tst-unique1mod1.c: Likewise.
6720         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
6721         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
6722         Replace ASM_TYPE_DIRECTIVE with .type.
6723         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6724         * sysdeps/i386/sysdep.h: Likewise.
6725         * sysdeps/x86_64/sysdep.h: Likewise.
6726         * sysdeps/sh/sysdep.h: Likewise.
6727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
6728         Do not define ASM_TYPE_DIRECTIVE.
6729         * sysdeps/powerpc/sysdep.h: Likewise.
6730         * sysdeps/powerpc/powerpc32/sysdep.h:
6731         Replace ASM_TYPE_DIRECTIVE with .type.
6732         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6733         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6734         * sysdeps/i386/fpu/e_powf.S: Likewise.
6735         * sysdeps/i386/fpu/e_expl.S: Likewise.
6736         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6737         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6738         * sysdeps/i386/fpu/e_pow.S: Likewise.
6739         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
6740         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6741         * sysdeps/i386/fpu/s_expm1.S: Likewise.
6742         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
6743         * sysdeps/i386/fpu/e_log2.S: Likewise.
6744         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6745         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6746         * sysdeps/i386/fpu/e_powl.S: Likewise.
6747         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6748         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
6749         * sysdeps/i386/fpu/e_logl.S: Likewise.
6750         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
6751         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
6752         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
6753         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6754         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6755         * sysdeps/i386/fpu/e_log.S: Likewise.
6756         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6757         * sysdeps/i386/fpu/e_logf.S: Likewise.
6758         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6759         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6760         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
6761         * sysdeps/i386/fpu/e_log10.S: Likewise.
6762         * sysdeps/i386/fpu/s_frexp.S: Likewise.
6763         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6764         * sysdeps/i386/fpu/s_asinh.S: Likewise.
6765         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
6766         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6767         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
6768         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
6769         * sysdeps/i386/i686/strtok.S: Likewise.
6770         * sysdeps/i386/i386-mcount.S: Likewise.
6771         * sysdeps/i386/strtok.S: Likewise.
6772         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
6773         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6774         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6775         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6776         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
6777         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6778         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
6779         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
6780         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6781         * sysdeps/x86_64/_mcount.S: Likewise.
6782         * sysdeps/x86_64/strtok.S: Likewise.
6783         * sysdeps/sh/_mcount.S: Likewise.
6785 2012-08-01  Roland McGrath  <roland@hack.frob.com>
6787         * libio/iofopen.c: Include <fcntl.h>.
6788         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
6789         (_IO_fopen64, fopen64): Define as aliases.
6790         * libio/iofopen64.c: Include <fcntl.h>.
6791         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
6792         Conditionalize body on this.
6793         * sysdeps/wordsize-64/iofopen.c: File removed.
6794         * sysdeps/wordsize-64/iofopen64.c: File removed.
6796 2012-08-01  Marek Polacek  <polacek@redhat.com>
6798         * libc/Makeconfig: Use elf in place of binfmt-subdir.
6799         Use dlfcn directly instead of a variable.
6800         (binfmt-subdir): Do not define.
6801         (dlfcn): Likewise.
6803 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
6805         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
6806         Remove all definitions.
6807         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
6808         <kernel-features.h>.
6809         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
6810         (miss_F_GETOWN_EX): Remove all definitions.
6811         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
6812         macro definition.
6813         [!__ASSUME_FCNTL64]: Remove conditional code.
6814         [__ASSUME_FCNTL64]: Make code unconditional.
6815         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
6816         <kernel-features.h>.
6817         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
6818         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
6819         (lockf64) [__NR_fcntl64]: Make code unconditional.
6820         (lockf64) [__ASSUME_FCNTL64]: Likewise.
6822         * sysdeps/unix/sysv/linux/kernel-features.h
6823         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
6824         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
6825         Make code unconditional.
6826         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
6827         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
6828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
6829         [__NR_vfork]: Make code unconditional.
6830         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
6831         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
6832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
6833         [__NR_vfork]: Make code unconditional.
6834         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
6835         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
6837 2012-08-01  Roland McGrath  <roland@hack.frob.com>
6839         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
6840         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
6842         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
6843         Define mkstemp64 as an alias.
6844         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
6845         Define mkstemps64 as an alias.
6846         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
6847         Define mkostemp64 as an alias.
6848         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
6849         Define mkostemps64 as an alias.
6850         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
6851         Conditionalize body on this.
6852         * misc/mkostemp64.c: Likewise.
6853         * misc/mkostemps64.c: Likewise.
6854         * misc/mkstemps64.c: Likewise.
6855         * sysdeps/wordsize-64/mkstemp64.c: File removed.
6856         * sysdeps/wordsize-64/mkostemp64.c: File removed.
6857         * sysdeps/wordsize-64/mkostemp.c: File removed.
6858         * sysdeps/wordsize-64/mkstemp.c: File removed.
6859         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
6860         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
6861         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
6862         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
6864         [BZ #14138]
6865         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
6866         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
6867         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
6868         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
6870         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
6871         compat_symbol macros from <shlib-compat.h> rather than the underlying
6872         default_symbol_version and symbol_version macros, so that DEFAULT
6873         lines in shlib-versions are respected.
6874         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
6876 2012-08-01  Florian Weimer  <fweimer@redhat.com>
6878         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
6879         Declare with warn_unused_result.
6880         (setgid, setregid, setegid, setresgid): Likewise.
6881         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
6882         Likewise.
6883         * WUR-REPORT: Remove set*id functions.
6885 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
6887         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
6889 2012-07-31  Roland McGrath  <roland@hack.frob.com>
6891         * include/sys/socket.h (__libc_accept, __libc_accept4):
6892         Add attribute_hidden.
6893         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
6895         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
6896         use of PTR_MANGLE.
6897         * inet/getnetgrent_r.c (setup): Likewise.
6899         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
6901 2012-07-31  David S. Miller  <davem@davemloft.net>
6903         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6905 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
6907         [BZ #13629]
6908         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
6909         value between 1.0 and 2.0 and smaller part has absolute value less
6910         than 1.0.
6911         * math/s_clog10.c (__clog10): Likewise.
6912         * math/s_clog10f.c (__clog10f): Likewise.
6913         * math/s_clog10l.c (__clog10l): Likewise.
6914         * math/s_clogf.c (__clogf): Likewise.
6915         * math/s_clogl.c (__clogl): Likewise.
6916         * math/libm-test.inc (clog_test): Add more tests.
6917         (clog10_test): Likewise.
6918         * sysdeps/i386/fpu/libm-test-ulps: Update.
6919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6921 2012-07-31  Florian Weimer  <fweimer@redhat.com>
6923         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
6924         Exit with zero in case no suitable GID is found, and write a
6925         message to standard error.
6927 2012-07-30  Roland McGrath  <roland@hack.frob.com>
6929         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
6930         rather than to 1.
6931         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
6932         (MAXPATHLEN): Removed.
6933         (NOGROUP, NODEV): New macros.
6934         (setbit, clrbit, isset, isclr): New macros.
6935         (howmany, roundup, powerof2): New macros.
6936         (DEV_BSIZE): New macro.
6938         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
6939         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
6941         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
6942         definition on [!__NO_LONG_DOUBLE_MATH].
6944         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
6945         PTR_MANGLE and PTR_DEMANGLE.
6947         * socket/accept4.c (accept4): Rename to __libc_accept4.
6948         Define accept4 as a weak alias.
6950         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
6951         on [_DIRENT_HAVE_D_TYPE].
6952         * io/ftw.c (ftw_dir): Likewise.
6954         * io/xmknod.c (__xmknod): Don't check PATH for being null.
6956         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
6958         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
6959         Use the BSD numbers rather than the arbitrary ones we had.
6960         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
6961         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
6962         (SIGXCPU, SIGXFSZ): New macros.
6963         (_NSIG): Now 32.
6965         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
6966         initializer on [_LIBC_REENTRANT].
6968         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
6969         definitions inside [_POSIX_MAPPED_FILES].
6971         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
6973         * dirent/opendir.c: Include <fcntl.h>.
6975         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
6976         (__libc_getspecific): Likewise.
6977         (__libc_key_create): Likewise.
6979         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
6980         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
6981         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
6982         (tmpfile64): Define as alias.
6983         * sysdeps/wordsize-64/tmpfile.c: File removed.
6984         * sysdeps/wordsize-64/tmpfile64.c: File removed.
6985         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
6986         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
6988         * stdio-common/vfscanf.c: Include <stdbool.h>.
6989         * nss/makedb.c: Likewise.
6990         * stdio-common/_i18n_number.h: Likewise.
6991         * argp/argp-help.c: Likewise.
6992         * posix/wordexp.c: Likewise.
6993         * sysdeps/posix/spawni.c: Likewise.
6994         * nss/nss_files/files-initgroups.c: Likewise.
6995         * stdio-common/reg-modifier.c: Include <stdlib.h>.
6996         * nss/nss_files/files-initgroups.c: Likewise.
6997         * nss/nss_db/db-netgrp.c: Likewise.
6998         * nss/nss_db/db-initgroups.c: Likewise.
6999         * io/fchmodat.c: Include <sys/stat.h>.
7001         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
7002         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
7004         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
7005         [HAVE_MMAP].
7007         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
7008         Add multiple inclusion protection.
7010 2012-07-27  David S. Miller  <davem@davemloft.net>
7012         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7014 2012-07-27  Gary Benson  <gbenson@redhat.com>
7016         [BZ #14298]
7017         * elf/rtld.c: Include <stap-probe.h>.
7018         (dl_main): Added static probes "init_start" and "init_complete".
7019         * elf/dl-load.c: Include <stap-probe.h>.
7020         (lose): Take new parameter "nsid".
7021         Added static probe "map_failed".
7022         (_dl_map_object_from_fd): Pass namespace id to lose.
7023         Added static probe "map_start".
7024         (open_verify): Pass namespace id to lose.
7025         * elf/dl-open.c: Include <stap-probe.h>.
7026         (dl_open_worker) Added static probes "map_complete", "reloc_start"
7027         and "reloc_complete".
7028         * elf/dl-close.c: Include <stap-probe.h>.
7029         (_dl_close_worker): Added static probes "unmap_start" and
7030         "unmap_complete".
7031         * elf/rtld-debugger-interface.txt: New file documenting the above.
7033 2012-07-26  Roland McGrath  <roland@hack.frob.com>
7035         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
7036         rather than a string variable.
7037         * sunrpc/rpc_main.c (h_output): Likewise.
7038         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
7040 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
7042         * inet/check_native.c: New file.
7044 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
7046         [BZ #13629]
7047         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
7048         if larger part has absolute value 1.0.
7049         * math/s_clog10.c (__clog10): Likewise.
7050         * math/s_clog10f.c (__clog10f): Likewise.
7051         * math/s_clog10l.c (__clog10l): Likewise.
7052         * math/s_clogf.c (__clogf): Likewise.
7053         * math/s_clogl.c (__clogl): Likewise.
7054         * math/libm-test.inc (clog_test): Add more tests.
7055         (clog10_test): Likewise.
7056         * sysdeps/i386/fpu/libm-test-ulps: Update.
7057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7059         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
7060         (pltexit): Likewise.
7061         (La_regs): Likewise.
7062         (La_retval): Likewise.
7063         (int_retval): Likewise.
7064         Update #error for removed macros to refer only to definitions in
7065         tst-audit.h.
7066         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
7067         macro.
7068         (pltexit): Likewise.
7069         (La_regs): Likewise.
7070         (La_retval): Likewise.
7071         (int_retval): Likewise.
7072         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
7073         macro.
7074         (pltexit): Likewise.
7075         (La_regs): Likewise.
7076         (La_retval): Likewise.
7077         (int_retval): Likewise.
7078         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
7079         macro.
7080         (pltexit): Likewise.
7081         (La_regs): Likewise.
7082         (La_retval): Likewise.
7083         (int_retval): Likewise.
7084         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
7085         macro.
7086         (pltexit): Likewise.
7087         (La_regs): Likewise.
7088         (La_retval): Likewise.
7089         (int_retval): Likewise.
7090         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
7091         macro.
7092         (pltexit): Likewise.
7093         (La_regs): Likewise.
7094         (La_retval): Likewise.
7095         (int_retval): Likewise.
7096         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
7097         macro.
7098         (pltexit): Likewise.
7099         (La_regs): Likewise.
7100         (La_retval): Likewise.
7101         (int_retval): Likewise.
7102         * sysdeps/generic/tst-audit.h: Update comment to refer only to
7103         macro definitions in tst-audit.h.
7104         * sysdeps/i386/tst-audit.h: New file.
7105         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
7106         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
7107         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
7108         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
7109         * sysdeps/sh/tst-audit.h: Likewise.
7110         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
7111         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
7112         * sysdeps/x86_64/tst-audit.h: Likewise.
7114 2012-07-26  Andreas Jaeger  <aj@suse.de>
7116         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
7117         ptrace.
7119         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
7120         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
7121         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
7122         PTRACE_O_MASK.
7123         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
7124         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
7125         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
7127         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
7128         value.
7130         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
7131         _sigsys.
7132         (si_call_addr, si_syscall, si_arch): Define new macro.
7133         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
7134         _sigsys.
7135         (si_call_addr, si_syscall, si_arch): Define new marcro.
7136         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
7137         _sigsys.
7138         (si_call_addr, si_syscall, si_arch): Define new macro.
7139         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
7140         _sigsys.
7141         (si_call_addr, si_syscall, si_arch): Define new macro.
7143 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
7145         [BZ #13717]
7146         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
7147         Change to 2.4.21 where previously 2.4.1.
7148         * sysdeps/unix/sysv/linux/configure: Regenerated.
7149         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
7150         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
7151         Linux kernel version.
7152         (__ASSUME_STD_AUXV): Remove.
7153         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
7154         kernel version.
7155         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
7156         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
7157         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
7158         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
7159         (__ASSUME_NETLINK_SUPPORT): Likewise.
7160         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
7161         (__no_netlink_support): Remove conditional definition.
7162         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
7163         Remove.
7164         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
7165         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
7166         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
7167         (if_nameindex_ioctl): Remove.
7168         (if_nameindex_netlink): Do not handle __no_netlink_support.
7169         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
7170         code.
7171         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
7172         Remove conditional code.
7173         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
7174         code.
7175         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
7176         unconditional.
7177         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
7178         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
7179         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
7180         Remove.
7181         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7182         [!__ASSUME_STD_AUXV]: Remove conditional code.
7183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
7184         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
7185         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
7186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
7187         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
7188         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
7189         code.
7190         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
7191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
7192         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
7193         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
7194         conditional code.
7195         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
7196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
7197         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
7198         code.
7199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
7200         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
7201         conditional code.
7202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
7203         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
7204         code unconditional.
7205         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
7206         conditional code.
7207         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
7208         unconditional.
7209         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
7210         conditional code.
7211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
7212         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
7213         unconditional.
7214         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
7215         conditional code.
7216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
7217         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
7218         code unconditional.
7219         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
7220         conditional code.
7221         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
7222         unconditional.
7223         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
7224         conditional code.
7225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
7226         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
7227         code unconditional.
7228         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
7229         conditional code.
7230         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
7231         unconditional.
7232         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
7233         conditional code.
7235 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
7237         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
7238         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
7239         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
7240         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
7241         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
7242         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7243         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
7244         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
7245         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
7246         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7247         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
7248         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7249         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
7250         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7251         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7252         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
7253         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
7254         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
7255         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
7256         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
7257         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
7258         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7259         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7261 2012-07-25  Florian Weimer  <fweimer@redhat.com>
7263         * Versions.def: Add GLIBC_2.17.
7264         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
7265         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
7266         Introduce __libc_secure_getenv.
7267         * stdlib/Versions (2.17): Add secure_getenv
7268         (GLIBC_PRIVATE): Add __libc_secure_getenv.
7269         * stdlib/secure-getenv.c: Rename __secure_getenv to
7270         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
7271         symbol __secure_getenv for GLIBC_2.0.
7272         * stdlib/tst-secure-getenv.c: New.
7273         * stdlib/Makefile (tests): Add testcase.
7274         * manual/startup.texi (Environment Access): Document
7275         secure_getenv.
7276         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
7277         __libc_secure_getenv.
7278         * inet/ruserpass.c (ruserpass): Likewise.
7279         * malloc/mtrace.c (mtrace): Likewise.
7280         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
7281         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
7282         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
7283         * sysdeps/posix/tempname.c: Likewise.  Evaluate
7284         HAVE_SECURE_GETENV.
7285         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
7286         __secure_getenv to __libc_secure_getenv.
7287         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
7288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7289         Likewise.
7290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7291         Likewise.
7292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
7293         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
7294         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
7295         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
7296         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
7297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
7298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
7300 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
7302         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
7303         (struct La_i86_retval): Likewise.
7304         (struct La_x86_64_regs): Likewise.
7305         (struct La_x86_64_retval): Likewise.
7306         (struct La_x32_regs): Likewise.
7307         (struct La_x32_retval): Likewise.
7308         (struct La_ppc32_regs): Likewise.
7309         (struct La_ppc32_retval): Likewise.
7310         (struct La_ppc64_regs): Likewise.
7311         (struct La_ppc64_retval): Likewise.
7312         (struct La_sh_regs): Likewise.
7313         (struct La_sh_retval): Likewise.
7314         (struct La_s390_32_regs): Likewise.
7315         (struct La_s390_32_retval): Likewise.
7316         (struct La_s390_64_regs): Likewise.
7317         (struct La_s390_64_retval): Likewise.
7318         (struct La_sparc32_regs): Likewise.
7319         (struct La_sparc32_retval): Likewise.
7320         (struct La_sparc64_regs): Likewise.
7321         (struct La_sparc64_retval): Likewise.
7322         (struct audit_ifaces): Remove architecture-specific pltenter and
7323         pltexit members.
7324         * sysdeps/i386/ldsodefs.h: New file.
7325         * sysdeps/powerpc/ldsodefs.h: Likewise.
7326         * sysdeps/s390/ldsodefs.h: Likewise.
7327         * sysdeps/sh/ldsodefs.h: Likewise.
7328         * sysdeps/sparc/ldsodefs.h: Likewise.
7329         * sysdeps/x86_64/ldsodefs.h: Likewise.
7331 2012-07-25  Marek Polacek  <polacek@redhat.com>
7333         [BZ #6808]
7334         * math/libm-test.inc (yn_test): Add another test.
7335         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
7336         to ERANGE when the result is +-Inf.
7337         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
7338         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
7339         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
7340         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
7342 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
7344         * conform/data/time.h-data (NULL): Use macro-constant.  Require
7345         equal to 0.
7346         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
7347         clock_t.
7348         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
7350 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
7352         * configure.in <sysdeps resolving>: Correct printing
7353         Implies_before.
7354         * configure: Regenerate.
7356 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
7358         * math/w_ilogb.c: Include <limits.h>.
7359         * math/w_ilogbl.c: Likewise.
7361 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
7363         * manual/lang.texi (__va_copy): Document primarily as ISO C99
7364         va_copy.  Document allowing for unavailable va_copy only as
7365         pre-C99 compatibility.
7366         * manual/string.texi (Copying and Concatenation): Use va_copy
7367         instead of __va_copy in concat example.
7369 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
7371         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
7372         (__sendto): Use create_address_port.  Initialize APORT and deallocate
7373         it if not null.
7375         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
7376         with O_NOLINK passed to __file_name_lookup.
7378         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
7379         with O_NOLINK passed to __file_name_lookup.
7381         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
7382         negative N or less than NGIDS.
7384         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
7385         type to string_t.  Set ERANGE as errno and return it if NAME is not big
7386         enough.  Use memcpy instead of strncpy.
7388 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
7390         * elf/Makefile (check-data): Remove.
7391         (localplt.data): New vpath directive.
7392         ($(objpfx)check-localplt.out): Use localplt.data from vpath
7393         instead of $(check-data).
7394         * scripts/data/localplt-generic.data: Move to ...
7395         * sysdeps/generic/localplt.data: ... here.
7396         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
7397         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
7398         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
7399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
7400         ... here.
7401         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
7402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
7403         ... here.
7404         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
7405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
7406         ... here.
7407         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
7408         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
7409         ... here.
7410         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
7411         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
7412         ... here.
7413         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
7414         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
7415         ... here.
7417 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7419         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
7420         PPC32 and PPC64 files.
7421         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
7422         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
7424 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7426         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
7427         __makecontext_ret to ...
7428         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
7429         ... here and call exit if uc_link is NULL.  New file.
7430         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
7431         __makecontext_ret.S.
7432         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
7433         __makecontext_ret to ...
7434         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
7435         ... here and call exit if uc_link is NULL.  New file.
7436         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
7437         __makecontext_ret.S.
7439 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7441         * elf/elf.h (R_390_IRELATIVE): New definition.
7442         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
7443         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
7444         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
7445         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
7446         (elf_machine_lazy_rel): Likewise.
7447         * sysdeps/s390/dl-irel.h: New file.
7448         * sysdeps/s390/s390-64/memcpy.S: New asm code.
7449         * sysdeps/s390/s390-64/memset.S: New asm code.
7450         * sysdeps/s390/s390-64/memcmp.S: New asm code.
7451         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
7452         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
7453         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
7454         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
7455         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
7456         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
7457         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
7458         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
7459         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
7460         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
7461         * sysdeps/s390/s390-32/memcpy.S: New asm code.
7462         * sysdeps/s390/s390-32/memset.S: New asm code.
7463         * sysdeps/s390/s390-32/memcmp.S: New asm code.
7465 2012-07-17  Marek Polacek  <polacek@redhat.com>
7467         [BZ #14349]
7468         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
7469         * sysdeps/s390/s390-64/configure.in: Likewise.
7470         * sysdeps/sparc/configure.in: Likewise.
7471         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
7472         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
7473         * sysdeps/i386/configure.in: Likewise.
7474         * sysdeps/x86_64/configure.in: Likewise.
7475         * sysdeps/sh/configure.in: Likewise.
7476         * sysdeps/s390/s390-32/configure: Regenerated.
7477         * sysdeps/s390/s390-64/configure: Likewise.
7478         * sysdeps/x86_64/configure: Likewise.
7479         * sysdeps/sh/configure: Likewise.
7480         * sysdeps/powerpc/powerpc64/configure: Likewise.
7481         * sysdeps/powerpc/powerpc32/configure: Likewise.
7482         * sysdeps/sparc/configure: Likwise.
7483         * sysdeps/i386/configure: Likewise.
7485         * elf/dl-open.c: Comment fixes.
7487 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
7489         * Makefile [CXX] (check-data): Remove.
7490         [CXX] (c++-types.data): New vpath directive.
7491         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
7492         vpath.  Do not allow for C++ type data being missing.
7493         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
7494         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
7495         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
7496         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
7497         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
7498         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
7499         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
7500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
7501         ... here.
7502         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
7503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
7504         ... here.
7505         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
7506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
7507         ... here.
7508         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
7509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
7510         ... here.
7511         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
7512         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
7513         ... here.
7514         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
7515         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
7516         ... here.
7517         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
7518         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
7519         ... here.
7520         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
7521         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
7523         * elf/tls-macros.h (TLS_LE): Move architecture-specific
7524         definitions to architecture-specific files.
7525         (TLS_IE): Likewise.
7526         (TLS_LD): Likewise.
7527         (TLS_GD): Likewise.
7528         * sysdeps/i386/tls-macros.h: New file.
7529         * sysdeps/powerpc/tls-macros.h: Likewise.
7530         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7531         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7532         * sysdeps/sh/tls-macros.h: Likewise.
7533         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
7534         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
7535         * sysdeps/x86_64/tls-macros.h: Likewise.
7537 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
7539         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
7540         zero value for regular exit case.
7542         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
7543         (__start_context): Preserve zero value for regular exit case.
7545 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
7546             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7548         * manual/setjmp.texi (setcontext): Clarify normal process
7549         termination when uc_link is the null pointer.
7550         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
7551         exit call.
7553 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
7555         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
7556         preprocessor.  Test for each exception mask separately.
7558 2012-07-16  Andreas Jaeger  <aj@suse.de>
7560         * po/ru.po: Update from translation team.
7562 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
7564         * conform/data/string.h-data (NULL): Use macro-constant.  Require
7565         equal to 0.
7566         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
7567         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
7568         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
7569         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
7570         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7572 2012-07-13  Andreas Jaeger  <aj@suse.de>
7574         * po/fr.po: Update from translation team.
7576 2012-07-12  Marek Polacek  <polacek@redhat.com>
7578         [BZ #14173]
7579         * math/libm-test.inc (yn_test): Add test for BZ #14173.
7580         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
7581         loop condition.
7583 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
7585         [BZ #13717]
7586         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
7587         Change to 2.4.1 where previously 2.4.0.
7588         * sysdeps/unix/sysv/linux/configure: Regenerated.
7589         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
7590         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
7591         version.
7592         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
7593         (__ASSUME_AT_CLKTCK): Remove.
7594         (__ASSUME_AT_PAGESIZE): Likewise.
7595         (__ASSUME_AT_XID): Likewise.
7596         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
7597         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
7598         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
7599         unconditionally.
7600         (HAVE_AUX_PAGESIZE): Likewise.
7601         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
7602         [__ASSUME_AT_CLKTCK]: Make code unconditional.
7603         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
7605 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
7607         [BZ #14307]
7608         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
7609         the temporary buffer used to invoke __gethostbyname2_r,
7610         __gethostbyaddr_r and gethostbyname4_r to make room for struct
7611         host_data / struct gaih_addrtuple.
7612         * resolv/nss_dns/dns-host.c (global scope): Move definition of
7613         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
7614         header file nss/nsswitch.h.
7615         * nss/nsswitch.h (global scope): Add definition of implementation
7616         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
7617         resolv/nss_dns/dns-host.c).
7619 2012-07-11  Andreas Jaeger  <aj@suse.de>
7621         * po/fr.po: Update from translation team.
7623         * po/sv.po: Update from translation team
7624         * po/fr.po: Another update from translation team.
7626 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7628         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
7629         for subnormals or multiply small sinh result by itself.
7630         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
7631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7633 2012-07-11  David S. Miller  <davem@davemloft.net>
7635         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7637 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
7639         [BZ #14347]
7640         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
7641         (INTERNAL_MARK): Shift it here.
7643 2012-07-10  Marek Polacek  <polacek@redhat.com>
7645         [BZ #14151]
7646         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
7647         libc_cv_asm_global_directive with .globl.
7648         * configure: Regenerated.
7649         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
7650         with .globl.
7651         * sysdeps/i386/configure: Regenerated.
7652         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
7653         with .globl.
7654         * sysdeps/x86_64/configure: Regenerated.
7655         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
7656         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
7657         * elf/tst-unique2mod2.c: Likewise.
7658         * elf/tst-unique2mod1.c: Likewise.
7659         * elf/tst-unique1mod2.c: Likewise.
7660         * elf/tst-unique1mod1.c: Likewise.
7661         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7662         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
7663         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7664         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7665         * sysdeps/mach/sysdep.h: Likewise.
7666         * sysdeps/i386/sysdep.h: Likewise.
7667         * sysdeps/i386/i386-mcount.S: Likewise.
7668         * sysdeps/x86_64/_mcount.S: Likewise.
7669         * sysdeps/x86_64/sysdep.h: Likewise.
7670         * sysdeps/sh/_mcount.S: Likewise.
7671         * sysdeps/sh/sysdep.h: Likewise.
7672         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
7673         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
7674         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
7675         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7676         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
7677         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
7678         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
7679         * locale/localeinfo.h: Likewise.
7680         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
7681         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
7683 2012-07-09  Roland McGrath  <roland@hack.frob.com>
7685         [BZ #14336]
7686         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
7687         system".
7688         * manual/message.texi (The Uniforum approach): Likewise.
7689         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
7690         (glibc iconv Implementation): Likewise.
7692 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
7694         [BZ #14337]
7695         * math/s_clog.c (__clog): Avoid scaling a value down where that
7696         could result in underflow.
7697         * math/s_clog10.c (__clog10): Likewise.
7698         * math/s_clog10f.c (__clog10f): Likewise.
7699         * math/s_clog10l.c (__clog10l): Likewise.
7700         * math/s_clogf.c (__clogf): Likewise.
7701         * math/s_clogl.c (__clogl): Likewise.
7702         * math/libm-test.inc (clog_test): Add more tests.
7703         (clog10_test): Likewise.
7704         * sysdeps/i386/fpu/libm-test-ulps: Update.
7705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7707 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
7709         [BZ #14283]
7710         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
7711         by 7 not 8 to examine high bit of fractional part.
7713         [BZ #14042]
7714         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
7715         for call to __mcount_internal.
7716         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
7717         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
7718         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
7720 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
7722         [BZ #14154]
7723         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
7724         approximation for values within 0x1p-13f of an odd multiple of
7725         pi/4.
7726         * math/libm-test.inc (tan_test): Do not allow spurious underflow
7727         exception.  Add more tests.
7728         * sysdeps/i386/fpu/libm-test-ulps: Update.
7730         [BZ #6778]
7731         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
7732         inputs and return -1 for them.  Do not check for +Inf in case not
7733         reachable for +Inf.
7734         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
7735         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
7736         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
7737         and return -1 for them.  Do not check for +Inf in case not
7738         reachable for +Inf.
7739         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
7740         define.
7741         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
7742         and return -1 for them.  Do not check for +Inf in case not
7743         reachable for +Inf.
7744         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
7745         spurious underflow.
7746         * sysdeps/i386/fpu/libm-test-ulps: Update.
7747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7749 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
7751         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
7753 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
7755         [BZ #14157]
7756         [BZ #14331]
7757         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
7758         could result in spurious underflow.  Scale down values above
7759         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
7760         * math/s_csqrtf.c (__csqrtf): Likewise.
7761         * math/s_csqrtl.c (__csqrtl): Likewise.
7762         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
7763         spurious underflow.
7764         * sysdeps/i386/fpu/libm-test-ulps: Update.
7765         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7767 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
7769         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
7770         xopen-msg.sed.
7771         * catgets/xopen-msg.awk: New file.
7772         * catgets/xopen-msg.sed: Removed.
7774         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
7775         po2text.sed.
7776         * intl/po2test.awk: New file.
7777         * intl/po2test.sed: Removed.
7779 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
7781         [BZ #14328]
7782         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
7783         or multiply small sinh result by itself.
7784         * math/s_ctanf.c (__ctanf): Likewise.
7785         * math/s_ctanh.c (__ctanh): Likewise.
7786         * math/s_ctanhf.c (__ctanhf): Likewise.
7787         * math/s_ctanhl.c (__ctanhl): Likewise.
7788         * math/s_ctanl.c (__ctanl): Likewise.
7789         * math/libm-test.inc (ctan_test_tonearest): New function.
7790         (ctan_test_towardzero): Likewise.
7791         (ctan_test_downward): Likewise.
7792         (ctan_test_upward): Likewise.
7793         (ctanh_test_tonearest): Likewise.
7794         (ctanh_test_towardzero): Likewise.
7795         (ctanh_test_downward): Likewise.
7796         (ctanh_test_upward): Likewise.
7797         (main): Call these new functions.
7798         * sysdeps/i386/fpu/libm-test-ulps: Update.
7799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7801 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
7803         * .gitignore: Delete /ports entry.
7805 2012-07-03  Andreas Jaeger  <aj@suse.de>
7807         * po/bg.po: Update from translation team.
7808         * po/cs.po: Likewise.
7809         * po/de.po: Likewise.
7810         * po/hr.po: Likewise.
7811         * po/nl.pl: Likewise.
7812         * po/pl.po: Likewise.
7813         * po/vi.po: Likewise.
7815 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
7817         * Makeconfig [!+link] (+link-before-libc): New variable.
7818         [!+link] (+link-after-libc): Likewise.
7819         [!+link] (+link-tests): Likewise.
7820         [!+link] (+link): Define in terms of $(+link-before-libc) and
7821         $(+link-after-libc).
7822         [!+link-static] (+link-static-before-libc): New variable.
7823         [!+link-static] (+link-static-after-libc): Likewise.
7824         [!+link-static] (+link-static-tests): Likewise.
7825         [!+link-static] (+link-static): Define in terms of
7826         $(+link-static-before-libc) and $(+link-static-after-libc).
7827         [build-shared] (link-libc-before-gnulib): New variable.
7828         [build-shared] (link-libc-tests): Likewise.
7829         [build-shared] (link-libc): Define in terms of
7830         $(link-libc-before-gnulib).
7831         [!build-shared] (link-libc-tests): New variable.
7832         (link-libc-static-tests): New variable.
7833         [!gnulib] (gnulib-arch): New variable.
7834         [!gnulib] (gnulib-tests): Likewise.
7835         [!gnulib] (static-gnulib-arch): Likewise.
7836         [!gnulib] (static-gnulib-tests): Likewise.
7837         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
7838         Define with "=" instead of ":=".
7839         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
7840         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
7841         * Rules (binaries-all-notests): New variable.
7842         (binaries-all-tests): Likewise.
7843         (binaries-static-notests): Likewise.
7844         (binaries-static-tests): Likewise.
7845         (binaries-all): Define using $(binaries-all-notests) and
7846         $(binaries-all-tests).
7847         (binaries-static): Define using $(binaries-static-notests) and
7848         $(binaries-static-tests).
7849         (binaries-shared-tests): New variable.
7850         (binaries-shared-notests): Likewise.
7851         (binaries-shared): Remove variable.
7852         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
7853         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
7854         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
7855         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
7856         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
7857         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
7858         * elf/Makefile (sln-modules): New variable.
7859         (extra-objs): Add $(sln-modules:=.o).
7860         (ldconfig-modules): Add static-stubs.
7861         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
7862         * elf/static-stubs.c: New file.
7864         [BZ #14283]
7865         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
7866         by 7 not 8 to examine high bit of fractional part.  Use volatile
7867         variables when splitting into final array of floats if
7868         __FLT_EVAL_METHOD__ != 0.
7869         * math/libm-test.inc (cos_test): Add another test.
7870         (sin_test): Likewise.
7871         * sysdeps/i386/fpu/libm-test-ulps: Update.
7873         [BZ #14273]
7874         * math/libm-test.inc (cosh_test): Add more tests.
7876         * version.h (RELEASE): Set to "development".
7877         (VERSION): Set to "2.16.90".
7879 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
7881         * NEWS: Update copyright. Remove last-updated date.
7882         Mention math library bug fixes and timezone data changes.
7883         * README: Mention GNU/Hurd, x32, and HPPA support status.
7885 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
7887         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
7889 2012-06-27  Andreas Jaeger  <aj@suse.de>
7891         * manual/contrib.texi (Contributors): Add Samuel Thibault.
7893 2012-06-25  Andreas Jaeger  <aj@suse.de>
7895         * sysdeps/s390/fpu/libm-test-ulps: Update.
7897 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
7898             Thomas Schwinge  <thomas@codesourcery.com>
7900         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
7901         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
7902         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
7903         fanotify_mark.
7905 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
7907         * sysdeps/mach/start.c: Remove file.
7908         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
7909         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
7910         * sysdeps/sh/init-first.c: Likewise.
7912         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
7913         registers for frame unwinding purposes, add CFI directives.
7914         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
7915         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
7916         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7917         Likewise.
7919         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
7920         __fortify_fail returning.
7921         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
7923         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
7924         sysdeps/sh/____longjmp_chk.S.
7925         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
7926         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
7927         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
7928         (gen-as-const-headers): Append sigaltstack-offsets.sym.
7930         * sysdeps/sh/abort-instr.h: New file.
7931         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
7932         process in case exit returns.
7934         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
7935         initialize the GOT register before use.
7937         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
7938         calculation of ARGC > 4.
7940         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
7941         meaningful names to some local labels.
7943 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7944             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7946         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
7947         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
7948         (__arch_compare_and_exchange_val_16_acq): Likewise.
7949         (__arch_compare_and_exchange_val_32_acq): Likewise.
7950         (atomic_exchange_and_add): Fix gUSA sequence.
7951         (atomic_add): Likewise.
7952         (atomic_add_negative): Likewise.
7953         (atomic_add_zero): Likewise.
7954         (atomic_bit_test_set): Likewise.
7956 2012-06-22  Andreas Schwab  <schwab@redhat.com>
7958         [BZ #13579]
7959         * include/link.h (struct link_map): Add l_free_initfini.
7960         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
7961         l_initfini.
7962         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
7963         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
7964         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
7965         set.
7967 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
7969         * configure.in: Use AC_LANG_SOURCE.
7970         * configure: Regenerate.
7972 2012-06-22  Roland McGrath  <roland@hack.frob.com>
7974         * configure.in (libc_cv_localstatedir): New substituted variable.
7975         * configure: Regenerated.
7976         * config.make.in (localstatedir): New variable, substituted from
7977         libc_cv_localstatedir.
7978         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
7979         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
7980         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
7981         * sysdeps/gnu/configure: Regenerated.
7983 2012-06-21  Jeff Law  <law@redhat.com>
7985         [BZ #14277]
7986         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
7987         free.  Simplify list management for _LIBC case.
7989 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
7991         [BZ #14273]
7992         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
7993         Clear sign bit of 64-bit integer value before comparing against
7994         overflow value.
7996         * sysdeps/mach/configure: Regenerated.
7998 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8000         [BZ #14278]
8001         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
8003 2012-06-21  Jeff Law  <law@redhat.com>
8005         [BZ #13882]
8006         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
8007         uint16_t for elements in the "seen" array to avoid char overflows.
8008         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8009         * elf/dl-open.c (dl_open_worker): Likewise.
8011 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
8013         * scripts/list-sources.sh: Scan PORTS for translations.
8014         * po/libc.pot: Regenerated.
8016 2012-06-21  Andreas Jaeger  <aj@suse.de>
8018         [BZ #12194]
8019         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
8020         warning.
8021         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
8022         * bits/byteswap-16.h (__bswap_16): Likewise.
8023         * bits/byteswap.h (__bswap_constant_16): Likewise.
8025 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8027         [BZ #14117]
8028         * sysdeps/i386/fpu_control.h: Removed.
8029         * sysdeps/x86_64/fpu_control.h: Moved to ...
8030         * sysdeps/x86/fpu_control.h: Here.
8032         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
8033         (_FPU_SETCW): Likewise.
8035 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
8037         [BZ #14117]
8038         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
8039         * sysdeps/x86/fpu/bits/mathinline.h: This.
8040         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
8042         [BZ #14050]
8043         [BZ #14117]
8044         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
8045         functions if __x86_64__ is defined.
8047 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
8049         * string/endian.h: Add !__ASSEMBLER__ condition for including
8050         conversion interfaces.
8052 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
8054         [BZ #14241]
8055         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
8056         of ABS(x) in calculating zero to negative powers other than odd
8057         integers.
8058         * math/libm-test.inc (pow_test): Add more tests.
8060 2012-06-15  Andreas Jaeger  <aj@suse.de>
8062         * manual/contrib.texi (Contributors): Update entry of Liubov
8063         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
8064         Machado Filho.
8066 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
8068         * string/string.h: Add __wur to GNU version of strerror_r.
8070 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
8072         [BZ #14229]
8073         * string/Makefile (tests): Add tst-strtok_r.
8074         * string/tst-strtok_r.c: New file.
8075         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
8076         RAX_LP/RDX_LP on SAVE_PTR.
8078 2012-06-14  Roland McGrath  <roland@hack.frob.com>
8080         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
8082 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
8084         * libm_test.inc (csqrt_test): Allow more spurious underflow
8085         exceptions.
8086         (j0_test): Likewise.
8087         (j1_test): Likewise.
8088         (y0_test): Likewise.
8089         (y1_test): Likewise.
8091 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
8093         * po/Makefile (libc.pot): Use UTF-8 charset.
8095 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
8097         [BZ #14210]
8098         Suppress sign-conversion warning from FD_SET.
8099         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
8100         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
8101         not unsigned long int.
8102         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
8104 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
8106         [BZ #14050]
8107         [BZ #14117]
8108         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
8109         __extern_always_inline instead of __extern_inline.
8110         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
8111         (__signbit): Likewise.
8112         (__signbitl): Support C++ namespace.
8113         (lrintf): New inline function.
8114         (lrint): Likewise.
8115         (llrintf): Likewise.
8116         (llrint): Likewise.
8117         (fmaxf): Likewise.
8118         (fmax): Likewise.
8119         (fminf): Likewise.
8120         (fmin): Likewise.
8121         (rint): Likewise.
8122         (rintf): Likewise.
8123         (ceil): Likewise.
8124         (ceilf): Likewise.
8125         (floor): Likewise.
8126         (floorf): Likewise.
8127         (nearbyint): Likewise.
8128         (nearbyintf): Likewise.
8130 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
8132         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
8133         non-default versions.
8135 2012-06-11  Roland McGrath  <roland@hack.frob.com>
8137         [BZ #14218]
8138         * manual/argp.texi (Argp): Reword argp_parse description slightly.
8140 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
8142         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
8143         (FE_UPWARD, FE_DOWNWARD): Don't define.
8144         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
8145         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
8147         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
8148         reading it.
8149         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
8150         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
8152 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8154         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8155         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
8156         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
8157         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
8159 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
8161         [BZ #14117]
8162         * sysdeps/i386/fpu/bits/fenv.h: Removed.
8163         * sysdeps/i386/fpu/Implies: New file.
8164         * sysdeps/x86_64/fpu/Implies: Likewise.
8165         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
8166         * sysdeps/x86/fpu/bits/fenv.h: This.
8168         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
8169         __SSE_MATH__.
8171 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8173         [BZ #14134]
8174         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
8175         character 0xffff that matches the last element of the
8176         conversion table.
8178 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8180         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
8181         fmodl commit.
8183 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8185         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
8186         values higher than 25.6283.
8188 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8190         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
8191         subnormal exponent extraction and add some __builtin_expect.
8192         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
8193         Fix for subnormal mantissa calculation.
8195 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
8197         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
8198         cpu2 is -1 and errno is not ENOSYS.
8200 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
8202         [BZ #14117]
8203         * sysdeps/i386/i486/bits/string.h: Renamed to ...
8204         * sysdeps/x86/bits/string.h: This.
8205         * sysdeps/x86_64/bits/string.h: Removed.
8207         * sysdeps/i386/i486/bits/string.h: Define inline functions only
8208         if not compiling for x86-64, but compiling for >= i486.
8210         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
8211         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
8213         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
8214         New macro from Linux kernel 3.4.0.
8215         (FP_XSTATE_MAGIC2): Likewise.
8216         (FP_XSTATE_MAGIC2_SIZE): Likewise.
8217         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
8218         (struct _fpx_sw_bytes): New struct.
8219         (struct _xsave_hdr): Likewise.
8220         (struct _ymmh_state): Likewise.
8221         (struct _xstate): Likewise.
8223         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
8224         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
8225         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
8226         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
8227         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
8228         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
8230         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
8231         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
8232         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
8233         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
8234         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
8235         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
8237 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8239         [BZ #13743]
8240         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
8241         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
8242         (sysdep_headers): Include sys/platform/ppc.h.
8243         * sysdeps/powerpc/test-gettimebase.c: Test for
8244         __ppc_get_timebase() to catch future ISA opcode/insn changes.
8245         * manual/Makefile (appendices): Include platform.texi.
8246         * manual/contrib.texi (Contributors): Update @node pointers.
8247         * manual/maint.texi (Maintenance): Likewise.
8248         (Platform): New node.
8249         * manual/platform.texi: New file.  Document the new features.
8251 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
8252             Jakub Jelinek  <jakub@redhat.com>
8254         [BZ #14188]
8255         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
8256         where __builtin_expect is unavailable.
8258 2012-06-03  David S. Miller  <davem@davemloft.net>
8260         * stdlib/longlong.h: Updated from GCC.
8262 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
8264         [BZ #14042]
8265         * sysdeps/powerpc/powerpc32/mcount.c: New file.
8266         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
8267         __mcount_internal.
8268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
8269         (GLIBC_2.16): Likewise.
8271 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
8273         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
8275 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
8277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
8278         (default-abi): New variable.
8279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
8280         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
8281         variable.
8282         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
8283         Likewise.
8284         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
8285         Likewise.
8286         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
8287         Likewise.
8289         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
8290         definition.  Document in comment.
8292 2012-06-01  David S. Miller  <davem@davemloft.net>
8294         * stdlib/longlong.h: Updated from GCC.
8296 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
8298         [BZ #14117]
8299         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
8300         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
8301         sys/debugreg.h sys/io.h here.
8302         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
8303         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
8304         sys/io.h.
8305         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
8306         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
8307         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
8308         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
8309         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
8310         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
8312         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
8313         Define only if __x86_64__ is defined.
8315 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
8317         [BZ #14048]
8318         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
8319         Use int64_t for variable i.
8320         * math/libm-test.inc (fmod_test): Add more tests.
8322         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
8323         z computation is not scheduled after fetestexcept.
8324         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
8325         Use math_force_eval instead of asm to ensure calculation scheduled
8326         before exception test.
8327         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
8328         Ensure a1 + u.d computation is not scheduled after fetestexcept.
8330 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
8332         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
8333         computation is not scheduled after fetestexcept.
8335 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
8337         [BZ #14117]
8338         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
8339         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
8341 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8343         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
8344         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8346 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
8348         [BZ #14117]
8349         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
8350         <bits/wordsize.h>.
8351         (__WCHAR_MIN): Support __WORDSIZE == 64.
8352         (__WCHAR_MAX): Likewise.
8354         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
8355         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
8357         [BZ #14183]
8358         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
8359         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
8361         [BZ #14117]
8362         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
8363         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
8365         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
8366         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
8368         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
8369         Defined to 1 if __x86_64__ isn't defined.
8370         (_STAT_VER_LINUX_OLD): New.
8371         (st_atime): Remove duplicate.
8372         (st_mtime): Likewise.
8373         (st_ctime): Likewise.
8375 2012-05-31  David S. Miller  <davem@davemloft.net>
8377         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
8378         entries.
8380 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
8382         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
8383         gen-libm-test.pl.
8385         [BZ #14132]
8386         * elf/dl-reloc.c: Include <_itoa.h>.
8387         (_dl_reloc_bad_type): Remove use of INTUSE.
8388         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
8389         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
8390         * stdio-common/psiginfo.c (psiginfo): Likewise.
8391         * stdio-common/psignal.c (psignal): Likewise.
8392         * string/strsignal.c (strsignal): Likewise.
8393         * include/signal.h (_sys_siglist): Declare hidden proto.
8394         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
8395         INTVARDEF with libc_hidden_data_def.
8396         * stdio-common/itoa-udigits.c: Likewise.
8397         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
8398         (_itoa_lower_digits_internal): Remove declaration.
8399         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
8400         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
8401         (_sys_sigabbrev_internal): Remove aliases.
8402         (_sys_siglist): Define hidden alias.
8404 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
8406         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8407         bits/sysctl.h.
8409 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
8411         [BZ #14117]
8412         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
8413         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
8415         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
8416         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
8417         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
8418         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
8419         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
8420         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
8422         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
8423         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
8424         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
8426         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
8427         with __addr.
8428         (insw): Likewise.
8429         (insl): Likewise.
8430         (outsb): Likewise.
8431         (outsw): Likewise.
8432         (outsl): Likewise.
8434         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
8435         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
8436         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
8438         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
8439         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
8440         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
8441         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
8442         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
8443         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
8445         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
8446         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
8448         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
8449         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
8451         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
8452         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
8453         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
8455         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
8456         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
8457         to ...
8458         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
8460         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
8461         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
8462         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
8464         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
8465         for x86-64.
8466         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
8468 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
8470         * math/math.h (M_El): Use two more decimal places.
8471         (M_LOG2El): Likewise.
8472         (M_LOG10El): Likewise.
8473         (M_LN2l): Likewise.
8474         (M_LN10l): Likewise.
8475         (M_PIl): Likewise.
8476         (M_PI_2l): Likewise.
8477         (M_PI_4l): Likewise.
8478         (M_1_PIl): Likewise.
8479         (M_2_PIl): Likewise.
8480         (M_2_SQRTPIl): Likewise.
8481         (M_SQRT2l): Likewise.
8482         (M_SQRT1_2l): Likewise.
8484 2012-05-31  David S. Miller  <davem@davemloft.net>
8486         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
8487         values between float registers.
8488         * sysdeps/sparc/sparc64/memset.S: Likewise.
8489         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8491 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
8493         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
8494         -D_FORTIFY_SOURCE=1.
8495         (CPPFLAGS-tst-longjmp_chk.c): Define.
8496         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
8497         (CPPFLAGS-tst-longjmp_chk2.c): Define.
8498         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
8499         CFLAGS-tst-wchar-h.c.
8501 2012-05-31  Marek Polacek  <polacek@redhat.com>
8503         [BZ #14132]
8504         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
8505         __endmntent_internal): Remove declaration.
8506         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
8507         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
8508         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
8510 2012-05-30  David S. Miller  <davem@davemloft.net>
8512         * sysdeps/sparc/sparc32/soft-fp/q_util.c
8513         (___Q_simulate_exceptions): Use real FP ops rather than writing
8514         into the %fsr.
8515         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
8516         Likewise.
8518 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8520         [BZ #14117]
8521         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
8522         * sysdeps/x86/bits/xtitypes.h: This.
8524         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
8525         * sysdeps/x86/bits/wordsize.h: This.
8527         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
8528         * sysdeps/x86/bits/huge_vall.h: This.
8530         * sysdeps/i386/bits/select.h: Removed.
8531         * sysdeps/x86_64/bits/select.h: Renamed to ...
8532         * sysdeps/x86/bits/select.h: This.
8534         * sysdeps/i386/bits/setjmp.h: Removed.
8535         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
8536         * sysdeps/x86/bits/setjmp.h: This.
8538         * sysdeps/i386/bits/mathdef.h: Removed.
8539         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
8540         * sysdeps/x86/bits/mathdef.h: This.
8542 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
8544         [BZ #14132]
8545         * include/sys/socket.h (__connect_internal)
8546         (__libc_sa_len_internal): Remove declaration.
8547         (__connect, __libc_sa_len): Declare hidden_proto.
8548         (SA_LEN): Remove use of INTUSE.
8549         * socket/connect.c: Add libc_hidden_def.
8550         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
8551         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
8552         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
8553         alias.
8554         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8555         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8556         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
8557         of adding _internal alias.
8559 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8561         [BZ #14117]
8562         * sysdeps/i386/bits/link.h: Removed.
8563         * sysdeps/i386/bits/linkmap.h: Likewise.
8564         * sysdeps/x86_64/bits/link.h: Renamed to ...
8565         * sysdeps/x86/bits/link.h: This.
8566         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
8567         * sysdeps/x86/bits/linkmap.h: This.
8569         * sysdeps/i386/bits/endian.h: Removed.
8570         * sysdeps/x86_64/bits/endian.h: Renamed to ...
8571         * sysdeps/x86/bits/endian.h: This.
8573         * sysdeps/i386/bits/byteswap.h: Removed.
8574         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8575         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
8576         * sysdeps/x86/bits/byteswap.h: This.
8577         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
8578         * sysdeps/x86/bits/byteswap-16.h: This.
8579         * sysdeps/i386/Implies: Add x86.
8580         * sysdeps/x86_64/Implies: Likewise.
8582 2012-05-30  David S. Miller  <davem@davemloft.net>
8584         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
8585         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
8586         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
8587         (FP_TRAPPING_EXCEPTIONS): Define.
8588         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
8589         (FP_TRAPPING_EXCEPTIONS): Define.
8590         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
8591         subnormals only when inexact has been signalled or underflow
8592         exceptions are enabled.
8593         (_FP_PACK_CANONICAL): Likewise.
8595 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8597         [BZ #14183]
8598         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
8599         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
8601 2012-05-30  Richard Henderson  <rth@twiddle.net>
8603         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
8604         with #ifndef NOT_IN_libc.
8606         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
8607         marked to avoid plt entry.
8609 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8611         [BZ #14112]
8612         * Makeconfig (default-abi): New macro.
8613         (abi-includes): Likewise.
8614         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
8615         $(abi-$(default-abi)-lib-soname) for soname if defined.
8616         ($(common-objpfx)gnu/lib-names.stmp): Generate from
8617         abi-variants.
8618         * Makefile (installed-stubs): Likewise.
8619         * include/stubs-biarch.h: Removed.
8620         * scripts/lib-names.awk: Only handle one library at a time.
8621         * scripts/soversions.awk: Remove WORDSIZE support.
8622         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
8623         entries.
8624         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
8625         Removed.
8626         (syscall-list-default-condition): Likewise.
8627         (syscall-list-default-condition): Likewise.
8628         (syscall-list-includes): Likewise.
8629         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
8630         syscall-list-* with abi-*.  Handle undefined abi-variants.
8631         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
8632         * sysdeps/unix/sysv/linux/i386/Implies: New file.
8633         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
8634         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
8635         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
8636         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
8637         Removed.
8638         (syscall-list-32-options): Likewise.
8639         (syscall-list-32-condition): Likewise.
8640         (syscall-list-64-options): Likewise.
8641         (syscall-list-64-condition): Likewise.
8642         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
8643         macro.
8644         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
8645         Renamed to ...
8646         (abi-*): This.
8647         (abi-64-ld-soname): New macro.
8648         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
8649         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
8650         Renamed to ...
8651         (abi-*): This.
8652         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
8653         * sysdeps/x86_64/x32/shlib-versions: Likewise.
8655 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
8657         * sysdeps/unix/sysv/linux/kernel-features.h
8658         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
8659         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
8660         include <kernel-features.h>.
8661         [!__NR_ftruncate64]: Remove conditional code.
8662         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8663         [__NR_ftruncate64]: Make code unconditional.
8664         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8665         * sysdeps/unix/sysv/linux/truncate64.c: Do not
8666         include <kernel-features.h>.
8667         [!__NR_ftruncate64]: Remove conditional code.
8668         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8669         [__NR_ftruncate64]: Make code unconditional.
8670         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
8672         include <kernel-features.h>.
8673         [!__NR_ftruncate64]: Remove conditional code.
8674         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8675         [__NR_ftruncate64]: Make code unconditional.
8676         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
8678         include <kernel-features.h>.
8679         [!__NR_ftruncate64]: Remove conditional code.
8680         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8681         [__NR_ftruncate64]: Make code unconditional.
8682         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8684         * configure.in (libc_cv_fpie): Weaken to a compile test using
8685         LIBC_TRY_CC_OPTION.
8686         * configure: Regenerated.
8688 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8690         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
8691         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
8692         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
8693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8694         Refreshed.
8695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
8696         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
8697         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
8698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
8699         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
8700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8701         Refreshed.
8703 2012-05-27  David S. Miller  <davem@davemloft.net>
8705         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
8706         (___Q_zero): New.
8707         (__Q_simulate_exceptions): Return void.  Change to simulate
8708         exceptions by writing into the %fsr.
8709         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
8710         (__Qp_handle_exceptions): Likewise.
8711         (numbers): Delete.
8712         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
8713         __Qp_handle_exceptions.
8714         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
8715         __Qp_handle_exceptions.
8716         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
8717         as unused and give dummy FP_RND_NEAREST initializer.
8718         (FP_INHIBIT_RESULTS): Define.
8719         (___Q_simulate_exceptions): Update declaration.
8720         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
8721         formatting.
8722         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
8723         as unused and give dummy FP_RND_NEAREST initializer.
8724         (__Qp_handle_exceptions): Update declaration.
8725         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
8726         formatting.
8728 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
8730         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
8731         the temporary FPU control word.
8732         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8733         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
8734         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
8735         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
8736         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
8737         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
8738         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
8739         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
8740         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
8741         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
8742         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
8744 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8746         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
8747         fields.
8749 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
8751         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
8752         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
8753         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
8754         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
8755         Likewise.
8756         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
8757         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
8758         Likewise.
8760 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
8762         * po/h.po: Update from translation team.
8764 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
8766         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
8768         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
8769         handling of denormals.
8770         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8771         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8772         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8773         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8774         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8775         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
8776         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
8777         Likewise.
8779 2012-05-26  Marek Polacek  <polacek@redhat.com>
8781         [BZ #14152]
8782         * math/libm-test.inc (fma_test): Don't always expect underflow
8783         exception.
8785 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8787         [BZ #12416]
8788         * elf/tst-execstack.c: Include stackinfo.h.
8789         (do_test): Adjust test case to ensure that pthread_getattr_np
8790         behaviour remains the same after marking stack executable.
8792 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
8794         * sysdeps/unix/sysv/linux/kernel-features.h
8795         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
8796         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
8797         kernel-features.h.
8798         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
8799         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
8800         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
8801         kernel-features.h.
8802         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
8803         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
8805 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8807         * configure.in: Define the default includes to being none.
8808         * configure: Regenerated.
8810 2012-05-25  Roland McGrath  <roland@hack.frob.com>
8812         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
8813         * sysdeps/x86_64/setjmp.S: Likewise.
8814         * sysdeps/i386/bsd-setjmp.S: Likewise.
8815         * sysdeps/i386/bsd-_setjmp.S: Likewise.
8816         * sysdeps/i386/setjmp.S: Likewise.
8817         * sysdeps/i386/__longjmp.S: Likewise.
8818         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
8819         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
8821         * include/stap-probe.h: New file.
8822         * configure.in: Handle --enable-systemtap.
8823         * configure: Regenerated.
8824         * config.h.in (USE_STAP_PROBE): New #undef.
8825         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
8826         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
8827         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
8829 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
8831         [BZ #13717]
8832         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8833         to 2.4.0 where earlier.
8834         * sysdeps/unix/sysv/linux/configure: Regenerated.
8835         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
8836         <kernel-features.h>.
8837         [__ASSUME_32BITUIDS]: Make code unconditional.
8838         [!__ASSUME_32BITUIDS]: Remove conditional code.
8839         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
8840         <kernel-features.h>.
8841         [__ASSUME_32BITUIDS]: Make code unconditional.
8842         [!__ASSUME_32BITUIDS]: Remove conditional code.
8843         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
8844         [__ASSUME_32BITUIDS]: Make code unconditional.
8845         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
8846         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
8847         <kernel-features.h>.
8848         [__ASSUME_32BITUIDS]: Make code unconditional.
8849         [!__ASSUME_32BITUIDS]: Remove conditional code.
8850         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
8851         <kernel-features.h>.
8852         [__ASSUME_32BITUIDS]: Make code unconditional.
8853         [!__ASSUME_32BITUIDS]: Remove conditional code.
8854         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
8855         <kernel-features.h>.
8856         [__ASSUME_32BITUIDS]: Make code unconditional.
8857         [!__ASSUME_32BITUIDS]: Remove conditional code.
8858         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
8859         <kernel-features.h>.
8860         [__ASSUME_32BITUIDS]: Make code unconditional.
8861         [!__ASSUME_32BITUIDS]: Remove conditional code.
8862         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
8863         <kernel-features.h>.
8864         [__ASSUME_32BITUIDS]: Make code unconditional.
8865         [!__ASSUME_32BITUIDS]: Remove conditional code.
8866         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
8867         <kernel-features.h>.
8868         [__ASSUME_32BITUIDS]: Make code unconditional.
8869         [!__ASSUME_32BITUIDS]: Remove conditional code.
8870         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
8871         <kernel-features.h>.
8872         [__ASSUME_32BITUIDS]: Make code unconditional.
8873         [!__ASSUME_32BITUIDS]: Remove conditional code.
8874         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
8875         <kernel-features.h>.
8876         [__ASSUME_32BITUIDS]: Make code unconditional.
8877         [!__ASSUME_32BITUIDS]: Remove conditional code.
8878         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
8879         <kernel-features.h>.
8880         [__ASSUME_32BITUIDS]: Make code unconditional.
8881         [!__ASSUME_32BITUIDS]: Remove conditional code.
8882         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
8883         <kernel-features.h>.
8884         [__ASSUME_32BITUIDS]: Make code unconditional.
8885         [!__ASSUME_32BITUIDS]: Remove conditional code.
8886         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
8887         <kernel-features.h>.
8888         [__NR_setresgid] (__setresgid): Do not declare.
8889         [__ASSUME_32BITUIDS]: Make code unconditional.
8890         [!__ASSUME_32BITUIDS]: Remove conditional code.
8891         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
8892         <kernel-features.h>.
8893         [__NR_setresuid] (__setresuid): Do not declare.
8894         [__ASSUME_32BITUIDS]: Make code unconditional.
8895         [!__ASSUME_32BITUIDS]: Remove conditional code.
8896         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
8897         <kernel-features.h>.
8898         [__ASSUME_32BITUIDS]: Make code unconditional.
8899         [!__ASSUME_32BITUIDS]: Remove conditional code.
8900         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
8901         <kernel-features.h>.
8902         [__ASSUME_32BITUIDS]: Make code unconditional.
8903         [!__ASSUME_32BITUIDS]: Remove conditional code.
8904         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
8905         <kernel-features.h>.
8906         [__ASSUME_32BITUIDS]: Make code unconditional.
8907         [!__ASSUME_32BITUIDS]: Remove conditional code.
8908         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
8909         <kernel-features.h>.
8910         [__ASSUME_32BITUIDS]: Make code unconditional.
8911         [!__ASSUME_32BITUIDS]: Remove conditional code.
8912         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
8913         <kernel-features.h>.
8914         [__ASSUME_32BITUIDS]: Make code unconditional.
8915         [!__ASSUME_32BITUIDS]: Remove conditional code.
8916         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
8917         <kernel-features.h>.
8918         [__ASSUME_32BITUIDS]: Make code unconditional.
8919         [!__ASSUME_32BITUIDS]: Remove conditional code.
8920         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
8921         <kernel-features.h>.
8922         [__ASSUME_32BITUIDS]: Make code unconditional.
8923         [!__ASSUME_32BITUIDS]: Remove conditional code.
8924         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
8925         <kernel-features.h>.
8926         [__ASSUME_32BITUIDS]: Make code unconditional.
8927         [!__ASSUME_32BITUIDS]: Remove conditional code.
8928         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
8929         <kernel-features.h>.
8930         [__ASSUME_32BITUIDS]: Make code unconditional.
8931         [!__ASSUME_32BITUIDS]: Remove conditional code.
8932         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
8933         <kernel-features.h>.
8934         [__ASSUME_32BITUIDS]: Make code unconditional.
8935         [!__ASSUME_32BITUIDS]: Remove conditional code.
8936         * sysdeps/unix/sysv/linux/kernel-features.h
8937         (__ASSUME_SETRESUID_SYSCALL): Remove.
8938         (__ASSUME_SETRESGID_SYSCALL): Likewise.
8939         (__ASSUME_32BITUIDS): Likewise.
8940         (__ASSUME_LDT_WORKS): Likewise.
8941         (__ASSUME_O_DIRECTORY): Likewise.
8942         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
8943         architecture but not kernel version.
8944         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
8945         (__ASSUME_MMAP2_SYSCALL): Likewise.
8946         (__ASSUME_STAT64_SYSCALL): Likewise.
8947         (__ASSUME_IPC64): Likewise.
8948         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
8949         <kernel-features.h>.
8950         [__ASSUME_32BITUIDS]: Make code unconditional.
8951         [!__ASSUME_32BITUIDS]: Remove conditional code.
8952         * sysdeps/unix/sysv/linux/opendir.c: Do not include
8953         <kernel-features.h>.
8954         [__ASSUME_O_DIRECTORY]: Make code unconditional.
8955         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
8956         132096]: Remove conditional code.
8957         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
8958         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
8959         <kernel-features.h>.
8960         [__ASSUME_32BITUIDS]: Make code unconditional.
8961         [!__ASSUME_32BITUIDS]: Remove conditional code.
8962         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
8963         <kernel-features.h>.
8964         [__ASSUME_32BITUIDS]: Make code unconditional.
8965         [!__ASSUME_32BITUIDS]: Remove conditional code.
8966         * sysdeps/unix/sysv/linux/setegid.c: Do not include
8967         <kernel-features.h>.
8968         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
8969         unconditional.
8970         (__setresgid): Do not declare.
8971         [__ASSUME_32BITUIDS]: Make code unconditional.
8972         [!__ASSUME_32BITUIDS]: Remove conditional code.
8973         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
8974         <kernel-features.h>.
8975         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
8976         unconditional.
8977         (__setresuid): Do not declare.
8978         [__ASSUME_32BITUIDS]: Make code unconditional.
8979         [!__ASSUME_32BITUIDS]: Remove conditional code.
8980         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
8981         <kernel-features.h>.
8982         [__ASSUME_32BITUIDS]: Make code unconditional.
8983         [!__ASSUME_32BITUIDS]: Remove conditional code.
8984         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
8985         <kernel-features.h>.
8986         [__ASSUME_32BITUIDS]: Make code unconditional.
8987         [!__ASSUME_32BITUIDS]: Remove conditional code.
8989 2012-05-25  Richard Henderson  <rth@twiddle.net>
8991         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
8992         dl_hwcap to ifunc resolver.
8993         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
8994         elf_ifunc_invoke.
8995         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
8996         dl_hwcap to ifunc resolver.
8997         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
8999 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
9001         [BZ #14153]
9002         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
9003         for |x| <= 2**-26, not 2**-57.
9004         * math/libm-test.inc (acos_test): Do not allow spurious underflow
9005         exception.
9007 2012-05-24  Jeff Law  <law@redhat.com>
9009         * stdio-common/Makefile (tests): Add bug25.
9010         * stdio-common/bug25.c: New test.
9012 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9014         [BZ #13576]
9015         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
9016         multiple of MALLOC_ALIGNMENT in size.
9017         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
9019 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
9021         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
9022         Require >= 256.
9023         (FILENAME_MAX): Use macro-int-constant.
9024         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
9025         (_IOFBF): Use macro-int-constant.
9026         (_IOLBF): Likewise.
9027         (_IONBF): Likewise.
9028         (SEEK_CUR): Likewise.
9029         (SEEK_END): Likewise.
9030         (SEEK_SET): Likewise.
9031         (TMP_MAX): Likewise.
9032         (EOF): Use macro-int-constant.  Require < 0.
9033         (NULL): Use macro-constant.  Require == 0.
9034         (stdin): Require type to be FILE *.
9035         (stdout): Likewise.
9036         (stderr): Likewise.
9037         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
9038         macro-int-constant.
9039         (EXIT_SUCCESS): Likewise.
9040         (NULL): Use macro-constant.  Require == 0.
9041         (RAND_MAX): Use macro-int-constant.
9042         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
9043         [C99-based standards] (strtof): Require function.
9044         [C99-based standards] (strtold): Likewise.
9045         [C99-based standards] (strtoll): Likewise.
9046         [C99-based standards] (strtoull): Likewise.
9047         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
9048         [ISO || ISO99 || ISO11] (limits.h): Likewise.
9049         [ISO || ISO99 || ISO11] (math.h): Likewise.
9050         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
9051         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
9052         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9054 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
9056         [BZ #14132]
9057         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
9058         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
9059         * intl/dgettext.c (DCGETTEXT): Likewise.
9060         * intl/gettext.c (DCGETTEXT): Likewise.
9061         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
9062         * posix/regex_internal.h (gettext): Likewise.
9063         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
9064         Remove declaration.
9065         * include/argz.h (__argz_count_internal)
9066         (__argz_stringify_internal): Remove declaration.
9067         (__argz_count, __argz_stringify): Declare hidden proto.
9068         * intl/dcgettext.c: Remove use of INTDEF.
9069         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
9070         * string/argz-stringify.c: Likewise.
9071         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
9072         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
9073         Declare hidden proto.
9074         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
9075         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
9076         Declare hidden proto.
9077         * include/stdio.h (__asprintf_internal): Don't declare.
9078         (__asprintf): Don't define as macro.  Declare hidden proto.
9079         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
9080         (__fsetlocking): Declare hidden proto.
9081         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
9082         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
9083         hidden proto.
9084         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
9085         (_IO_setlinebuf): Remove use of INTUSE.
9086         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
9087         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
9088         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
9089         Remove declaration.
9090         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
9091         (_IO_do_flush): Remove use of INTUSE.
9092         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
9093         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
9094         (_IO_adjust_column, _IO_least_wmarker)
9095         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
9096         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
9097         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
9098         (_IO_default_doallocate, _IO_wdefault_doallocate)
9099         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
9100         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
9101         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
9102         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
9103         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
9104         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
9105         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
9106         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
9107         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
9108         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
9109         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
9110         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
9111         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
9112         proto.
9113         (_IO_flush_all_internal, _IO_adjust_column_internal)
9114         (_IO_default_uflow_internal, _IO_default_finish_internal)
9115         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
9116         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
9117         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
9118         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
9119         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
9120         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
9121         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
9122         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
9123         (_IO_file_close_internal, _IO_file_close_it_internal)
9124         (_IO_file_underflow_internal, _IO_file_overflow_internal)
9125         (_IO_file_init_internal, _IO_file_attach_internal)
9126         (_IO_file_fopen_internal, _IO_file_read_internal)
9127         (_IO_file_sync_internal, _IO_file_seek_internal)
9128         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
9129         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
9130         (_IO_str_underflow_internal, _IO_str_overflow_internal)
9131         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
9132         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
9133         (_IO_list_all_internal, _IO_link_in_internal)
9134         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
9135         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
9136         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
9137         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
9138         (_IO_do_write_internal, _IO_padn_internal)
9139         (_IO_getline_info_internal, _IO_getline_internal)
9140         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
9141         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
9142         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
9143         (_IO_vfscanf_internal, _IO_vfprintf_internal)
9144         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
9145         (_IO_init_internal, _IO_un_link_internal): Don't declare.
9146         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
9147         with libc_hidden_ver, remove use of INTUSE.
9148         * libio/genops.c: Likewise.
9149         * libio/freopen.c: Likewise.
9150         * libio/freopen64.c: Likewise.
9151         * libio/iofclose.c: Likewise.
9152         * libio/iofdopen.c: Likewise.
9153         * libio/iofflush.c: Likewise.
9154         * libio/iofflush_u.c: Likewise.
9155         * libio/iofgets.c: Likewise.
9156         * libio/iofgets_u.c: Likewise.
9157         * libio/iofopen.c: Likewise.
9158         * libio/iofopncook.c: Likewise.
9159         * libio/iofread.c: Likewise.
9160         * libio/iofread_u.c: Likewise.
9161         * libio/ioftell.c: Likewise.
9162         * libio/iofwrite.c: Likewise.
9163         * libio/iogetline.c: Likewise.
9164         * libio/iogets.c: Likewise.
9165         * libio/iogetwline.c: Likewise.
9166         * libio/iopadn.c: Likewise.
9167         * libio/iopopen.c: Likewise.
9168         * libio/ioseekoff.c: Likewise.
9169         * libio/ioseekpos.c: Likewise.
9170         * libio/iosetbuffer.c: Likewise.
9171         * libio/iosetvbuf.c: Likewise.
9172         * libio/ioungetc.c: Likewise.
9173         * libio/ioungetwc.c: Likewise.
9174         * libio/iovdprintf.c: Likewise.
9175         * libio/iovsprintf.c: Likewise.
9176         * libio/iovsscanf.c: Likewise.
9177         * libio/memstream.c: Likewise.
9178         * libio/obprintf.c: Likewise.
9179         * libio/oldfileops.c: Likewise.
9180         * libio/oldiofclose.c: Likewise.
9181         * libio/oldiofdopen.c: Likewise.
9182         * libio/oldiofopen.c: Likewise.
9183         * libio/oldiopopen.c: Likewise.
9184         * libio/oldstdfiles.c: Likewise.
9185         * libio/putc.c: Likewise.
9186         * libio/setbuf.c: Likewise.
9187         * libio/setlinebuf.c: Likewise.
9188         * libio/stdfiles.c: Likewise.
9189         * libio/strops.c: Likewise.
9190         * libio/vasprintf.c: Likewise.
9191         * libio/vscanf.c: Likewise.
9192         * libio/vsnprintf.c: Likewise.
9193         * libio/vswprintf.c: Likewise.
9194         * libio/wfiledoalloc.c: Likewise.
9195         * libio/wfileops.c: Likewise.
9196         * libio/wgenops.c: Likewise.
9197         * libio/wmemstream.c: Likewise.
9198         * libio/wstrops.c: Likewise.
9199         * libio/__fpurge.c: Likewise.
9200         * libio/__fsetlocking.c: Likewise.
9201         * assert/assert.c: Likewise.
9202         * debug/fgets_chk.c: Likewise.
9203         * debug/fgets_u_chk.c: Likewise.
9204         * debug/fread_chk.c: Likewise.
9205         * debug/fread_u_chk.c: Likewise.
9206         * debug/gets_chk.c: Likewise.
9207         * debug/obprintf_chk.c: Likewise.
9208         * debug/vasprintf_chk.c: Likewise.
9209         * debug/vdprintf_chk.c: Likewise.
9210         * debug/vsnprintf_chk.c: Likewise.
9211         * debug/vsprintf_chk.c: Likewise.
9212         * malloc/mtrace.c: Likewise.
9213         * misc/error.c: Likewise.
9214         * misc/syslog.c: Likewise.
9215         * stdio-common/asprintf.c: Likewise.
9216         * stdio-common/fxprintf.c: Likewise.
9217         * stdio-common/getw.c: Likewise.
9218         * stdio-common/isoc99_fscanf.c: Likewise.
9219         * stdio-common/isoc99_scanf.c: Likewise.
9220         * stdio-common/isoc99_vfscanf.c: Likewise.
9221         * stdio-common/isoc99_vscanf.c: Likewise.
9222         * stdio-common/isoc99_vsscanf.c: Likewise.
9223         * stdio-common/printf-prs.c: Likewise.
9224         * stdio-common/printf_fp.c: Likewise.
9225         * stdio-common/printf_fphex.c: Likewise.
9226         * stdio-common/printf_size.c: Likewise.
9227         * stdio-common/putw.c: Likewise.
9228         * stdio-common/scanf.c: Likewise.
9229         * stdio-common/sprintf.c: Likewise.
9230         * stdio-common/tmpfile.c: Likewise.
9231         * stdio-common/vfprintf.c: Likewise.
9232         * stdio-common/vfscanf.c: Likewise.
9233         * stdlib/strfmon_l.c: Likewise.
9234         * sunrpc/openchild.c: Likewise.
9235         * sunrpc/xdr_stdio.c: Likewise.
9236         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
9237         * sysdeps/mach/hurd/tmpfile.c: Likewise.
9239 2012-05-24  Roland McGrath  <roland@hack.frob.com>
9241         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
9243         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
9244         in the third column, to generate for the shared library an IFUNC
9245         that uses _dl_vdso_vsym.
9246         * Makerules (COMPILE.c, compile-stdin.c): New variables.
9247         * Makeconfig (object-suffixes-noshared): New variable.
9249         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
9250         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
9251         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
9252         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
9254         [BZ #14132]
9255         * include/sys/time.h (__gettimeofday): Remove macro.
9256         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
9257         * time/gettimeofday.c (__gettimeofday): Remove #undef.
9258         Remove INTDEF.
9259         (__gettimeofday): Add libc_hidden_def.
9260         (gettimeofday): Add libc_hidden_weak.
9261         * sysdeps/mach/gettimeofday.c: Likewise.
9262         * sysdeps/posix/gettimeofday.c: Likewise.
9263         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
9264         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
9265         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
9266         (__gettimeofday_internal): Remove strong_alias.
9267         (__gettimeofday): Add libc_hidden_def.
9268         (gettimeofday): Add libc_hidden_weak.
9269         * sysdeps/unix/syscalls.list (gettimeofday):
9270         Remove __gettimeofday_internal alias.
9272 2012-05-24  Daniel Jacobowitz  <drow@false.org>
9273             H.J. Lu  <hongjiu.lu@intel.com>
9275         [BZ #12495]
9276         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
9277         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
9278         (largebin_index_32_big): New.
9279         (largebin_index): Use it for 16-byte alignment.
9280         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
9281         correction with front_misalign.
9283 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9285         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
9286         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
9287         Likewise.
9288         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
9289         Likewise.
9290         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
9291         Likewise.
9292         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
9293         Likewise.
9294         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
9295         Likewise.
9296         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
9297         Likewise.
9298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
9299         Likewise.
9300         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
9301         Likewise.
9302         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
9303         Likewise.
9304         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
9305         Likewise.
9306         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
9307         Likewise.
9308         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
9309         Likewise.
9311         * scripts/data/c++-types-x32-linux-gnu.data: New file.
9312         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
9314 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
9316         [BZ #10846]
9317         [BZ #14036]
9318         * math/libm-test.inc (exp_test): Add test from bug 14036.
9319         (pow_test): Add test from bug 10846.
9321         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
9322         and other flags.
9323         (special_function): Do not include flags in test name.
9324         (parse_args): Likewise.
9325         * sysdeps/i386/fpu/libm-test-ulps: Update.
9326         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9327         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
9328         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
9329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9331         * math/gen-libm-test.pl (%beautify): Add entries for underflow
9332         exceptions.
9333         * math/libm-test.inc ("Philosophy"): Update comment about
9334         exception testing.
9335         (UNDERFLOW_EXCEPTION): New macro.
9336         (UNDERFLOW_EXCEPTION_OK): Likewise.
9337         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
9338         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
9339         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
9340         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
9341         (INVALID_EXCEPTION_OK): Update value.
9342         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9343         (OVERFLOW_EXCEPTION_OK): Likewise.
9344         (IGNORE_ZERO_INF_SIGN): Likewise.
9345         (test_exceptions): Handle underflow exceptions.
9346         (acos_test): Update for underflow exception expectations.
9347         (cexp_test): Likewise.
9348         (clog_test): Likewise.
9349         (clog10_test): Likewise.
9350         (csqrt_test): Likewise.
9351         (ctan_test): Likewise.
9352         (ctanh_test): Likewise.
9353         (exp_test): Likewise.
9354         (exp10_test): Likewise.
9355         (exp2_test): Likewise.
9356         (expm1_test): Likewise.
9357         (fma_test): Likewise.
9358         (j0_test): Likewise.
9359         (jn_test): Likewise.
9360         (nexttoward_test): Likewise.
9361         (pow_test): Likewise.
9362         (scalbn_test): Likewise.
9363         (scalbln_test): Likewise.
9364         (tan_test): Likewise.
9365         (y1_test): Likewise.
9366         * sysdeps/i386/fpu/libm-test-ulps: Update.
9367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9369 2012-05-23  David S. Miller  <davem@davemloft.net>
9371         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
9372         (__libc_sigaction): Remove unused local variables.
9374 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9376         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
9378 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9380         mktime: avoid signed integer overflow
9381         * time/mktime.c (__mktime_internal): Do not mishandle the case
9382         where diff == INT_MIN.
9384         mktime: simplify computation of average
9385         * time/mktime.c (ranged_convert): Use new time_t_avg function
9386         instead of rolling our own (probably-slower) code.
9388         mktime: do not assume signed right shift propagates sign bit
9389         * time/mktime.c (isdst_differ): New static function.
9390         (__mktime_internal): No need to normalize tm_isdst now.
9391         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
9392         tm_isdst values.
9394         mktime: merge another wrapv change from gnulib
9395         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
9396         from some compilers.
9398         mktime: remove incorrect attempt at unusual arithmetics
9399         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
9400         The code didn't really work on such machines anyway.
9401         (TYPE_MINIMUM): Assume two's complement.
9402         (twos_complement_arithmetic): Verify that long_int and time_t
9403         are two's complement (or unsigned, in the latter case).
9405         mktime: check signed shifts on long_int and time_t, too
9406         * time/mktime.c (SHR): Check that shifts work as desired
9407         on the types long_int and time_t too, as SHR is used on
9408         such types.
9410         mktime: do not assume 'long' is wide enough
9411         * time/mktime.c (verify): Move decl up.
9412         (long_int): New type.
9413         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
9414         to remove assumption in the code that 'long' is wide enough to
9415         store year values.  This assumption is not true on x32 and on
9416         some non-glibc platforms.
9418         mktime: merge wrapv change from gnulib
9419         * time/mktime.c (WRAPV): New macro.
9420         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
9421         (guess_time_tm, __mktime_internal): Do not assume that signed
9422         integer overflow wraps around; modern compilers generate code
9423         where this assumption is no longer valid.
9425 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9427         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
9428         Replace "jmp L(pseudo_end)" with "ret".
9429         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9430         Likewise.
9432 2012-05-23  Andreas Jaeger  <aj@suse.de>
9434         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
9435         * sysdeps/unix/sysv/linux/poll.c: Remove file.
9437 2012-05-23  Andreas Jaeger  <aj@suse.de>
9438             Maximilian Attems  <max@stro.at>
9440         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
9441         New macros.
9443 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9445         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
9446         code so that pseudo_end is just ret and the stack pointer is
9447         correct also for static library in error case.
9449 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
9451         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
9452         move to syscalls.list.
9453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
9454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
9455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
9456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
9458         * manual/install.texi (Running make install): Do not mention Linux
9459         kernel version for which pt_chown is not needed.
9460         (Linux): Do not mention problems with nscd with 2.0 kernels.
9461         * INSTALL: Regenerated.
9463 2012-05-23  Andreas Jaeger  <aj@suse.de>
9465         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
9466         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
9467         macro.
9468         * sysdeps/unix/sysv/linux/s390/bits/mman.h
9469         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9470         * sysdeps/unix/sysv/linux/sh/bits/mman.h
9471         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9472         * sysdeps/unix/sysv/linux/i386/bits/mman.h
9473         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9474         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
9475         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9476         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
9477         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9478         * sysdeps/unix/sysv/linux/bits/in.h
9479         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
9481 2012-05-22  Roland McGrath  <roland@hack.frob.com>
9483         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
9484         (PREPARE_VERSION): Just use assert instead, it will be elided
9485         under [NDEBUG] anyway.
9487 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9489         * sysdeps/unix/sysv/linux/Makefile: Include
9490         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
9491         (sysdep_routines): Remove sysctl.
9492         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
9493         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
9494         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
9495         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
9496         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
9498 2012-05-22  Andreas Jaeger  <aj@suse.de>
9500         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
9501         that pseudo_end is just ret and the stack pointer is correct also
9502         for static library in error case.
9504 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
9506         [BZ #14122]
9507         * nss/nsswitch.c (defconfig_entries): New variable.
9508         (__nss_database_lookup): Don't leak defconfig entries.
9509         (nss_parse_service_list): Don't leak on error paths.
9510         (free_database_entries): New function.
9511         (free_defconfig): New function.
9512         (free_mem): Move common code to free_database_entries.
9514 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9516         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
9517         Add arch_prctl.
9518         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
9520         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
9521         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
9522         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
9523         New macro.
9524         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
9525         (INTERNAL_SYSCALL_TYPES): Likewise.
9526         (LOAD_ARGS_TYPES_[1-6]): Likewise.
9527         (LOAD_REGS_TYPES_[1-6]): Likewise.
9528         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
9529         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
9531 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9533         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
9534         copysignl for GLIBC_2_0.
9535         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
9536         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
9537         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
9538         logbl for GLIBC_2_0.
9539         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
9540         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
9542 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9544         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
9545         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
9547         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
9548         Use "neg %eax".
9550         * time/mktime.c: Update copyright years.
9552 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9554         mktime: merge comment-quoting-style change from gnulib
9555         * time/mktime.c: Quote 'like this' in comments.
9556         The GNU coding standards suggest that we no longer quote `like this',
9557         as "`" and "'" are typically rendered asymmetrically nowadays.
9558         The typical gnulib style is to quote 'like this' when quoting
9559         code, and "like this" when quoting English.
9561         * time/mktime.c (compile-command): Add "-I.".
9563         mktime: merge mktime-internal.h change from gnulib
9564         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
9566         mktime: merge time_r change from gnulib
9567         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
9569         mktime: merge DEBUG change from gnulib
9570         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
9571         case system <time.h> has a #define.
9573         mktime: merge <sys/types.h> change from gnulib
9574         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
9575         since <time.t> is now guaranteed to define time_t.
9577         mktime: merge HAVE_CONFIG_H change from gnulib
9578         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
9580 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9582         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
9583         Use "neg %eax".
9585         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
9586         __rlim_t cast.
9587         (struct rusage): Use anonymous union to pad each field to
9588         __syscall_slong_t.
9590 2012-05-21  David S. Miller  <davem@davemloft.net>
9592         * Makefules (o-iterator): Remove .s cases.
9593         (compile-command.s): Delete.
9594         (COMPILE.s): Delete.
9595         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
9597 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
9599         * configure.in (libc_cv_predef_stack_protector): Only consider
9600         "foobar" and "__stack_chk_fail" lines in libc_undefs.
9601         * configure: Regenerated.
9603 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9605         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
9606         New macro.  Use R*LP on int and pointer.
9607         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
9608         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
9609         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
9610         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
9612         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
9613         [__WORDSIZE_TIME64_COMPAT32] instead of
9614         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
9615         (struct utmp): Likewise.
9616         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
9617         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
9618         Renamed to ...
9619         (__WORDSIZE_TIME64_COMPAT32): This.
9620         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
9621         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
9622         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
9623         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
9624         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
9625         (__WORDSIZE_TIME64_COMPAT32): New macro.
9627 2012-05-21  Andreas Jaeger  <aj@suse.de>
9629         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
9630         only if [SHARED]. Add prototype for __wcschr_ia32.
9632 2012-05-21  Roland McGrath  <roland@hack.frob.com>
9634         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
9635         of %rbp unmolested in the jmp_buf while mangling the low bits.
9636         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
9637         unmolested high bits of %rbp while demangling the low bits.
9638         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
9640 2012-05-21  Andreas Jaeger  <aj@suse.de>
9642         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
9643         * sunrpc/svc_simple.c: Use it for registerrpc.
9644         * sunrpc/xcrypt.c: Use it for passwd2des.
9646         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
9648 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9650         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
9651         Don't define if [__SYSCALL_WORDSIZE != 32].
9652         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
9653         New macro.
9655 2012-05-21  Bruno Haible  <bruno@clisp.org>
9656             Andreas Jaeger  <aj@suse.de>
9658         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
9659         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
9660         inptr and inend for must_buffer_ch.
9661         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
9662         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
9663         * stdio-common/Makefile (tests): Remove bug15.
9664         (bug15-ENV): Remove macro.
9665         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
9666         anymore.
9668 2012-05-19  Andreas Jaeger  <aj@suse.de>
9669             Roland McGrath  <roland@hack.frob.com>
9671         * manual/contrib.texi: Completely rewritten. It contains now an
9672         alphabetical list of contributors and their contributions.
9674 2012-05-21  Richard Henderson  <rth@twiddle.net>
9676         * misc/getauxval.c (__getauxval): Use unsigned long int.
9677         * misc/sys/auxv.h: Include <sys/cdefs.h>.
9678         (getauxval): Use unsigned long int.
9680 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9682         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
9684 2012-05-21  Roland McGrath  <roland@hack.frob.com>
9686         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
9687         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
9688         __alignof__ (long double).
9690 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9694 2012-05-20  Richard Henderson  <rth@twiddle.net>
9696         * misc/getauxval.c: New file.
9697         * misc/sys/auxv.h: New file.
9698         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
9699         (routines): Add getauxval.
9700         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
9701         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
9702         * elf/dl-sysdep.c (_dl_auxv): Remove.
9703         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
9704         * elf/dl-support.c (_dl_auxv): New variable.
9705         (_dl_aux_init): Initialize it.
9706         * manual/startup.texi (Auxiliary Vector): New node.
9707         * sysdeps/generic/bits/hwcap.h: New file.
9708         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
9709         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
9710         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
9711         * sysdeps/sparc/sysdep.h: ... here.  Include it.
9712         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
9713         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
9714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9715         Update.
9716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
9717         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
9718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
9719         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
9720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
9721         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
9722         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
9723         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
9725 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9727         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9729 2012-05-19  David S. Miller  <davem@davemloft.net>
9731         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9733 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
9735         [BZ #14123]
9736         * math/s_ccosh.c: Include <float.h>
9737         (__ccosh): Avoid internal overflow calculating sinh and cosh
9738         values before multiplying by sin and cos values.
9739         * math/s_ccoshf.c: Likewise.
9740         * math/s_ccoshl.c: Likewise.
9741         * math/s_csin.c: Likewise.
9742         * math/s_csinf.c: Likewise.
9743         * math/s_csinl.c: Likewise.
9744         * math/s_csinh.c: Likewise.
9745         * math/s_csinhf.c: Likewise.
9746         * math/s_csinhl.c: Likewise.
9747         * math/libm-test.inc (ccos_test): Add more tests.
9748         (ccosh_test): Likewise.
9749         (csin_test): Likewise.
9750         (csinh_test): Likewise.
9751         * sysdeps/i386/fpu/libm-test-ulps: Update.
9752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9754 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9756         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
9757         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
9759         * sysdeps/x86_64/x32/_itoa.h: Add comment.
9761 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
9763         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
9764         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
9765         * sysdeps/powerpc/soft-fp/Versions: Likewise.
9766         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
9767         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
9768         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
9769         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
9770         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
9771         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
9772         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
9773         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
9774         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
9775         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
9776         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
9777         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
9778         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
9779         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
9780         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
9781         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
9782         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
9783         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
9784         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
9785         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
9786         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
9787         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
9788         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
9789         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
9790         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
9791         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
9792         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
9793         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
9795 2012-05-18  Andreas Jaeger  <aj@suse.de>
9797         * csu/.gitignore: Delete.
9799 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9801         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
9802         (timex): Use __syscall_slong_t.
9804 2012-05-18  Andreas Jaeger  <aj@suse.de>
9805             Carlos O'Donell  <carlos_odonell@mentor.com>
9807         * manual/install.texi (Configuring and compiling): Update
9808         description about files modified in the source directory.
9809         * INSTALL: Regenerated.
9811 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9813         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
9814         value.  Use "or" to set return value to -1.
9815         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
9816         negate return value.
9818 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9820         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
9821         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
9822         failure if the compiler has Graphite support disabled.
9823         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
9824         Likewise.
9825         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
9826         CFLAGS-memmove.c): Likewise.
9827         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
9828         Likewise.
9830 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9832         * sysdeps/x86_64/x32/_itoa.h: New file.
9834         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
9835         getdents system call only if kernel and user dirents have the
9836         same d_ino and d_off.
9838         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9839         LLONG_MAX != LONG_MAX.
9840         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9841         (_fitoa_word): Likewise.
9843         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
9844         years.
9845         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
9846         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
9847         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
9849         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
9850         include <bits/wordsize.h>.  Check __x86_64__ instead of
9851         __WORDSIZE.
9852         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
9853         if __x86_64__ is defined.  Use anonymous union on fpstate.
9855         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
9856         anonymous union.
9858 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
9860         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
9861         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
9862         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
9863         Refer to _rtld_local_ro instead of _rtld_global_ro.
9864         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
9865         Likewise.
9866         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
9867         Likewise.
9868         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
9869         Likewise.
9870         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
9871         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
9872         of _rtld_global, and rtld_progname instead of _dl_argv[0].
9874         * sysdeps/powerpc/powerpc32/dl-machine.c
9875         (__elf_machine_runtime_setup) [PROF]: Don't reference
9876         _dl_prof_resolve.
9878 2012-05-18  Andreas Jaeger  <aj@suse.de>
9880         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
9881         function only available for GCCs before 3.4 since GCC 3.4
9882         introduced a builtin.
9883         (lrint): Likewise.
9884         (llrintf): Likewise.
9885         (llrint): Likewise.
9886         (fmaxf): Likewise.
9887         (fmax): Likewise.
9888         (fminf): Likewise.
9889         (fmin): Likewise.
9890         (rint): Likewise.
9891         (rintf): Likewise.
9892         (nearbyint): Likewise.
9893         (nearbyintf): Likewise.
9894         (ceil): Likewise.
9895         (ceilf): Likewise.
9896         (floor): Likewise.
9897         (floorf): Likewise.
9899 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9901         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
9902         on both fields and cast pointer to __syscall_ulong_t.
9904         * bits/types.h (__fsword_t): New type.
9905         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
9906         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
9907         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9908         (__FSWORD_T_TYPE): Likewise.
9909         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9910         (__FSWORD_T_TYPE): Likewise.
9911         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9912         (__FSWORD_T_TYPE): Likewise.
9913         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
9914         (__FSWORD_T_TYPE): Likewise.
9915         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
9916         __SWORD_TYPE with __fsword_t.
9917         (statfs64): Likewise.
9919 2012-05-17  David S. Miller  <davem@davemloft.net>
9921         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
9923 2012-05-17  Andreas Jaeger  <aj@suse.de>
9925         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
9926         warning.
9928 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9930         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
9932 2012-05-17  Andreas Jaeger  <aj@suse.de>
9934         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
9935         when it is used.
9937 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
9939         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
9941 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9943         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
9944         * sysdeps/x86_64/tst-mallocalign1.c: New file.
9946 2012-05-17  Andreas Jaeger  <aj@suse.de>
9947             Carlos O'Donell  <carlos_odonell@mentor.com>
9949         [BZ #14059]
9950         * sysdeps/x86_64/multiarch/init-arch.h
9951         (bit_YMM_Usable): Rename to...
9952         (bit_AVX_Usable): ... this.
9953         (bit_FMA4_Usable): New macro.
9954         (bit_XMM_state): New macro.
9955         (bit_YMM_state): New macro.
9956         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
9957         [__ASSEMBLER__] (index_AVX_Usable): ... this.
9958         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
9959         (CPUID_OSXSAVE): New macro.
9960         (CPUID_AVX): New macro.
9961         (CPUID_FMA4): New macro.
9962         (index_YMM_Usable): Rename to...
9963         (index_AVX_Usable): ... this.
9964         (HAS_AVX): Use HAS_ARCH_FEATURE.
9965         (HAS_FMA4): Likewise.
9966         (HAS_YMM_USABLE): Remove.
9967         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9968         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
9969         are present.
9970         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
9971         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
9972         * sysdeps/x86_64/multiarch/Makefile: Likewise.
9973         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
9974         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
9976 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
9978         * math/libm-test.c: Support platforms without multiple rounding modes.
9979         * math/bug-nextafter.c: Support platforms without FP exceptions.
9980         * math/bug-nexttoward.c: Likewise.
9981         * math/test-fenv.c: Likewise.
9982         * math/test-misc.c: Likewise.
9983         * stdlib/bug-getcontext.c: Likewise.
9985 2012-05-17  Andreas Jaeger  <aj@suse.de>
9987         * manual/examples/search.c (critter_cmp): Change signature to
9988         avoid warnings.
9989         * manual/string.texi (Collation Functions): Likewise.
9991 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9993         * bits/types.h: Fold copyright years.
9994         * bits/typesizes.h: Likewise.
9995         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
9996         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9997         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
9998         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
9999         * time/time.h: Likewise.
10001 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
10003         [BZ #208]
10004         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
10005         in instead of returning them.  Return void.
10006         (__libc_mallinfo): Accumulate over all arenas.
10007         (__malloc_stats): Adjust for change in int_mallinfo interface.
10009 2012-05-16  Roland McGrath  <roland@hack.frob.com>
10011         [BZ #10375]
10012         * configure.in (NM): Add AC_CHECK_TOOL for it.
10013         (libc_extra_cflags): New substituted variable.
10014         Check for -fstack-protector being used implicitly.
10015         * configure: Regenerated.
10016         * config.make.in (config-extra-cflags): New variable,
10017         gets @libc_extra_cflags@.
10018         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
10020         [BZ #10375]
10021         * configure.in: Check for _FORTIFY_SOURCE being predefined.
10022         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
10023         * configure: Regenerated.
10024         * config.make.in (CPPUNDEFS): New substituted variable.
10025         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
10026         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
10027         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
10029 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10031         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
10032         (mq_attr): Use __syscall_slong_t.
10034 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10036         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
10037         Check __x86_64__ instead of __WORDSIZE.
10038         (_STAT_VER_LINUX): Likewise.
10039         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
10040         __syscall_ulong_t and __syscall_slong_t.
10041         (stat64): Likewise.
10043 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10045         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
10047 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10049         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
10051 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10053         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
10054         __syscall_ulong_t.
10056         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
10057         include <bits/wordsize.h>.  Check __x86_64__ instead of
10058         __WORDSIZE.
10059         (greg_t): Use "__extension__ long long int" if __x86_64__ is
10060         defined.
10061         (mcontext_t): Replace "unsigned long" with "unsigned long long".
10063         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
10064         include <bits/wordsize.h>.  Check __x86_64__ instead of
10065         __WORDSIZE.
10066         (user_regs_struct): Use "__extension__ unsigned long long"
10067         instead of "unsigned long" if __x86_64__ is defined.
10068         (user): Likewise.  Pad after pointer field if __ILP32__ is
10069         defined.
10071 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
10073         * configure.in (makeinfo): Require version 4.5 or later.  Allow
10074         versions 5 to 9.
10075         * configure: Regenerated.
10076         * manual/install.texi (texinfo): Increase version requirement to
10077         4.5 or later.
10078         * INSTALL: Regenerated.
10080         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
10082 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10084         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
10086         * sysdeps/x86_64/x32/ffs.c: New file.
10088         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
10089         __syscall_ulong_t.
10090         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
10091         defined.  Use __syscall_ulong_t.
10092         (shminfo): Use __syscall_ulong_t.
10093         (shm_info): Likewise.
10095         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
10096         __syscall_ulong_t.
10098         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
10099         <bits/wordsize.h>.
10100         (msgqnum_t): Use __syscall_ulong_t.
10101         (msglen_t): Likewise.
10102         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
10103         __syscall_ulong_t.
10105         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
10106         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
10108         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
10110         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
10111         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
10113         * sysvipc/sys/msg.h (msgbuf): Replace long int with
10114         __syscall_slong_t.
10116         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
10117         include <bits/wordsize.h>.  Check __x86_64__ instead of
10118         __WORDSIZE.
10120         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
10121         "unsigned long long int" if __x86_64__ is defined.
10122         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
10124         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
10125         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
10126         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
10128         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
10129         <stdint.h>.
10130         (GET_PC): Cast to uintptr_t first.
10131         (GET_FRAME): Likewise.
10132         (GET_STACK): Likewise.
10134         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
10135         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
10136         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
10137         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
10138         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
10139         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
10140         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
10141         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
10142         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
10143         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
10144         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
10145         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
10146         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
10147         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
10148         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
10149         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
10150         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
10151         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
10152         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
10153         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
10154         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
10155         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
10156         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
10157         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
10158         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
10159         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
10160         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
10161         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
10162         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
10164 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
10166         * Makerules (+depfiles): Also collect depfiles from .oS in
10167         $(extra-objs).
10168         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
10169         .oS, $(libnldbl-routines)).
10171         * Makerules (native-compile-mkdep-flags): Define.
10172         * sunrpc/Makefile (extra-objs): Add $(addprefix
10173         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
10174         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
10175         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
10176         calling $(make-target-directory).
10178 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10180         * bits/types.h (__snseconds_t): Removed.
10181         * time/time.h (struct timespec): Replace __snseconds_t with
10182         __syscall_slong_t.
10183         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
10184         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
10185         Likewise.
10186         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10187         (__SNSECONDS_T_TYPE): Likewise.
10188         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10189         (__SNSECONDS_T_TYPE): Likewise.
10190         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10191         (__SNSECONDS_T_TYPE): Likewise.
10193 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10195         * sysdeps/mach/hurd/bits/typesizes.h
10196         (__SYSCALL_SLONG_TYPE): New macro.
10197         (__SYSCALL_ULONG_TYPE): Likewise.
10199 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10201         * bits/types.h (__syscall_slong_t): New type.
10202         (__syscall_ulong_t): Likewise.
10204         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
10205         (__SYSCALL_ULONG_TYPE): Likewise.
10206         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10207         (__SYSCALL_SLONG_TYPE): Likewise.
10208         (__SYSCALL_ULONG_TYPE): Likewise.
10209         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10210         (__SYSCALL_SLONG_TYPE): Likewise.
10211         (__SYSCALL_ULONG_TYPE): Likewise.
10212         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10213         (__SYSCALL_SLONG_TYPE): Likewise.
10214         (__SYSCALL_ULONG_TYPE): Likewise.
10216 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10218         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
10219         Add sigaltstack-offsets.sym.
10220         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10221         <sigaltstack-offsets.h>.
10222         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
10223         longjmp_msg pointer.
10224         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
10225         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
10226         signal stack.
10227         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
10229 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
10231         * elf/stackguard-macros.h: Remove file.
10232         * sysdeps/generic/stackguard-macros.h: New file.
10233         * sysdeps/i386/stackguard-macros.h: Likewise.
10234         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
10235         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
10236         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
10237         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
10238         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
10239         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
10240         * sysdeps/x86_64/stackguard-macros.h: Likewise.
10241         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
10242         <elf/stackguard-macros.h>.
10244         [BZ #14109]
10245         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
10246         __aligned__ in attribute.
10247         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
10248         (gregset_t): Likewise.
10250 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10252         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
10253         * sysdeps/x86_64/64/Implies-after: Here.  New file.
10254         * sysdeps/x86_64/x32/Implies-after: New file.
10256 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10258         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
10259         and access return value for _dl_profile_fixup.  Use R10_LP to
10260         load frame size.
10262 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10264         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
10266 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10268         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
10269         * sysdeps/x86_64/x32/sysdep.h: New file.
10271 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10273         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
10274         * sysdeps/x86_64/setjmp.S: Likewise.
10276 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10278         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
10279         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
10280         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
10281         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
10282         remove unused global constant.
10284 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
10286         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
10287         include of <not-cancel.h>.
10289 2012-05-15  Roland McGrath  <roland@hack.frob.com>
10291         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
10293 2012-05-15  Jeff Law  <law@redhat.com>
10294             Andreas Jaeger  <aj@suse.de>
10296         [BZ #13594]
10297         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
10298         out from...
10299         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
10300         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
10301         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
10302         code changing __hst_map_handle.map.
10304 2012-05-15  Roland McGrath  <roland@hack.frob.com>
10306         * configure.in (sysnames): Look for Implies-before and Implies-after
10307         files.
10308         * configure: Regenerated.
10310 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10312         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
10313         8-byte data alignment with LP_SIZE alignment.
10315 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10317         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
10318         into R10_LP.
10320 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10322         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
10324 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10326         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
10327         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
10328         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
10329         Likewise.
10330         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
10332 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10334         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
10335         (stackinfo_sub_sp): Likewise.
10337 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10339         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
10340         RAX_LP.
10342 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10344         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
10345         into R*_LP.
10347 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10349         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
10350         sizes into R*_LP.
10352 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10354         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
10356 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10358         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
10359         into R11_LP and load __x86_64_shared_cache_size_half into
10360         R8_LP.
10362 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10364         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
10365         R8_LP.
10367 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10369         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
10370         logb for POWER7.
10371         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
10372         logbf for POWER7.
10373         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
10374         logbl for POWER7.
10375         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
10376         powerpc32/power7/fpu/s_logb.c via #include.
10377         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
10378         powerpc32/power7/fpu/s_logbf.c via #include.
10379         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
10380         powerpc32/power7/fpu/s_logbl.c via #include.
10382 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
10384         * README.libm: Remove file.
10386 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10388         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
10389         count for x32.  Use R*_LP and omit operand-size suffix.
10391 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10393         * shlib-versions: Move x86_64-.*-linux.* entries to ...
10394         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
10395         * sysdeps/x86_64/x32/shlib-versions: New file.
10397 2012-05-14  Roland McGrath  <roland@hack.frob.com>
10399         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
10400         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
10401         Use _dl_fatal_printf instead.
10403 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
10405         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
10406         set if not set by the user.  Do not allow for being unset.
10407         * sysdeps/unix/sysv/linux/configure: Regenerated.
10409 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10411         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
10412         the `q' suffix from lea and replace .quad with ASM_ADDR.
10414 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10416         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
10417         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
10418         instead of $17.
10419         (PTR_DEMANGLE): Likewise.
10421 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10423         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
10424         (LP_OP): Likewise.
10425         (ASM_ADDR): Likewise.
10426         (RAX_LP): Likewise.
10427         (RBP_LP): Likewise.
10428         (RBX_LP): Likewise.
10429         (RCX_LP): Likewise.
10430         (RDI_LP): Likewise.
10431         (RSI_LP): Likewise.
10432         (RSP_LP): Likewise.
10433         (R8_LP): Likewise.
10434         (R9_LP): Likewise.
10435         (R10_LP): Likewise.
10436         (R10_LP): Likewise.
10437         (R11_LP): Likewise.
10438         (R12_LP): Likewise.
10439         (R13_LP): Likewise.
10440         (R14_LP): Likewise.
10441         (R15_LP): Likewise.
10443 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10445         * sysdeps/x86_64/x32/dl-machine.h: New file.
10447 2012-05-14  Andreas Jaeger  <aj@suse.de>
10449         * manual/Makefile (subdir): Remove export of subdir.
10450         (all): Remove target.
10451         (.PHONY): Remove all from list.
10452         (mkinstalldirs): Remove.
10453         (.PHONY): Remove installdirs from list.
10454         ($(inst_infodir)/libc.info): Use make-target-directory.
10455         (installdirs): Remove.
10456         (subdir_%): Remove.
10457         (glibc-targets): Remove.
10458         (lib): Remove.
10459         (stubs): Remove.
10460         ($(objpfx)stubs ../po/manual.pot): Remove.
10461         ($(objpfx)stamp%): Remove.
10462         (make-target-directory): Remove.
10463         (subdir_install): Remove.
10464         (routines): Remove.
10465         (aux): Remove.
10466         (sources): Remove.
10467         (objects): Remove.
10468         (headers): Remove.
10470         [BZ #13750]
10471         * manual/.gitignore: Remove, it's not needed anymore.
10472         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
10473         all files in it.
10474         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
10475         directory.
10476         (texis): Renamed to $(objpfx)texis.
10477         (texis-path): New, contains path to generated files.
10478         (chapters.%): Use texis-path for complete path, add extra argument
10479         libc-texinfo.sh.
10480         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
10481         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
10482         (summary,texi, stamp-summary): Use complete path of
10483         files. Generate files in build dir.
10484         (dir-add.texi): Build in build dir.
10485         (libm-err.texi,stamp-libm-err): Likewise.
10486         (version.texi, stamp-version): Likewise.
10487         (.%c.texi): Likewise.
10488         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
10489         (mostlyclean): Remove target.
10490         (realclean): Remove target.
10491         (generated): Add new variable with contents from mostlyclean and
10492         realclean, remove entries duplicated in common-mostlyclean, add
10493         stamp-libm-err and stamp-version.
10494         (generated-dirs): Add libc directory.
10495         ($(inst_infodir)/libc.info): Install files from build dir.
10497         * manual/install.texi (Configuring and compiling): Adjust since
10498         the info files are not part of the tar ball anymore.
10500 2012-05-14  Andreas Jaeger  <aj@suse.de>
10502         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
10503         variable.
10505 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
10507         [BZ #13717]
10508         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
10509         to 2.2.0 where earlier.
10510         * sysdeps/unix/sysv/linux/configure: Regenerated.
10511         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
10512         Remove conditional code.
10513         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
10514         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
10515         Remove conditional code.
10516         [!__NR_lchown]: Likewise.
10517         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
10518         [__NR_lchown]: Likewise.
10519         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
10520         comment referencing __ASSUME_LCHOWN_SYSCALL.
10521         * sysdeps/unix/sysv/linux/i386/sigaction.c
10522         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10523         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10524         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
10525         Remove conditional code.
10526         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
10527         (__protocol_available): Remove #if 0 code.
10528         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
10529         conditional code.
10530         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
10531         * sysdeps/unix/sysv/linux/kernel-features.h
10532         (__ASSUME_GETCWD_SYSCALL): Don't define.
10533         (__ASSUME_REALTIME_SIGNALS): Likewise.
10534         (__ASSUME_PREAD_SYSCALL): Likewise.
10535         (__ASSUME_PWRITE_SYSCALL): Likewise.
10536         (__ASSUME_POLL_SYSCALL): Likewise.
10537         (__ASSUME_LCHOWN_SYSCALL): Likewise.
10538         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
10539         non-SPARC.
10540         (__ASSUME_SIOCGIFNAME): Don't define.
10541         (__ASSUME_MSG_NOSIGNAL): Likewise.
10542         (__ASSUME_SENDFILE): Define unconditionally.
10543         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
10544         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
10545         conditional code.
10546         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
10547         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
10548         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
10549         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
10550         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
10551         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
10552         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
10553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
10554         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
10555         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
10557         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
10558         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
10560         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10561         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
10563         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10564         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
10566         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
10567         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
10569         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
10570         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
10572         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10573         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
10575         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10576         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10577         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
10578         Remove conditional code.
10579         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10580         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
10581         Remove conditional code.
10582         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10583         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
10584         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
10585         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
10586         Remove conditional code.
10587         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10588         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
10589         Remove conditional code.
10590         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10591         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
10592         Remove conditional code.
10593         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10594         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
10595         Remove conditional code.
10596         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10597         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
10598         Remove conditional code.
10599         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10600         * sysdeps/unix/sysv/linux/sh/pwrite64.c
10601         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10602         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10603         * sysdeps/unix/sysv/linux/sigaction.c
10604         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10605         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10606         * sysdeps/unix/sysv/linux/sigpending.c
10607         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10608         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10609         * sysdeps/unix/sysv/linux/sigprocmask.c
10610         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10611         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10612         * sysdeps/unix/sysv/linux/sigsuspend.c
10613         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10614         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10615         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
10616         (__libc_missing_rt_sigs): Remove.
10617         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
10618         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
10619         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
10620         Remove conditional code.
10621         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
10622         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
10623         return 1.
10624         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
10625         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
10626         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
10627         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
10629 2012-05-14  Andreas Jaeger  <aj@suse.de>
10631         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
10632         it's not used in glibc.
10633         (__coshm1): Likewise.
10634         (__acosh1p): Likewise.
10635         (__sgn): Likewise.
10637         * manual/string.texi (Copying and Concatenation): Add missing
10638         variable in concat example.
10639         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
10641 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10643         [BZ #14103]
10644         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
10645         __builtin_clzl with __builtin_clzll.
10647 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10649         [BZ #14104]
10650         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
10651         libc_freeres_ptr.
10653 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10655         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
10656         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
10657         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
10658         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
10660 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
10662         * NEWS: Update ia64 info.
10664 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
10666         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
10667         used as bcopy.
10669 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
10671         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
10672         * sysdeps/unix/syscalls.list (dup3): Likewise.
10673         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
10674         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
10676 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
10678         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
10679         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
10681 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
10683         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
10684         thread pointer.
10685         (TLS_IE): Use mov/add instead of movq/addq to load thread
10686         pointer.
10687         (TLS_GD_PREFIX): New.
10688         (TLS_GD): Use it.
10690 2012-05-11  David S. Miller  <davem@davemloft.net>
10692         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
10693         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
10694         (_FPU_SETCW): Likewise.
10696 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10698         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
10699         is 32-byte aligned.
10701 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
10703         [BZ #11837]
10704         * iconvdata/gb18030.c: Update tables.
10705         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
10706         characters specially.
10707         (BODY for TO_LOOP): Add encoding of missing ranges.
10709 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
10711         [BZ #13673]
10712         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
10713         * sysdeps/mach/hurd/dup3.c: Likewise.
10714         * sysdeps/mach/hurd/readlinkat.c: Likewise.
10715         * sysdeps/powerpc/memmove.c:: Likewise.
10717 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10719         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
10720         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
10722 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10724         * elf/elf.h (R_X86_64_RELATIVE64): New.
10725         (R_X86_64_NUM): Updated.
10726         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
10727         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
10728         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
10729         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
10730         tst-quad1pie tst-quad2pie
10731         (modules-names): Add tst-quadmod1 tst-quadmod2.
10732         ($(objpfx)tst-quad1): New dependency.
10733         ($(objpfx)tst-quad2): Likewise.
10734         ($(objpfx)tst-quad1pie): Likewise.
10735         ($(objpfx)tst-quad2pie): Likewise.
10736         * sysdeps/x86_64/tst-quad1.c: New file.
10737         * sysdeps/x86_64/tst-quad1pie.c: New file.
10738         * sysdeps/x86_64/tst-quad2.c: Likewise.
10739         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
10740         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
10741         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
10742         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
10743         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
10745 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10747         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
10748         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
10749         * streams/stropts.h (t_scalar_t): Define type.
10751         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
10752         (_PATH_PRESERVE): Set to "/var/lib".
10753         (_PATH_RWHODIR): Set to "/var/spool/rwho".
10755         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
10756         instead of int.
10758         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
10759         if __dir_mkfile succeeded.
10761         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
10762         checking for _hurd_dtablesize.  Unlock it right after having
10763         finished _hurd_dtable allocation.
10765 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10767         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
10768         * sysdeps/mach/hurd/configure: Regenerated.
10769         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
10770         special-casing to...
10771         * sysdeps/gnu/configure.in: ... this new file.
10772         * sysdeps/unix/sysv/linux/configure: Regenerated.
10773         * sysdeps/gnu/configure: New generated file.
10775         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
10776         for Linux: use nsec instead of usec, as well as:
10777         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
10778         members of type struct timespec.
10779         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
10780         New macros.
10781         (struct stat64): Likewise.
10782         (_STATBUF_ST_NSEC): New macro.
10783         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
10785         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
10786         __strtoul_internal rather than strtoul.
10788 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10790         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
10791         and reject them.
10793 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10795         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
10796         which preserves existing values.
10797         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
10799 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10801         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
10802         TIMEOUT values.  Return EINVAL for NFDS values either negative or
10803         greater than FD_SETSIZE.
10805 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10807         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
10808         allocated, call __vm_protect to finish enabling the existing space, and
10809         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
10810         allocate the remainder.
10812 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10814         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
10815         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
10817 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10819         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
10820         sysdeps/mach/hurd/readlink.c.
10822         * posix/tst-sysconf.c (posix_options): Only use
10823         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
10824         _POSIX_SYNCHRONIZED_IO when they are defined
10825         * sysdeps/mach/hurd/bits/posix_opt.h:
10826         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
10827         (_XOPEN_REALTIME): Undefine macro.
10828         (_XOPEN_REALTIME_THREADS): Undefine macro.
10829         (_XOPEN_SHM): Undefine macro.
10830         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
10831         macro to -1.
10832         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
10833         macro to -1.
10834         (_POSIX_ASYNC_IO): Undefine macro.
10835         (_POSIX_PRIORITIZED_IO): Undefine macro.
10836         (_POSIX_SPIN_LOCKS): Define macro to -1.
10838         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
10839         SA_NODEFER, SA_RESETHAND.
10840         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
10841         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
10842         F_DUPFD_CLOEXEC.
10844 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10846         * elf/Makefile (pldd-modules): Define unconditionally.
10848 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10850         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
10852 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10854         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
10855         Return ENOENT when name is empty.
10856         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
10858 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10860         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
10862         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
10864 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10866         Fix mlock in all cases except non-readable pages.
10867         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
10868         instead of VM_PROT_ALL as parameter to __vm_wire function.
10870         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
10871         (__mkdir): When path is `/', just fail with EEXIST.
10872         * sysdeps/mach/hurd/mkdirat.c: Likewise.
10874 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10876         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
10877         <sys/uio.h> (for writev).
10878         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
10879         and <sys/param.h> (for MIN).
10881 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10883         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
10884         REQUESTED_TIME.  Properly set the remaining time and return EINTR
10885         if interrupted.
10887 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10889         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
10890         Depend on against $(link-rpcuserlibs).
10892 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10894         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
10895         (__libc_stack_end): Do not use attribute_relro.
10896         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
10897         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
10898         to libthread-provided value.
10899         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
10900         attribute_relro.
10902 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10904         [BZ #3748]
10905         * bits/libc-lock.h (__libc_once_get): New macro.
10906         * sysdeps/mach/bits/libc-lock.h: Likewise.
10907         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
10908         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
10909         instead of using implementation details.
10911         * libio/fileops.c: Unconditionally include <kernel-features.h>.
10912         * libio/freopen.c: Likewise.
10913         * libio/freopen64.c: Likewise.
10914         * misc/syslog.c: Likewise.
10915         * nscd/connections.c: Likewise.
10916         * nscd/netgroupcache.c: Likewise.
10917         * sysdeps/posix/getcwd.c: Likewise.
10919 2012-05-10  Roland McGrath  <roland@hack.frob.com>
10921         * math/w_ilogbf.c: Add #include <limits.h>.
10923 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10925         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
10926         path instead of returning without unlocking.
10928         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
10929         immediate-write ioctls.
10930         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
10932 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10934         * sysdeps/mach/hurd/i386/init-first.c (init): Use
10935         __builtin_frame_address instead of making assumptions about the
10936         location of the return address relative to DATA.  Force early load of
10937         the return address.
10938         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
10939         __builtin_frame_address.
10941         dup3 for GNU Hurd.
10942         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
10943         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
10944         implement dup3 and do some further code clean-ups.
10945         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
10946         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
10948 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10950         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
10952         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
10953         HURD_CRITICAL_END around holding _hurd_dtable_lock.
10954         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
10955         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
10956         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
10957         d->port.lock.
10959         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
10960         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
10961         when handler == SIG_ERR, not when handler != SIG_ERR.
10963 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10965         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
10966         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
10967         definitions.
10969         accept4 for GNU Hurd.
10970         * include/sys/socket.h (__libc_accept4): New prototype.
10971         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
10972         to implement __libc_accept4.
10973         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
10974         __libc_accept4.
10975         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
10977         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
10978         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
10979         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
10980         signal-defines.sym.
10982 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10984         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
10986 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10988         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
10989         assertion on O_CLOEXEC flag.
10990         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
10991         * hurd/intern-fd.c: Likewise.
10992         * hurd/port2fd.c: Likewise.
10994 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10996         [BZ #3906]
10997         * bits/in.h (IPV6_PKTINFO): Define new macro.
10998         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
11000 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11002         [BZ #13954]
11003         [BZ #13955]
11004         [BZ #13956]
11005         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
11006         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
11007         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
11008         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
11009         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11010         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
11011         * math/libm-test.inc (logb_test) : Additional logb tests.
11013 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
11014             Andreas Jaeger  <aj@suse.de>
11016         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
11017         * configure: Regenerated.
11018         * config.h.in (LINK_OBSOLETE_RPC): New macro.
11019         * config.make.in (link-obsolete-rpc): New substituted variable.
11020         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
11021         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
11022         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
11023         (shared-only-routines): Don't set it under [link-obsolete-rpc],
11024         so that libc.a contains the symbols.
11025         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
11026         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
11027         * sunrpc/auth_none.c: Likewise.
11028         * sunrpc/auth_unix.c: Likewise.
11029         * sunrpc/authdes_prot.c: Likewise.
11030         * sunrpc/authuxprot.c: Likewise.
11031         * sunrpc/clnt_gen.c: Likewise.
11032         * sunrpc/clnt_perr.c: Likewise.
11033         * sunrpc/clnt_raw.c: Likewise.
11034         * sunrpc/clnt_simp.c: Likewise.
11035         * sunrpc/clnt_tcp.c: Likewise.
11036         * sunrpc/clnt_udp.c: Likewise.
11037         * sunrpc/clnt_unix.c: Likewise.
11038         * sunrpc/des_crypt.c: Likewise.
11039         * sunrpc/des_soft.c: Likewise.
11040         * sunrpc/get_myaddr.c: Likewise.
11041         * sunrpc/key_call.c: Likewise.
11042         * sunrpc/key_prot.c: Likewise.
11043         * sunrpc/netname.c: Likewise.
11044         * sunrpc/pm_getmaps.c: Likewise.
11045         * sunrpc/pm_getport.c: Likewise.
11046         * sunrpc/pmap_clnt.c: Likewise.
11047         * sunrpc/pmap_prot.c: Likewise.
11048         * sunrpc/pmap_prot2.c: Likewise.
11049         * sunrpc/pmap_rmt.c: Likewise.
11050         * sunrpc/publickey.c: Likewise.
11051         * sunrpc/rpc_cmsg.c: Likewise.
11052         * sunrpc/rpc_common.c: Likewise.
11053         * sunrpc/rpc_dtable.c: Likewise.
11054         * sunrpc/rpc_prot.c: Likewise.
11055         * sunrpc/rpc_thread.c: Likewise.
11056         * sunrpc/rtime.c: Likewise.
11057         * sunrpc/svc.c: Likewise.
11058         * sunrpc/svc_auth.c: Likewise.
11059         * sunrpc/svc_raw.c: Likewise.
11060         * sunrpc/svc_run.c: Likewise.
11061         * sunrpc/svc_tcp.c: Likewise.
11062         * sunrpc/svc_udp.c: Likewise.
11063         * sunrpc/svc_unix.c: Likewise.
11064         * sunrpc/svcauth_des.c: Likewise.
11065         * sunrpc/xcrypt.c: Likewise.
11066         * sunrpc/xdr.c: Likewise.
11067         * sunrpc/xdr_array.c: Likewise.
11068         * sunrpc/xdr_float.c: Likewise.
11069         * sunrpc/xdr_intXX_t.c: Likewise.
11070         * sunrpc/xdr_mem.c: Likewise.
11071         * sunrpc/xdr_rec.c: Likewise.
11072         * sunrpc/xdr_ref.c: Likewise.
11073         * sunrpc/xdr_sizeof.c: Likewise.
11074         * sunrpc/xdr_stdio.c: Likewise.
11076 2012-05-10  Roland McGrath  <roland@hack.frob.com>
11078         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
11079         change.  Update copyright years.
11081 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
11083         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
11085 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
11086             Joseph Myers  <joseph@codesourcery.com>
11087             Paul Pluzhnikov  <ppluzhnikov@google.com>
11089         [BZ #14012]
11090         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
11091         requiring rpcgen.
11092         [cross-compiling] (extra-libs): Likewise.
11093         [cross-compiling] (extra-libs-others): Likewise.
11094         [cross-compiling] (librpcsvc-routines): Likewise.
11095         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
11096         [cross-compiling] (omit-deps): Likewise.
11097         (sunrpc-CPPFLAGS): New variable.
11098         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
11099         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
11100         (cross-rpcgen-objs): New variable.
11101         (extra-objs): Append $(cross-rpcgen-objs).
11102         ($(cross-rpcgen-objs)): New rule.
11103         ($(objpfx)cross-rpcgen): Likewise.
11104         (rpcgen-cmd): Define to use $(built-program-file).  Expand
11105         comment.
11106         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
11107         ($(objpfx)x%.stmp): Likewise.
11108         * sunrpc/proto.h [IS_IN_build] (_): Define.
11109         [IS_IN_build] (_libc_intl_domainname): Likewise.
11111 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11113         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
11114         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
11115         and R_X86_64_TPOFF64.
11117 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
11119         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
11120         sysdeps/unix/sysv/syscalls.list.
11121         (stime): Likewise.
11122         (utime): Likewise.
11123         * sysdeps/unix/sysv/syscalls.list: Remove file.
11125 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11127         [BZ #3440]
11128         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
11129         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
11130         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
11131         (__LC_IDENTIFICATION): Make these macros useful in #if
11132         expressions, as required by C99.
11134 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
11136         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
11137         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
11138         after this.
11140 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
11142         * stdlib/longlong.h: Updated from GCC.
11144 2012-05-09  Andreas Jaeger  <aj@suse.de>
11146         * nscd/nscd.c (run_modes): Make named enum, reorder so that
11147         default is first entry.
11148         (run_mode): Set type.
11149         (main): Remove informal message about syslog.
11150         (options): Fix typo.
11152         [BZ #14053]
11153         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
11154         to asm.
11155         (lrint): Likewise.
11156         (llrintf): Likewise.
11157         (llrint): Likewise.
11158         (rint): Likewise.
11159         (rintf): Likewise.
11160         (nearbyint): Likewise.
11161         (nearbyintf): Likewise.
11163 2012-05-09  Andreas Jaeger  <aj@suse.de>
11164             Pedro Alves  <palves@redhat.com>
11166         * nscd/nscd.c (run_mode): Use enum.
11167         (main): Cleanup coding style issue.
11169 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
11170             Andreas Jaeger  <aj@suse.de>
11172         * nscd/nscd.c (go_background): Replaced with...
11173         (run_mode): ... this.
11174         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
11175         (options): Add -F --foreground.
11176         (main): Implement it.
11177         (parse_opt): Parse it.
11179 2012-05-09  Andreas Jaeger  <aj@suse.de>
11181         [BZ #14083]
11182         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
11183         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
11184         -Wconversion warning.
11185         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
11186         Likewise.
11188 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
11190         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
11191         == 0.
11192         (LC_ALL): Use macro-int-constant.
11193         (LC_COLLATE): Likewise.
11194         (LC_CTYPE): Likewise.
11195         (LC_MESSAGES): Likewise.
11196         (LC_MONETARY): Likewise.
11197         (LC_NUMERIC): Likewise.
11198         (LC_TIME): Likewise.
11199         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
11200         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
11201         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11202         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
11203         Specify type.
11204         [C99-based standards] (float_t): Expect type.
11205         [C99-based standards] (double_t): Expect type.
11206         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
11207         type.
11208         [C99-based standards] (HUGE_VALL): Likewise.
11209         [C99-based standards] (INFINITY): Likewise.
11210         [C99-based standards] (NAN): Likewise.
11211         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
11212         [C99-based standards] (FP_NAN): Likewise.
11213         [C99-based standards] (FP_NORMAL): Likewise.
11214         [C99-based standards] (FP_SUBNORMAL): Likewise.
11215         [C99-based standards] (FP_ZERO): Likewise.
11216         [C99-based standards] (FP_FAST_FMA): Use
11217         optional-macro-int-constant.  Specify type.  Require == 1.
11218         [C99-based standards] (FP_FAST_FMAF): Likewise.
11219         [C99-based standards] (FP_FAST_FMAL): Likewise.
11220         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
11221         [C99-based standards] (FP_ILOGBNAN): Likewise.
11222         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
11223         Specify type.
11224         [C99-based standards] (MATH_ERREXCEPT): Likewise.
11225         [C99-based standards] (math_errhandling): Specify type.
11226         [ISO99 || ISO11] (signgam): Do not allow.
11227         [non-C99-based standards] (copysignf): Do not allow.
11228         [non-C99-based standards] (exp2f): Likewise.
11229         [non-C99-based standards] (log2f): Likewise.
11230         [non-C99-based standards] (modff): Allow.
11231         [non-C99-based standards] (erff): Do not allow.
11232         [non-C99-based standards] (erfcf): Likewise.
11233         [non-C99-based standards] (gammaf): Likewise.
11234         [non-C99-based standards] (hypotf): Likewise.
11235         [non-C99-based standards] (j0f): Likewise.
11236         [non-C99-based standards] (j1f): Likewise.
11237         [non-C99-based standards] (jnf): Likewise.
11238         [non-C99-based standards] (lgammaf): Likewise.
11239         [non-C99-based standards] (tgammaf): Likewise.
11240         [non-C99-based standards] (y0f): Likewise.
11241         [non-C99-based standards] (y1f): Likewise.
11242         [non-C99-based standards] (ynf): Likewise.
11243         [non-C99-based standards] (isnanf): Likewise.
11244         [non-C99-based standards] (acoshf): Likewise.
11245         [non-C99-based standards] (asinhf): Likewise.
11246         [non-C99-based standards] (atanhf): Likewise.
11247         [non-C99-based standards] (cbrtf): Likewise.
11248         [non-C99-based standards] (expm1f): Likewise.
11249         [non-C99-based standards] (ilogbf): Likewise.
11250         [non-C99-based standards] (log1pf): Likewise.
11251         [non-C99-based standards] (logbf): Likewise.
11252         [non-C99-based standards] (nextafterf): Likewise.
11253         [non-C99-based standards] (remainderf): Likewise.
11254         [non-C99-based standards] (rintf): Likewise.
11255         [non-C99-based standards] (scalbf): Likewise.
11256         [non-C99-based standards] (copysignl): Likewise.
11257         [non-C99-based standards] (exp2l): Likewise.
11258         [non-C99-based standards] (log2l): Likewise.
11259         [non-C99-based standards] (modfl): Allow.
11260         [non-C99-based standards] (erfl): Do not allow.
11261         [non-C99-based standards] (erfcl): Likewise.
11262         [non-C99-based standards] (gammal): Likewise.
11263         [non-C99-based standards] (hypotl): Likewise.
11264         [non-C99-based standards] (j0l): Likewise.
11265         [non-C99-based standards] (j1l): Likewise.
11266         [non-C99-based standards] (jnl): Likewise.
11267         [non-C99-based standards] (lgammal): Likewise.
11268         [non-C99-based standards] (tgammal): Likewise.
11269         [non-C99-based standards] (y0l): Likewise.
11270         [non-C99-based standards] (y1l): Likewise.
11271         [non-C99-based standards] (ynl): Likewise.
11272         [non-C99-based standards] (isnanl): Likewise.
11273         [non-C99-based standards] (acoshl): Likewise.
11274         [non-C99-based standards] (asinhl): Likewise.
11275         [non-C99-based standards] (atanhl): Likewise.
11276         [non-C99-based standards] (cbrtl): Likewise.
11277         [non-C99-based standards] (expm1l): Likewise.
11278         [non-C99-based standards] (ilogbl): Likewise.
11279         [non-C99-based standards] (log1pl): Likewise.
11280         [non-C99-based standards] (logbl): Likewise.
11281         [non-C99-based standards] (nextafterl): Likewise.
11282         [non-C99-based standards] (remainderl): Likewise.
11283         [non-C99-based standards] (rintl): Likewise.
11284         [non-C99-based standards] (scalbl): Likewise.
11285         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11286         [non-C99-based standards] (FP_*): Do not allow.
11287         [C99-based standards] (FP_*): Change to
11288         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
11289         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
11290         allow.
11291         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
11292         (SIG_ERR): Likewise.
11293         [X/Open-based standards] (SIG_HOLD): Likewise.
11294         (SIG_IGN): Likewise.
11295         (SIGABRT): Use macro-int-constant.  Specify type.  Require
11296         positive value.
11297         (SIGFPE): Likewise.
11298         (SIGILL): Likewise.
11299         (SIGINT): Likewise.
11300         (SIGSEGV): Likewise.
11301         (SIGTER): Likewise.
11302         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
11303         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
11304         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
11305         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
11306         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
11307         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
11308         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
11309         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
11310         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
11311         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
11312         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
11313         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
11314         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
11315         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
11316         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
11317         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
11318         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
11319         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
11320         [X/Open-based standards] (SIGTRAP): Likewise.
11321         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
11322         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
11323         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
11324         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
11325         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
11326         allow.
11328 2012-05-08  Ian Wienand  <ianw@vmware.com>
11330         [BZ #14080]
11331         * time/tzset.c (__tzset_parse_tz): Update default rules for
11332         daylight time changes in the Energy Policy Act of 2005.
11334 2012-05-09  Andreas Jaeger  <aj@suse.de>
11336         [BZ #13983]
11337         * elf/ldconfig.c (parse_conf): Change string to make clear that
11338         ldconfig only issued a warning if ld.so.conf does not exist.
11340 2012-05-08  David S. Miller  <davem@davemloft.net>
11342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
11343         movxtod instead of popping the value on the stack.
11345         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11347 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
11349         * config.h.in: Add HAVE_ARM_PCS_VFP.
11351 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
11353         [BZ #13979]
11354         * include/features.h: Warn if user requests __FORTIFY_SOURCE
11355         checking but the checks are disabled for any reason.
11357 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
11359         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
11360         and ELF64_R_TYPE with ELFW(R_TYPE).
11362 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
11364         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
11365         (ulimit): Likewise.
11367         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
11368         (settimeofday): Likewise.
11370 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
11372         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
11373         a struct th_u2 inside the union, and move tu_block/tu_code into
11374         a new th_u3 union of tu_block/tu_code inside of that.  Move
11375         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
11376         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
11377         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
11378         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
11379         (th_stuff): Change to th_u1.tu_stuff.
11380         (th_data): Define.
11381         (th_msg): Change to th_u1.th_u2.tu_data.
11383 2012-05-07  David S. Miller  <davem@davemloft.net>
11385         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11387         [BZ #14074]
11388         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
11389         (SETUP_PIC_REG): Use it.
11390         (SETUP_PIC_REG_LEAF): Use it.
11392 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
11394         [BZ #13885]
11395         [BZ #13923]
11396         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
11397         USE_AS_EXPM1L.
11398         (EXPL_FINITE): Likewise.
11399         (FLDLOG): Likewise.
11400         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
11401         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
11402         e_expl.S.
11403         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
11404         USE_AS_EXPM1L.
11405         (EXPL_FINITE): Likewise.
11406         (FLDLOG): Likewise.
11407         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
11408         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
11409         e_expl.S.
11410         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
11411         test of -max_value argument for long double.
11412         * sysdeps/i386/fpu/libm-test-ulps: Update.
11413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11415 2012-05-06  David S. Miller  <davem@davemloft.net>
11417         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
11418         quad soft-float symbols whose references which are compiler
11419         generated.
11420         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11422 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
11424         [BZ #13884]
11425         [BZ #13914]
11426         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
11427         USE_AS_EXP10L.
11428         (EXPL_FINITE): Likewise.
11429         (FLDLOG): Likewise.
11430         (c0): Likewise.
11431         (c1): Likewise.
11432         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
11433         Adjust comments for base varying.
11434         (__expl_finite): Change alias to EXPL_FINITE.
11435         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
11436         e_expl.S.
11437         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
11438         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
11440         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
11441         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
11442         USE_AS_EXP10L.
11443         (EXPL_FINITE): Likewise.
11444         (FLDLOG): Likewise.
11445         (c0): Likewise.
11446         (c1): Likewise.
11447         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
11448         Adjust comments for base varying.
11449         (__expl_finite): Change alias to EXPL_FINITE.
11450         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
11451         tests for bugs.
11452         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11454         [BZ #14064]
11455         * math/libm-test.inc (check_float_internal): Correct ulp
11456         calculation for subnormal expected results.
11458 2012-05-06  Andreas Jaeger  <aj@suse.de>
11460         * Makeconfig (+math-flags): New, set to -frounding-math.
11461         (+cflags): Add +math-flags so that all of glibc gets compiled with
11462         it.
11464         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
11466 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
11468         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
11469         Disable one test.
11471         [BZ #13787]
11472         [BZ #13922]
11473         [BZ #14036]
11474         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
11475         (__ieee754_expl): Allow for and saturate large arguments.
11476         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
11477         (u_threshold): Likewise.
11478         (__exp): Call __ieee754_exp before checking for overflow and
11479         underflow.
11480         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
11481         (u_threshold): Likewise.
11482         (__expf): Call __ieee754_expf before checking for overflow and
11483         underflow.
11484         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
11485         (u_threshold): Likewise.
11486         (__expl): Call __ieee754_expl before checking for overflow and
11487         underflow.
11488         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
11489         (__ieee754_expl): Allow for and saturate large arguments.
11490         * math/libm-test.inc (exp_test): Add another test.  Do not allow
11491         missing overflow exception on overflow.
11492         (expm1_test): Do not allow missing overflow exception on overflow.
11494         * sysdeps/i386/fpu/e_expl.c: Move to ...
11495         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
11496         rather than using inline asm.
11497         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
11498         * sysdeps/x86_64/fpu/e_expl.S: Copy from
11499         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
11501         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
11502         (nice): Likewise.
11503         (poll): Likewise.
11504         (signal): Likewise.
11505         (time): Likewise.
11506         (times): Likewise.
11508 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
11510         * sysdeps/unix/syscalls.list (adjtime): Add entry from
11511         sysdeps/unix/common/syscalls.list.
11512         (fchmod): Likewise.
11513         (fchown): Likewise.
11514         (ftruncate): Likewise.
11515         (getrusage): Likewise.
11516         (gettimeofday): Likewise.
11517         (setpgid): Likewise.
11518         (setregid): Likewise.
11519         (setreuid): Likewise.
11520         (sigaction): Likewise.
11521         (truncate): Likewise.
11522         (vhangup): Likewise.
11523         * sysdeps/unix/common/syscalls.list: Remove file.
11524         * sysdeps/unix/bsd/Implies: Don't include unix/common.
11525         * sysdeps/unix/sysv/linux/Implies: Likewise.
11527 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11529         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
11530         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
11531         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
11532         Moved to ...
11533         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
11534         Here.
11535         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
11536         to ...
11537         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
11538         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
11539         to ...
11540         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
11541         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
11542         to ...
11543         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
11544         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
11545         to ...
11546         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
11547         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
11548         to ...
11549         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
11550         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
11551         to ...
11552         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
11553         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
11554         to ...
11555         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
11556         Here.
11557         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
11558         to ...
11559         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
11560         Here.
11561         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
11562         to ...
11563         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
11564         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
11565         Moved to ...
11566         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
11567         Here.
11568         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
11569         to ...
11570         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
11572 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
11574         * sysdeps/unix/common/bits/dirent.h: Remove file.
11575         * sysdeps/unix/common/bits/fcntl.h: Likewise.
11577         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
11578         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
11579         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
11580         * sysdeps/unix/bsd/isatty.c: Likewise.
11581         * sysdeps/unix/bsd/tcdrain.c: Likewise.
11582         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
11583         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
11585 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11587         [BZ #13563]
11588         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
11589         long double comparison inaccuracies.
11590         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
11591         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11593 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
11595         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
11596         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
11598 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
11600         [BZ #14049]
11601         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
11602         nonzero digits before rounding a hex value.
11603         * stdlib/tst-strtod.c (tests): Add another test.
11605 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11607         * sysdeps/s390/fpu/libm-test-ulps: Update.
11609 2012-05-03  Andreas Jaeger  <aj@suse.de>
11611         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
11612         does not get optimized out.
11613         (malloc_opt_barrier): New.
11615 2012-05-03  Andreas Jaeger  <aj@suse.de>
11616             Roland McGrath  <roland@hack.frob.com>
11618         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
11619         intermediate file deletion.
11620         (generated): Add .symlist files.
11622 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
11624         [BZ #13775]
11625         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
11626         Redirect under this condition.
11627         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
11628         [__USE_GNU] (__dprintf_chk): Not under this condition.
11629         [__USE_GNU] (__vdprintf_chk): Likewise.
11630         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
11631         under this condition.
11632         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
11633         [__USE_XOPEN2K8] (dprintf): Define under this condition.
11634         [__USE_XOPEN2K8] (vdprintf): Likewise.
11635         [__USE_GNU] (__dprintf_chk): Not under this condition.
11636         [__USE_GNU] (__vdprintf_chk): Likewise.
11637         [__USE_GNU] (dprintf): Likewise.
11638         [__USE_GNU] (vdprintf): Likewise.
11640 2012-05-03  Roland McGrath  <roland@hack.frob.com>
11642         * elf/Makefile (common-generated): Set this instead of generated for
11643         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
11644         $(all-built-dso)-derived lists.
11646 2012-05-03  Andreas Jaeger  <aj@suse.de>
11648         * sysdeps/i386/fpu/libm-test-ulps: Update.
11650         * FAQ: Removed.
11651         * FAQ.in: Likewise.
11652         * scripts/gen-FAQ.pl: Likewise.
11653         * manual/install.texi (Installation): Point to online location of
11654         FAQ.
11655         * Makefile (files-for-dist): Remove FAQ.
11656         (FAQ): Remove.
11658 2012-05-02  Allan McRae  <allan@archlinux.org>
11660         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
11661         (LDFLAGS-reldepmod5.so): Likewise.
11662         (LDFLAGS-reldep6mod1.so): Likewise.
11663         (LDFLAGS-reldep6mod4.so): Likewise.
11664         (LDFLAGS-reldep8mod3.so): Likewise.
11665         (LDFLAGS-unload4mod1.so): Likewise.
11666         (LDFLAGS-unload4mod2.so): Likewise.
11667         (LDFLAGS-tst-initorder): Likewise.
11668         (LDFLAGS-tst-initordera2.so): Likewise.
11669         (LDFLAGS-tst-initordera3.so): Likewise.
11670         (LDFLAGS-tst-initordera4.so): Likewise.
11671         (LDFLAGS-tst-initorderb2.so): Likewise.
11672         (LDFLAGS-noload): Likewise.
11673         (LDFLAGS-next): Likewise.
11674         (LDFLAGS-order2mod1.so): Likewise.
11675         (LDFLAGS-order2mod2.so): Likewise.
11676         (LDFLAGS-tst-initorder2): Likewise.
11677         (LDFLAGS-tst-initorder2a.so): Likewise.
11678         (LDFLAGS-tst-initorder2b.so): Likewise.
11679         (LDFLAGS-tst-initorder2c.so): Likewise.
11680         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
11682 2012-05-02  David S. Miller  <davem@davemloft.net>
11684         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11686 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
11688         [BZ #14055]
11689         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
11691 2012-05-02  Andreas Jaeger  <aj@suse.de>
11693         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
11694         since we manipulate rounding mode.
11695         (CPPFLAGS-test-idouble.c): Likewise.
11696         (CPPFLAGS-test-ifloat.c): Likewise.
11697         (CFLAGS-test-ldouble.c): Likewise.
11698         (CFLAGS-test-double.c): Likewise.
11699         (CFLAGS-test-float.c): Likewise.
11700         (CFLAGS-test-misc.c): Likewise.
11701         (CFLAGS-test-test-fenv.c): Likewise.
11703 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11705         [BZ #2550]
11706         [BZ #2570]
11707         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
11708         comparisons to determine direction to adjust input.
11710 2012-05-01  Roland McGrath  <roland@hack.frob.com>
11712         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
11713         output to the target.
11715         * scripts/localplt.awk: New file.
11716         * elf/Makefile ($(objpfx)check-localplt): Target removed.
11717         (check-localplt-CFLAGS): Variable removed.
11718         ($(all-built-dso:=.jmprel)): New static pattern rule.
11719         (generated): Add those targets.
11720         (localplt-built-dso): New variable.
11721         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
11723         * elf/check-localplt.c: File removed.
11725         * scripts/check-execstack.awk: New file.
11726         * elf/Makefile ($(objpfx)check-execstack): Target removed.
11727         (check-execstack-CFLAGS): Variable removed.
11728         ($(objpfx)check-execstack.h): Target removed.
11729         ($(objpfx)execstack-default): New target.
11730         (generated): Add that instead of check-execstack.h.
11731         ($(all-built-dso:=.phdr)): New static pattern rule.
11732         (generated): Add those targets.
11733         * elf/check-execstack.c: File removed.
11735         * scripts/check-textrel.awk: New file.
11736         * elf/Makefile ($(objpfx)check-textrel): Target removed.
11737         (check-textrel-CFLAGS): Variable removed.
11738         (all-built-dso): Use := to define.o
11739         ($(all-built-dso:=.dyn)): New static pattern rule.
11740         (generated): Add those targets.
11741         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
11742         * config.make.in (READELF): New substituted variable.
11743         * elf/check-textrel.c: File removed.
11745 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
11747         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
11748         allow.
11749         * conform/data/ctype.h-data [C99-based standards] (isblank):
11750         Expect function.
11751         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
11752         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
11753         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11754         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
11755         Specify type.  Require positive value.
11756         (EILSEQ): Likewise.
11757         (ERANGE): Likewise.
11758         [ISO || POSIX] (EILSEQ): Do not expect.
11759         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
11760         Specify type.  Require positive value.
11761         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
11762         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
11763         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
11764         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
11765         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
11766         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
11767         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
11768         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
11769         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
11770         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
11771         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
11772         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
11773         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
11774         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
11775         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
11776         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
11777         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
11778         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
11779         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
11780         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
11781         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
11782         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
11783         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
11784         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
11785         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
11786         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
11787         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
11788         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
11789         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
11790         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
11791         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
11792         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
11793         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
11794         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
11795         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
11796         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
11797         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
11798         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
11799         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
11800         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
11801         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
11802         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
11803         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
11804         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
11805         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
11806         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
11807         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
11808         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
11809         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
11810         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
11811         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
11812         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
11813         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
11814         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
11815         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
11816         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
11817         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
11818         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
11819         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
11820         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
11821         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
11822         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
11823         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
11824         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
11825         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
11826         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
11827         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
11828         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
11829         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
11830         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
11831         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
11832         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
11833         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
11834         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
11835         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
11836         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
11837         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
11838         Require >= 2.
11839         (FLT_ROUNDS): Expect as macro, not constant.
11840         (FLT_MANT_DIG): Use macro-int-constant.
11841         (DBL_MANT_DIG): Likewise.
11842         (LDBL_MANT_DIG): Likewise.
11843         (FLT_DIG): Likewise.
11844         (DBL_DIG): Likewise.
11845         (LDBL_DIG): Likewise.
11846         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
11847         (DBL_MIN_EXP): Likewise.
11848         (LDBL_MIN_EXP): Likewise.
11849         (FLT_MAX_EXP): Use macro-int-constant.
11850         (DBL_MAX_EXP): Likewise.
11851         (LDBL_MAX_EXP): Likewise.
11852         (FLT_MAX_10_EXP): Likewise.
11853         (DBL_MAX_10_EXP): Likewise.
11854         (LDBL_MAX_10_EXP): Likewise.
11855         (FLT_MAX): Use macro-constant.
11856         (DBL_MAX): Likewise.
11857         (LDBL_MAX): Likewise.
11858         (FLT_EPSILON): Use macro-constant.  Give upper bound.
11859         (DBL_EPSILON): Likewise.
11860         (LDBL_EPSILON): Likewise.
11861         (FLT_MIN): Likewise.
11862         (DBL_MIN): Likewise.
11863         (LDBL_MIN): Likewise.
11864         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
11865         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
11866         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
11867         [ISO11] (FLT_HAS_SUBNORM): Likewise.
11868         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
11869         [ISO11] (DBL_DECIMAL_DIG): Likewise.
11870         [ISO11] (FLT_DECIMAL_DIG): Likewise.
11871         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
11872         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
11873         [ISO11] (FLT_TRUE_MIN): Likewise.
11874         [ISO11] (LDBL_TRUE_MIN): Likewise.
11875         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11876         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
11877         (SCHAR_MIN): Use macro-int-constant.  Specify type.
11878         (SCHAR_MAX): Likewise.
11879         (UCHAR_MAX): Likewise.
11880         (CHAR_MIN): Likewise.
11881         (CHAR_MAX): Likewise.
11882         (MB_LEN_MAX): Use macro-int-constant.
11883         (SHRT_MIN): Use macro-int-constant.  Specify type.
11884         (SHRT_MAX): Likewise.
11885         (USHRT_MAX): Likewise.
11886         (INT_MAX): Likewise.
11887         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
11888         bound negative.
11889         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
11890         bound with "U".
11891         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
11892         bound with "L".
11893         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
11894         bound negative.  Suffix upper bound with "L".
11895         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
11896         bound with "UL".
11897         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
11898         Specify type.
11899         [C99-based standards] (LLONG_MAX): Likewise.
11900         [C99-based standards] (ULLONG_MAX): Likewise.
11901         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
11902         == 0.
11903         [ISO11] (max_align_t): Require type.
11904         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11906         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
11907         from $CFLAGS, without defining away __attribute__ calls.
11908         (checknamespace): Use $CFLAGS_namespace.
11910         * conform/conformtest.pl (@keywords): Only include C99 keywords
11911         for standards based on C99 or C11.
11913         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
11914         Disable tests.
11915         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
11916         UNIX98]: Likewise.
11918         * conform/conformtest.pl: Handle "macro-int-constant" and test for
11919         usability of symbols in #if.
11921         * conform/conformtest.pl: If macro or constant types start
11922         "promoted:", expect the symbol to be of the following type
11923         promoted by the integer promotions.
11925         * conform/conformtest.pl: Parse all "constant" and "macro" lines
11926         in one place.  Also handle "macro-constant".
11928         * conform/conformtest.pl: Only accept expected macro values with
11929         "==".  Parse all "macro" lines in one place.
11930         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
11932         * conform/conformtest.pl: Handle braced types on "constant" lines
11933         instead of handling "typed-constant".
11934         * conform/data/signal.h-data: Use "constant" instead of
11935         "typed-constant".
11937         * conform/conformtest.pl: Handle "optional-" at start of lines in
11938         one place rather than duplicating several cases.  Handle each
11939         format of "macro" line with initial "optional-".
11941         * conform/conformtest.pl: Only accept expected constant or
11942         optional-constant values with "==".  Parse all "constant" lines in
11943         one place.  Parse all "optional-constant" lines in one place.
11944         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
11945         * conform/data/fmtmsg.h-data: Likewise.
11946         * conform/data/netinet/in.h-data: Likewise.
11947         * conform/data/tar.h-data: Likewise.
11948         * conform/data/limits.h-data: Use "==" form on "constant" and
11949         "optional-constant" lines.
11951         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
11952         Use -std=c99 for XOPEN2K.
11953         (@knownproblems): Remove.
11954         (newtoken): Don't check %isknown.
11956         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
11957         Do not expect macro.
11958         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
11959         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
11960         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
11961         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
11962         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
11963         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
11964         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
11965         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
11966         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
11967         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
11968         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
11969         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
11970         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
11971         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
11972         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
11973         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
11974         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
11975         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
11976         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
11977         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
11978         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
11979         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
11980         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
11981         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
11982         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
11983         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
11984         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
11985         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
11986         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
11987         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
11988         [XPG3] (acosh): Likewise.
11989         [XPG3] (asinh): Likewise.
11990         [XPG3] (atanh): Likewise.
11991         [XPG3] (cbrt): Likewise.
11992         [XPG3] (expm1): Likewise.
11993         [XPG3] (ilogb): Likewise.
11994         [XPG3] (log1p): Likewise.
11995         [XPG3] (logb): Likewise.
11996         [XPG3] (nextafter): Likewise.
11997         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
11998         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
11999         [XPG3] (remainder): Likewise.
12000         [XPG3] (rint): Likewise.
12001         [XPG3 || XPG4 || UNIX98] (round): Likewise.
12002         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
12003         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
12004         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
12005         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
12006         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
12007         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
12008         [UNIX98 || XOPEN2K] (scalb): Expect.
12009         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
12010         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
12011         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
12012         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
12013         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
12014         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
12015         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
12016         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
12017         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
12018         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
12019         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
12020         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
12021         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
12022         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
12023         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
12024         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
12025         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
12026         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
12027         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
12028         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
12029         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
12030         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
12031         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
12032         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
12033         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
12034         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
12035         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
12036         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
12037         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
12038         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
12039         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
12040         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
12041         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
12042         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
12043         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
12044         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
12045         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
12046         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
12047         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
12048         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
12049         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
12050         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
12051         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
12052         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
12053         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
12054         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
12055         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
12056         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
12057         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
12058         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
12059         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
12060         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
12061         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
12062         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
12063         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
12064         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
12065         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
12066         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
12067         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
12068         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
12069         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
12070         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
12071         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
12072         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
12073         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
12074         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
12075         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
12076         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
12077         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
12078         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
12079         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
12080         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
12081         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
12082         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
12083         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
12084         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
12085         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
12086         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
12087         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
12088         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
12089         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
12090         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
12091         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
12092         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
12093         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
12094         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
12095         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
12096         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
12097         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
12098         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
12099         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
12100         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
12101         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
12102         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
12103         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
12104         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
12105         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
12106         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
12107         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
12108         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
12109         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
12110         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
12111         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
12112         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
12113         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
12114         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
12115         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
12116         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
12117         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
12118         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
12119         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
12120         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
12121         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
12122         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
12123         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
12124         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
12125         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
12126         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
12127         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
12128         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
12129         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
12130         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
12131         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
12132         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
12133         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
12134         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
12135         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
12136         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
12137         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
12138         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
12139         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
12140         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
12141         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
12142         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
12143         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
12144         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
12145         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
12147         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
12148         _XOPEN_SOURCE_EXTENDED for XPG4.
12150         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
12152         * Makeconfig (localtime): Remove variable.
12153         (inst_localtime-file): Likewise.
12155 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
12157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
12158         Update.
12159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12160         Update.
12161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
12162         Update.
12163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
12164         Update.
12165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
12166         Update.
12167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
12168         Update.
12169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12170         Update.
12171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
12172         Update.
12173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
12174         Update.
12176 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
12178         [BZ #2550]
12179         [BZ #2570]
12180         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
12181         comparisons to determine direction to adjust input.
12182         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
12183         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
12184         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
12185         Likewise.
12186         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
12187         Likewise.
12188         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
12189         Likewise.
12190         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
12191         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
12192         Likewise.
12193         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
12194         Likewise.
12195         * math/libm-test.inc (nexttoward_test): Add more tests.
12197 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
12199         [BZ #14040]
12200         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
12201         in version GLIBC_2.1, not GLIBC_2.0.
12202         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
12203         Likewise.
12205 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
12207         [BZ #13942]
12208         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
12209         (1 - x) * (1 + x).
12210         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
12211         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
12212         * math/libm-test.inc (acos_test): Add more tests.
12213         (asin_test): Likewise.
12214         * sysdeps/i386/fpu/libm-test-ulps: Update.
12215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12217         [BZ #14034]
12218         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
12219         of square root.
12220         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
12221         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
12222         * math/libm-test.inc (acos_test_tonearest): New function.
12223         (acos_test_towardzero): Likewise.
12224         (acos_test_downward): Likewise.
12225         (acos_test_upward): Likewise.
12226         (asin_test_tonearest): Likewise.
12227         (asin_test_towardzero): Likewise.
12228         (asin_test_downward): Likewise.
12229         (asin_test_upward): Likewise.
12230         (main): Call the new functions.
12231         * sysdeps/i386/fpu/libm-test-ulps: Update.
12232         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12234         [BZ #13884]
12235         [BZ #13924]
12236         * math/e_exp10.c: Include <float.h>.
12237         (__ieee754_exp10): Handle underflow here rather than multiplying
12238         large negative argument by M_LN10.
12239         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
12240         of __ieee754_expf.
12241         * math/e_exp10l.c: Include <float.h>.
12242         (__ieee754_exp10l): Handle underflow here rather than multiplying
12243         large negative argument by M_LN10l.
12244         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
12245         spurious overflow exception on underflow.
12247 2012-04-29  Marek Polacek  <polacek@redhat.com>
12249         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
12250         (__fortify_function): New macro.
12251         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
12252         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
12253         __extern_always_inline.
12254         * libio/bits/stdio2.h: Likewise.
12255         * libio/bits/stdio.h: Likewise.
12256         * string/string.h: Likewise.
12257         * string/bits/string3.h: Likewise.
12258         * include/stdio.h: Likewise.
12259         * stdlib/bits/stdlib.h: Likewise.
12260         * stdlib/stdlib.h: Likewise.
12261         * rt/bits/mqueue2.h: Likewise.
12262         * rt/mqueue.h: Likewise.
12263         * posix/bits/unistd.h: Likewise.
12264         * posix/unistd.h: Likewise.
12265         * io/bits/poll2.h: Likewise.
12266         * io/bits/fcntl2.h: Likewise.
12267         * io/fcntl.h: Likewise.
12268         * io/sys/poll.h: Likewise.
12269         * misc/bits/syslog.h: Likewise.
12270         * misc/bits/syslog-ldbl.h: Likewise.
12271         * misc/sys/syslog.h: Likewise.
12272         * socket/bits/socket2.h: Likewise.
12273         * socket/sys/socket.h: Likewise.
12274         * debug/tst-chk1.c: Likewise.
12275         * wcsmbs/bits/wchar2.h: Likewise.
12276         * wcsmbs/bits/wchar-ldbl.h: Likewise.
12277         * wcsmbs/wchar.h: Likewise.
12279 2012-04-29  Andreas Jaeger  <aj@suse.de>
12281         * Makerules (tests): Remove enable-check-abi protection.
12282         (check-abi-warn): Remove.
12283         (check-abi-%): Remove check-abi-warn usage.
12285         * configure.in: Remove check-abi configure option.
12286         * configure: Regenerated.
12287         * config.make.in (enable-check-abi): Remove.
12289 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
12291         [BZ #14033]
12292         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
12293         double functions to double *_finite functions.
12295         [BZ #13941]
12296         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
12297         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
12298         LDBL_MIN_EXP.
12299         * stdio-common/Makefile (tests): Add tst-sprintf3.
12300         * stdio-common/tst-sprintf3.c: New file.
12302         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
12303         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
12305 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
12307         * conform/conformtest.pl: Remove duplicate typed-constant
12308         handling.
12310 2012-04-28  David S. Miller  <davem@davemloft.net>
12312         * Makerules (%.abilist): Add vpath on sysdep_dirs.
12313         (check-abi-%): Remove AWK script prerequisite and explicit
12314         abilist directory.
12315         (check-abi): Rewrite to just diff the symlist with the abilist.
12316         (config-tls, config-abi-config): Delete, no longer used.
12317         (update-abi-%): Remove AWK script and explicit abilist directory.
12318         (update-abi): Rewrite to simply compare and conditionally copy the
12319         symlist and the sysdep abilist file.  Remove update-abi-config
12320         checks.
12321         * abilist/ld.abilist: Remove.
12322         * abilist/libBrokenLocale.abilist: Remove.
12323         * abilist/libanl.abilist: Remove.
12324         * abilist/libcrypt.abilist: Remove.
12325         * abilist/libdl.abilist: Remove.
12326         * abilist/librt.abilist: Remove.
12327         * abilist/libthread_db.abilist: Remove.
12328         * abilist/libutil.abilist: Remove.
12329         * scripts/extract-abilist.awk: Remove.
12330         * scripts/merge-abilist.awk: Remove.
12331         * sysdeps/generic/libcidn.abilist: New file.
12332         * sysdeps/generic/libnss_compat.abilist: New file.
12333         * sysdeps/generic/libnss_db.abilist: New file.
12334         * sysdeps/generic/libnss_dns.abilist: New file.
12335         * sysdeps/generic/libnss_files.abilist: New file.
12336         * sysdeps/generic/libnss_hesiod.abilist: New file.
12337         * sysdeps/generic/libnss_nis.abilist: New file.
12338         * sysdeps/generic/libnss_nisplus.abilist: New file.
12339         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
12340         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
12341         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
12342         file.
12343         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
12344         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
12345         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
12346         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
12347         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
12348         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
12349         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
12350         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
12351         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
12352         file.
12353         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
12354         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
12355         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
12356         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
12357         file.
12358         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
12359         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
12360         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
12361         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
12362         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
12363         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
12364         file.
12365         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
12366         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
12367         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
12368         file.
12369         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
12370         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
12371         New file.
12372         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
12373         New file.
12374         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
12375         New file.
12376         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
12377         New file.
12378         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
12379         New file.
12380         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
12381         New file.
12382         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
12383         New file.
12384         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
12385         New file.
12386         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
12387         New file.
12388         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
12389         New file.
12390         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
12391         New file.
12392         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
12393         New file.
12394         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
12395         New file.
12396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
12397         file.
12398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
12399         New file.
12400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
12401         New file.
12402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
12403         file.
12404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
12405         New file.
12406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
12407         New file.
12408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
12409         file.
12410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
12411         New file.
12412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
12413         New file.
12414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
12415         New file.
12416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
12417         New file.
12418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
12419         New file.
12420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
12421         New file.
12422         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
12423         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
12424         file.
12425         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
12426         New file.
12427         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
12428         file.
12429         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
12430         file.
12431         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
12432         file.
12433         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
12434         file.
12435         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
12436         file.
12437         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
12438         New file.
12439         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
12440         file.
12441         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
12442         file.
12443         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
12444         New file.
12445         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
12446         file.
12447         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
12448         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
12449         file.
12450         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
12451         New file.
12452         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
12453         file.
12454         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
12455         file.
12456         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
12457         file.
12458         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
12459         file.
12460         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
12461         file.
12462         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
12463         New file.
12464         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
12465         file.
12466         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
12467         file.
12468         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
12469         New file.
12470         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
12471         file.
12472         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
12473         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
12474         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
12475         file.
12476         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
12477         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
12478         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
12479         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
12480         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
12481         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
12482         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
12483         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
12484         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
12485         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
12486         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
12487         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
12488         file.
12489         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
12490         New file.
12491         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
12492         file.
12493         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
12494         file.
12495         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
12496         file.
12497         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
12498         file.
12499         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
12500         file.
12501         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
12502         New file.
12503         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
12504         New file.
12505         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
12506         file.
12507         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
12508         New file.
12509         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
12510         file.
12511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
12512         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
12513         file.
12514         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
12515         New file.
12516         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
12517         file.
12518         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
12519         file.
12520         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
12521         file.
12522         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
12523         file.
12524         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
12525         file.
12526         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
12527         New file.
12528         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
12529         New file.
12530         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
12531         file.
12532         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
12533         New file.
12534         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
12535         file.
12537 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
12539         * conform/conformtest.pl: Fix typo in handling typed-constant from
12540         allow-header.
12542 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
12544         * README: Cut down references to pre-2.6 Linux kernels and
12545         Linuxthreads.  Update lists of configurations in libc and ports
12546         and sort alphabetically.  Say "or newer" with Linux kernel version
12547         requirements.
12549         * config.h.in [IS_IN_build]: Allow compiling without optimization.
12551 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
12553         [BZ #887]
12554         * math/libm-test.inc (logb_test_downward): New test to expose
12555         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
12556         rounding mode.
12558 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
12560         [BZ #14027]
12561         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
12562         to be done.
12563         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
12564         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
12566 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
12568         * sysdeps/unix/i386/brk.S: Remove file.
12569         * sysdeps/unix/i386/dl-brk.S: Likewise.
12570         * sysdeps/unix/i386/pipe.S: Likewise.
12571         * sysdeps/unix/i386/sigreturn.S: Likewise.
12572         * sysdeps/unix/i386/syscall.S: Likewise.
12573         * sysdeps/unix/i386/vfork.S: Likewise.
12574         * sysdeps/unix/i386/wait.S: Likewise.
12576         * sysdeps/unix/common/tcsendbrk.c: Move to ...
12577         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
12579         * configure.in (arm*-none*): Do not allow without
12580         --enable-hacker-mode.
12581         (netbsd*): Remove case setting base_os.
12582         (386bsd*): Likewise.
12583         (freebsd*): Likewise.
12584         (bsdi*): Likewise.
12585         (osf*): Likewise.
12586         (sunos*): Likewise.
12587         (ultrix*): Likewise.
12588         (newsos*): Likewise.
12589         (dynix*): Likewise.
12590         (*bsd*): Likewise.
12591         (sysv*): Likewise.
12592         (isc*): Likewise.
12593         (esix*): Likewise.
12594         (sco*): Likewise.
12595         (minix*): Likewise.
12596         (irix4*): Likewise.
12597         (irix6*): Likewise.
12598         (solaris[2-9]*): Likewise.
12599         (none): Likewise.
12600         * configure: Regenerated.
12602 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12604         [BZ #11521]
12605         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
12606         overflow or cancellation in calculating denominator.
12607         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
12608         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
12609         down expression to avoid unexpected rounding in newer GCCs.
12610         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
12612 2012-04-26  David S. Miller  <davem@davemloft.net>
12614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
12615         long-double compat symbols.
12616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
12620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12621         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
12622         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
12623         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
12624         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
12625         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
12626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
12627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
12628         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12630 2012-04-25  David S. Miller  <davem@davemloft.net>
12632         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
12633         HWCAP_* values only after the memory barriers have been defined.
12634         (atomic_full_barrier): Define.
12635         (atomic_read_barrier): Define.
12636         (atomic_write_barrier): Define.
12638 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12640         * shlib-versions: Add libgcc_s version information.
12641         * sysdeps/generic/libgcc_s.h: Remove.
12642         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
12643         libgcc_s.h.
12644         * sysdeps/gnu/unwind-resume.c: Likewise.
12645         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
12647 2012-04-25  David S. Miller  <davem@davemloft.net>
12649         * sysdeps/unix/sparc/brk.S: Delete.
12650         * sysdeps/unix/sparc/dl-brk.S: Delete.
12651         * sysdeps/unix/sparc/pipe.S: Delete.
12652         * sysdeps/unix/sparc/sysdep.S: Delete.
12653         * sysdeps/unix/sparc/sysdep.h: Delete.
12654         * sysdeps/unix/sparc/vfork.S: Delete.
12655         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
12656         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
12657         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
12658         ret_ERRVAL, r0, r1, MOVE): Define.
12659         (JUMPTARGET): Remove.
12660         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
12661         sysdeps/unix/sparc/sysdep.h
12662         (ENTRY, END): Remove.
12663         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12665 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
12667         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
12668         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
12669         -DIS_IN_build.
12671         * timezone/README: Update upstream location and email address for
12672         tzcode and tzdata.
12673         * timezone/zdump.c: Update from tzcode 2012b.
12674         * timezone/zic.c: Likewise.
12676         * configure.in (libc_cv_as_needed): Remove test.
12677         * configure: Regenerated.
12678         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
12679         conditional definition.
12680         [$(have-as-needed) != yes] (no-as-needed): Likewise.
12681         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
12682         * config.make.in (have-as-needed): Remove variable.
12684 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12685             Paul Pluzhnikov  <ppluzhnikov@google.com>
12687         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
12688         strings correctly.
12690 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
12692         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
12693         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
12694         * sysdeps/sh/strlen.S: Likewise.
12696 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
12698         * sysdeps/unix/fork.S: Remove file.
12699         * sysdeps/unix/i386/fork.S: Likewise.
12700         * sysdeps/unix/sparc/fork.S: Likewise.
12702         * sysdeps/unix/system.c: Remove file.
12703         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
12705         * sysdeps/unix/getegid.S: Remove file.
12706         * sysdeps/unix/geteuid.S: Likewise.
12708 2012-04-24  Roland McGrath  <roland@hack.frob.com>
12710         * scripts/check-localplt.awk: New file.
12711         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
12712         of diff.
12713         * scripts/data/localplt-generic.data: Add a comment.
12715         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
12716         NODE when __dir_mkfile failed.
12717         * sysdeps/mach/hurd/symlinkat.c: Likewise.
12718         Reported by Ludovic Courtès <ludo@gnu.org>.
12720 2012-04-24  Andreas Jaeger  <aj@suse.de>
12722         * Makerules (common-clean): Also remove gen-as-const-headers
12723         files.
12725 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
12727         * Makerules (native-compile): Do not change working directory for
12728         build.  Use $(OUTPUT_OPTION) in command.
12729         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
12731 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12733         [BZ #13886]
12734         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
12735         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
12736         * math/libm-test.inc (floor_test): Add more tests.
12737         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
12739 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
12741         * sysdeps/unix/getdents.c: Remove file.
12742         * sysdeps/unix/sysv/getdents.c: Likewise.
12743         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
12745         * sysdeps/unix/syscalls.list (madvise): Add syscall from
12746         sysdeps/unix/mman/syscalls.list.
12747         (mmap): Likewise.
12748         (mprotect): Likewise.
12749         (msync): Likewise.
12750         (munmap): Likewise.
12751         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
12752         * sysdeps/unix/mman/syscalls.list: Remove.
12753         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
12755         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
12756         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
12757         * configure: Regenerated.
12758         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
12759         $(libgcc_s_suffix).
12760         * config.make.in (libgcc_s_suffix): Remove variable.
12762 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
12764         * sysdeps/unix/sysv/gethostname.c: Move to ...
12765         * sysdeps/posix/gethostname.c: ... here.
12767         * sysdeps/unix/execve.S: Remove file.
12769         * sysdeps/unix/_exit.S: Remove file.
12771 2012-04-23  Andreas Jaeger  <aj@suse.de>
12773         [BZ #13739]
12774         * manual/Makefile: Remove make dist support, there's no
12775         need for a stand-alone documentation tar ball.
12776         (TEXI2DVI): Define always, it's not in Makeconfig.
12777         (dist): Removed.
12778         (tar-it): Removed.
12779         (edition): Removed.
12780         (glibc-doc-$(edition).tar): Removed
12781         (%.Z): Removed.
12782         (%.gz): Removed.
12783         (%.uu): Removed.
12784         (ETAGS): Remove, it's in Makeconfig.
12785         (move-if-change): Remove, it's in Makeconfig.
12787 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
12789         [BZ #13970]
12790         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
12791         (strtod, strtof, strtold, strtol, strtoul, strtoq)
12792         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
12793         (strtod_l, strtof_l, strtold_l): Remove __wur.
12794         It is not necessarily an error to ignore strtol's return value.
12795         One can reliably look at the stored endptr to decide whether
12796         the number had valid syntax.
12798 2012-04-21  Andreas Jaeger  <aj@suse.de>
12800         [BZ #13739]
12801         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
12803 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
12805         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
12806         * sysdeps/unix/sysv/Versions: Remove file.
12808 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
12810         [BZ #13927]
12811         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12813 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
12815         [BZ #7064]
12816         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
12817         version from __vm86.
12819 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
12821         * sysdeps/unix/common/lxstat.c: Remove file.
12822         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
12824         * sysdeps/unix/sysv/Makefile: Remove file.
12826         * sysdeps/unix/sysv/direct.h: Remove file.
12828         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
12829         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
12830         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
12831         * sysdeps/unix/sysv/bits/signum.h: Likewise.
12832         * sysdeps/unix/sysv/bits/stat.h: Likewise.
12833         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
12834         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
12836         * sysdeps/unix/sysv/setrlimit.c: Remove file.
12838         * sysdeps/unix/xmknod.c: Remove file.
12839         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
12841         * sysdeps/unix/sysv/settimeofday.c: Remove file.
12843         * sysdeps/unix/sysv/i386/time.S: Remove file.
12845         * sysdeps/unix/fxstat.c: Remove file.
12846         * sysdeps/unix/xstat.c: Likewise.
12847         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
12849         * sysdeps/unix/sysv/sigaction.c: Remove file.
12851         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
12852         (sysdep_headers): Remove variable.
12853         [termio.h not in sysdep_headers] (generated): Likewise.
12854         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
12855         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
12856         * sysdeps/unix/sysv/tcdrain.c: Likewise.
12857         * sysdeps/unix/sysv/tcflow.c: Likewise.
12858         * sysdeps/unix/sysv/tcflush.c: Likewise.
12859         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
12860         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
12861         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
12862         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
12863         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
12865         * sysdeps/unix/siglist.c: Remove file.
12867         * sysdeps/unix/getppid.S: Remove file.
12869         * sysdeps/unix/mkdir.c: Remove file.
12870         * sysdeps/unix/rmdir.c: Likewise.
12872 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
12874         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
12875         ERR_MAX value.
12876         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
12877         errlist-compat value.
12879 2012-04-18  David S. Miller  <davem@davemloft.net>
12881         * sysdeps/generic/memcopy.h (reg_char): Delete.
12882         * debug/strcat_chk.c: Use char, not reg_char.
12883         * debug/strcpy_chk.c: Likewise.
12884         * debug/strncat_chk.c: Likewise.
12885         * debug/strncpy_chk.c: Likewise.
12886         * string/memchr.c: Likewise.
12887         * string/memrchr.c: Likewise.
12888         * string/rawmemchr.c: Likewise.
12889         * string/strcat.c: Likewise.
12890         * string/strchr.c: Likewise.
12891         * string/strchrnul.c: Likewise.
12892         * string/strcmp.c: Likewise.
12893         * string/strcpy.c: Likewise.
12894         * string/strncat.c: Likewise.
12895         * string/strncmp.c: Likewise.
12896         * string/strncpy.c: Likewise.
12898 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
12900         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
12901         __builtin_memcopy is called when src and dest ranges are known to not
12902         overlap.
12904 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
12906         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
12907         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
12908         fwd_align_merge macro call.
12909         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
12910         bwd_align_merge macro call.
12911         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
12913 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
12915         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
12916         bwd_align_merge macros.
12917         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
12918         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
12919         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
12921 2012-04-18  David S. Miller  <davem@davemloft.net>
12923         * sysdeps/sparc/sparc64/memcopy.h: Delete.
12925 2012-04-18  Andreas Jaeger  <aj@suse.de>
12927         [BZ# 6794]
12928         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
12929         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
12930         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
12932         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
12933         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
12934         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
12936         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
12937         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
12938         Adjust for changed ldbl-128 files.
12940         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
12941         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
12942         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
12944 2012-04-17  David S. Miller  <davem@davemloft.net>
12946         * sysdeps/sparc/sparc32/memcopy.h: Delete.
12948 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
12950         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
12951         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
12952         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
12953         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
12954         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12955         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
12957 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12959         [BZ #6794]
12960         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
12961         * math/libm-test.inc: Add ilogb errno and exception tests.
12962         * math/w_ilogb.c: New file: ilogb wrapper.
12963         * math/w_ilogbf.c: New file: ilogbf wrapper.
12964         * math/w_ilogbl.c: New file: ilogbl wrapper.
12965         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
12966         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
12967         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
12968         exception being thrown with 0.0 as argument.
12969         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
12970         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
12971         exception being thrown with 0.0 as argument.
12972         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
12973         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
12974         exception being thrown with 0.0 as argument.
12975         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
12976         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
12977         exception being thrown with 0.0 as argument.
12978         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
12979         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
12980         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
12981         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
12982         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
12983         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
12984         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
12985         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
12986         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
12988 2012-04-17  Petr Baudis  <pasky@ucw.cz>
12990         * include/sys/uio.h: Change __vector to __iovec to avoid clash
12991         with altivec.
12993 2012-04-16  Marek Polacek  <polacek@redhat.com>
12995         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
12997 2012-04-16  Marek Polacek  <polacek@redhat.com>
12999         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
13000         operands of fdivp instruction.
13002 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
13004         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
13005         * elf/tst-auditmod3b.c: Likewise.
13006         * elf/tst-auditmod4b.c: Likewise.
13007         * elf/tst-auditmod5b.c: Likewise.
13008         * elf/tst-auditmod6b.c: Likewise.
13009         * elf/tst-auditmod6c.c: Likewise.
13010         * elf/tst-auditmod7b.c: Likewise.
13011         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
13012         * sysdeps/x86_64/preconfigure.in: Likewise.
13013         * sysdeps/x86_64/preconfigure: Regenerated.
13015 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
13017         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
13018         __ILP32__.
13020 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
13022         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13023         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
13025 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
13027         [BZ #13973]
13028         * locale/iso-639.def: Fix gl language name. Spotted by
13029         Yaron Shahrabani.
13031 2012-04-12  Roland McGrath  <roland@hack.frob.com>
13033         [BZ #2074]
13034         * libio/libio.h (__io_write_fn): Update comment.
13036 2012-04-12  Petr Baudis  <pasky@ucw.cz>
13038         [BZ #2074]
13039         * stdio.texi (Hook Functions): The user provided writer function
13040         is not allowed to return -1.
13042 2012-04-11  David S. Miller  <davem@davemloft.net>
13044         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13046 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
13048         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
13049         Add a leading slash to rtkaio.
13051 2012-04-11  Jim Meyering  <meyering@redhat.com>
13053         [BZ #11959]
13054         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
13055         It is not necessarily an error to ignore fwrite's return
13056         value.  One can reliably use ferror to test for errors after
13057         the fact.
13059 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13061         * bits/types.h (__snseconds_t): New type.
13062         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
13064         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
13065         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13066         (__SNSECONDS_T_TYPE): Likewise.
13067         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13068         (__SNSECONDS_T_TYPE): Likewise.
13069         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13070         (__SNSECONDS_T_TYPE): Likewise.
13072 2012-04-10  Andreas Jaeger  <aj@suse.de>
13074         [BZ #2636]
13075         * manual/time.texi (Processor Time): Return type of times is
13076         elapsed real time since an arbitrary point in the past.
13077         (CPU Time): Move CLK_TCK from here...
13078         (Processor Time): ...to here.  Correct description.
13079         * manual/conf.texi (Constants for Sysconf): Correct description of
13080         _SC_CLK_TCK.
13082 2012-04-10  David S. Miller  <davem@davemloft.net>
13084         [BZ #13967]
13085         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
13086         where the is a gap between DT_REL(A) and DT_JMPREL.
13088 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13090         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
13091         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
13092         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
13094 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13096         * elf/dl-support.c (_dl_inhibit_cache): New variable.
13097         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
13098         (dl_main): Handle --inhibit-cache.
13099         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
13100         _dl_inhibit_cache.
13101         * elf/dl-load.c (_dl_map_object): Use it.
13102         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
13104 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
13106         [BZ #13872]
13107         * sysdeps/i386/fpu/e_powl.S (p78): New object.
13108         (__ieee754_powl): Saturate large exponents rather than testing for
13109         overflow of y*log2(x).
13110         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13111         * math/libm-test.inc (pow_test): Do not permit spurious overflow
13112         exceptions.
13114         [BZ #11521]
13115         * math/s_ctan.c: Include <float.h>.
13116         (__ctan): Avoid internal overflow or cancellation in calculating
13117         denominator.
13118         * math/s_ctanf.c: Likewise.
13119         * math/s_ctanl.c: Likewise.
13120         * math/s_ctanh.c: Likewise.
13121         * math/s_ctanhf.c: Likewise.
13122         * math/s_ctanhl.c: Likewise.
13123         * math/libm-test.inc (ctan_test): Add more tests.
13124         (ctanh_test): Likewise.
13125         * sysdeps/i386/fpu/libm-test-ulps: Update.
13126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13128 2012-04-09  Andreas Jaeger  <aj@suse.de>
13130         [BZ #6894]
13131         * manual/filesys.texi (Directory Entries): Mention that d_namlen
13132         is an optional BSD extension.
13134         [BZ #10254]
13135         * manual/stdio.texi (Opening Streams): Document additional fopen
13136         parameters.
13138 2012-04-09  Roland McGrath  <roland@hack.frob.com>
13140         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
13141         %eax without telling the compiler.
13143 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
13145         [BZ # 13963]
13146         * manual/install.texi: Use sourceware.org.
13148 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
13150         [BZ #13873]
13151         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
13152         (__ieee754_pow): Generate overflow and underflow using huge*huge
13153         and tiny*tiny rather than just returning constant infinity or zero
13154         for large exponents.
13155         * math/libm-test.inc (pow_test): Require overflow exceptions for
13156         applicable cases of large exponents.
13158         [BZ #706]
13159         * sysdeps/i386/fpu/e_pow.S (p10): New object.
13160         (__ieee754_pow): Use iterative multiplication algorithm only for
13161         integer exponents with absolute value below 1024.  Check for odd
13162         integer exponents when using algorithm for real exponents.
13163         * math/libm-test.inc (pow_test): Add more tests.
13164         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13166 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
13168         [BZ #13705]
13169         * math/libm-test.inc (exp_test): Do not allow overflow exception
13170         on underflow test.
13172 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
13174         [BZ #13705]
13175         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
13176         instead of __kernel_standard_f.
13178 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
13180         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
13181         * sysdeps/x86_64/memset_chk.S: Likewise.
13183 2012-04-08  Andreas Jaeger  <aj@suse.de>
13185         [BZ #10153]
13186         * manual/startup.texi (Environment Access): Describe return value
13187         for putenv and setenv.
13189         [BZ #6895]
13190         * manual/filesys.texi (Directory Entries): Add description for
13191         DT_LNK.
13193         [BZ #6890]
13194         * manual/filesys.texi (Directory Entries): Clarify that it's file
13195         system not operating system in the description of DT_UNKNOWN.
13197         [BZ #6578]
13198         * manual/syslog.texi (closelog): Fix reference, it's openlog.
13200 2012-04-08  Stephen Compall  <s11@member.fsf.org>
13202         [BZ #6649]
13203         * manual/llio.texi (Opening and Closing Files): Add cross
13204         reference to explain mode argument.
13206 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
13208         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
13209         * sysdeps/x86_64/memset_chk.S: Likewise.
13211 2012-04-07  David S. Miller  <davem@davemloft.net>
13213         * elf/elf.h (R_SPARC_WDISP10): Define.
13214         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
13215         R_SPARC_SIZE32.
13216         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
13217         R_SPARC_SIZE64 and R_SPARC_H34.
13219 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
13221         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
13222         conditions and remove no longer applicable assertion.
13224 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
13226         * bits/byteswap.h: Include <features.h>.
13227         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
13228         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
13230 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
13232         * bits/byteswap.h (__bswap_16): Removed.
13233         Include <bits/byteswap-16.h> to get __bswap_16.
13234         * sysdeps/i386/bits/byteswap.h: Likewise.
13235         * sysdeps/s390/bits/byteswap.h: Likewise.
13236         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13237         * bits/byteswap-16.h: New file.
13238         * sysdeps/i386/bits/byteswap-16.h: Likewise.
13239         * sysdeps/s390/bits/byteswap-16.h: Likewise.
13240         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
13241         * string/Makefile (headers): Add bits/byteswap-16.h.
13243 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13245         [BZ #13895]
13246         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
13247         extra indirection.
13248         * nss/Makefile (tests-static, tests): Add tst-nss-static.
13249         * nss/tst-nss-static.c: New.
13251 2012-04-06  Robert Millan  <rmh@gnu.org>
13253         [BZ #6486]
13254         * manual/llio.texi (File Position Primitive): lseek
13255         refers to WHENCE when it really means OFFSET.
13257 2012-04-06  Andreas Jaeger  <aj@suse.de>
13259         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
13260         strncmp declarations.
13262         * abilist/libc.abilist: Add __poll and __ppoll.
13264 2012-04-05  David S. Miller  <davem@davemloft.net>
13266         * scripts/check-local-headers.sh: Accept a host triplet in the
13267         path matched by the exclude regexp.
13269         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
13270         definition.
13271         * sysdeps/powerpc/powerpc32/dl-machine.h
13272         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
13273         * sysdeps/s390/s390-32/dl-machine.h
13274         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
13275         * sysdeps/sparc/sparc32/dl-machine.h
13276         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
13277         * sysdeps/sparc/sparc64/dl-machine.h
13278         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
13280         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
13281         lazy binding.
13282         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
13283         undefined symbol errors.
13285         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
13286         DT_NEEDED entries.
13288 2012-04-05  Michael Matz  <matz@suse.de>
13290         [BZ #13592]
13291         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
13293 2012-04-05  Andreas Jaeger  <aj@suse.de>
13295         [BZ #13908]
13296         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
13297         comment.
13299 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13301         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
13302         which ROUND is no valid rounding mode.
13304 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13306         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
13307         read again.
13308         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
13310 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13312         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
13313         an exception using FPU order intentionally.
13315 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13317         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
13318         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
13319         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
13320         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
13322 2012-04-05  Simon Josefsson  <simon@josefsson.org>
13324         [BZ #12340]
13325         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
13326         EINVAL when BUFLEN is too smal.
13328 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
13330         [BZ #13553]
13331         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
13332         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
13334 2012-04-03  Andreas Jaeger  <aj@suse.de>
13336         [BZ #13938]
13337         * manual/setjmp.texi (System V contexts): Fix sentence.
13339         [BZ #13926]
13340         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
13341         New macro for this case.
13342         [!__GNUC__] (__bswap_64): New inline function for this case.
13343         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13344         * bits/byteswap.h: Likewise.
13345         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
13346         ull, guard with __GLIBC_HAVE_LONG_LONG.
13348         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
13349         __GLIBC_HAVE_LONG_LONG.
13351         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
13352         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
13354 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13356         [BZ #13691]
13357         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
13358         inptr and inend, rather than using last_ch.
13360 2012-04-02  David S. Miller  <davem@davemloft.net>
13362         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
13363         * stdio-common/printf-parse.h (read_int): Change return type to
13364         'int', return -1 on INT_MAX overflow.
13365         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
13366         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
13367         overflows INT_MAX.  Check for overflow of in-format-string precision
13368         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
13369         SIZE_MAX not INT_MAX for integer overflow test.
13370         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
13371         skip the construct in the format string but do not record anything.
13372         * stdio-common/bug22.c: Adjust to test both width/prevision
13373         INT_MAX overflow as well as total length INT_MAX overflow.  Check
13374         explicitly for proper errno values.
13376 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
13378         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
13379         CHAR_MAX.
13380         * string/test-strcmp.c [! WIDE]: Likewise.
13381         * time/tst-mktime2.c: Likewise for INT_MAX.
13382         * string/test-string.h: #include <sys/param.h> for MIN.
13384         * csu/init-first.c (__libc_init_first): Call __ctype_init.
13385         * sysdeps/i386/init-first.c (init): Likewise.
13386         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
13387         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
13388         * sysdeps/sh/init-first.c (init): Likewise.
13390 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
13392         * po/ru.po: Update from translation team.
13393         * po/vi.po: Likewise.
13395 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
13397         * resolv/nss_dns/dns-host.c: Merge copyright years.
13399 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13401         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13402         Optimize memcpy with prefetch if
13403         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
13404         src, dst pointers have unequal 16 byte alignments.
13406 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
13408         [BZ #13928]
13409         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
13410         from a CNAME entry and return the minimum ttl for the query.
13411         (gaih_getanswer_slice): Likewise.
13413 2012-03-30  Jeff Law  <law@redhat.com>
13415         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
13416         due to long keys.
13417         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
13418         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
13420         * resolv/nss_dns/dns-host.c: Update copyright year.
13422 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
13424         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
13425         requests to save a system call.  Fix check that all bytes are sent.
13427         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
13428         comments for sendmmsg.
13430 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13432         [BZ #13691]
13433         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
13434         with only 1 character between 0x0041 and 0x01b0.
13435         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
13436         * wcsmbs/tst-mbsnrtowcs.c: New file.
13438 2012-03-29  David S. Miller  <davem@davemloft.net>
13440         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
13441         small copies by hand.
13443 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13445         [BZ #13761]
13446         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
13447         _nss_compat_initgroups_dyn): Fall back to malloc/free
13448         for large group memberships.
13450 2012-03-28  David S. Miller  <davem@davemloft.net>
13452         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
13453         that branches into memcpy.
13454         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
13455         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
13456         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
13457         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
13458         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
13459         bits.
13460         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
13461         implementation too.
13462         * sysdeps/sparc/mempcpy.S: New file.
13464         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
13465         the IFUNC routine in the libc case.
13466         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13468         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
13469         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
13470         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
13471         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
13472         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
13473         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
13474         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
13475         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
13477         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
13478         loop to 256 bytes instead of 64 bytes and fix test signedness.
13480         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
13481         * sysdeps/sparc/sparc32/Makefile: rather than here...
13482         * sysdeps/sparc/sparc64/Makefile: and here.
13484 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
13486         * malloc/mallocbug.c: Avoid warnings about unused variables.
13488 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
13490         [BZ #13760]
13491         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
13492         in the right place. Discard and retry query if response is
13493         larger than input buffer size.
13495 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
13497         [BZ #369]
13498         [BZ #2678]
13499         [BZ #3866]
13500         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
13501         x for large integer exponent.
13502         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
13503         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
13504         sign of result as needed afterwards.
13505         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
13506         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
13507         result for underflowing pow the same as for overflow.
13508         (__kernel_standard_l): Handle powl overflow and underflow here
13509         rather than calling __kernel_standard.
13510         * math/libm-test.inc (pow_test): Add more tests.
13512         [BZ #3868]
13513         [BZ #13879]
13514         [BZ #13910]
13515         [BZ #13911]
13516         [BZ #13912]
13517         [BZ #13913]
13518         [BZ #13915]
13519         [BZ #13916]
13520         [BZ #13917]
13521         [BZ #13918]
13522         [BZ #13919]
13523         [BZ #13920]
13524         [BZ #13921]
13525         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
13526         * sysdeps/ieee754/k_standard.c: Include <float.h>.
13527         (__kernel_standard_l): New function.
13528         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
13529         __kernel_standard.
13530         * math/w_acosl.c (__acosl): Likewise.
13531         * math/w_asinl.c (__asinl): Likewise.
13532         * math/w_atan2l.c (__atan2l): Likewise.
13533         * math/w_atanhl.c (__atanhl): Likewise.
13534         * math/w_coshl.c (__coshl): Likewise.
13535         * math/w_exp10l.c (__exp10l): Likewise.
13536         * math/w_exp2l.c (__exp2l): Likewise.
13537         * math/w_fmodl.c (__fmodl): Likewise.
13538         * math/w_hypotl.c (__hypotl): Likewise.
13539         * math/w_j0l.c (__j0l, __y0l): Likewise.
13540         * math/w_j1l.c (__j1l, __y1l): Likewise.
13541         * math/w_jnl.c (__jnl, __ynl): Likewise.
13542         * math/w_lgammal.c (__lgammal): Likewise.
13543         * math/w_log10l.c (__log10l): Likewise.
13544         * math/w_log2l.c (__log2l): Likewise.
13545         * math/w_logl.c (__logl): Likewise.
13546         * math/w_powl.c (__powl): Likewise.
13547         * math/w_remainderl.c (__remainderl): Likewise.
13548         * math/w_scalbl.c (sysv_scalbl): Likewise.
13549         * math/w_sinhl.c (__sinhl): Likewise.
13550         * math/w_sqrtl.c (__sqrtl): Likewise.
13551         * math/w_tgammal.c (__tgammal): Likewise.
13552         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
13553         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
13554         * math/libm-test.inc (acos_test): Add more tests.
13555         (acosh_test): Likewise.
13556         (asin_test): Likewise.
13557         (atanh_test): Likewise.
13558         (exp_test): Likewise.
13559         (exp10_test): Likewise.
13560         (exp2_test): Likewise.
13561         (expm1_test): Likewise.
13562         (lgamma_test): Likewise.
13563         (log_test): Likewise.
13564         (log10_test): Likewise.
13565         (log1p_test): Likewise.
13566         (log2_test): Likewise.
13567         (pow_test): Do not allow some spurious overflow exceptions.
13568         (sqrt_test): Add more tests.
13569         (tgamma_test): Likewise.
13570         (y0_test): Likewise.
13571         (y1_test): Likewise.
13572         (yn_test): Likewise.
13574 2012-03-27  Anton Blanchard  <anton@samba.org>
13576         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
13577         MAP_HUGETLB.
13578         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13579         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13580         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13582 2012-03-27  David S. Miller  <davem@davemloft.net>
13584         * conform/Makefile: Run run-conformtest.sh using $(BASH).
13586         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
13587         have-as-vis3 check.
13589 2012-03-27  Andreas Jaeger  <aj@suse.de>
13591         * sysdeps/x86_64/elf/configure.in: Moved to ...
13592         * sysdeps/x86_64/configure.in: ... here.
13593         * sysdeps/x86_64/elf/start.S: Moved to ...
13594         * sysdeps/x86_64/start.S: ... here.
13595         * sysdeps/x86_64/elf/configure: Delete.
13597         * sysdeps/x86_64/configure.in: Merge contents from
13598         sysdeps/i386/configure.in (without i686 check).
13600         * sysdeps/i386/elf/Versions: Merge into ...
13601         * sysdeps/i386/Versions: ... this.
13602         * sysdeps/i386/elf/Versions: Delete file.
13603         * sysdeps/i386/elf/start.S: Moved to ...
13604         * sysdeps/i386/start.S: ...here.
13605         * sysdeps/i386/elf/configure.in: Merge into...
13606         * sysdeps/i386/configure.in: ...here.
13607         * sysdeps/i386/elf/configure.in: Delete file.
13608         * sysdeps/i386/elf/configure: Delete file.
13610         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
13611         * debug/backtracesyms.c: ... here.
13612         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
13613         * debug/backtracesymsfd.c: ... here.
13614         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
13615         * sysdeps/generic/ifunc-sel.h: ... here.
13617         * sysdeps/unix/i386/start.c: Delete file.
13618         * sysdeps/unix/sparc/start.c: Delete file.
13619         * sysdeps/unix/start.c: Delete file.
13621         * sysdeps/sh/elf/configure.in: Moved to ...
13622         * sysdeps/sh/configure.in: ... here.
13623         * sysdeps/sh/elf/start.S: Moved to ...
13624         * sysdeps/sh/start.S: ... here.
13625         * sysdeps/sh/elf/configure: Delete file.
13627         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
13628         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
13629         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
13630         * sysdeps/powerpc/powerpc64/entry.h: ... here.
13631         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
13632         * sysdeps/powerpc/powerpc64/start.S: here.
13633         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
13634         * sysdeps/powerpc/powerpc64/Makefile: ... this.
13635         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
13636         * sysdeps/powerpc/powerpc64/configure.in: ... this.
13637         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
13639         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
13640         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
13641         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
13642         * sysdeps/powerpc/powerpc32/start.S: ... here.
13643         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
13644         * sysdeps/powerpc/powerpc32/configure.in: ... this.
13645         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
13647         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
13648         * sysdeps/powerpc/ifunc-sel.h: ... here.
13649         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
13650         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
13652         * sysdeps/sparc/elf/configure.in: Moved to ...
13653         * sysdeps/sparc/configure.in: ... here.
13654         * sysdeps/sparc/elf/configure: Delete file.
13655         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
13656         * sysdeps/sparc/sparc32/start.S: ... here.
13657         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
13658         * sysdeps/sparc/sparc64/start.S: ... here.
13659         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
13660         * sysdeps/sparc/sparc32/Makefile: ... this.
13661         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
13662         * sysdeps/sparc/sparc64/Makefile: ... this.
13664         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
13665         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
13666         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
13667         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
13668         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
13669         * sysdeps/s390/s390-32/setjmp.S: ... here.
13670         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
13671         * sysdeps/s390/s390-32/configure.in: ... here.
13672         * sysdeps/s390/s390-32/elf/configure: Delete file.
13673         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
13674         * sysdeps/s390/s390-32/start.S: ... here.
13676         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
13677         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
13678         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
13679         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
13680         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
13681         * sysdeps/s390/s390-64/setjmp.S: ... here.
13682         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
13683         * sysdeps/s390/s390-64/configure.in: ... here
13684         * sysdeps/s390/s390-64/elf/configure: Delete file.
13685         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
13686         * sysdeps/s390/s390-64/start.S: ... here.
13687         * sysdeps/s390/s390-64/elf/configure: Delete.
13689         * configure.in: Remove support for elf directories in sysdeps.
13691         * configure: Regenerated.
13692         * sysdeps/i386/configure: Regenerated.
13693         * sysdeps/powerpc/powerpc32/configure: Regenerated.
13694         * sysdeps/powerpc/powerpc64/configure: Regenerated.
13695         * sysdeps/s390/s390-32/configure: Regenerated.
13696         * sysdeps/s390/s390-64/configure: Regenerated.
13697         * sysdeps/sh/configure: Regenerated.
13698         * sysdeps/sparc/configure: Regenerated.
13699         * sysdeps/x86_64/configure: Regenerated.
13701 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
13703         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13705         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
13706         denormal result into account.
13708 2012-03-25  Roland McGrath  <roland@hack.frob.com>
13710         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
13711         Reported by Allan McRae <allan@archlinux.org>.
13713 2012-03-23  Jeff Law  <law@redhat.com>
13715         * nss/getnssent.c (__nss_getent): Fix typo.
13717 2012-03-23  David S. Miller  <davem@davemloft.net>
13719         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13721 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
13723         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
13724         to pad to uint64_t for each field.
13725         (dl_tls_index): Replace unsigned long with uint64_t.
13727 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
13728         Paul Pluzhnikov  <ppluzhnikov@google.com>
13730         [BZ #6528]
13731         * grp/Makefile (otherlibs): Don't set it.
13732         * inet/Makefile (otherlibs): Likewise.
13733         * login/Makefile (otherlibs): Likewise.
13734         * nscd/Makefile (otherlibs): Likewise.
13735         * posix/Makefile (otherlibs): Likewise.
13736         * pwd/Makefile (otherlibs): Likewise.
13737         * rt/Makefile (otherlibs): Likewise.
13738         * sunrpc/Makefile (otherlibs): Likewise.
13739         * nss/Makefile (otherlibs): Likewise.
13740         Add libnss_files to routines and static-only-routines.
13741         ($(objpfx)getent): Remove rule.
13742         * resolv/Makefile: Add libnss_dns and libresolv to routines and
13743         static-only-routines.
13745 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
13747         [BZ #13892]
13748         * math/s_cexp.c: Include <float.h>.
13749         (__cexp): Handle exp result overflowing not necessarily
13750         overflowing both real and imaginary parts of result.
13751         * math/s_cexpf.c: Likewise.
13752         * math/s_cexpl.c: Likewise.
13753         * math/libm-test.inc (cexp_test): Add more tests.
13754         * sysdeps/i386/fpu/libm-test-ulps: Update.
13755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13757 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13759         * include/link.h (ELFW): New macro.
13760         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
13761         Replace ELF64_R_TYPE with ELFW(R_TYPE).
13763 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13765         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
13766         with uint64_t.
13768 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13770         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
13771         declaration.
13772         (struct La_x32_retval): Likewise.
13774 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13776         * sysdeps/x86_64/preconfigure.in: New file.
13777         * sysdeps/x86_64/preconfigure: New generated file.
13779 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
13781         [BZ #13824]
13782         * math/e_exp2l.c: Include <float.h>.
13783         (__ieee754_exp2l): Handle overflow and underflow cases
13784         separately.  Only pass fractional part of argument to
13785         __ieee754_expl.
13786         * math/libm-test.inc (exp2_test): Add more tests.
13788         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
13789         negating x to take absolute value.
13790         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
13791         Likewise.
13792         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13793         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
13794         Likewise.
13795         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
13796         computing low part if x was negated.
13797         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13799 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
13801         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
13802         la_x32_gnu_pltexit.
13803         (pltexit): Cast int_retval to ptrdiff_t.
13804         * elf/tst-auditmod3b.c: Likewise.
13805         * elf/tst-auditmod4b.c: Likewise.
13806         * elf/tst-auditmod5b.c: Likewise.
13807         * elf/tst-auditmod6b.c: Likewise.
13808         * elf/tst-auditmod6c.c: Likewise.
13809         * elf/tst-auditmod7b.c: Likewise.
13811         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
13812         and x32_gnu_pltexit.
13814         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
13815         __ELF_NATIVE_CLASS.
13816         (La_x32_regs): New macro.
13817         (La_x32_retval): Likewise.
13818         (la_x32_gnu_pltenter): New function prototype.
13819         (la_x32_gnu_pltexit): Likewise.
13821 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
13823         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
13824         exponent.
13826         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13828         * configure.in (libc_cv_cc_nofma): Check for option to disable
13829         generation of FMA instructions.
13830         * configure: Regenerate.
13831         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
13832         * sysdeps/ieee754/dbl-64/Makefile: New file.
13833         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13834         Remove brandred-fma4.
13835         (CFLAGS-brandred-fma4.c): Remove.
13836         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
13837         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
13838         define.
13839         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
13840         define.
13842 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
13844         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
13845         LLONG_MAX != LONG_MAX.
13846         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13847         (_fitoa_word): Likewise.
13848         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
13849         LLONG_MAX != LONG_MAX.
13850         * stdio-common/_itowa.h: Include <_itoa.h>.
13851         (_itowa_word): Use _ITOA_WORD_TYPE on value.
13852         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
13853         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
13854         only if not defined.
13855         (_ITOA_WORD_TYPE): Likewise.
13856         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13857         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
13859 2012-03-21  David S. Miller  <davem@davemloft.net>
13861         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13863 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
13865         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
13866         of x86_64 when setting libc_cv_slibdir, libdir and
13867         libc_cv_localedir.
13868         * sysdeps/unix/sysv/linux/configure: Regenerated.
13870 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
13872         * manual/lang.texi (Old Varargs): Remove section.
13873         (How Variadic): Update menu.
13874         (va_start): Do not mention varargs.h.
13876 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
13877             Joseph Myers  <joseph@codesourcery.com>
13879         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
13880         link test.
13881         * configure: Regenerated.
13883 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
13885         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
13886         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
13887         conformtest.pl
13889 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
13891         * NOTES: Remove.
13892         * Makefile (files-for-dist): Remove NOTES.
13893         (NOTES): Remove rule.
13894         * README: Don't refer to NOTES.
13895         * manual/creature.texi: Don't include macros.texi.
13896         * manual/intro.texi (creature.texi): Remove comment referring to
13897         NOTES.
13899         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
13900         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
13901         * configure: Regenerated.
13902         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
13903         LIBC_TRY_CC_OPTION.
13904         (libc_cv_as_i686): Likewise.
13905         (libc_cv_cc_avx): Likewise.
13906         (libc_cv_cc_sse2avx): Likewise.
13907         (libc_cv_cc_fma4): Likewise.
13908         (libc_cv_cc_novzeroupper): Likewise.
13909         * sysdeps/i386/configure: Regenerated.
13911         [BZ #13883]
13912         * sysdeps/i386/fpu/s_cexp.S: Remove.
13913         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13914         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13915         * math/libm-test.inc (cexp_test): Add more tests.
13916         * sysdeps/i386/fpu/libm-test-ulps: Update.
13917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13919 2012-03-21  Allan McRae  <allan@archlinux.org>
13921         * timezone/Makefile: Do not install iso3166.tab and zone.tab
13923 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
13925         [BZ #13871]
13926         * math/w_exp2.c: Do not include <float.h>.
13927         (o_threshold, u_threshold): Remove.
13928         (__exp2): Calculate result before checking finiteness and calling
13929         __kernel_standard.
13930         * math/w_exp2f.c: Likewise.
13931         * math/w_exp2l.c: Likewise.
13932         * math/libm-test.inc (exp2_test): Require overflow exception for
13933         1e6 input.
13935         [BZ #3866]
13936         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
13937         range of signed 64-bit integers before using fistpll.  Remove
13938         checks for whether integers fit in mantissa bits.
13939         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
13940         the range of signed 32-bit integers before using fistpl.  Remove
13941         checks for whether integers fit in mantissa bits.
13942         * sysdeps/i386/fpu/e_powl.S (p64): New object.
13943         (__ieee754_powl): Test for y outside the range of signed 64-bit
13944         integers before using fistpll.  Reduce 64-bit values to 63-bit
13945         ones as needed.
13946         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
13947         divide-by-zero is raised for zero to large negative powers.
13948         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
13949         (__ieee754_powl): Test for y outside the range of signed 64-bit
13950         integers before using fistpll.  Reduce 64-bit values to 63-bit
13951         ones as needed.
13952         * math/libm-test.inc (pow_test): Add more tests.
13954 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13956         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
13957         <stdio-common/_itoa.h>.
13958         * debug/segfault.c: Likewise.
13959         * elf/dl-cache.c: Likewise.
13960         * elf/dl-minimal.c: Likewise.
13961         * elf/dl-misc.c: Likewise.
13962         * elf/dl-sysdep.c: Likewise.
13963         * elf/dl-version.c: Likewise.
13964         * elf/rtld.c: Likewise.
13965         * hurd/hurdsock.c: Likewise.
13966         * hurd/lookup-retry.c: Likewise.
13967         * malloc/malloc.c: Likewise.
13968         * malloc/mtrace.c: Likewise.
13969         * nscd/nscd_getgr_r.c: Likewise.
13970         * nscd/nscd_getpw_r.c: Likewise.
13971         * nscd/nscd_getserv_r.c: Likewise.
13972         * posix/getopt_init.c: Likewise.
13973         * posix/wordexp.c: Likewise.
13974         * stdio-common/_itoa.c: Likewise.
13975         * stdio-common/printf_fphex.c: Likewise.
13976         * stdio-common/vfprintf.c: Likewise.
13977         * string/_strerror.c: Likewise.
13978         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
13979         * sysdeps/i386/i686/hp-timing.h: Likewise.
13980         * sysdeps/mach/_strerror.c: Likewise.
13981         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
13982         * sysdeps/mach/hurd/sethostid.c: Likewise.
13983         * sysdeps/mach/hurd/xmknodat.c: Likewise.
13984         * sysdeps/mach/xpg-strerror.c: Likewise.
13985         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
13986         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
13987         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
13988         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
13989         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
13990         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
13991         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
13992         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
13993         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
13994         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
13995         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
13996         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
13997         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
13998         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
13999         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
14000         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
14001         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
14002         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
14003         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
14004         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
14005         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
14007         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
14009         * stdio-common/_itoa.h: Moved to ...
14010         * sysdeps/generic/_itoa.h: Here.
14012         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
14014         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
14015         instead of "_itoa.h" and "_itowa.h".
14016         * stdio-common/vfprintf.: Likewise.
14018 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14020         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
14021         <bits/wordsize.h>.
14022         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
14023         (__signbit): Likwise.
14024         (llrintf): Likwise.
14025         (llrint): Likwise.
14027 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14029         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
14030         __WORDSIZE != 64.
14032 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
14034         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
14035         OVERFLOW_EXCEPTION_OK.
14036         * math/libm-test.inc ("Philosophy"): Update comment about
14037         exception testing.
14038         (OVERFLOW_EXCEPTION): Define.
14039         (OVERFLOW_EXCEPTION_OK): Likewise.
14040         (INVALID_EXCEPTION_OK): Renumber.
14041         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
14042         (IGNORE_ZERO_INF_SIGN): Likewise.
14043         (test_exceptions): Handle FE_OVERFLOW.
14044         (exp10_test): Expect overflow exceptions.
14045         (exp2_test): Likewise.
14046         (expm1_test): Likewise.
14047         (nextafter_test): Likewise.
14048         (pow_test): Likewise.
14049         (scalbn_test): Likewise.
14050         (scalbln_test): Likewise.
14052 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14054         * sysdeps/x86_64/bits/atomic.h
14055         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
14056         64bit integer.
14057         (atomic_exchange_acq): Likewise.
14058         (__arch_exchange_and_add_body): Likewise.
14059         (__arch_add_body): Likewise.
14060         (atomic_add_negative): Likewise.
14061         (atomic_add_zero): Likewise.
14063 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14065         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
14066         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
14068 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14070         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
14071         Check __x86_64__ instead of __WORDSIZE.
14073 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14075         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
14077 2012-03-19  David S. Miller  <davem@davemloft.net>
14079         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14081         * sysdeps/sparc/fpu/fenv_private.h: New file.
14082         * sysdeps/sparc/fpu/math_private.h: Use it.
14083         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
14084         Remove.
14085         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
14086         (libc_feholdexcept_setroundl): Remove.
14087         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
14088         Remove.
14089         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
14090         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
14092 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14094         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
14095         int64_t instead of long int.
14096         (INSERT_WORDS64): Likwise.
14098 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
14100         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
14101         _Unwind_GetCFA return to _Unwind_Ptr first.
14103 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
14105         [BZ #13629]
14106         * math/s_clog.c: Include <float.h>.
14107         (__clog): Scale large or subnormal inputs.
14108         * math/s_clogf.c: Likewise.
14109         * math/s_clogl.c: Likewise.
14110         * math/s_clog10.c: Include <float.h>.
14111         (M_LOG10_2): Define.
14112         (__clog10): Scale large or subnormal inputs.
14113         * math/s_clog10f.c: Likewise.
14114         * math/s_clog10l.c: Likewise.
14115         * math/libm-test.inc (clog_test): Add more tests.
14116         (clog10_test): Likewise.
14117         * sysdeps/i386/fpu/libm-test-ulps: Update.
14118         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14120         [BZ #11451]
14121         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
14122         x and y.
14123         * math/libm-test.inc (atan2_test): Add another test.
14125         * Makerules (common-objdir-compile): Remove.
14126         * sysdeps/unix/Makefile (config-generated): Do not add
14127         $(unix-generated) to variable.
14128         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
14129         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
14130         Remove rule.
14131         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
14132         Likewise.
14133         [generic bits/local_lim.h] (before-compile): Do not append to
14134         variable.
14135         [generic bits/local_lim.h] (common-generated): Likewise.
14136         [generic sys/param.h] (before-compile): Do not append to variable.
14137         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
14138         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
14139         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
14140         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
14141         include.
14142         [generic sys/param.h] (sys/param.h-includes): Remove variable.
14143         [generic sys/param.h] (sys/param.h-includes): Remove rule.
14144         [generic sys/param.h] ($(addprefix
14145         $(common-objpfx),$(sys/param.h-includes))): Likewise.
14146         [generic sys/param.h] (common-generated): Do not append to
14147         variable.
14148         [generic sys/param.h] (sysdep_headers): Likewise.
14149         [generic bits/errno.h] (before-compile): Do not append to
14150         variable.
14151         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
14152         rule.
14153         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
14154         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
14155         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
14156         [generic bits/errno.h] (common-generated): Do not append to
14157         variable.
14158         [generic bits/ioctls.h] (before-compile): Do not append to
14159         variable.
14160         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
14161         rule.
14162         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
14163         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
14164         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
14165         rule.
14166         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
14167         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
14168         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
14169         [generic bits/ioctls.h] (common-generated): Do not append to
14170         variable.
14171         [generic sys/syscall.h] (syscall.h): Remove variable.
14172         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
14173         rule.
14174         [generic sys/syscall.h] (before-compile): Do not append to
14175         variable.
14176         [generic sys/syscall.h] (common-generated): Likewise.
14177         * sysdeps/unix/errnos-tmpl.c: Remove file.
14178         * sysdeps/unix/errnos.awk: Likewise.
14179         * sysdeps/unix/ioctls-tmpl.c: Likewise.
14180         * sysdeps/unix/ioctls.awk: Likewise.
14181         * sysdeps/unix/mk-local_lim.c: Likewise.
14182         * sysdeps/unix/snarf-ioctls: Likewise.
14184 2012-03-19  Richard Henderson  <rth@twiddle.net>
14186         * sysdeps/i386/fpu/fenv_private.h: New file.
14187         * sysdeps/i386/fpu/math_private.h: Use it.
14188         (math_opt_barrier, math_force_eval): Remove.
14189         (libc_feholdexcept_setround_53bit): Remove.
14190         (libc_feupdateenv_53bit): Remove.
14191         * sysdeps/x86_64/fpu/math_private.h: Likewise.
14192         (math_opt_barrier, math_force_eval): Remove.
14193         (libc_feholdexcept): Remove.
14194         (libc_feholdexcept_setround): Remove.
14195         (libc_fetestexcept, libc_fesetenv): Remove.
14196         (libc_feupdateenv_test): Remove.
14197         (libc_feupdateenv, libc_feholdsetround): Remove.
14198         (libc_feresetround): Remove.
14200         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
14201         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
14203         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
14204         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
14205         (libc_feupdateenv_testl): New.
14206         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
14207         (libc_feupdateenv_testf): New.
14208         (libc_feupdateenv): Use libc_feupdateenv_test.
14209         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
14210         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
14212         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
14213         (libc_feholdsetroundf, libc_feholdsetroundl): New.
14214         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
14215         (libc_feresetround_noex): New.
14216         (libc_feresetround_noexf): New.
14217         (libc_feresetround_noexl): New.
14218         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
14219         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
14220         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
14221         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
14222         SET_RESTORE_ROUND.
14223         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
14224         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
14225         (__cos): Likewise.
14226         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
14227         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
14228         SET_RESTORE_ROUND_NOEX.
14229         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
14230         SET_RESTORE_ROUND_NOEXF.
14231         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
14232         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
14233         (libc_feholdsetroundf): New.
14234         (libc_feresetround, libc_feresetroundf): New.
14236         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
14237         (libc_feholdexcept_setround_53bit): Convert from macro to function.
14238         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
14240         * sysdeps/generic/math_private.h: Include <fenv.h>.
14241         (default_libc_feholdexcept): New.
14242         (default_libc_feholdexcept_setround): New.
14243         (default_libc_fesetenv, default_libc_feupdateenv): New.
14244         (libc_feholdexcept): Only define if undefined.
14245         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
14246         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
14247         (libc_feholdexcept_setroundl): Likewise.
14248         (libc_feholdexcept_setround_53bit): Likewise.
14249         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
14250         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
14251         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
14252         (libc_feupdateenv_53bit): Likewise.
14253         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
14254         (libc_feholdexcept): Convert from macro to inline function.
14255         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
14256         (libc_fesetenv, libc_feupdateenv): Likewise.
14258         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
14259         not previously defined.
14260         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
14261         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
14262         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
14263         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
14264         * sysdeps/ieee754/flt-32/math_private.h: New file.
14265         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
14266         math_private.h below SET_FLOAT_WORD.
14267         (__isnan, __isinf_ns, __finite): Remove.
14268         (__isnanf, __isinf_nsf, __finitef): Remove.
14270 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
14272         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14274 2012-03-17  David S. Miller  <davem@davemloft.net>
14276         [BZ #6471]
14277         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
14278         for 2.16.
14280 2012-03-16  David S. Miller  <davem@davemloft.net>
14282         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
14283         warnings.
14285         [BZ #6471]
14286         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
14287         properly.
14288         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
14289         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
14290         sysdep_routines when subdir is sysvipc.
14291         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
14292         __getshmlba helper.
14294         * sysdeps/sparc/fpu/libm-test/ulps: Update.
14296 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14298         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
14299         [__LP64__].
14301 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14303         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
14304         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
14305         (__lround): Renamed to ...
14306         (__llround): This.  Replace long int with long long int.
14307         Define lround functions as aliases of llround functions.
14308         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
14310 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14312         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
14313         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
14314         adresses to uintptr_t.  Replace "long int" and "unsigned long
14315         int" with "greg_t" on va_arg.
14317 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14319         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
14320         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
14322         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
14323         Move e_machine check before EI_CLASS check.  Handle x32
14324         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
14325         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
14326         SKIP_EM_IA_64 and include
14327         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
14329         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
14330         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
14331         (add_system_dir): New macro.
14333         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
14334         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
14336 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
14338         [BZ #2551]
14339         [BZ #2552]
14340         [BZ #2553]
14341         [BZ #2554]
14342         [BZ #2562]
14343         [BZ #2563]
14344         [BZ #2565]
14345         [BZ #2566]
14346         [BZ #2576]
14347         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
14348         (y0): Likewise.
14349         * math/w_j0f.c (j0f): Likewise.
14350         (y0f): Likewise.
14351         * math/w_j0l.c (__j0l): Likewise.
14352         (__y0l): Likewise.
14353         * math/w_j1.c (j1): Likewise.
14354         (y1): Likewise.
14355         * math/w_j1f.c (j1f): Likewise.
14356         (y1f): Likewise.
14357         * math/w_j1l.c (__j1l): Likewise.
14358         (__y1l): Likewise.
14359         * math/w_jn.c (jn): Likewise.
14360         (yn): Likewise.
14361         * math/w_jnf.c (jnf): Likewise.
14362         (ynf): Likewise.
14363         * math/w_jnl.c (__jnl): Likewise.
14364         (__ynl): Likewise.
14365         * math/libm-test.inc (j0_test): Add more tests.
14366         (j1_test): Likewise.
14367         (jn_test): Likewise.  Add trailing semicolon to existing test.
14368         (y0_test): Likewise.
14369         (y1_test): Likewise.
14370         * sysdeps/i386/fpu/libm-test-ulps: Update.
14371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14373         [BZ #13851]
14374         [BZ #13854]
14375         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
14376         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
14377         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
14378         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
14379         (__tanl): Set errno for infinite argument.
14380         * sysdeps/i386/fpu/mptan.c: Remove.
14381         * sysdeps/i386/fpu/s_tan.S: Likewise.
14382         * sysdeps/i386/fpu/s_tanl.S: Likewise.
14383         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
14384         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
14385         * math/libm-test.inc (tan_test): Add more tests and enable more
14386         tests for double and long double.
14387         * sysdeps/i386/fpu/libm-test-ulps: Update.
14388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14390 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14392         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
14393         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
14395 2012-03-16  Roland McGrath  <roland@hack.frob.com>
14397         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
14398         * configure.in: Use it for both main tree and add-ons.
14399         * configure: Regenerated.
14401 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14403         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
14405 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
14407         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
14408         in comment.
14410         [BZ #13851]
14411         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
14412         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
14413         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14414         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
14415         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
14416         infinite argument.
14417         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
14418         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
14419         != 0 for prec == 2.
14420         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
14421         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
14422         * sysdeps/i386/fpu/s_cosl.S: Likewise.
14423         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
14424         * sysdeps/i386/fpu/s_sinl.S: Likewise.
14425         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
14426         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
14427         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
14428         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
14429         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
14430         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
14431         * math/libm-test.inc (cos_test): Add more tests and enable more
14432         tests for long double.
14433         (sin_test): Likewise.
14434         (sincos_test): Likewise.
14435         * sysdeps/i386/fpu/libm-test-ulps: Update.
14436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14438 2012-03-16  David S. Miller  <davem@davemloft.net>
14440         * sysdeps/sparc/fpu/math_private.h: New file.
14442 2012-03-15  David S. Miller  <davem@davemloft.net>
14444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
14445         file.
14446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
14447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
14448         file.
14449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
14450         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
14451         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
14452         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
14453         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
14454         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
14455         sysdep routines.
14456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
14458         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
14459         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
14461         * sysdeps/sparc/sparc-ifunc.h: New file.
14462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
14463         sparc-ifunc.h
14464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
14466         Likewise.
14467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
14468         Likewise.
14469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
14470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
14471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14473         Likewise.
14474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
14475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
14476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
14477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
14478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
14479         Likewise.
14480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
14481         Likewise.
14482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
14483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
14484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
14485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
14486         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14487         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14488         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
14489         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
14490         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14491         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14492         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
14493         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
14494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
14495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
14496         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
14497         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
14498         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
14499         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
14500         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
14501         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
14502         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
14503         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
14504         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
14505         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
14507 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
14509         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
14510         scaling.
14511         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14513 2012-03-15  Andreas Jaeger  <aj@suse.de>
14515         [BZ #13852]
14516         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
14517         ieee754/flt-32 implementation for sin, cos and sincos.
14518         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
14519         * sysdeps/i386/fpu/s_cosf.S: Likewise.
14520         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
14521         * sysdeps/i386/fpu/s_sinf.S: Likewise.
14522         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
14523         ieee754/flt-32 implementation for tan.
14525         * math/libm-test.inc (cos_test): Enable some large input tests for
14526         float as well
14527         (sin_test): Likewise.
14528         (sincos_test): Likewise.
14529         (tan_test): Add tests for large input.
14531         * sysdeps/i386/fpu/libm-test-ulps: Update.
14533 2012-03-15  Andreas Jaeger  <aj@suse.de>
14535         [BZ #13658]
14536         * math/libm-test.inc (cos_test): Add more test cases.
14537         (sin_test): Likewise.
14538         (sincos_test): Likewise.
14540 2012-03-15  Andreas Jaeger  <aj@suse.de>
14542         [BZ #13837]
14543         * math/libm-test.inc (cos_test): Add a test case for large input
14544         value.
14545         (sin_test): Likewise.
14546         (sincos_test): Likewise.
14548 2012-03-15  Andreas Jaeger  <aj@suse.de>,
14549         Joseph Myers  <joseph@codesourcery.com>
14551         [BZ #13658]
14552         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
14553         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
14554         * sysdeps/i386/fpu/branred.c: Likewise.
14555         * sysdeps/i386/fpu/dosincos.c: Likewise.
14556         * sysdeps/i386/fpu/mpa.c: Likewise.
14557         * sysdeps/i386/fpu/s_cos.S: Likewise.
14558         * sysdeps/i386/fpu/s_sin.S: Likewise.
14559         * sysdeps/i386/fpu/s_sincos.S: Likewise.
14560         * sysdeps/i386/fpu/sincos32.c: Likewise.
14562         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
14563         Define.
14564         (libc_feupdateenv_53bit): Define.
14565         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
14566         Define.
14567         (libc_feupdateenv_53bit): Define.
14569         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
14570         53 bit (without extend i386 double precision).
14572         * math/libm-test.inc (sincos_test): Add tests for large input.
14573         (sin): Likewise.
14574         (cos): Likewise.
14576         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
14578 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
14580         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14582 2012-03-15  David S. Miller  <davem@davemloft.net>
14584         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
14585         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
14586         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
14587         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
14588         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
14589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
14590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
14591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
14592         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
14593         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
14594         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
14595         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
14596         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
14597         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
14598         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
14599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
14600         file.
14601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
14602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
14603         file.
14604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
14605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
14606         file.
14607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
14608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
14609         file.
14610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
14611         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
14612         fmin/fmax sysdep routines.
14613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
14615 2012-03-14  David S. Miller  <davem@davemloft.net>
14617         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
14618         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
14619         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
14620         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
14621         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
14622         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
14623         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
14624         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
14625         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
14626         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
14627         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
14628         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
14629         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
14630         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
14631         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
14632         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
14633         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
14634         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
14635         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
14636         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
14637         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
14638         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
14639         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
14640         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
14641         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
14642         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
14643         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
14644         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
14645         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
14646         routines.
14647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
14648         file.
14649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
14650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
14651         file.
14652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
14653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
14654         file.
14655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
14656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
14657         file.
14658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
14659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
14660         file.
14661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
14662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
14663         file.
14664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
14665         file.
14666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
14667         file.
14668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
14669         file.
14670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
14671         New file.
14672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
14673         file.
14674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
14675         file.
14676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
14677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
14678         file.
14679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
14680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
14681         file.
14682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
14683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
14684         file.
14685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
14686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
14687         VIS3 routines.
14689         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14690         New file.
14692         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14694         * sysdeps/sparc/configure.in: New file.
14695         * sysdeps/sparc/configure: Generate.
14696         * configure.in (libc_cv_sparc_as_vis3): Substitute.
14697         * configure: Regenerate.
14698         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
14699         * config.make.in (have-as-vis3): New.
14700         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
14701         available use -Av9d instead of -Av9a.
14702         * sysdeps/sparc/sparc64/Makefile: Likewise.
14703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
14704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
14705         New file.
14706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
14707         file.
14708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
14709         New file.
14710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
14711         file.
14712         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
14713         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
14714         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
14715         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
14716         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
14718         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
14719         fzeros/fnegs to load 0x80000000 into a float register instead of
14720         using the stack.
14721         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
14723 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
14725         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14726         bits/syscall.h.
14727         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
14728         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
14729         ($(inst_includedir)/bits/syscall.h): Remove rule.
14730         ($(objpfx)bits/syscall.d): Include instead of
14731         $(objpfx)syscall-list.d.
14732         (generated): Change syscall-list.h and syscall-list.d to
14733         bits/syscall.h and bits/syscall.d.
14735 2012-03-14  Roland McGrath  <roland@hack.frob.com>
14737         [BZ #13846]
14738         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
14740 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
14742         [BZ #13841]
14743         * math/s_csqrt.c: Include <float.h>.
14744         (__csqrt): Scale large or subnormal inputs.
14745         * math/s_csqrtf.c: Likewise.
14746         * math/s_csqrtl.c: Likewise.
14747         * math/libm-test.inc (csqrt_test): Add more tests.
14748         * sysdeps/i386/fpu/libm-test-ulps: Update.
14749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14751         [BZ #13840]
14752         * math/libm-test.inc (hypot_test): Add more tests.
14754 2012-03-13  David S. Miller  <davem@davemloft.net>
14756         [BZ #13840]
14757         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
14758         double-precision for the calculation instead of scaling.
14760 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
14762         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
14763         manipulate bits before adding and subtracting TWO52[sx].
14764         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
14765         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
14766         Likewise.
14767         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
14769 2012-03-13  David S. Miller  <davem@davemloft.net>
14771         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
14772         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
14773         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
14774         rtld-global-offsets.h
14775         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14777         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
14778         large parameters.
14780         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
14782         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
14783         'err' in the ifdef scope in which it is actually used.
14785         * nss/nss_db/db-init.c: Include string.h
14787 2012-03-12  David S. Miller  <davem@davemloft.net>
14789         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
14790         masking out of the most significant byte of random value used.
14791         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14792         Fix coding style in previous change.
14794         * sysdeps/unix/sysv/linux/kernel-features.h
14795         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
14796         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
14797         expression.
14798         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
14799         later.
14801 2012-03-11  David S. Miller  <davem@davemloft.net>
14803         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
14804         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
14805         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
14806         for 'resultvar' otherwise things get truncated on 64-bit.
14808         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14809         Fix masking out of the most significant byte of random value used.
14811         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14813 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
14815         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14817 2012-03-09  David S. Miller  <davem@davemloft.net>
14819         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
14820         variables with appropriate CPP guards.
14821         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
14822         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
14823         on resulting framesize and the management of the outregs buffer for pltexit.
14824         Preserve floating point return values across _dl_call_pltexit call.
14825         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
14826         framesize and the management of the outregs buffer for pltexit.
14827         Preserve floating point return values across _dl_call_pltexit
14828         call.
14829         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
14830         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
14831         (print_exit): Fix format string for return register value.
14833 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
14835         * sunrpc/Makefile (others): Add rpcgen.
14836         ($(objpfx)rpcgen): Remove special build rule and dependency on
14837         libc.
14838         * sunrpc/rpcgen.c: New file.
14840 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
14842         [BZ #13673]
14843         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
14844         * stdio-common/bug-vfprintf-nargs.c: Likewise.
14845         * sysdeps/i386/crti.S: Likewise.
14846         * sysdeps/i386/crtn.S: Likewise.
14847         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
14848         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
14849         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
14850         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
14851         * sysdeps/sh/crti.S: Likewise.
14852         * sysdeps/sh/crtn.S: Likewise.
14853         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
14855         [BZ #13673]
14856         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
14857         with URL.
14858         * locale/programs/locfile-kw.gperf: Likewise.
14859         * locale/programs/charmap-kw.h: Regenerated.
14860         * locale/programs/locfile-kw.h: Likewise.
14862         [BZ #13673]
14863         * intl/plural.y: Replace FSF snail mail address with URL.
14864         * intl/plural.c: Regenerated.
14866 2012-03-09  Richard Henderson  <rth@twiddle.net>
14868         * include/math_private.h: Remove file.
14869         * math/math_private.h: Move file ...
14870         * sysdeps/generic/math_private.h: ... here.
14872         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
14873         * sysdeps/powerpc/fpu/math_private.h: Likewise.
14874         * sysdeps/x86_64/fpu/math_private.h: Likewise.
14876         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
14877         and <math_private.h>.
14878         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14879         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14880         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14881         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14882         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14883         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
14884         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14885         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14886         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14887         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14888         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14889         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14890         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14891         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14892         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14893         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14894         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14895         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14896         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14897         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14898         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14899         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14900         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14901         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14902         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
14903         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14904         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14905         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14906         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14907         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14908         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14909         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14910         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
14911         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14912         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14913         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14914         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14915         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14916         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14917         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14918         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
14919         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14920         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14921         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
14922         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
14923         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14924         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14925         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
14926         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14927         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14928         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14929         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
14930         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
14931         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14932         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
14933         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14934         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14935         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
14936         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
14937         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
14938         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14939         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14940         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14941         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14942         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
14943         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14944         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14945         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14946         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
14947         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
14948         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
14949         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14950         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
14951         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14952         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
14953         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
14954         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
14955         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14956         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
14957         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
14958         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
14959         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14960         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
14961         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14962         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14963         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
14964         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
14965         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
14966         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14967         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14968         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14969         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14970         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14971         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14972         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14973         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14974         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14975         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14976         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14977         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14978         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14979         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14980         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14981         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14982         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14983         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14984         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14985         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14986         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14987         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14988         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14989         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14990         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14991         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14992         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
14993         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14994         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14995         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14996         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14997         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14998         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14999         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
15000         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15001         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
15002         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15003         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
15004         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15005         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
15006         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
15007         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
15008         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
15009         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15010         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15011         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
15012         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
15013         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15014         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15015         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15016         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
15017         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15018         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15019         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15020         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15021         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
15022         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
15023         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
15024         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
15025         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15026         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
15027         * sysdeps/ieee754/k_standard.c: Likewise.
15028         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15029         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15030         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15031         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15032         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15033         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15034         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15035         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15036         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15037         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15038         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15039         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15040         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15041         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15042         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15043         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15044         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
15045         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15046         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15047         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
15048         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
15049         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
15050         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15051         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15052         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15053         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
15054         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
15055         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
15056         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
15057         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15058         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
15059         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
15060         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
15061         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
15062         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
15063         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
15064         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
15065         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
15066         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
15067         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
15068         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
15069         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
15070         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
15071         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
15072         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
15073         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
15074         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
15075         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15076         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15077         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15078         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15079         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
15080         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
15081         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
15082         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15083         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15084         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
15085         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
15086         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
15087         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15088         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15089         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
15090         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
15091         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15092         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15093         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15094         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15095         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15096         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15097         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15098         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15099         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15100         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15101         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15102         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15103         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15104         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
15105         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15106         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15107         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
15108         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
15109         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
15110         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15111         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15112         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
15113         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15114         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15115         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15116         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15117         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15118         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
15119         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15120         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
15121         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
15122         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15123         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15124         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
15125         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
15126         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
15127         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
15128         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15129         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15130         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15131         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15132         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
15133         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15134         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15135         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
15136         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
15137         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15138         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15139         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15140         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15141         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15142         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15143         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15144         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15145         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15146         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15147         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15148         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15149         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15150         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15151         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15152         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15153         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
15154         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15155         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15156         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15157         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15158         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15159         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15160         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15161         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
15162         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15163         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15164         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
15165         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
15166         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15167         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
15168         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
15169         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15170         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
15171         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
15172         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15173         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15174         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15175         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15176         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15177         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
15178         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15179         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15180         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15181         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15182         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
15183         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
15184         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15185         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15186         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15187         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
15188         * sysdeps/ieee754/s_lib_version.c: Likewise.
15189         * sysdeps/ieee754/s_matherr.c: Likewise.
15190         * sysdeps/ieee754/s_signgam.c: Likewise.
15191         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15192         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15193         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
15194         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
15195         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
15196         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
15197         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
15198         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
15199         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
15200         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
15201         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
15202         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
15203         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15204         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15205         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
15206         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15207         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15208         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15209         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15210         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15211         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15213 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
15215         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
15216         * sunrpc/rpc_main.c: Likewise.
15217         * sunrpc/rpc_svcout.c: Likewise.
15219 2012-03-09  David S. Miller  <davem@davemloft.net>
15221         * include/math_private.h: New file.
15223 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
15225         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
15226         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
15227         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
15228         from <bits/socket_type.h>.
15229         (enum __socket_type): Don't define here.
15230         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
15231         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15232         bits/socket_type.h.
15234         [BZ #13566]
15235         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
15236         checking __USE_GNU.
15238         * Makerules ($(inst_includedir)/%.h): New rule.
15239         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
15240         (install-others): Remove variable setting.
15241         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
15243 2012-03-08  Richard Henderson  <rth@twiddle.net>
15245         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
15246         from macro to inline function; merge with the
15247         !__LIBC_INTERNAL_MATH_INLINES version.
15248         (__ieee754_sqrtf): Likewise.
15250         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
15251         to inline function.
15252         (__rintf, __floor, __floorf): Likewise.
15254         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
15255         macro to inline function.
15256         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
15258         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
15259         not <math/math_private.h>.
15261 2012-03-08  David S. Miller  <davem@davemloft.net>
15263         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
15264         copyright year.
15265         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
15267 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
15269         * resolv/gai_misc.c (handle_requests): Fix struct timespec
15270         normalization.
15271         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
15272         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
15274 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
15276         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
15277         be defined individually, they must be defined as a block.  Define
15278         S for printing a string instead of hidint the different by using a
15279         macro for adding the 'l'.
15280         * stdio-common/tst-fphex-wide.c: Adjust.
15282 2012-03-07  Marek Polacek  <polacek@redhat.com>
15284         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
15286 2012-03-08  Marek Polacek  <polacek@redhat.com>
15288         [BZ #13806]
15289         * stdio-common/Makefile (tests): Add tst-fphex-wide.
15290         * stdio-common/tst-fphex.c: Define a few macros to make the
15291         test reusable.  Use them.
15292         * stdio-common/tst-fphex-wide.c: New file.
15294 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
15296         [BZ #6911]
15297         * manual/macros.texi (gnusystems): New macro.
15298         (nongnusystems): Likewise.
15299         (gnulinuxhurdsystems): Likewise.
15300         (gnuhurdsystems): Likewise..
15301         (gnulinuxsystems): Likewise.
15302         * manual/charset.texi: Use new macros or @theglibc{} to refer to
15303         variants of the GNU system, not "GNU system".
15304         * manual/conf.texi: Likewise.
15305         * manual/errno.texi: Likewise.  Update example of errno macro
15306         expansion.
15307         * manual/filesys.texi: Likewise.
15308         (getumask): Document as specific to GNU/Hurd.
15309         * manual/install.texi: Likewise.  Reword some references to
15310         GNU/Linux.
15311         * manual/intro.texi: Likewise.
15312         * manual/io.texi: Likewise.
15313         (File Name Portability): Detail which constraints are inapplicable
15314         to all GNU systems and which are only inapplicable to GNU/Hurd.
15315         * manual/job.texi: Likewise.
15316         * manual/llio.texi: Likewise.
15317         (O_NOCTTY): Document as present on GNU/Linux.
15318         * manual/maint.texi: Likewise.
15319         * manual/memory.texi: Likewise.
15320         * manual/pattern.texi: Likewise.
15321         * manual/pipe.texi: Likewise.
15322         * manual/process.texi: Likewise.
15323         * manual/resource.texi: Likewise.
15324         (RUSAGE_CHILDREN): Remove statement about specifying a particular
15325         child on GNU/Hurd.
15326         * manual/setjmp.texi: Likewise.
15327         * manual/signal.texi: Likewise.
15328         * manual/startup.texi: Likewise.
15329         * manual/stdio.texi: Likewise.
15330         * manual/terminal.texi: Likewise.
15331         (ONLCR): Document as POSIX.
15332         (OXTABS): Document availability on GNU/Linux as XTABS.
15333         (ONOEOT): Document availability separately from other bits.
15334         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
15335         * manual/time.texi: Likewise.
15336         * manual/users.texi: Likewise.
15337         * INSTALL: Regenerated.
15338         * sysdeps/gnu/errlist.c: Regenerated.
15340         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
15341         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
15342         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
15343         puts.
15344         * configure: Regenerated.
15346 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
15348         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
15349         default includes instead of AC_HEADER_CHECK.
15350         * sysdeps/i386/configure: Regenerated.
15352         [BZ #10716]
15353         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
15354         * math/s_cacoshf.c (__cacoshf): Likewise.
15355         * math/s_cacoshl.c (__cacoshl): Likewise.
15356         * math/s_casinh.c (__casinh): Set signs of result from argument.
15357         * math/s_casinhf.c (__casinhf): Likewise.
15358         * math/s_casinhl.c (__casinhl): Likewise.
15359         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
15360         (casinh_test): Add more tests.
15361         * sysdeps/i386/fpu/libm-test-ulps: Update.
15362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15364 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
15366         * po/zh_TW.po: Update from translation team.
15368         * login/Makefile (distribute): Remove variable.
15369         * catgets/Makefile: Likewise.
15370         * mach/Makefile: Likewise.
15371         * malloc/Makefile: Likewise.
15372         * misc/Makefile: Likewise.
15373         * iconv/Makefile: Likewise.
15374         * nscd/Makefile: Likewise.
15375         * hurd/Makefile: Likewise.
15376         * manual/Makefile: Likewise.
15377         * locale/Makefile: Likewise.
15378         * intl/Makefile: Likewise.
15379         * conform/Makefile: Likewise.
15380         * nss/Makefile: Likewise.
15381         * time/Makefile: Likewise.
15382         * soft-fp/Makefile: Likewise.
15383         * dirent/Makefile: Likewise.
15384         * gmon/Makefile: Likewise.
15385         * po/Makefile: Likewise.
15386         * rt/Makefile: Likewise.
15387         * socket/Makefile: Likewise.
15388         * math/Makefile: Likewise.
15389         * signal/Makefile: Likewise.
15390         * debug/Makefile: Likewise.
15391         * elf/Makefile: Likewise.
15392         * timezone/Makefile: Likewise.
15393         * stdlib/Makefile: Likewise.
15394         * iconvdata/Makefile: Likewise.
15395         * sunrpc/Makefile: Likewise.
15396         * io/Makefile: Likewise.
15397         * argp/Makefile: Likewise.
15398         * inet/Makefile: Likewise.
15399         * hesiod/Makefile: Likewise.
15400         * grp/Makefile: Likewise.
15401         * csu/Makefile: Likewise.
15402         * wctype/Makefile: Likewise.
15403         * crypt/Makefile: Likewise.
15404         * libio/Makefile: Likewise.
15405         * string/Makefile: Likewise.
15406         * nis/Makefile: Likewise.
15407         * resolv/Makefile: Likewise.
15408         * stdio-common/Makefile: Likewise.
15409         * wcsmbs/Makefile: Likewise.
15410         * dlfcn/Makefile: Likewise.
15411         * posix/Makefile: Likewise.
15413         [BZ #6959]
15414         * timezone/Makefile: Don't install timezone files, just the programs
15415         and scripts.
15417 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
15419         * nss/databases.def: Add missing gshadow entry.
15421         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
15423 2012-03-06  Marek Polacek  <polacek@redhat.com>
15425         [BZ #13726]
15426         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
15427         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
15428         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
15429         * stdio-common/tst-long-dbl-fphex.c: New file.
15431 2012-03-06  David S. Miller  <davem@davemloft.net>
15433         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15434         (set_obp_int): New function.
15435         (get_obp_int): New function.
15436         (__get_clockfreq_via_dev_openprom): Likewise.
15437         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
15438         Avoid unused variable warnings on 'val' and use builtin_expect.
15439         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
15440         __builtin_expect.
15441         (INLINE_CLONE_SYSCALL): Likewise.
15443 2012-03-05  David S. Miller  <davem@davemloft.net>
15445         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15447 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
15449         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15451         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
15452         only for |x| >= 40.
15453         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15455 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
15457         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
15458         Replace gettimeofday with __vdso_gettimeofday.
15460         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15461         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
15462         __vdso_clock_gettime and __vdso_getcpu.
15464         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
15465         time with __vdso_time.
15467 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
15469         * manual/lang.texi (size_t): Note types to which size_t may be
15470         equivalent with the GNU C Library, but do not describe when
15471         differences between them are significant.
15473 2012-03-05  Andreas Jaeger  <aj@suse.de>
15475         * sysdeps/i386/fpu/libm-test-ulps: Update.
15477 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
15479         [BZ #3976]
15480         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
15481         (__ieee754_pow): Save and restore rounding mode and use
15482         round-to-nearest for main computations.
15483         * math/libm-test.inc (pow_test_tonearest): New function.
15484         (pow_test_towardzero): Likewise.
15485         (pow_test_downward): Likewise.
15486         (pow_test_upward): Likewise.
15487         (main): Call the new functions.
15488         * sysdeps/i386/fpu/libm-test-ulps: Update.
15489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15491         [BZ #3976]
15492         * math/libm-test.inc (cosh_test_tonearest): New function.
15493         (cosh_test_towardzero): Likewise.
15494         (cosh_test_downward): Likewise.
15495         (cosh_test_upward): Likewise.
15496         (sinh_test_tonearest): Likewise.
15497         (sinh_test_towardzero): Likewise.
15498         (sinh_test_downward): Likewise.
15499         (sinh_test_upward): Likewise.
15500         (main): Call the new functions.
15501         * sysdeps/i386/fpu/libm-test-ulps: Update.
15502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15504 2012-03-05  Tom de Vries  <tom@codesourcery.com>
15506         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
15507         default stack guard is set in last bytes.
15508         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
15510 2012-03-05  Kees Cook  <keescook@chromium.org>
15512         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
15514         [BZ #13656]
15515         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
15516         possibly allocate from heap instead of stack.
15517         * stdio-common/bug-vfprintf-nargs.c: New file.
15518         * stdio-common/Makefile (tests): Add nargs overflow test.
15520 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
15522         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15524 2012-03-03  Marek Polacek  <polacek@redhat.com>
15526         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
15527         * math/math_private.h: Likewise.
15528         * stdlib/tst-strtod.c: Likewise.
15529         * sysdeps/i386/i486/bits/atomic.h: Likewise.
15530         * sysdeps/x86_64/bits/atomic.h: Likewise.
15532 2012-03-02  David S. Miller  <davem@davemloft.net>
15534         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
15535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
15536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
15537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
15538         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
15539         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
15540         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
15541         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
15543 2012-03-02  Roland McGrath  <roland@hack.frob.com>
15545         [BZ #13792]
15546         * manual/examples/README: New file, says the example source files
15547         can be used under GPL>=2.
15548         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
15549         line containing just "*/".
15550         * manual/examples/add.c: Add copyright header (GPL>=2).
15551         * manual/examples/argp-ex1.c: Likewise.
15552         * manual/examples/argp-ex2.c: Likewise.
15553         * manual/examples/argp-ex3.c: Likewise.
15554         * manual/examples/argp-ex4.c: Likewise.
15555         * manual/examples/atexit.c: Likewise.
15556         * manual/examples/db.c: Likewise.
15557         * manual/examples/dir.c: Likewise.
15558         * manual/examples/dir2.c: Likewise.
15559         * manual/examples/execinfo.c: Likewise.
15560         * manual/examples/filecli.c: Likewise.
15561         * manual/examples/filesrv.c: Likewise.
15562         * manual/examples/fmtmsgexpl.c: Likewise.
15563         * manual/examples/genpass.c: Likewise.
15564         * manual/examples/inetcli.c: Likewise.
15565         * manual/examples/inetsrv.c: Likewise.
15566         * manual/examples/isockad.c: Likewise.
15567         * manual/examples/longopt.c: Likewise.
15568         * manual/examples/memopen.c: Likewise.
15569         * manual/examples/memstrm.c: Likewise.
15570         * manual/examples/mkfsock.c: Likewise.
15571         * manual/examples/mkisock.c: Likewise.
15572         * manual/examples/mygetpass.c: Likewise.
15573         * manual/examples/pipe.c: Likewise.
15574         * manual/examples/popen.c: Likewise.
15575         * manual/examples/rprintf.c: Likewise.
15576         * manual/examples/search.c: Likewise.
15577         * manual/examples/select.c: Likewise.
15578         * manual/examples/setjmp.c: Likewise.
15579         * manual/examples/sigh1.c: Likewise.
15580         * manual/examples/sigusr.c: Likewise.
15581         * manual/examples/stpcpy.c: Likewise.
15582         * manual/examples/strdupa.c: Likewise.
15583         * manual/examples/strftim.c: Likewise.
15584         * manual/examples/strncat.c: Likewise.
15585         * manual/examples/subopt.c: Likewise.
15586         * manual/examples/swapcontext.c: Likewise.
15587         * manual/examples/termios.c: Likewise.
15588         * manual/examples/testopt.c: Likewise.
15589         * manual/examples/testpass.c: Likewise.
15590         * manual/examples/timeval_subtract.c: Likewise.
15592         [BZ #13792]
15593         * manual/time.texi (Elapsed Time): Move timeval_subtract example
15594         function to ...
15595         * manual/timeval_subtract.c.texi: ... here, new file.
15597 2012-03-02  David S. Miller  <davem@davemloft.net>
15599         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
15601 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
15603         [BZ #3976]
15604         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
15605         (__sin): Save and restore rounding mode and use round-to-nearest
15606         for all computations.
15607         (__cos): Save and restore rounding mode and use round-to-nearest
15608         for all computations.
15609         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
15610         <fenv.h>.
15611         (tan): Save and restore rounding mode and use round-to-nearest for
15612         all computations.
15613         * math/libm-test.inc (cos_test_tonearest): New function.
15614         (cos_test_towardzero): Likewise.
15615         (cos_test_downward): Likewise.
15616         (cos_test_upward): Likewise.
15617         (sin_test_tonearest): Likewise.
15618         (sin_test_towardzero): Likewise.
15619         (sin_test_downward): Likewise.
15620         (sin_test_upward): Likewise.
15621         (tan_test_tonearest): Likewise.
15622         (tan_test_towardzero): Likewise.
15623         (tan_test_downward): Likewise.
15624         (tan_test_upward): Likewise.
15625         (main): Call the new functions.
15626         * sysdeps/i386/fpu/libm-test-ulps: Update.
15627         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15629         [BZ #10135]
15630         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
15631         small n, then large n, before computing and testing k+n.
15632         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
15633         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
15634         Likewise.
15635         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
15636         Likewise.
15637         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
15638         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
15639         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
15640         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
15641         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
15642         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
15643         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
15644         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
15645         * math/libm-test.inc (scalbn_test): Add more tests.
15646         (scalbln_test): Likewise.
15648         * manual/filesys.texi (mode_t): Describe constraints on size and
15649         signedness, not exact equivalence to a particular type.
15650         (ino_t): Likewise.
15651         (ino64_t): Likewise.
15652         (dev_t): Likewise.
15653         (nlink_t): Likewise.
15654         (blkcnt_t): Likewise.
15655         (blkcnt64_t): Likewise.
15656         * manual/llio.texi (off_t): Likewise.
15658         [BZ #3976]
15659         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
15660         (__ieee754_exp): Save and restore rounding mode and use
15661         round-to-nearest for all computations.
15662         * math/libm-test.inc (exp_test_tonearest): New function.
15663         (exp_test_towardzero): Likewise.
15664         (exp_test_downward): Likewise.
15665         (exp_test_upward): Likewise.
15666         (main): Call the new functions.
15667         * sysdeps/i386/fpu/libm-test-ulps: Update.
15668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15670 2012-03-01  Chris Demetriou  <cgd@google.com>
15672         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
15673         have predictable order.
15675 2012-03-01  David S. Miller  <davem@davemloft.net>
15677         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
15679         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
15680         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
15681         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
15682         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
15684         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
15685         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
15686         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
15687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
15688         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
15689         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
15690         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
15691         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
15692         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
15694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15696         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
15697         * sysdeps/sparc/fpu/libm-test-ulps: to here.
15698         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
15700         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
15701         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15702         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
15703         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
15704         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
15705         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
15706         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
15707         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15708         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
15709         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
15710         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
15711         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
15712         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15713         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
15714         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
15715         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15716         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
15717         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
15718         * sysdeps/sparc/elf/configure: Regenerated.
15720 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
15722         * configure.in (AS, LD): Require binutils 2.20 or later.
15723         * configure: Regenerated.
15724         * manual/install.texi (Tools for Compilation): Give binutils 2.20
15725         as required minimum version.
15726         * INSTALL: Regenerated.
15728         [BZ #2541]
15729         [BZ #4108]
15730         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
15731         before squaring exponent.
15732         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
15733         bottom long double and 27 bits of top long double before squaring
15734         exponent.
15735         * math/libm-test.inc (erfc_test): Add more tests.
15736         * sysdeps/i386/fpu/libm-test-ulps: Update.
15737         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15740 2012-03-01  Kai Tietz  <ktietz@redhat.com>
15742         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
15743         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
15744         containing bit-fields.
15745         * soft-fp/extended.h (_FP_UNION_E): Likewise.
15746         * soft-fp/single.h (_FP_UNION_S): Likewise.
15747         * soft-fp/double.h (_FP_UNION_D): Likewise.
15749 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
15751         [BZ #13786]
15752         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
15753         not include ../strcmp.S.
15754         [USE_AS_STRNCASECMP_L]: Likewise.
15755         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
15756         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
15757         * sysdeps/i386/i686/multiarch/strncase_l-c.c
15758         (__strncasecmp_l_ia32): Define as alias to
15759         __strncasecmp_l_nonascii.
15761         [BZ #5794]
15762         * math/libm-test.inc (expm1_test): Add test for bug 5794.
15763         * sysdeps/i386/fpu/libm-test-ulps: Update.
15764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15766         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
15767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15769 2012-02-29  Jeff Law  <law@redhat.com>
15771         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
15772         out of bounds read.
15774 2012-02-29  Marek Polacek  <polacek@redhat.com>
15776         [BZ #13706]
15777         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
15778         * elf/Makefile: Add rules to run tst-unused-dep.out.
15780 2012-02-28  David S. Miller  <davem@davemloft.net>
15782         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
15783         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
15784         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
15785         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
15786         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
15787         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
15789 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
15791         * math/libm-test.inc (llround_test): Move one test from
15792         lround_test.  Use TEST_f_L in moved test.
15793         (lround_test): Move misplaced test to llround_test.  Add testcase
15794         from bug 2561.
15796 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
15798         * sysdeps/x86_64/fpu/e_expf.S: New file.
15799         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
15801 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
15803         [BZ #13637]
15804         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
15805         of remain_len that may cause incomplete multi-byte character and
15806         false match.
15807         * posix/bug-regex33.c: New file.
15808         * posix/Makefile (tests): Add bug-regex33.
15810 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
15812         * manual/macros.texi: New file.
15813         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
15814         * manual/libc.texinfo: Include macros.texi.
15815         * manual/creatute.texi: Likewise.
15816         * manual/install.texi: Likewise.
15817         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
15818         @glibcadj{} in references to the GNU C Library.
15819         * manual/charset.texi: Likewise.
15820         * manual/conf.texi: Likewise.
15821         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
15822         when not using those macros.
15823         * manual/creature.texi: Likewise.
15824         * manual/crypt.texi: Likewise.
15825         * manual/errno.texi: Likewise.
15826         * manual/filesys.texi: Likewise.
15827         * manual/header.texi: Likewise.
15828         * manual/install.texi: Likewise.
15829         * manual/intro.texi: Likewise.
15830         * manual/io.texi: Likewise.
15831         * manual/job.texi: Likewise.
15832         * manual/lang.texi: Likewise.
15833         * manual/libc.texiinfo: Likewise.
15834         * manual/llio.texi: Likewise.
15835         * manual/locale.texi: Likewise.
15836         * manual/maint.texi: Likewise.
15837         * manual/math.texi: Likewise.
15838         * manual/memory.texi: Likewise.
15839         * manual/message.texi: Likewise.
15840         * manual/nss.texi: Likewise.
15841         * manual/pattern.texi: Likewise.
15842         * manual/process.texi: Likewise.
15843         * manual/resource.texi: Likewise.
15844         * manual/search.texi: Likewise.
15845         * manual/setjmp.texi: Likewise.
15846         * manual/signal.texi: Likewise.
15847         * manual/socket.texi: Likewise.
15848         * manual/startup.texi: Likewise.
15849         * manual/stdio.texi: Likewise.
15850         * manual/string.texi: Likewise.
15851         * manual/sysinfo.texi: Likewise.
15852         * manual/syslog.texi: Likewise.
15853         * manual/terminal.texi: Likewise.
15854         * manual/time.texi: Likewise.
15855         * manual/users.texi: Likewise.
15856         * INSTALL: Regenerated.
15857         * NOTES: Regenerated.
15858         * sysdeps/gnu/errlist.c: Regenerated.
15860 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
15862         * include/dirent.h: Include <dirstream.h> before
15863         <dirent/dirent.h>.
15865 2012-02-28  David S. Miller  <davem@davemloft.net>
15867         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
15868         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
15869         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
15870         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
15872 2012-02-27  David S. Miller  <davem@davemloft.net>
15874         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
15875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
15876         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
15877         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
15879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
15880         frame pointer instead of stack pointer relative arg slot.
15881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
15882         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
15883         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
15885 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
15887         [BZ #3992]
15888         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
15890 2012-02-27  David S. Miller  <davem@davemloft.net>
15892         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
15893         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
15894         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
15895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
15896         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
15897         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
15898         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
15899         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
15901 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
15903         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
15904         later.  Allow versions 5-9.
15905         * configure: Regenerated.
15906         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
15907         required minimum version and 4.6 as recommended version.  Do not
15908         mention bugs in GCC 2.7 and 2.8.
15909         * INSTALL: Regenerated.
15911 2012-02-27  David S. Miller  <davem@davemloft.net>
15913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
15914         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
15915         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
15916         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
15917         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
15918         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
15919         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
15920         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
15922         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
15923         manipulate bits before adding and subtracting TWO112[sx].
15924         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15926 2012-02-27  Roland McGrath  <roland@hack.frob.com>
15928         [BZ #13775]
15929         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
15930         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
15931         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
15932         being in POSIX, because they are in 1003.1-2008.
15934         * rt/tst-aio.c: Include <fcntl.h>.
15935         * rt/tst-aio7.c: Likewise.
15936         * rt/tst-aio64.c: Likewise.
15938         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
15940 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
15942         * manual/install.texi (--with-headers): Describe headers as
15943         interface headers, not private headers.
15944         (Specific advice for GNU/Linux systems): Describe use of headers
15945         from "make headers_install", not private headers from older
15946         kernels.
15947         * INSTALL: Regenerated.
15948         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
15949         Change to 2.6.19.
15950         * sysdeps/unix/sysv/linux/configure: Regenerated.
15952         * manual/llio.texi (fclean): Remove documentation.
15954         * manual/Makefile (libc-texi-generated): New variable.  Include
15955         version.texi.
15956         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
15957         $(libc-texi-generated), not duplicated list of files.
15958         (version.texi, stamp-version): New rules.
15959         (realclean): Remove $(libc-texi-generated), not individual files
15960         from that list.  Do not remove dir-add.texinfo.
15961         * manual/libc.texinfo: Comment out uses of edition numbers and
15962         references to printed manual.  Remove last-updated dates.
15963         (EDITION): Comment out.
15964         (ISBN): Likewise.
15965         (VERSION, UPDATED): Remove.
15966         (version.texi): Include.
15968 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
15970         * sysdeps/posix/spawni.c: Include <signal.h>.
15971         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
15972         * sysdeps/pthread/aio_fsync.c: Likewise.
15974 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
15976         * conform/Makefile (tests): Run only when not cross-compiling and
15977         when fast-check is not defined.
15979         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
15980         * conform/data/limits.h-data: Fixes for POSIX2008.
15981         * conform/run-conformtest.sh: Run all tests.
15982         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
15983         headers.
15984         * include/bits/dlfcn.h: Likewise.
15985         * include/langinfo.h: Likewise.
15986         * include/monetary.h: Likewise.
15987         * include/sys/poll.h: Likewise.
15989         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
15990         for __USE_GNU.
15991         * posix/spawn.h: Define __need_sigset_t.
15992         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
15993         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
15994         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
15995         to get sigevent_t only.
15996         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
15997         only for __USE_GNU.
15998         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15999         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16000         process_vm_writev only for __USE_GNU.
16001         * termios/termios.h: Declare tcgetsid also for POSIX2008.
16003         * conform/Makefile: For now ignore errors from run-conformtest.
16004         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
16005         POSIX to avoid namespace pollution.  Don't prepend headers.
16006         * conform/data/aio.h-data: Fixes for POSIX testing.
16007         * conform/data/fcntl.h-data: Likewise.
16008         * conform/data/glob.h-data: Likewise.
16009         * conform/data/grp.h-data: Likewise.
16010         * conform/data/pthread.h-data: Likewise.
16011         * conform/data/pwd.h-data: Likewise.
16012         * conform/data/signal.h-data: Likewise.
16013         * conform/data/spawn.h-data: Likewise.
16014         * conform/data/stdio.h-data: Likewise.
16015         * conform/data/stdlib.h-data: Likewise.
16016         * conform/data/stropts.h-data: Likewise.
16017         * conform/data/sys/mman.h-data: Likewise.
16018         * conform/data/sys/stat.h-data: Likewise.
16019         * conform/data/sys/types.h-data: Likewise.
16020         * conform/data/sys/wait.h-data: Likewise.
16021         * conform/data/time.h-data: Likewise.
16022         * conform/data/unistd.h-data: Likewise.
16023         * conform/data/utime.h-data: Likewise.
16025         * io/sys/stat.h: fchmod was always in POSIX.
16026         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
16027         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
16028         * rt/aio.h: Define __need_timespec before including <time.h>.
16029         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
16030         struct.  Add forward declaration of pthread_attr_t and use it in
16031         sigevent.
16032         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16033         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16034         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
16035         always remove CLK_TCK definition.
16037 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
16039         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
16041 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
16043         * conform/run-conformtest.sh: New file.
16044         * conform/Makefile: Run run-conformtest for tests.
16045         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
16046         support.
16048         * conform/data/uchar.h-data: New file.
16049         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
16050         * conform/data/arpa/inet.h-data: Likewise.
16051         * conform/data/assert.h-data: Likewise.
16052         * conform/data/complex.h-data: Likewise.
16053         * conform/data/cpio.h-data: Likewise.
16054         * conform/data/ctype.h-data: Likewise.
16055         * conform/data/dirent.h-data: Likewise.
16056         * conform/data/dlfcn.h-data: Likewise.
16057         * conform/data/errno.h-data: Likewise.
16058         * conform/data/fcntl.h-data: Likewise.
16059         * conform/data/float.h-data: Likewise.
16060         * conform/data/fmtmsg.h-data: Likewise.
16061         * conform/data/fnmatch.h-data: Likewise.
16062         * conform/data/ftw.h-data: Likewise.
16063         * conform/data/glob.h-data: Likewise.
16064         * conform/data/grp.h-data: Likewise.
16065         * conform/data/iconv.h-data: Likewise.
16066         * conform/data/inttypes.h-data: Likewise.
16067         * conform/data/langinfo.h-data: Likewise.
16068         * conform/data/libgen.h-data: Likewise.
16069         * conform/data/limits.h-data: Likewise.
16070         * conform/data/locale.h-data: Likewise.
16071         * conform/data/math.h-data: Likewise.
16072         * conform/data/monetary.h-data: Likewise.
16073         * conform/data/mqueue.h-data: Likewise.
16074         * conform/data/ndbm.h-data: Likewise.
16075         * conform/data/net/if.h-data: Likewise.
16076         * conform/data/netdb.h-data: Likewise.
16077         * conform/data/netinet/in.h-data: Likewise.
16078         * conform/data/nl_types.h-data: Likewise.
16079         * conform/data/poll.h-data: Likewise.
16080         * conform/data/pthread.h-data: Likewise.
16081         * conform/data/pwd.h-data: Likewise.
16082         * conform/data/regex.h-data: Likewise.
16083         * conform/data/sched.h-data: Likewise.
16084         * conform/data/search.h-data: Likewise.
16085         * conform/data/semaphore.h-data: Likewise.
16086         * conform/data/setjmp.h-data: Likewise.
16087         * conform/data/signal.h-data: Likewise.
16088         * conform/data/spawn.h-data: Likewise.
16089         * conform/data/stdarg.h-data: Likewise.
16090         * conform/data/stdio.h-data: Likewise.
16091         * conform/data/stdlib.h-data: Likewise.
16092         * conform/data/string.h-data: Likewise.
16093         * conform/data/strings.h-data: Likewise.
16094         * conform/data/stropts.h-data: Likewise.
16095         * conform/data/sys/ipc.h-data: Likewise.
16096         * conform/data/sys/mman.h-data: Likewise.
16097         * conform/data/sys/msg.h-data: Likewise.
16098         * conform/data/sys/resource.h-data: Likewise.
16099         * conform/data/sys/select.h-data: Likewise.
16100         * conform/data/sys/sem.h-data: Likewise.
16101         * conform/data/sys/shm.h-data: Likewise.
16102         * conform/data/sys/socket.h-data: Likewise.
16103         * conform/data/sys/stat.h-data: Likewise.
16104         * conform/data/sys/statvfs.h-data: Likewise.
16105         * conform/data/sys/time.h-data: Likewise.
16106         * conform/data/sys/timeb.h-data: Likewise.
16107         * conform/data/sys/times.h-data: Likewise.
16108         * conform/data/sys/types.h-data: Likewise.
16109         * conform/data/sys/uio.h-data: Likewise.
16110         * conform/data/sys/un.h-data: Likewise.
16111         * conform/data/sys/utsname.h-data: Likewise.
16112         * conform/data/sys/wait.h-data: Likewise.
16113         * conform/data/syslog.h-data: Likewise.
16114         * conform/data/tar.h-data: Likewise.
16115         * conform/data/termios.h-data: Likewise.
16116         * conform/data/utime.h-data: Likewise.
16117         * conform/data/utmpx.h-data: Likewise.
16118         * conform/data/varargs.h-data: Likewise.
16119         * conform/data/wchar.h-data: Likewise.
16120         * conform/data/wctype.h-data: Likewise.
16121         * conform/data/wordexp.h-data: Likewise.
16123         * include/stropts.h: New file.
16124         * include/uchar.h: New file.
16125         * include/aio.h: Changes to allow conformtest.pl to use the headers.
16126         * include/assert.h: Likewise.
16127         * include/ctype.h: Likewise.
16128         * include/dirent.h: Likewise.
16129         * include/dlfcn.h: Likewise.
16130         * include/fcntl.h: Likewise.
16131         * include/fnmatch.h: Likewise.
16132         * include/glob.h: Likewise.
16133         * include/grp.h: Likewise.
16134         * include/libio.h: Likewise.
16135         * include/locale.h: Likewise.
16136         * include/math.h: Likewise.
16137         * include/net/if.h: Likewise.
16138         * include/netdb.h: Likewise.
16139         * include/netinet/in.h: Likewise.
16140         * include/pthread.h: Likewise.
16141         * include/pwd.h: Likewise.
16142         * include/regex.h: Likewise.
16143         * include/sched.h: Likewise.
16144         * include/search.h: Likewise.
16145         * include/setjmp.h: Likewise.
16146         * include/signal.h: Likewise.
16147         * include/stdio.h: Likewise.
16148         * include/stdlib.h: Likewise.
16149         * include/string.h: Likewise.
16150         * include/sys/cdefs.h: Likewise.
16151         * include/sys/mman.h: Likewise.
16152         * include/sys/msg.h: Likewise.
16153         * include/sys/resource.h: Likewise.
16154         * include/sys/select.h: Likewise.
16155         * include/sys/socket.h: Likewise.
16156         * include/sys/stat.h: Likewise.
16157         * include/sys/statvfs.h: Likewise.
16158         * include/sys/time.h: Likewise.
16159         * include/sys/times.h: Likewise.
16160         * include/sys/uio.h: Likewise.
16161         * include/sys/utsname.h: Likewise.
16162         * include/sys/wait.h: Likewise.
16163         * include/termios.h: Likewise.
16164         * include/time.h: Likewise.
16165         * include/ulimit.h: Likewise.
16166         * include/unistd.h: Likewise.
16167         * include/utime.h: Likewise.
16168         * include/wchar.h: Likewise.
16169         * include/wctype.h: Likewise.
16170         * include/wordexp.h: Likewise.
16172         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
16174         * time/time.h: TIME_UTC must be a macro.
16175         Make timespec_get available for ISO C11 only as well.
16177 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
16179         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
16180         Reported by Peng Haitao <penght@cn.fujitsu.com>.
16182 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
16184         * configure.in: Use -o not -a in test for unsupported multi-arch.
16186 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
16188         * manual/texinfo.tex: Update to version 2012-01-19.16.
16190 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
16192         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
16194 2012-02-24  Roland McGrath  <roland@hack.frob.com>
16196         [BZ #13738]
16197         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
16198         * manual/fdl-1.3.texi: New file.
16199         * manual/fdl-1.1.texi: File removed.
16201         [BZ #13738]
16202         * manual/libc.texinfo (FDL_VERSION): New @set.
16203         Use it for mention of FDL in cover text.
16204         (Documentation License): Use it in @include file name.
16206 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
16207             Roland McGrath  <roland@hack.frob.com>
16209         [BZ #5461]
16210         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
16211         not LONG_LONG_MAX and LONG_LONG_MIN.
16212         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
16213         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
16214         name.
16215         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
16217 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
16219         [BZ #2547]
16220         [BZ #11365]
16221         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
16222         manipulate bits before adding and subtracting TWO23[sx].
16223         * math/libm-test.inc (nearbyint_test): Add more tests.
16225 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
16227         [BZ #2548]
16228         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
16229         bits before adding and subtracting TWO23[sx].
16230         * math/libm-test.inc (rint_test): Add more tests.
16231         (rint_test_tonearest): Likewise.
16232         (rint_test_towardzero): Likewise.
16233         (rint_test_downward): Likewise.
16234         (rint_test_upward: Likewise.
16236 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
16238         [BZ #10110]
16239         * include/stdc-predef.h: New file.  Extracted from features.h.
16240         * include/features.h: Include stdc-predef.h.
16241         * Makefile (headers): Add stdc-predef.h.
16242         * CONFORMANCE (Compiler limitations): Update.
16244 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
16246         * manual/libc.texinfo (VERSION, UPDATED): Revert.
16248 2012-02-21  David S. Miller  <davem@davemloft.net>
16250         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
16251         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
16253 2012-02-20  David S. Miller  <davem@davemloft.net>
16255         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
16256         using a normal save/restore sequence, rather than allocating a
16257         dummy stack frame just to store a frame pointer and restore.
16258         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
16260 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
16262         * manual/install.texi: Fix stray word in line-wrapped comment.
16264 2012-02-20  David S. Miller  <davem@davemloft.net>
16266         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
16267         both binutils and gcc support GOTDATA.
16269         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
16270         "rd %pc" in the PIC register setup sequences.
16272         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
16273         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
16274         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
16275         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
16276         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
16277         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
16278         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16279         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
16280         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
16281         (SYSCALL_ERROR_HANDLER): Likewise.
16282         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
16283         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16284         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
16285         (SYSCALL_ERROR_HANDLER): Likewise.
16287         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
16288         (HAVE_GCC_GOTDATA): New.
16289         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
16290         relocation support in both binutils and gcc.
16291         * sysdeps/sparc/elf/configure: Regenerate.
16293         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
16294         * sysdeps/sparc/sparc32/elf/configure: Delete.
16295         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
16296         * sysdeps/sparc/sparc64/elf/configure: Delete.
16297         * sysdeps/sparc/elf/configure.in: New file.
16298         * sysdeps/sparc/elf/configure: Generate.
16300         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
16301         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
16302         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16303         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
16304         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
16306 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
16308         * manual/install.texi: Do not mention specific glibc version
16309         numbers.
16310         * manual/libc.texinfo (VERSION, UPDATED): Update.
16311         (@copying): Use @copyright{} and range of years.
16313 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
16315         [BZ #13695]
16316         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
16317         [crti.S not in sysdirs] (generated): Do not append.
16318         [crti.S not in sysdirs] (omit-deps): Likewise.
16319         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
16320         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
16321         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
16322         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
16323         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
16324         Likewise.
16325         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
16326         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
16327         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
16328         * csu/defs.awk: Remove file.
16329         * sysdeps/generic/initfini.c: Likewise.
16330         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
16331         variable.
16332         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
16333         Likewise.
16335 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
16337         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
16338         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
16339         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
16340         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
16341         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
16342         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
16343         <bits/epoll.h>.
16344         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
16345         (__EPOLL_PACKED): Define to empty if not defined by
16346         <bits/epoll.h>.
16347         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
16348         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16349         bits/epoll.h.
16351 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
16353         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
16354         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
16355         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
16356         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
16357         <bits/timerfd.h>.
16358         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
16359         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16360         bits/timerfd.h.
16362 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
16364         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
16365         in C locale.
16366         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16367         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16368         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
16369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16371 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
16373         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16374         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
16376 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
16378         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
16379         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
16380         defined.
16381         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
16382         Likewise.
16383         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
16384         entry for 2.16.
16386 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
16388         * math/w_acos.c: Use non-signaling floating-point comparisons.
16389         * math/w_acosf.c: Likewise.
16390         * math/w_acosh.c: Likewise.
16391         * math/w_acoshf.c: Likewise.
16392         * math/w_acoshl.c: Likewise.
16393         * math/w_acosl.c: Likewise.
16394         * math/w_asin.c: Likewise.
16395         * math/w_asinf.c: Likewise.
16396         * math/w_asinl.c: Likewise.
16397         * math/w_atanh.c: Likewise.
16398         * math/w_atanhf.c: Likewise.
16399         * math/w_atanhl.c: Likewise.
16400         * math/w_exp2.c: Likewise.
16401         * math/w_exp2f.c: Likewise.
16402         * math/w_exp2l.c: Likewise.
16403         * math/w_j0.c: Likewise.
16404         * math/w_j0f.c: Likewise.
16405         * math/w_j0l.c: Likewise.
16406         * math/w_j1.c: Likewise.
16407         * math/w_j1f.c: Likewise.
16408         * math/w_j1l.c: Likewise.
16409         * math/w_jn.c: Likewise.
16410         * math/w_jnf.c: Likewise.
16411         * math/w_log.c: Likewise.
16412         * math/w_log10.c: Likewise.
16413         * math/w_log10f.c: Likewise.
16414         * math/w_log10l.c: Likewise.
16415         * math/w_log2.c: Likewise.
16416         * math/w_log2f.c: Likewise.
16417         * math/w_log2l.c: Likewise.
16418         * math/w_logf.c: Likewise.
16419         * math/w_logl.c: Likewise.
16420         * math/w_sqrt.c: Likewise.
16421         * math/w_sqrtf.c: Likewise.
16422         * math/w_sqrtl.c: Likewise.
16423         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16424         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
16425         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16426         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16427         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16429 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
16431         [BZ #9739]
16432         * manual/string.texi (strnlen): Use correct parameter name in
16433         equivalent expression.
16435 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
16437         [BZ #11174]
16438         * manual/users.texi (seteuid): Consistently use neweuid for
16439         argument name.
16441 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
16443         [BZ #13704]
16444         * manual/nss.texi (Services in the NSS configuration): Correct
16445         list of services in example configuration file.
16447 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
16449         [BZ #11322]
16450         * manual/arith.texi: Remove statements about negative zero
16451         behaving identically to zero.
16453 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
16455         [BZ #5993]
16456         * manual/install.texi: Do not document upgrading from libc5.
16458 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
16460         [BZ #4596]
16461         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
16463 2012-02-18  David S. Miller  <davem@davemloft.net>
16465         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
16466         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
16467         %o7 across the call.
16468         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
16469         instead.
16470         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
16471         SETUP_PIC_REG_LEAF.
16472         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16473         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
16474         * sysdeps/sparc/crtn.S: Likewise.
16476 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
16478         * aout/Makefile: Remove.
16480 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
16482         [BZ #13058]
16483         * manual/examples/argp-ex1.c (main): Format definition in GNU
16484         style.
16485         * manual/examples/argp-ex2.c (main): Likewise.
16486         * manual/examples/argp-ex3.c (main): Likewise.
16487         * manual/examples/argp-ex4.c (main): Likewise.
16488         * manual/examples/longopt.c (main): Use new-style prototype
16489         definition.
16490         * manual/examples/strncat.c (main): Specify return type and use
16491         (void) for arguments.
16492         * manual/examples/subopt.c (main): Use char **argv argument.
16494 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16496         [BZ #5077]
16497         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
16498         rounding modes.
16500 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
16502         [BZ #6907]
16503         * manual/string.texi (strchr): Change when strchrnul is
16504         recommended.
16506 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
16508         [BZ #174]
16509         * manual/locale.texi (setlocale): Document LOCPATH.
16511 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16513         [BZ #10210]
16514         * manual/process.texi (execle): Move @dots{} before last argument.
16516 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
16518         [BZ #12047]
16519         * manual/charset.texi (Generic Charset Conversion): Fix typo
16520         (LC_TYPE -> LC_CTYPE).
16522 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
16524         [BZ #5805]
16525         * manual/arith.texi (scalbn): Use @var{} on parameter names.
16526         (scalbnf): Likewise.
16527         (scalbnl): Likewise.
16528         (scalbln): Likewise.
16529         (scalblnf): Likewise.
16530         (scalblnl): Likewise.
16531         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
16532         (vwarnx): Likewise.
16533         (verr): Likewise.
16534         (verrx): Likewise.
16535         * manual/filesys.texi (telldir): Use braces around return type.
16536         * manual/llio.texi (mmap): Add space after comma.
16537         (mmap64): Likewise.
16538         * manual/math.texi (jn): Use @var{} on parameter names.
16539         (jnf): Likewise.
16540         (jnl): Likewise.
16541         (yn): Likewise.
16542         (ynf): Likewise.
16543         (ynl): Likewise.
16544         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
16545         line.
16546         * manual/resource.texi (ulimit): Use @dots{} instead of literal
16547         "...".
16548         (sched_get_priority_min): Remove semicolon on @deftypefun line.
16549         (sched_get_priority_max): Likewise.
16550         * manual/signal.texi (sigvec): Add space after comma.
16551         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
16552         names.
16553         (if_indextoname): Likewise.
16554         (if_freenameindex): Likewise.
16555         (sendto): Use ',' instead of '.' in prototype.
16556         * manual/startup.texi (syscall): Use @dots{} instead of literal
16557         "...".
16558         * manual/stdio.texi (__fpending): Separate initial words of
16559         paragraph from @deftypefun line.
16560         * manual/syslog.texi (syslog): Use @dots{} instead of literal
16561         "...".
16562         (vsyslog): Use @var{} on parameter names.
16563         * manual/terminal.texi (stty): Use @var{} on parameter names.
16564         * manual/users.texi (getutmp): Use @var{} on parameter names.
16565         (getutmpx): Likewise.
16567 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16569         [BZ #6884]
16570         * manual/stdio.texi (fopen): Fix typos in description of
16571         ",ccs=STRING".
16573 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
16575         [BZ #4026]
16576         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
16577         get clock_id definition.
16579 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
16581         [BZ #4822]
16582         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
16583         (madvise): Cast every argument to void on its own.
16585 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16587         [BZ #9902]
16588         * manual/startup.texi (Exit Status): Fix typo.
16590 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16592         [BZ #10140]
16593         * manual/examples/argp-ex1.c: Include <stdlib.h>.
16594         * manual/examples/argp-ex2.c: Likewise.
16595         * manual/examples/argp-ex3.c: Likewise.
16597 2012-02-16  Richard Henderson  <rth@redhat.com>
16599         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
16600         * sysdeps/s390/s390-32/initfini.c: Remove.
16601         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
16602         * sysdeps/s390/s390-64/initfini.c: Remove.
16604 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16606         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
16607         compiler output for sysdeps/generic/initfini.c.
16608         * sysdeps/sh/elf/initfini.c: Remove file.
16610 2012-02-16  David S. Miller  <davem@davemloft.net>
16612         [BZ #11494]
16613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
16615         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
16616         * sysdeps/sparc/crti.S: New file.
16617         * sysdeps/sparc/crtn.S: New file.
16618         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
16619         * sysdeps/sparc/sparc64/Makefile: Likewise.
16621 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
16623         [BZ #3335]
16624         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
16626 2012-02-15  Roland McGrath  <roland@hack.frob.com>
16628         [BZ #4822]
16629         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
16631         * mach/devstream.c (cookie_io_functions_t): Macro removed.
16632         (write, read, close): Likewise.
16633         Patch by Aurelien Jarno <aurelien@aurel32.net>.
16635 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
16637         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
16638         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
16639         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
16640         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
16641         <bits/signalfd.h>.
16642         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
16643         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16644         bits/signalfd.h.
16646 2012-02-14  Marek Polacek  <polacek@redhat.com>
16648         * sysdeps/x86_64/crti.S: New file.
16649         * sysdeps/x86_64/crtn.S: New file.
16650         * sysdeps/x86_64/elf/initfini.c: Remove file.
16652 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
16654         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
16655         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
16656         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
16657         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
16658         <bits/inotify.h>.
16659         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
16660         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16661         bits/inotify.h.
16663 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
16665         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
16666         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
16667         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
16668         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
16669         <bits/eventfd.h>.
16670         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
16671         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16672         bits/eventfd.h.
16674 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
16676         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
16677         __feraiseexcept instead of feraiseexcept.
16679         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
16680         nanosleep invocations.
16681         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
16682         strings, and add error checking for a nanosleep invocations.
16684 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16686         Replace FSF snail mail address with URLs, as per GNU coding standards.
16687         Most of the snail mail addresses were wrong anyway, and omitting
16688         them makes the source code easier to maintain.  Almost all of the
16689         changes are to license notices and to locale LC_IDENTIFICATION
16690         addresses, except for this one:
16691         * manual/libc.texinfo: In "Published by", give the FSF's URL,
16692         not its snail mail address.
16694 2012-02-09  Richard Henderson  <rth@twiddle.net>
16696         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
16697         of kernel-features.h.
16699         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
16701 2012-02-08  Marek Polacek  <polacek@redhat.com>
16703         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
16704         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
16705         * sysdeps/gnu/_G_config.h: Likewise.
16706         * sysdeps/generic/_G_config.h: Likewise.
16708 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
16710         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
16711         tests.
16712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16714         * sysdeps/powerpc/powerpc32/crti.S: New file.
16715         * sysdeps/powerpc/powerpc32/crtn.S: New file.
16716         * sysdeps/powerpc/powerpc64/crti.S: New file.
16717         * sysdeps/powerpc/powerpc64/crtn.S: New file.
16719         * Makeconfig (have-initfini): Don't set.
16720         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
16721         * configure.in (nopic_initfini): Don't substitute.
16722         * config.h.in (HAVE_INITFINI): Don't #undef.
16723         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
16724         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
16726 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
16728         Support crti.S and crtn.S provided directly by architectures.
16729         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
16730         [crti.S in sysdirs] (omit-deps): Likewise.
16731         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
16732         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
16733         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
16734         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
16735         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
16736         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
16737         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
16738         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
16739         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
16740         compiler output for sysdeps/generic/initfini.c.
16741         * sysdeps/i386/elf/Makefile: Remove file.
16742         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
16744 2012-02-07  Marek Polacek  <polacek@redhat.com>
16746         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
16747         * sysdeps/gnu/_G_config.h: Likewise.
16748         * sysdeps/mach/hurd/_G_config.h: Likewise.
16750 2012-02-07  Marek Polacek  <polacek@redhat.com>
16752         * math/Makefile (tests): Add tst-CMPLX2.
16753         * math/tst-CMPLX2.c: New file.
16755 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
16757         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16759         * math/libm-test.inc (jn_test): Add missing L suffix.
16761 2012-02-06  Marek Polacek  <polacek@redhat.com>
16763         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
16764         * sysdeps/i386/fpu/e_powf.S: Likewise.
16765         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16766         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
16767         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16768         * sysdeps/i386/fpu/e_pow.S: Likewise.
16769         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
16770         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16771         * sysdeps/i386/fpu/s_expm1.S: Likewise.
16772         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
16773         * sysdeps/i386/fpu/e_log2.S: Likewise.
16774         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16775         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16776         * sysdeps/i386/fpu/e_powl.S: Likewise.
16777         * sysdeps/i386/fpu/s_log1p.S: Likewise.
16778         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16779         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
16780         * sysdeps/i386/fpu/e_logl.S: Likewise.
16781         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
16782         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
16783         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
16784         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
16785         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16786         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16787         * sysdeps/i386/fpu/e_log.S: Likewise.
16788         * sysdeps/i386/fpu/s_cexp.S: Likewise.
16789         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16790         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
16791         * sysdeps/i386/fpu/e_logf.S: Likewise.
16792         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16793         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16794         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
16795         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
16796         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
16797         * sysdeps/i386/fpu/e_log10.S: Likewise.
16798         * sysdeps/i386/fpu/s_frexp.S: Likewise.
16799         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16800         * sysdeps/i386/fpu/s_asinh.S: Likewise.
16801         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
16802         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16803         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
16804         * sysdeps/i386/asm-syntax.h: Likewise.
16805         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16806         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16807         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16808         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
16809         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
16810         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16811         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
16812         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
16813         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16814         * sysdeps/powerpc/sysdep.h: Likewise.
16815         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
16816         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
16818 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
16820         [BZ #411]
16821         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
16823 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
16825         * sysdeps/i386/sysdep.h: Include <features.h>.
16826         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
16827         version.
16829 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
16831         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
16832         Define.
16833         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
16834         LOAD_PIC_REG_STR.
16836 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
16838         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
16839         (SETUP_PIC_REG): Use GET_PC_THUNK.
16840         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
16841         macro.
16843 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
16845         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
16846         for non-PIC compilation.
16847         (SETUP_PIC_REG): Add .p2align directive.
16848         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
16849         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
16850         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
16851         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
16852         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
16853         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
16854         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
16855         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16856         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
16857         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
16858         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
16859         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
16860         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
16861         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
16862         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
16863         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
16864         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
16865         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
16866         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
16867         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
16868         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
16869         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
16870         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
16871         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
16872         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
16873         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
16874         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16875         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
16876         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
16877         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
16878         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
16879         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16880         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
16881         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
16882         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
16883         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
16884         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
16885         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
16886         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
16887         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
16888         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
16890 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
16892         * math/tst-CMPLX.c: Include <stdio.h>.
16894 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
16896         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
16897         float.
16898         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
16899         * sysdeps/sparc/bits/mathdef.h: Likewise.
16901 2012-01-31  Marek Polacek  <polacek@redhat.com>
16903         * libio/libio.h: Don't define _PARAMS.
16904         * locale/programs/config.h: Don't define PARAMS.
16905         * stdlib/strtol_l.c: Likewise.
16906         (__strtol_l): Remove PARAMS from the prototype.
16908 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
16910         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
16911         names.  Just use the correct names.  Remove unnecessary wrapper
16912         functions.
16913         * malloc/arena.c: Likewise.
16914         * malloc/hooks.c: Likewise.
16916         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
16917         ARENA_TEST says not to.  Simplify test for creation of a new arena.
16918         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
16920 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
16922         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
16923         into tail calls.
16924         (update_get_addr): New function.
16925         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
16926         GET_ADDR_MODULE parameter.
16928 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
16930         * crypt/cert.c: Remove __STDC__ conditionals.
16931         * crypt/crypt-entry.c: Likewise.
16932         * crypt/crypt_util.c: Likewise.
16933         * libio/filedoalloc.c: Likewise.
16934         * libio/fileops.c: Likewise.
16935         * libio/genops.c: Likewise.
16936         * libio/iofclose.c: Likewise.
16937         * libio/iofdopen.c: Likewise.
16938         * libio/iofopen.c: Likewise.
16939         * libio/iofopen64.c: Likewise.
16940         * libio/iogetdelim.c: Likewise.
16941         * libio/iopopen.c: Likewise.
16942         * libio/obprintf.c: Likewise.
16943         * libio/oldfileops.c: Likewise.
16944         * libio/oldiofclose.c: Likewise.
16945         * libio/oldiofdopen.c: Likewise.
16946         * libio/oldiofopen.c: Likewise.
16947         * libio/oldiopopen.c: Likewise.
16948         * libio/wfiledoalloc.c: Likewise.
16949         * libio/wgenops.c: Likewise.
16950         * locale/programs/xmalloc.c: Likewise.
16951         * misc/syslog.c: Likewise.
16952         * stdio-common/xbug.c: Likewise.
16953         * string/memchr.c: Likewise.
16954         * string/memcmp.c: Likewise.
16955         * string/memrchr.c: Likewise.
16956         * string/rawmemchr.c: Likewise.
16957         * sysdeps/posix/getcwd.c: Likewise.
16958         * time/strftime_l.c: Likewise.
16960 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
16962         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
16963         * config.make.in (config-cflags-sse2avx): Define.
16964         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
16965         Fix typo.
16967 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
16969         * scripts/config.guess: Update from upstream config git repository.
16970         * scripts/config.sub: Likewise.
16972 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
16974         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
16975         (EM_NUM): Update.
16976         (R_TILEPRO_*, R_TILEGX_*): New macros.
16978         * scripts/firstversions.awk: Fix bug in version range handling.
16980         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
16982         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
16984         * include/sys/epoll.h: New file.
16985         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
16986         libc_hidden_def.
16988 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
16990         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
16991         Avoid unnecessary __WORDSIZE == 64 test.
16992         (fmaxf): Use VEX format if possible.
16993         (fmax): Likewise.
16994         (fminf): Likewise.
16995         (fmin): Likewise.
16997         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
16998         * math/math_private.h: Remove libc_fegetround* and
16999         libc_fesetround*.
17000         * sysdeps/i386/configure.in: Check for -msse2avx.
17001         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
17002         also if SSE2AVX is defined.
17003         Remove libc_fegetround* and libc_fesetround*.
17004         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
17005         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
17006         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
17007         of HAS_YMM_USABLE.
17008         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
17009         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
17010         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
17011         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
17012         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
17014         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
17016 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17018         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
17019         size is not set.
17020         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
17022 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
17024         [BZ #13618]
17025         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
17026         relocation.
17027         * Makeconfig (libm): Define.
17028         * elf/Makefile: Add rules to build and run tst-relsort1.
17029         * elf/tst-relsort1.c: New file.
17030         * elf/tst-relsort1mod1.c: New file.
17031         * elf/tst-relsort1mod2.c: New file.
17033 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
17035         * math/s_ldexp.c: Remove __STDC__ conditionals.
17036         * math/s_ldexpf.c: Likewise.
17037         * math/s_ldexpl.c: Likewise.
17038         * math/s_nextafter.c: Likewise.
17039         * math/s_nexttowardf.c: Likewise.
17040         * math/s_significand.c: Likewise.
17041         * math/s_significandf.c: Likewise.
17042         * math/s_significandl.c: Likewise.
17043         * math/w_jnl.c: Likewise.
17044         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
17045         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
17046         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17047         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17048         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17049         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17050         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
17051         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
17052         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17053         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
17054         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
17055         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17056         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
17057         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
17058         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
17059         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
17060         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17061         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17062         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17063         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17064         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17065         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
17066         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
17067         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17068         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17069         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17070         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17071         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
17072         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
17073         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17074         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
17075         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
17076         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
17077         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
17078         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
17079         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
17080         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17081         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17082         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
17083         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17084         * sysdeps/ieee754/k_standard.c: Likewise.
17085         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17086         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17087         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17088         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
17089         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
17090         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
17091         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17092         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
17093         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
17094         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
17095         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
17096         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
17097         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
17098         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
17099         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
17100         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17101         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17102         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17103         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17104         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
17105         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
17106         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
17107         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
17108         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17109         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
17110         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17111         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17112         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17113         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17114         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17115         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17116         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
17117         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
17118         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
17119         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17120         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
17121         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
17122         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
17123         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
17124         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
17125         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
17126         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
17127         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
17128         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
17129         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
17130         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
17131         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17132         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17133         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17134         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17135         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
17136         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
17137         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
17138         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
17139         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17140         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
17141         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
17142         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17143         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17144         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17145         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
17146         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
17147         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
17148         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17149         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
17150         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
17151         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
17152         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
17153         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
17154         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
17155         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
17156         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
17157         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
17158         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17159         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17160         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
17161         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
17162         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17163         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
17164         * sysdeps/ieee754/s_matherr.c: Likewise.
17165         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
17166         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
17167         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
17168         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
17170 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
17172         * crypt/md5.h: Remove __STDC__ conditionals.
17173         * libio/libioP.h: Likewise.
17174         * locale/programs/config.h: Likewise.
17175         * sysdeps/generic/sysdep.h: Likewise.
17176         * sysdeps/i386/asm-syntax.h: Likewise.
17177         * sysdeps/s390/asm-syntax.h: Likewise.
17178         * sysdeps/unix/sysdep.h: Likewise.
17179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
17180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
17182 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
17184         * libio/libio.h: Remove __STDC__ conditionals.
17185         * malloc/obstack.h: Likewise.
17186         * math/complex.h: Likewise.
17187         * math/math.h: Likewise.
17188         * sysdeps/generic/_G_config.h: Likewise.
17189         * sysdeps/gnu/_G_config.h: Likewise.
17190         * sysdeps/mach/hurd/_G_config.h: Likewise.
17191         * sysdeps/powerpc/bits/mathdef.h: Likewise.
17192         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
17193         * sysdeps/sparc/bits/mathdef.h: Likewise.
17195 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
17197         [BZ #13583]
17198         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
17199         Clean up HAS_* macros.
17200         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
17201         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
17202         possible.
17203         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
17204         HAS_AVX.
17205         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
17206         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
17207         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
17208         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
17209         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
17211 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
17213         * elf/tst-unique3.cc (gets): Remove declaration.
17214         * elf/tst-unique3lib.cc (gets): Likewise.
17215         * elf/tst-unique3lib2.cc (gets): Likewise.
17216         * elf/tst-unique4.cc (gets): Likewise.
17218 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
17220         * include/stdio.h: Add C++ protection.  Add gets declarations and
17221         definitions.
17222         * debug/tst-chk1.c: Don't declare gets here.
17223         * stdio-common/tst-gets.c: Likewise.
17225 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
17227         * posix/glob: Remove directory.
17229 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
17231         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
17233 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
17235         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
17236         of the non-standard EPFNOSUPPORT.
17238 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17240         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
17241         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
17242         ANYWHERE set to 1 only on KERN_NO_SPACE error.
17244 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
17246         * wcsmbs/uchar.h: Test __STDC_VERSION__.
17248 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
17250         * nscd/aicache.c (addhstaiX): Do not cache negative results of
17251         transient errors.
17252         * nscd/grpcache.c (cache_addgr): Likewise.
17253         * nscd/hstcache.c (cache_addhst): Likewise.
17254         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17255         * nscd/pwdcache.c (cache_addpw): Likewise.
17256         * nscd/servicescache.c (cache_addserv): Likewise.
17258 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
17260         * malloc/malloc.c: Various cleanups.
17261         * malloc/hooks.c: Likewise.
17263         * stdlib/Makefile (tests): Add bug-fmtmsg1.
17264         * stdlib/bug-fmtmsg1.c: New file.
17266         * stdlib/fmtmsg.c (init): Add missing unlock.
17267         Patch by Peng Haitao <penght@cn.fujitsu.com>.
17269 2012-01-12  Marek Polacek  <polacek@redhat.com>
17271         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
17272         and _GNU_SOURCE.
17274 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17276         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
17277         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
17278         macro to ensure uniqueness of label name.
17279         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
17280         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
17282 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
17284         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
17286         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
17287         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
17288         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
17289         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
17291 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
17293         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
17295         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
17296         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
17297         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
17299         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
17301         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
17302         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
17303         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
17304         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
17306         * math/bits/math-finite.h: Add ldexp support.
17308 2012-01-10  Marek Polacek  <polacek@redhat.com>
17310         * locale/programs/localedef.h (show_archive_content): Add noreturn
17311         attribute.
17313 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
17315         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
17317 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
17319         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
17321         * io/Makefile (headers): Add bits/poll2.h.
17323 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
17325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
17326         typo #include statement.
17328 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
17330         * include/sys/cdefs.h: Define __attribute_alloc_size.
17331         * catgets/gencat.c: Add alloc_size attribute and apply consistently
17332         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
17333         * elf/pldd.c: Likewise.
17334         * iconv/iconv_charmap.c: Likewise.
17335         * iconv/iconvconfig.c: Likewise.
17336         * iconv/strtab.c: Likewise.
17337         * locale/programs/locale.c: Likewise.
17338         * locale/programs/localedef.h: Likewise.
17339         * locale/programs/simple-hash.c: Likewise.
17340         * nscd/nscd.h: Likewise.
17341         * nss/makedb.c: Likewise.
17342         * sysdeps/generic/ldconfig.h: Likewise.
17343         * locale/programs/localedef.c: Remove xmalloc prototype.
17344         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
17346 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17348         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
17349         appropriate.
17351 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
17353         * math/Makefile (tests): Add tst-CMPLX.
17354         * math/tst-CMPLX.c: New file.
17356         * math/complex.h (CMPLXL): Fix typo.
17358         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
17359         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
17360         GLIBC_2.16.
17361         * debug/tst-chk1.c: Add poll and ppoll tests.
17362         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
17363         * include/sys/poll.h: Add hidden proto for ppoll.
17364         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
17365         * sysdeps/mach/hurd/ppoll.c: Likewise.
17366         * io/ppoll.c: Likewise.
17367         * debug/poll_chk.c: New file.
17368         * debug/ppoll_chk.c: New file.
17369         * include/bits/poll2.h: New file.
17370         * io/bits/poll2.h: New file.
17372         [BZ #1350]
17373         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
17375         * configure.in: static is always set to yes.  Remove.
17376         * config.make.in: Don't set build-static.
17377         * Makeconfig: Remove use of build-static.
17378         * dlfcn/Makefile: Likewise.
17379         * elf/Makefile: Likewise.
17380         * math/Makefile: Likewise.
17381         * misc/Makefile: Likewise.
17382         * nptl/Makefile: Likewise.
17383         * sysdeps/mach/hurd/Makefile: Likewise.
17385         * configure.in: PWD_P is not used anymore.
17386         * config.make.in: Remove PWD_P entry.
17388         * configure.in: Remove last remnants of RANLIB.
17389         No need to check for signed size_t anymore.
17390         Don't set libc_commonpagesize and libc_relro_required here for Alpha
17391         and IA-64.
17392         Remove __builtin_expect test because we require at least gcc 3.4.
17393         * aclocal.m4: Likewise.
17395         * wcsmbs/mbrtoc16.c: Implement using towc function.
17396         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
17397         * wcsmbs/wcsmbsload.c: Likewise.
17398         * iconv/gconv_simple.c: Likewise.
17399         * iconv/gconv_int.h: Likewise.
17400         * iconv/gconv_builtin.h: Likewise.
17401         * iconv/iconv_prog.c: Remove CHAR16 handling.
17403         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
17405         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
17407         * configure.in: Remove --with-elf and --enable-bounded options.
17408         Dont set base_machine for ia64.  More non-ELF conditions removed.
17409         Remove testing and setting of leading underscore information.
17410         * config.make.in (build-bounded): Set to no.
17411         * config.h.in: Remove NO_UNDERSCORES entry.
17412         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
17413         them.
17414         * csu/start.c: Remove !NO_UNDERSCORE code.
17415         * locale/localeinfo.h: Likewise.
17416         * sysdeps/generic/machine-gmon.h: Likewise.
17417         * sysdeps/generic/sysdep.h: Likewise.
17418         * sysdeps/i386/sysdep.h: Likewise.
17419         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
17420         * sysdeps/mach/sysdep.h: Likewise.
17421         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17422         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17423         * sysdeps/sh/sysdep.h: Likewise.
17424         * sysdeps/sparc/sparc32/alloca.S: Likewise.
17425         * sysdeps/unix/i386/sysdep.S: Likewise.
17426         * sysdeps/unix/sparc/start.c: Likewise.
17427         * sysdeps/unix/sparc/sysdep.S: Likewise.
17428         * sysdeps/unix/sparc/sysdep.h: Likewise.
17429         * sysdeps/unix/start.c: Likewise.
17430         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17431         * sysdeps/x86_64/sysdep.h: Likewise.
17433 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
17435         [BZ #13553]
17436         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
17437         for non-gcc.
17438         * argp/argp-fmtstream.h: Use const instead __const.
17439         * argp/argp.h: Likewise.
17440         * assert/assert.h: Likewise.
17441         * bits/fenv.h: Likewise.
17442         * bits/sched.h: Likewise.
17443         * bits/sigset.h: Likewise.
17444         * bits/sigthread.h: Likewise.
17445         * catgets/nl_types.h: Likewise.
17446         * conform/data/pthread.h-data: Likewise.
17447         * crypt/crypt-private.h: Likewise.
17448         * crypt/crypt.h: Likewise.
17449         * crypt/crypt_util.c: Likewise.
17450         * ctype/ctype.h: Likewise.
17451         * debug/execinfo.h: Likewise.
17452         * debug/mbsnrtowcs_chk.c: Likewise.
17453         * debug/mbsrtowcs_chk.c: Likewise.
17454         * debug/wcsnrtombs_chk.c: Likewise.
17455         * debug/wcsrtombs_chk.c: Likewise.
17456         * debug/wcstombs_chk.c: Likewise.
17457         * dirent/dirent.h: Likewise.
17458         * dlfcn/dlfcn.h: Likewise.
17459         * elf/neededtest4.c: Likewise.
17460         * grp/grp.h: Likewise.
17461         * gshadow/gshadow.h: Likewise.
17462         * iconv/gconv.h: Likewise.
17463         * iconv/gconv_int.h: Likewise.
17464         * iconv/gconv_simple.c: Likewise.
17465         * iconv/iconv.h: Likewise.
17466         * iconv/loop.c: Likewise.
17467         * iconv/skeleton.c: Likewise.
17468         * include/aio.h: Likewise.
17469         * include/aliases.h: Likewise.
17470         * include/argz.h: Likewise.
17471         * include/arpa/inet.h: Likewise.
17472         * include/assert.h: Likewise.
17473         * include/dirent.h: Likewise.
17474         * include/dlfcn.h: Likewise.
17475         * include/execinfo.h: Likewise.
17476         * include/fcntl.h: Likewise.
17477         * include/fenv.h: Likewise.
17478         * include/glob.h: Likewise.
17479         * include/grp.h: Likewise.
17480         * include/libintl.h: Likewise.
17481         * include/mntent.h: Likewise.
17482         * include/netdb.h: Likewise.
17483         * include/pwd.h: Likewise.
17484         * include/rpc/netdb.h: Likewise.
17485         * include/sched.h: Likewise.
17486         * include/search.h: Likewise.
17487         * include/shadow.h: Likewise.
17488         * include/signal.h: Likewise.
17489         * include/stdio.h: Likewise.
17490         * include/stdlib.h: Likewise.
17491         * include/string.h: Likewise.
17492         * include/sys/socket.h: Likewise.
17493         * include/sys/stat.h: Likewise.
17494         * include/sys/statfs.h: Likewise.
17495         * include/sys/statvfs.h: Likewise.
17496         * include/sys/syslog.h: Likewise.
17497         * include/sys/time.h: Likewise.
17498         * include/sys/uio.h: Likewise.
17499         * include/time.h: Likewise.
17500         * include/unistd.h: Likewise.
17501         * include/utmp.h: Likewise.
17502         * include/wchar.h: Likewise.
17503         * include/wctype.h: Likewise.
17504         * inet/aliases.h: Likewise.
17505         * inet/arpa/inet.h: Likewise.
17506         * inet/netinet/ether.h: Likewise.
17507         * inet/netinet/in.h: Likewise.
17508         * intl/libintl.h: Likewise.
17509         * io/bits/fcntl2.h: Likewise.
17510         * io/fcntl.h: Likewise.
17511         * io/ftw.h: Likewise.
17512         * io/sys/poll.h: Likewise.
17513         * io/sys/stat.h: Likewise.
17514         * io/sys/statfs.h: Likewise.
17515         * io/sys/statvfs.h: Likewise.
17516         * io/utime.h: Likewise.
17517         * libio/bits/stdio.h: Likewise.
17518         * libio/bits/stdio2.h: Likewise.
17519         * libio/libio.h: Likewise.
17520         * libio/libioP.h: Likewise.
17521         * libio/stdio.h: Likewise.
17522         * locale/lc-ctype.c: Likewise.
17523         * locale/locale.h: Likewise.
17524         * login/utmp.h: Likewise.
17525         * malloc/arena.c: Likewise.
17526         * malloc/malloc.c: Likewise.
17527         * malloc/malloc.h: Likewise.
17528         * malloc/mcheck.c: Likewise.
17529         * malloc/mtrace.c: Likewise.
17530         * math/bits/mathcalls.h: Likewise.
17531         * math/fenv.h: Likewise.
17532         * math/math_private.h: Likewise.
17533         * misc/bits/error.h: Likewise.
17534         * misc/bits/syslog.h: Likewise.
17535         * misc/err.h: Likewise.
17536         * misc/error.h: Likewise.
17537         * misc/fstab.h: Likewise.
17538         * misc/mntent.h: Likewise.
17539         * misc/regexp.h: Likewise.
17540         * misc/search.h: Likewise.
17541         * misc/sgtty.h: Likewise.
17542         * misc/sys/mman.h: Likewise.
17543         * misc/sys/syslog.h: Likewise.
17544         * misc/sys/uio.h: Likewise.
17545         * misc/sys/xattr.h: Likewise.
17546         * misc/ttyent.h: Likewise.
17547         * nis/rpcsvc/ypclnt.h: Likewise.
17548         * nss/nss.h: Likewise.
17549         * posix/bits/unistd.h: Likewise.
17550         * posix/fnmatch.h: Likewise.
17551         * posix/glob.h: Likewise.
17552         * posix/sched.h: Likewise.
17553         * posix/spawn.h: Likewise.
17554         * posix/sys/wait.h: Likewise.
17555         * posix/unistd.h: Likewise.
17556         * posix/wordexp.h: Likewise.
17557         * pwd/pwd.h: Likewise.
17558         * resolv/netdb.h: Likewise.
17559         * resource/sys/resource.h: Likewise.
17560         * rt/aio.h: Likewise.
17561         * rt/bits/mqueue2.h: Likewise.
17562         * rt/mqueue.h: Likewise.
17563         * shadow/shadow.h: Likewise.
17564         * signal/signal.h: Likewise.
17565         * socket/send.c: Likewise.
17566         * socket/sendto.c: Likewise.
17567         * socket/sys/socket.h: Likewise.
17568         * stdio-common/printf.h: Likewise.
17569         * stdlib/bits/stdlib.h: Likewise.
17570         * stdlib/fmtmsg.h: Likewise.
17571         * stdlib/monetary.h: Likewise.
17572         * stdlib/stdlib.h: Likewise.
17573         * stdlib/ucontext.h: Likewise.
17574         * streams/stropts.h: Likewise.
17575         * string/argz.h: Likewise.
17576         * string/bits/string2.h: Likewise.
17577         * string/string.h: Likewise.
17578         * string/strings.h: Likewise.
17579         * sunrpc/rpc/auth.h: Likewise.
17580         * sunrpc/rpc/auth_des.h: Likewise.
17581         * sunrpc/rpc/clnt.h: Likewise.
17582         * sunrpc/rpc/netdb.h: Likewise.
17583         * sunrpc/rpc/pmap_clnt.h: Likewise.
17584         * sunrpc/rpc/xdr.h: Likewise.
17585         * sysdeps/generic/inttypes.h: Likewise.
17586         * sysdeps/generic/net/if.h: Likewise.
17587         * sysdeps/generic/sys/swap.h: Likewise.
17588         * sysdeps/gnu/net/if.h: Likewise.
17589         * sysdeps/gnu/utmpx.h: Likewise.
17590         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
17591         * sysdeps/i386/i486/bits/string.h: Likewise.
17592         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
17593         * sysdeps/s390/bits/string.h: Likewise.
17594         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
17595         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
17596         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
17597         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
17598         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
17599         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
17600         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
17601         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
17602         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
17603         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
17604         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
17605         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17606         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
17607         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17608         * sysdeps/unix/sysv/linux/readv.c: Likewise.
17609         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
17610         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
17611         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17612         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
17613         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
17614         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
17615         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
17616         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
17617         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
17618         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
17619         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
17620         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
17621         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
17622         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
17623         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
17624         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
17625         * sysvipc/sys/ipc.h: Likewise.
17626         * sysvipc/sys/msg.h: Likewise.
17627         * sysvipc/sys/sem.h: Likewise.
17628         * sysvipc/sys/shm.h: Likewise.
17629         * termios/termios.h: Likewise.
17630         * time/sys/time.h: Likewise.
17631         * time/time.h: Likewise.
17632         * wcsmbs/bits/wchar2.h: Likewise.
17633         * wcsmbs/uchar.h: Likewise.
17634         * wcsmbs/wchar.h: Likewise.
17635         * wctype/wctype.h: Likewise.
17637         [BZ #13551]
17638         * Makeconfig: Remove all but ELF support including AIX support.
17639         * Makerules: Likewise.
17640         * config.h.in: Likewise.
17641         * config.make.in: Likewise.
17642         * configure: Likewise.
17643         * configure.in: Likewise.
17644         * csu/Makefile: Likewise.
17645         * csu/version.c: Likewise.
17646         * debug/Makefile: Likewise.
17647         * dlfcn/Makefile: Likewise.
17648         * elf/Makefile: Likewise.
17649         * extra-lib.mk: Likewise.
17650         * iconv/Makefile: Likewise.
17651         * include/libc-symbols.h: Likewise.
17652         * include/shlib-compat.h: Likewise.
17653         * resolv/Makefile: Likewise.
17654         * resolv/res_libc.c: Likewise.
17655         * rt/Makefile: Likewise.
17656         * sysdeps/i386/asm-syntax.h: Likewise.
17657         * sysdeps/i386/sysdep.h: Likewise.
17658         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
17659         * sysdeps/mach/sysdep.h: Likewise.
17660         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
17661         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
17662         * sysdeps/s390/asm-syntax.h: Likewise.
17663         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17664         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17665         * sysdeps/sh/sysdep.h: Likewise.
17666         * sysdeps/unix/sparc/sysdep.h: Likewise.
17667         * sysdeps/wordsize-32/divdi3.c: Likewise.
17668         * sysdeps/x86_64/sysdep.h: Likewise.
17670         * argp/Versions: Remove _argp_unlock_xxx.
17672         [BZ #13559]
17673         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
17674         * abilist/libBrokenLocale.abilist: Likewise.
17675         * abilist/libanl.abilist: Likewise.
17676         * abilist/libc.abilist: Likewise.
17677         * abilist/libcrypt.abilist: Likewise.
17678         * abilist/libdl.abilist: Likewise.
17679         * abilist/libm.abilist: Likewise.
17680         * abilist/libnsl.abilist: Likewise.
17681         * abilist/libpthread.abilist: Likewise.
17682         * abilist/libresolv.abilist: Likewise.
17683         * abilist/librt.abilist: Likewise.
17684         * abilist/libthread_db.abilist: Likewise.
17685         * abilist/libutil.abilist: Likewise.
17686         * abilist/libnss_db.abilist: New file.
17688         * scripts/abilist.awk: Add support for indirect functions.
17690         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
17692         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
17694         * shlib-versions: Remove entries for ports architectures.
17696         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
17697         files in ports.
17698         * elf/stackguard-macros.h: Remove support for IA-64.
17699         * elf/tst-auditmod1.c: Likewise.
17700         * sysdeps/generic/ldsodefs.h: Likewise.
17702         * sysdeps/unix/sysv/linux/configure.in: Ports should define
17703         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
17704         configure files.
17706         [BZ #13552]
17707         * configure.in: Remove --enable-omitfp support.
17708         * FAQ.in: Adjust.
17709         * config.make.in: Likewise.
17710         * Makeconfig: Likewise.
17711         * manual/install.texi: Likewise.
17713         In case anyone cares, the IA-64 architecture could move to ports.
17714         * sysdeps/ia64/*: Removed.
17715         * sysdeps/unix/sysv/linux/ia64/*: Removed.
17716         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
17718         [BZ #13555]
17719         * configure.in: Remove entries for unsupported architectures.
17721         [BZ #13533]
17722         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
17723         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
17724         routines.
17725         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
17726         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
17727         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
17728         fall back to using wcrtomb.
17729         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
17730         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
17731         renaming.
17732         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
17733         * wcsmbs/tst-c16c32-1.c: New file.
17735         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
17736         local variable.
17738         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
17740         * elf/tst-unique3.cc: Add explicit declaration of gets.
17741         * elf/tst-unique3lib.cc: Likewise.
17742         * elf/tst-unique3lib2.cc: Likewise.
17743         * elf/tst-unique4.cc: Likewise.
17745         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
17747 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
17749         [BZ #13566]
17750         * assert/assert.h (static_assert): Don't define for C++.
17751         * libio/stdio.h (gets): Do declare for C++ <= C++11.
17752         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
17754 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
17756         * iconv/loop.c (single loop): Fix assertion in storing of
17757         remaining bytes.
17759         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
17761 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
17763         * posix/getconf.c: Update copyright year.
17764         * nss/getent.c: Likewise.
17765         * nss/makedb.c: Likewise.
17766         * iconv/iconvconfig.c: Likewise.
17767         * iconv/iconv_prog.c: Likewise.
17768         * elf/ldconfig.c: Likewise.
17769         * elf/pldd.c: Likewise.
17770         * elf/sotruss.ksh: Likewise.
17771         * catgets/gencat.c: Likewise.
17772         * csu/version.c: Likewise.
17773         * elf/ldd.bash.in: Likewise.
17774         * elf/sprof.c (print_version): Likewise.
17775         * locale/programs/locale.c: Likewise.
17776         * locale/programs/localedef.c: Likewise.
17777         * login/programs/pt_chown.c: Likewise.
17778         * nscd/nscd.c (print_version): Likewise.
17779         * debug/xtrace.sh: Likewise.
17780         * malloc/memusage.sh: Likewise.
17781         * malloc/mtrace.pl: Likewise.
17782         * debug/catchsegv.sh: Likewise.
17784 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
17786         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
17787         pure attribute.
17789 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
17791         [BZ #13533]
17792         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
17793         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
17794         transformations.
17795         * iconv/gconv_int.h: Likewise.
17796         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
17797         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
17798         from libc for GLIBC_2.16.
17799         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
17800         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
17801         * wcsmbs/uchar.h: Really define mbstate_t.
17802         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
17803         * wcsmbs/c16rtomb.c: New file.
17804         * wcsmbs/mbrtoc16.c: New file.
17805         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
17806         for C/POSIX locale.
17807         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
17808         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
17810         * wcsmbs/wchar.h: Add missing __restrict.
17812 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
17814         [BZ #13532]
17815         * time/Makefile (routines): Add timespec_get.
17816         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
17817         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
17818         timespec for ISO C11.
17819         * time/timespec_get.c: New file.
17820         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
17821         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
17823         [BZ #13531]
17824         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
17825         * stdlib/stdlib.h: Declare aligned_alloc.
17826         * Versions.def: Add GLIBC_2.16 for libc.
17827         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
17829         [BZ 13527]
17830         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
17831         ISO C11.
17833         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
17834         code.
17836         [BZ #13528]
17837         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
17839         [BZ #13529]
17840         * assert/assert.h (static_assert): Define.
17842         * version.h: Update for 2.16 development version.
17844         [BZ #13526]
17845         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
17846         _ISOC11_SOURCE.
17848         * version.h (RELEASE): Bump for 2.15 release.
17849         * include/features.h (__GLIBC_MINOR__): Bump to 15.
17851         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
17852         Patch by Marek Polacek <mpolacek@redhat.com>.
17854         * bits/byteswap.h: Protect long long constants with __extension__.
17855         * sysdeps/i386/bits/byteswap.h: Likewise.
17856         * sysdeps/ia64/bits/byteswap.h: Likewise.
17857         * sysdeps/s390/bits/byteswap.h: Likewise.
17858         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17860 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17862         [BZ #13540]
17863         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
17864         destination buffer.
17865         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
17867 2011-12-23  Marek Polacek  <polacek@redhat.com>
17869         * elf/dl-addr.c (determine_info): Add inline keyword.
17870         * elf/tst-auditmod4b.c (check_avx): Likewise.
17871         * elf/tst-auditmod6b.c (check_avx): Likewise.
17872         * elf/tst-auditmod6c.c (check_avx): Likewise.
17873         * elf/tst-auditmod7b.c (check_avx): Likewise.
17875 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
17877         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
17878         !__SSE_MATH__.
17880 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17882         [BZ #13540]
17883         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
17884         processing for last bytes.
17886 2011-08-06  Bruno Haible  <bruno@clisp.org>
17888         [BZ #13061]
17889         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
17890         U+0385, not to U+1FEE.
17892         [BZ #13062]
17893         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
17894         entry for U+00A5 U+0301.
17896 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
17898         [BZ #13166]
17899         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
17900         buffer for the output is too small.
17902         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
17903         optimization.
17905         [BZ #13185]
17906         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
17907         SSE flags if possible.
17909 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17911         [BZ #13540]
17912         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
17913         processing for last bytes.
17915 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
17917         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
17918         (syscall-list-default-options, syscall-list-default-condition)
17919         (syscall-list-includes): Define.
17920         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
17921         list of ABIs and options and #if conditions for each ABI.  Do not
17922         handle common syscalls between ABIs specially.
17923         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
17924         Remove.
17925         (syscall-list-variants, syscall-list-32bit-options)
17926         (syscall-list-32bit-condition, syscall-list-64bit-options)
17927         (syscall-list-64bit-condition): Define.
17928         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
17929         (syscall-list-variants, syscall-list-32bit-options)
17930         (syscall-list-32bit-condition, syscall-list-64bit-options)
17931         (syscall-list-64bit-condition): Define.
17932         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
17933         Remove.
17934         (syscall-list-variants, syscall-list-32bit-options)
17935         (syscall-list-32bit-condition, syscall-list-64bit-options)
17936         (syscall-list-64bit-condition): Define.
17937         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
17938         Remove.
17939         (syscall-list-variants, syscall-list-32bit-options)
17940         (syscall-list-32bit-condition, syscall-list-64bit-options)
17941         (syscall-list-64bit-condition): Define.
17943 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
17945         * locale/iso-639.def: Add brx entry.
17947         [BZ #13328]
17948         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
17949         Proposed by Mariusz_Cukr <marcukr@op.pl>.
17951         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
17952         __feraiseexcept_renamed.
17954 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
17956         [BZ #13538]
17957         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
17958         EPOLLET with unsigned values.
17959         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
17960         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
17962         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
17963         to large cancellation.
17964         * math/s_cacoshf.c: Likewise.
17965         * math/s_cacoshl.c: Likewise.
17967 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
17969         [BZ #13305]
17970         [BZ #12786]
17971         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
17972         * math/s_cacoshf.c: Likewise.
17973         * math/s_cacoshl.c: Likewise.
17975 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
17977         [BZ #13439]
17978         * iconv/gconv.h: Define __GCONV_SWAP.
17979         * iconvdata/unicode.c: The swap bit must be stored in __flags.
17980         * iconvdata/utf-16.c: Likewise.
17981         * iconvdata/utf-32.c: Likewise.
17983 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
17985         [BZ #13524]
17986         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
17987         numerator after shifting it by one limb.
17989 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17991         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
17992         under [__USE_EXTERN_INLINES].
17994 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
17996         [BZ #13446]
17997         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
17999 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18001         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
18002         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
18003         optimized code.
18004         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
18005         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
18006         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
18007         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
18008         for strncasecmp/strncasecmp_l compilation.
18009         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
18010         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
18012 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
18014         [BZ #13484]
18015         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
18016         of __asm__.
18018 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
18020         [BZ #13506]
18021         * time/tzfile.c (__tzfile_read): Check values from file header.
18023 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
18025         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
18026         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
18027         * powerpc/powerpc32/dl-start.S: Likewise.
18028         * powerpc/powerpc32/elf/start.S: Likewise.
18029         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
18030         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
18031         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
18032         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
18033         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
18034         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
18035         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
18036         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
18037         * powerpc/powerpc32/fpu/s_round.S: Likewise.
18038         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
18039         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
18040         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
18041         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
18042         * powerpc/powerpc32/memset.S: Likewise.
18043         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
18044         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
18045         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
18046         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
18047         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
18048         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
18049         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
18050         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
18051         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
18052         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
18053         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
18054         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
18055         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
18057 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18059         * math/libm-test.inc: Added more nearbyint tests.
18060         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
18061         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
18062         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
18063         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
18065 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
18067         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
18068         FD_CLOEXEC.
18070 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18072         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
18073         Add wcscpy-ssse3 wcscpy-c.
18074         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
18075         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
18076         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
18077         * sysdeps/x86_64/wcschr.S: New file.
18078         * sysdeps/x86_64/wcsrchr.S: New file.
18079         * string/test-strcmp.c: Remove checking of wcscmp function for
18080         wrong alignments.
18081         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
18082         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
18083         wcsrchr-sse2 wcsrchr-c.
18084         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
18085         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
18086         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
18087         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
18088         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
18089         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
18090         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
18091         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
18092         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
18093         * wcsmbc/wcschr.c (WCSCHR): New macro.
18095 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18097         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
18098         * wcsmbs/test-wcsrchr.c: New file.
18099         * string/test-strrchr.c: Add wcsrchr support.
18100         (WIDE): New macro.
18101         * wcsmbs/test-wcscpy.c: New file.
18102         * string/test-strcpy.c: Add wcscpy support.
18103         (WIDE): New macro.
18105 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
18107         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
18108         the inner loop.
18110 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
18112         [BZ #13472]
18113         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
18115 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
18117         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
18118         Minor optimizations.
18120         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
18121         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
18122         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
18124 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
18126         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
18127         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
18128         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
18129         for gcc to avoid warnings.
18130         * inet/Makefile (tests): Add tst-checks.
18131         * inet/tst-checks.c: New file.
18133         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
18134         warning.
18136         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
18137         __wmemcmp_sse2.
18139         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
18140         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
18142         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
18144 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
18146         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
18147         problem.
18149         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
18151 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
18153         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
18154         conditional on GCC version.
18155         (__arch_compare_and_exchange_val_8_acq)
18156         (__arch_compare_and_exchange_val_16_acq)
18157         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
18158         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
18159         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
18161 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
18163         * sysdeps/sh/backtrace.c: New file.
18165 2011-12-02  Andreas Schwab  <schwab@redhat.com>
18167         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
18168         parenthesis.
18170 2011-12-01  Andreas Schwab  <schwab@redhat.com>
18172         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
18173         falling back to utime.
18175 2011-11-30  Andreas Schwab  <schwab@redhat.com>
18177         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
18178         expectations for float.
18180 2011-11-29  Andreas Schwab  <schwab@redhat.com>
18182         * locale/weight.h (findidx): Add parameter len.
18183         * locale/weightwc.h (findidx): Likewise.
18184         * posix/fnmatch_loop.c (FCT): Adjust caller.
18185         * posix/regcomp.c (build_equiv_class): Likewise.
18186         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
18187         * posix/regexec.c (check_node_accept_bytes): Likewise.
18188         * string/strcoll_l.c (STRCOLL): Likewise.
18189         * string/strxfrm_l.c (STRXFRM): Likewise.
18191 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
18193         * Makefile.in: Remove CVSOPT handling.
18194         * configure.in: Remove use of AC_REVISION.
18195         * iconvdata/Makefile (distribute): No need to filter out CVS.
18196         * scripts/list-sources.sh: Remove CVS, subversion and monotone
18197         handling.
18199 2011-11-16  Andreas Schwab  <schwab@redhat.com>
18201         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
18202         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
18203         [USE_AS_STRNCASECMP_L]: Likewise.
18204         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
18205         NO_TLS_DIRECT_SEG_REFS.
18206         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
18207         Fix argument offsets for non-PIC.
18208         [USE_AS_STRNCASECMP_L]: Likewise.
18209         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
18210         NO_TLS_DIRECT_SEG_REFS.
18212 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
18214         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
18215         O_CLOEXEC.
18216         * locale/loadlocale.c (_nl_load_locale): Likewise.
18218 2011-11-15  Andreas Schwab  <schwab@redhat.com>
18220         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
18221         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
18222         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
18223         (SYSCALL_GETTIME): Set errno on error.
18225         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
18226         count references to noai6ai_cached.
18228 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
18230         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
18232         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
18233         FD_CLOEXEC for /proc/self/maps.
18235         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
18236         FD_CLOEXEC for /proc/meminfo.
18238         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
18239         gai.conf.
18241         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
18242         FD_CLOEXEC for given file.
18244         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
18246         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
18247         FD_CLOEXEC for /etc/hosts.
18248         (_gethtent): Likewise.
18250         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
18252         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
18253         cancellation and set FD_CLOEXEC for /etc/netgroup.
18255         * nss/nss_files/files-key.c (search): Don't allow cancellation when
18256         reading /etc/publickey.
18258         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
18259         allow cancellation when reading /etc/group.
18261         * nss/nss_files/files-alias.c (internal_setent): Don't allow
18262         cancellation.
18263         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
18265         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
18266         when using data file.
18268         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
18270         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
18271         (write_nis_obj): Use "c" and "e" in fopen.
18273         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
18275         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
18277         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
18279         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
18281         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
18282         locale.alias.
18284         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
18286         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
18288         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
18290         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
18291         file parsing and set FD_CLOEXEC.
18293 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
18295         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
18297 2011-11-14  Andreas Schwab  <schwab@redhat.com>
18299         * malloc/arena.c (arena_get2): Don't call reused_arena when
18300         _int_new_arena failed.
18302 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
18304         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
18305         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
18306         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
18307         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18308         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18309         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
18310         to compile strcasecmp and strncasecmp.
18311         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
18312         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
18314         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
18316 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
18318         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
18319         locale-defines.sym to gen-as-const-headers.
18320         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
18321         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
18322         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
18323         to compile strcasecmp and strncasecmp.
18324         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
18325         strcasecmp_l and strncasecmp_l.
18326         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
18327         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
18328         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
18329         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
18330         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
18331         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
18332         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
18333         * sysdeps/i386/i686/multiarch/strncase.S: New file.
18334         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
18335         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
18336         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
18338 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
18340         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
18341         result of SYSDEP_GETTIME_CPU to retval.
18342         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
18343         parameter list to macro.  Remove trailing semicolon.  Adjust users.
18345         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
18346         variable.
18348         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
18349         mantissa words.
18350         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
18352         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
18353         from unused variable.
18355         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
18356         DWARF definitions.
18357         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
18358         for assembling.
18360         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
18361         over namespaces.
18363         * sunrpc/rpc_prot.c (rejected): Fix case value.
18365         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
18366         unsigned long long int to avoid warnings in shift.
18368         * posix/regex_internal.c (re_string_reconstruct): Actually use result
18369         of use of trans.
18370         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
18371         variable tmp.
18373         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
18374         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
18375         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
18377         * nis/nis_table.c (nis_list): Use variable of correct type for
18378         result of __follow_path call.
18380 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18382         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
18383         of math functions ceil, trunc, floor, round, and sqrt, when
18384         avaliable on the platform.
18385         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
18386         name clash.
18387         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
18388         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
18389         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
18391 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
18393         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
18394         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
18396 2011-11-11  Roland McGrath  <roland@hack.frob.com>
18398         * include/unistd.h: Fix __readlink return type.
18399         Reported by Chris Metcalf <cmetcalf@tilera.com>.
18401 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
18403         * stdlib/ucontext.h: Undo last change for makecontext.
18405 2011-11-11  Andreas Schwab  <schwab@redhat.com>
18407         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
18409         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
18410         * setjmp/setjmp.h: Mark functions as non-leaf.
18411         * setjmp/bits/setjmp2.h: Likewise.
18412         * stdlib/ucontext.h: Likewise.
18414 2011-11-10  Andreas Schwab  <schwab@redhat.com>
18416         * malloc/arena.c (_int_new_arena): Don't increment narenas.
18417         (reused_arena): Don't check arena limit.
18418         (arena_get2): Atomically check arena limit.
18420 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
18422         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
18423         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
18425         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
18426         instructions.
18428 2011-11-07  Andreas Schwab  <schwab@redhat.com>
18430         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
18431         handler when locking.
18433         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
18434         Fix size of allocated buffer.
18436 2011-11-04  Andreas Schwab  <schwab@redhat.com>
18438         [BZ #10103]
18439         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
18440         declarations for long double functions.
18441         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
18443         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
18445 2011-11-03  Andreas Schwab  <schwab@redhat.com>
18447         * nscd/nscd.c (main): Don't start AVC thread until credentials are
18448         installed.
18450         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
18451         is disabled.
18453 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18455         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
18457 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
18459         * include/alloca.h (stackinfo_alloca_round): Define.
18460         (extend_alloca): Use it.
18461         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
18462         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
18463         here.
18465         * scripts/check-local-headers.sh: Ignore libaudit.h.
18467         * nscd/Makefile (extra-objs): Make recursively expanded.
18469 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
18471         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
18472         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
18474         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
18475         * posix/tst-rfc3484-2.c: Likewise.
18476         * posix/tst-rfc3484-3.c: Likewise.
18478         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
18479         process_vm_writev.
18480         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
18481         process_vm_writev.
18482         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
18483         process_vm_writev from libc using GLIBC_2.15 version.
18485         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
18487 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
18489         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
18490         stack usage.
18492 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
18494         [BZ #13367]
18495         * nss/getent.c (initgroups_keys): Show error message in case no group
18496         names are given.
18498         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
18499         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
18500         __bump_nl_timestamp.
18501         * nscd/connections (nscd_init): When host database is served open
18502         netlink socket and request notification about configuration changes.
18503         (main_loop_poll): Track netlink file descriptor and bump timestamp
18504         in case data becomes available.
18505         (main_loop_epoll): Likewise.
18506         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
18507         (database_pers_head): Add extra_data fileds.
18508         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
18509         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
18510         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
18511         Adjust caller.
18512         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
18513         in6ai data, call __free_in6ai.
18514         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
18515         Add -DHAVE_NETLINK.
18516         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
18517         interface information.  Reuse previous data if netlink timestamp
18518         is not changed.
18519         (__bump_nl_timestamp): New function.
18520         (__free_in6ai): New function.
18522 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
18524         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
18525         close_not_cancel_no_status here.
18526         (__check_pf): Reorganize code a bit to not call close twice if OOM.
18528 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
18530         [BZ #13276]
18531         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
18532         return value.
18534         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
18535         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
18536         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
18538 2011-07-03  Andreas Jaeger  <aj@suse.de>
18540         [BZ #10709]
18541         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
18542         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
18543         * math/libm-test.inc (sin_test): Add test case.
18545 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
18547         [BZ #13337]
18548         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
18549         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
18551         * elf/chroot_canon.c (chroot_canon): Cleanups.
18553         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
18555         [BZ #13335]
18556         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
18557         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
18559         * string/test-strchr.c: Make usable for strchrnul testing.
18560         * string/test-strchrnul.c: New file.
18561         * string/Makefile (strop-tests): Add strchrnul.
18563         * po/it.po: Update from translation team.
18564         * po/es.po: Likewise.
18566 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
18568         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
18569         the three constants needed as parameters.  Drop the others.
18570         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
18571         __m128i_strloadu_tolower.
18572         Create and initialize variable zero and use it in all the places
18573         where _mm_setzero_si128 was used.
18575         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
18576         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
18577         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
18578         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
18579         anymore.
18580         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
18581         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
18582         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
18583         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
18584         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
18585         __mpranred, __mptan.
18586         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
18587         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
18588         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
18589         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
18590         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
18591         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
18592         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
18593         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
18594         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
18596 2011-10-28  Andreas Schwab  <schwab@redhat.com>
18598         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
18599         redefine if SHARED.
18600         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
18602         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
18603         wide char related routines to wcsmbs subdir.
18605 2011-10-27  Andreas Schwab  <schwab@redhat.com>
18607         [BZ #13344]
18608         * misc/sys/cdefs.h (__THROWNL): Define.
18609         * posix/unistd.h: Use __THREADNL instead of __THREAD
18610         for memory synchronization functions.
18612 2011-10-26  Roland McGrath  <roland@hack.frob.com>
18614         [BZ #13349]
18615         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
18616         doesn't exist.
18617         * manual/stdio.texi (Obstack Streams): Node removed.
18619 2011-10-26  Andreas Schwab  <schwab@redhat.com>
18621         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
18622         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
18623         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18625         * math/math_private.h (math_force_eval): Allow non-addressable
18626         arguments.
18627         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
18629 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
18631         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
18632         file is not needed.
18634         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
18635         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
18636         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18637         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18638         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18639         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18640         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18641         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
18642         Add AVX variants.
18643         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
18644         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
18645         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
18646         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
18647         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
18648         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
18649         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
18650         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
18651         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
18652         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
18653         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
18654         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
18655         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
18656         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
18657         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
18658         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
18659         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
18660         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
18661         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
18663         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
18664         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
18666         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
18667         place.  Use VEX encoding when compiling for AVX.
18669 2011-10-25  Andreas Schwab  <schwab@redhat.com>
18671         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
18672         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
18674         * string/test-strchr.c (do_test): Don't generate NUL bytes.
18676 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
18678         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
18679         useless if() expression.
18680         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18681         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
18682         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18683         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18684         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18685         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
18686         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
18687         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18688         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18689         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18690         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18691         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
18692         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18693         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
18694         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18695         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18696         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18697         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18698         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
18700         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
18702 2011-10-25  Andreas Schwab  <schwab@redhat.com>
18704         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
18705         condition.
18706         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18708 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
18710         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
18711         .text section.  Avoid duplicate constants.
18712         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
18713         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18714         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18715         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18716         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18717         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18718         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18719         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18720         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
18721         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
18722         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
18723         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
18724         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
18725         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
18726         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
18727         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
18728         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
18729         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
18730         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18731         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18732         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
18733         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
18734         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18735         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
18736         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
18737         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
18738         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
18739         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
18740         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
18741         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18742         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
18743         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18744         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
18745         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
18746         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
18747         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18748         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18749         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
18750         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
18751         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
18752         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
18753         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
18754         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
18755         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18756         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18758 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
18760         * sysdeps/x86_64/dla.h: Move to ...
18761         * sysdeps/x86_64/fpu/dla.h: ...here.
18762         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
18763         situations.  Use __builtin_fma only for gcc 4.6 and up.
18765         * config.make.in: Add have-mfma4 entry.
18766         * configure.in: Substitute libc_cv_cc_fma4.
18767         * math/Makefile (dbl-only-routines): Add sincostab.
18768         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
18769         Use __sincostab not sincos.
18770         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
18771         name is a macro.
18772         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18773         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18774         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18775         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
18776         using __copysign.
18777         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
18778         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
18779         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
18780         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
18781         and __inv.
18782         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
18783         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
18784         __copysign.
18785         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
18786         define aliases when function name is a macro.
18787         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
18788         sysdeps/ieee754/dbl-64/sincos.tbl.
18789         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
18790         fma4-enabled routines.
18791         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
18792         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
18793         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
18794         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
18795         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
18796         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
18797         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
18798         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
18799         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
18800         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
18801         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
18802         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
18803         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
18804         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
18805         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
18806         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
18807         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
18808         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
18809         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
18810         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
18811         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
18812         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
18813         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
18814         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
18815         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
18816         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
18817         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
18818         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
18819         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
18820         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
18822         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
18823         rename.
18824         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18825         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18826         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18827         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18828         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18829         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18830         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18831         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18833 2011-10-24  Andreas Schwab  <schwab@redhat.com>
18835         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
18837 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
18839         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
18841         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
18842         prediction.
18843         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
18845         * string/strnlen.c: Don't define STRNLEN, reverse logic.
18846         Remove unused variable magic_bits.
18847         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
18849         * string/strnlen.c: Define and use STRNLEN macro.
18850         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
18851         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
18852         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
18853         * wcsmbs/wcslen.c: Define and use WCSLEN.
18854         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
18855         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
18856         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
18857         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
18858         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
18859         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
18860         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
18862 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18864         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18865         strnlen-sse2-no-bsf.
18866         Rename strlen-no-bsf to strlen-sse2-no-bsf.
18867         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
18868         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
18869         Add strnlen support.
18870         (USE_AS_STRNLEN): New macro.
18871         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
18872         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
18873         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
18874         * sysdeps/x86_64/wcslen.S: New file.
18876 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
18878         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
18879         XMM-moves are used for copying on small sizes.
18881 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18883         * wcsmbs/Makefile (strop-tests): Add wcschr.
18884         * wcsmbs/test-wcschr.c: New file.
18885         * string/test-strchr.c: Update.
18886         Add wcschr support.
18887         (WIDE): New macro.
18889 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18891         * wcsmbs/Makefile (strop-tests): Add wcslen.
18892         * wcsmbs/test-wcslen.c: New file.
18893         * string/test-strlen.c: Update.
18894         Add wcslen support.
18895         (WIDE): New macro.
18897 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
18899         * po/it.po: Update from translation team.
18901 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18903         * sysdeps/x86_64/wcscmp.S: Update.
18904         Fix wrong comparison semantics.
18905         wcscmp shall use signed comparison not unsigned.
18906         Don't use substraction to avoid overflow bug.
18907         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
18908         * wcsmbc/wcscmp.c: Likewise.
18909         * string/test-strcmp.c: Likewise.
18910         Add new tests to check cases with negative values.
18912 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
18914         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
18915         * sysdeps/x86_64/dla.h: ...here.  New file.
18916         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
18917         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18918         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18919         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18920         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18921         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18922         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18923         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18924         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18926 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
18928         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
18929         __ynl_finite aliases.
18931 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
18933         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18935         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
18936         define DLA_FMA.
18937         [DLA_FMA] (EMULV): Use DLA_FMA.
18938         [DLA_FMA] (MUL12): Use EMULV.
18939         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
18940         that are not needed.
18941         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18942         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18943         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18944         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18945         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18946         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18947         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18949 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
18951         * math/s_nan.c: Undef __nan.
18952         * math/s_nanf.c: Undef __nanf.
18953         * math/s_nanl.c: Undef __nanl.
18954         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
18955         "math_private.h".
18957 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
18959         * math/s_catan.c: Add branch predictions.
18960         * math/s_catanf.c: Likewise.
18961         * math/s_catanh.c: Likewise.
18962         * math/s_catanhf.c: Likewise.
18963         * math/s_catanhl.c: Likewise.
18964         * math/s_catanl.c: Likewise.
18965         * math/s_cexp.c: Likewise.
18966         * math/s_cexpf.c: Likewise.
18967         * math/s_cexpl.c: Likewise.
18968         * math/s_clog.c: Likewise.
18969         * math/s_clog10.c: Likewise.
18970         * math/s_clog10f.c: Likewise.
18971         * math/s_clog10l.c: Likewise.
18972         * math/s_clogf.c: Likewise.
18973         * math/s_clogl.c: Likewise.
18974         * math/s_csqrt.c: Likewise.
18975         * math/s_csqrtf.c: Likewise.
18976         * math/s_csqrtl.c: Likewise.
18977         * math/s_ctanf.c: Likewise.
18978         * math/s_ctanh.c: Likewise.
18979         * math/s_ctanhf.c: Likewise.
18980         * math/s_ctanhl.c: Likewise.
18981         * math/s_ctanl.c: Likewise.
18983         * math/math_private.h: Define __nan, __nanf, __nanl.
18984         * math/s_cacosh.c: Include <math_private.h>.
18985         * math/s_cacoshl.c: Likewise.
18986         * math/s_casinh.c: Likewise.
18987         * math/s_casinhf.c: Likewise.
18988         * math/s_casinhl.c: Likewise.
18989         * math/s_ccos.c: Rely entire on ccosh.
18990         * math/s_ccosf.c: Rely entire on ccoshf.
18991         * math/s_ccosl.c: Rely entirely on ccoshl.
18992         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
18993         Remove tests for FE_INVALID.
18994         * math/s_ccoshf.c: Likewise.
18995         * math/s_ccoshl.c: Likewise.
18996         * math/s_csin.c: Likewise.
18997         * math/s_csinf.c: Likewise.
18998         * math/s_csinh.c Likewise.
18999         * math/s_csinhf.c: Likewise.
19000         * math/s_csinhl.c: Likewise.
19001         * math/s_csinl.c: Likewise.
19002         * math/s_ctan.c: Likewise.
19003         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
19004         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
19005         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
19007 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
19009         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
19010         compilation problems.
19012         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
19013         __builtin_expect.
19015 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
19017         * sysdeps/i386/configure.in: Test for -mfma4 option.
19018         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
19019         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
19020         COMMON_CPUID_INDEX_80000001.
19021         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
19022         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
19023         use it if FMA3 is not supported.
19024         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
19026         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
19027         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19029 2011-10-20  Andreas Schwab  <schwab@redhat.com>
19031         [BZ #12892]
19032         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
19033         it would create a cycle with a link time dependency.
19035 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
19037         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
19038         instruction.
19039         * string/Makefile (strop-tests): Add rawmemchr.
19040         * string/test-rawmemchr.c: New file.
19042         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
19043         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
19044         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
19045         when compiling str{,n}casecmp and when AVX is available.  Hook up
19046         new optimized code in initializers.
19048 2011-10-19  Andreas Schwab  <schwab@redhat.com>
19050         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
19051         __feraiseexcept instead of feraiseexcept.
19053 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
19055         * math/math_private.h: Define defaults for libc_fetestexcept and
19056         libc_feupdateenv.
19057         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
19058         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
19059         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
19060         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
19061         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19062         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
19063         libc_fetestexcept and libc_feupdateenv.
19065         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
19066         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
19067         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
19068         * sysdeps/x86_64/fpu/math_private.h: Define special version of
19069         libc_feholdexcept_setround.
19071         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
19072         Add s_nearbyint-c and s_nearbyintf-c.
19073         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
19074         nearbyintf inlines.
19075         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
19076         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
19077         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
19078         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
19080         * math/math_private.h: Define defaults for libc_fegetround,
19081         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
19082         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
19083         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
19084         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
19085         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
19086         standard functions.
19087         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
19088         Remove comments and hacks for old compiler versions.
19089         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
19090         libc_fegetround, libc_fesetround, libc_feholdexcept, and
19091         libc_feholdexceptl.
19093 2011-10-18  Andreas Schwab  <schwab@redhat.com>
19095         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
19096         (__feraiseexcept_renamed): Add __NTH.
19097         (feraiseexcept): Add __NTH.  Rename local variables to fix
19098         namespace violations.
19100 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
19102         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
19104         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
19106         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
19107         recently added interfaces.
19108         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
19110         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
19111         about macro parameter expansion.
19113         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
19114         __NO_MATH_INLINES is defined.  Cleanups.
19116         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
19117         and __floorf is target has SSE4.1.
19118         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
19119         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
19120         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
19121         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
19123         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
19124         name.
19125         (floorf): Likewise.
19127         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
19129 2011-10-17  Andreas Schwab  <schwab@redhat.com>
19131         * misc/sys/cdefs.h: Fix last change.
19133         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
19134         database lookup.
19136 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
19138         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
19140         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
19141         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19142         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19143         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19144         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19145         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19146         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19147         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19148         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19149         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
19150         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
19151         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
19152         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
19153         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
19154         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
19155         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
19156         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
19157         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
19158         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
19159         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
19160         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
19161         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
19163         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
19164         ceil, ceilf, floor, floorf.
19166         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
19167         Perform IRELATIVE relocations last.
19169         * elf/do-rel.h: Add another parameter nrelative, replacing the
19170         local variable with the same name.  Change name of the function
19171         to end in Rel or Rela (uppercase).
19172         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
19173         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
19174         elf_dynamic_do_##reloc function.
19176 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
19178         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
19179         is sufficient, at least on modern CPUs.
19181         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
19183         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
19184         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
19186         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
19187         __expl_finite.
19188         * math/bits/math-finite.h: Add entries for exp.
19189         * math/e_expl.c: Add __*_finite alias.
19190         * sysdeps/i386/fpu/e_exp.S: Likewise.
19191         * sysdeps/i386/fpu/e_expf.S: Likewise.
19192         * sysdeps/i386/fpu/e_expl.c: Likewise.
19193         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19194         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
19195         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
19196         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
19197         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
19198         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
19199         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
19201         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
19202         is sufficient, at least on modern CPUs.
19204         * ctype/ctype-info.c (__ctype_init): Define.
19205         * include/ctype.h (__ctype_init): Declare.
19206         (__ctype_b_loc): The variable is always initialized.
19207         (__ctype_toupper_loc): Likewise.
19208         (__ctype_tolower_loc): Likewise.
19209         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
19210         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
19212 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
19214         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
19216         * configure.in: Also look in $cxxmachine/include for C++ system
19217         headers.
19219 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19221         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
19222         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
19223         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
19224         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
19225         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
19226         (USE_AS_WMEMCMP): New macro.
19227         Fixing indents.
19228         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
19229         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
19230         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
19231         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
19232         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19233         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
19234         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
19235         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
19236         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
19237         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
19238         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
19239         (USE_AS_WMEMCMP): New macro.
19240         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
19241         * sysdeps/string/test-memcmp.c: Update.
19242         Fix simple_wmemcmp.
19243         Add new tests.
19244         * wcsmbs/wmemcmp.c: Update.
19245         (WMEMCMP): New macro.
19246         Fix overflow bug.
19248 2011-10-12  Andreas Jaeger  <aj@suse.de>
19250         [BZ #13268]
19251         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
19253 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
19255         * libio/iofwide.c (do_length): Avoid warning.
19257         * ctype/ctype.h (__isctype_f): Add missing __THROW.
19259 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
19261         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
19263         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
19264         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
19265         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
19266         * sysdeps/i386/i686/fpu/e_log.S: New file.
19267         * sysdeps/i386/i686/fpu/e_logf.S: New file.
19268         * sysdeps/i386/i686/fpu/e_logl.S: New file.
19270         * ctype/ctype.h: Add support for inlined isXXX functions when
19271         compiling C++ code.
19273 2011-10-14  Andreas Schwab  <schwab@redhat.com>
19275         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19277         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
19279 2011-10-13  Roland McGrath  <roland@hack.frob.com>
19281         [BZ #13291]
19282         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
19284 2011-10-13  Andreas Schwab  <schwab@redhat.com>
19286         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
19287         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
19288         feraiseexcept.
19290         * sysdeps/x86_64/memrchr.S: Check for zero size.
19292         * string/stratcliff.c: Add memrchr tests.
19294 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19296         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19297         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
19298         rawmemchr-sse2 rawmemchr-sse2-bsf.
19299         * sysdeps/i386/i686/multiarch/memchr.S: New file.
19300         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
19301         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
19302         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
19303         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
19304         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
19305         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
19306         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
19307         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
19308         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
19309         * string/memrchr.c (MEMRCHR): New macro.
19311 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
19313         Add integration with gcc's -ffinite-math-only and optimize wrapper
19314         functions in libm.
19315         * Versions.def: Define GLIBC_2.15 version for libm.
19316         * math/Makefile (headers): Add bits/math-finite.h.
19317         * math/bits/math-finite.h: New file.
19318         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
19319         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
19320         * math/e_acoshl.c: Add __*_finite alias.
19321         * math/e_acosl.c: Likewise.
19322         * math/e_asinl.c: Likewise.
19323         * math/e_atan2l.c: Likewise.
19324         * math/e_atanhl.c: Likewise.
19325         * math/e_coshl.c: Likewise.
19326         * math/e_exp10.c: Likewise.
19327         * math/e_exp10f.c: Likewise.
19328         * math/e_exp10l.c: Likewise.
19329         * math/e_exp2l.c: Likewise.
19330         * math/e_fmodl.c: Likewise.
19331         * math/e_gammal_r.c: Likewise.
19332         * math/e_hypotl.c: Likewise.
19333         * math/e_j0l.c: Likewise.
19334         * math/e_j1l.c: Likewise.
19335         * math/e_jnl.c: Likewise.
19336         * math/e_lgammal_r.c: Likewise.
19337         * math/e_log10l.c: Likewise.
19338         * math/e_log2l.c: Likewise.
19339         * math/e_logl.c: Likewise.
19340         * math/e_powl.c: Likewise.
19341         * math/e_sinhl.c: Likewise.
19342         * math/e_sqrtl.c: Likewise.
19343         * math/e_scalb.c: Completely rewritten and optimized.
19344         * math/e_scalbf.c: Likewise.
19345         * math/e_scalbl.c: Likewise.
19346         * math/w_acos.c: Likewise.
19347         * math/w_acosf.c: Likewise.
19348         * math/w_acosl.c: Likewise.
19349         * math/w_acosh.c: Likewise.
19350         * math/w_acoshf.c: Likewise.
19351         * math/w_acoshl.c: Likewise.
19352         * math/w_asin.c: Likewise.
19353         * math/w_asinf.c: Likewise.
19354         * math/w_asinl.c: Likewise.
19355         * math/w_atan2.c: Likewise.
19356         * math/w_atan2f.c: Likewise.
19357         * math/w_atan2l.c: Likewise.
19358         * math/w_atanh.c: Likewise.
19359         * math/w_atanhf.c: Likewise.
19360         * math/w_atanhl.c: Likewise.
19361         * math/w_exp10.c: Likewise.
19362         * math/w_exp10f.c: Likewise.
19363         * math/w_exp10l.c: Likewise.
19364         * math/w_fmod.c: Likewise.
19365         * math/w_fmodf.c: Likewise.
19366         * math/w_fmodl.c: Likewise.
19367         * math/w_j0.c: Likewise.
19368         * math/w_j0f.c: Likewise.
19369         * math/w_j0l.c: Likewise.
19370         * math/w_j1.c: Likewise.
19371         * math/w_j1f.c: Likewise.
19372         * math/w_j1l.c: Likewise.
19373         * math/w_jn.c: Likewise.
19374         * math/w_jnf.c: Likewise.
19375         * math/w_log.c: Likewise.
19376         * math/w_logf.c: Likewise.
19377         * math/w_logl.c: Likewise.
19378         * math/w_log10.c: Likewise.
19379         * math/w_log10f.c: Likewise.
19380         * math/w_log10l.c: Likewise.
19381         * math/w_log2.c: Likewise.
19382         * math/w_log2f.c: Likewise.
19383         * math/w_log2l.c: Likewise.
19384         * math/w_pow.c: Likewise.
19385         * math/w_powf.c: Likewise.
19386         * math/w_powl.c: Likewise.
19387         * math/w_remainder.c: Likewise.
19388         * math/w_remainderf.c: Likewise.
19389         * math/w_remainderl.c: Likewise.
19390         * math/w_scalb.c: Likewise.
19391         * math/w_scalbf.c: Likewise.
19392         * math/w_scalbl.c: Likewise.
19393         * math/w_sqrt.c: Likewise.
19394         * math/w_sqrtf.c: Likewise.
19395         * math/w_sqrtl.c: Likewise.
19396         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
19397         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
19398         used.
19399         * math/math_private.h: Declare __kernel_standard_f.
19400         * math/w_cosh.c: Remove cruft and optimize a bit.
19401         * math/w_coshf.c: Likewise.
19402         * math/w_coshl.c: Likewise.
19403         * math/w_exp2.c: Likewise.
19404         * math/w_exp2f.c: Likewise.
19405         * math/w_exp2l.c: Likewise.
19406         * math/w_hypot.c: Likewise.
19407         * math/w_hypotf.c: Likewise.
19408         * math/w_hypotl.c: Likewise.
19409         * math/w_lgamma.c: Likewise.
19410         * math/w_lgamma_r.c: Likewise.
19411         * math/w_lgammaf.c: Likewise.
19412         * math/w_lgammaf_r.c: Likewise.
19413         * math/w_lgammal.c: Likewise.
19414         * math/w_lgammal_r.c: Likewise.
19415         * math/w_sinh.c: Likewise.
19416         * math/w_sinhf.c: Likewise.
19417         * math/w_sinhl.c: Likewise.
19418         * math/w_tgamma.c: Likewise.
19419         * math/w_tgammaf.c: Likewise.
19420         * math/w_tgammal.c: Likewise.
19421         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19422         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19423         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
19424         Minor optimizations.  Pretty printing.  Remove cruft.
19425         * sysdeps/i386/fpu/e_acosf.S: Likewise.
19426         * sysdeps/i386/fpu/e_acosh.S: Likewise.
19427         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
19428         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
19429         * sysdeps/i386/fpu/e_acosl.c: Likewise.
19430         * sysdeps/i386/fpu/e_asin.S: Likewise.
19431         * sysdeps/i386/fpu/e_asinf.S: Likewise.
19432         * sysdeps/i386/fpu/e_atan2.S: Likewise.
19433         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
19434         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
19435         * sysdeps/i386/fpu/e_atanh.S: Likewise.
19436         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
19437         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
19438         * sysdeps/i386/fpu/e_exp10.S: Likewise.
19439         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
19440         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
19441         * sysdeps/i386/fpu/e_exp2.S: Likewise.
19442         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
19443         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
19444         * sysdeps/i386/fpu/e_fmod.S: Likewise.
19445         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
19446         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
19447         * sysdeps/i386/fpu/e_hypot.S: Likewise.
19448         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
19449         * sysdeps/i386/fpu/e_log.S: Likewise.
19450         * sysdeps/i386/fpu/e_log10.S: Likewise.
19451         * sysdeps/i386/fpu/e_log10f.S: Likewise.
19452         * sysdeps/i386/fpu/e_log10l.S: Likewise.
19453         * sysdeps/i386/fpu/e_log2.S: Likewise.
19454         * sysdeps/i386/fpu/e_log2f.S: Likewise.
19455         * sysdeps/i386/fpu/e_log2l.S: Likewise.
19456         * sysdeps/i386/fpu/e_logf.S: Likewise.
19457         * sysdeps/i386/fpu/e_logl.S: Likewise.
19458         * sysdeps/i386/fpu/e_pow.S: Likewise.
19459         * sysdeps/i386/fpu/e_powf.S: Likewise.
19460         * sysdeps/i386/fpu/e_powl.S: Likewise.
19461         * sysdeps/i386/fpu/e_remainder.S: Likewise.
19462         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
19463         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
19464         * sysdeps/i386/fpu/e_scalb.S: Likewise.
19465         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
19466         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
19467         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
19468         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
19469         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
19470         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19471         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19472         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19473         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19474         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
19475         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19476         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
19477         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19478         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19479         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19480         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19481         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19482         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19483         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19484         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19485         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19486         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19487         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19488         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19489         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19490         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19491         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19492         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19493         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19494         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19495         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19496         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
19497         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19498         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
19499         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19500         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19501         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19502         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19503         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19504         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19505         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19506         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19507         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19508         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19509         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19510         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19511         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19512         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19513         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19514         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19515         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19516         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19517         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19518         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19519         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
19520         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19521         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19522         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19523         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19524         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19525         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19526         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19527         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19528         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19529         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19530         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19531         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19532         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19533         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19534         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19535         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19536         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19537         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19538         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
19539         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19540         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19541         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19542         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
19543         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
19544         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
19545         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19546         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
19547         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
19548         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19549         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
19550         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19551         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
19552         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
19553         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19554         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19555         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
19556         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19557         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
19558         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
19559         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
19560         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19561         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19562         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19563         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
19564         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
19565         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
19566         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
19567         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
19568         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
19569         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
19570         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
19571         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
19572         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
19573         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
19574         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
19575         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
19576         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
19577         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
19578         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
19579         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
19580         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
19581         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
19582         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
19583         (__isnanf): Likewise.
19584         (__isinf_ns): Likewise.
19585         (__isinf_nsf): Likewise.
19586         (__finite): Likewise.
19587         (__finitef): Likewise.
19588         (__ieee754_sqrt): Define as macro.
19589         (__ieee754_sqrtf): Define as macro.
19590         (__ieee754_sqrtl): Define as macro.
19591         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
19592         inlined copy.
19593         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
19594         __FINITE_MATH_ONLY__ consistent.
19595         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
19597 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
19599         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
19600         of rawmemchr.
19602         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
19604 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
19606         * po/ja.po: Update from translation team.
19608 2011-10-08  Roland McGrath  <roland@hack.frob.com>
19610         * locale/programs/locarchive.c (prepare_address_space): New function.
19611         (create_archive, enlarge_archive, open_archive): Use it.
19613         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
19614         inside [SHARED], where it is used.
19616         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
19618         * nss/getent.c (netgroup_keys): Remove unused variable.
19619         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19621 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
19623         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
19624         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
19625         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
19626         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
19627         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
19628         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
19629         * math/Makefile (libm-calls): Add s_isinf_ns.
19630         * math/divtc3.c: Use __isinf_nsl instead of isinf.
19631         * math/multc3.c: Likewise.
19632         * math/s_casin.c: Likewise.
19633         * math/s_casinf.c: Likewise.
19634         * math/s_casinl.c: Likewise.
19635         * math/s_ccos.c: Likewise.
19636         * math/s_ccosf.c: Likewise.
19637         * math/s_ccosl.c: Likewise.
19638         * math/s_ctan.c: Likewise.
19639         * math/s_ctanf.c: Likewise.
19640         * math/s_ctanh.c: Likewise.
19641         * math/s_ctanhf.c: Likewise.
19642         * math/s_ctanhl.c: Likewise.
19643         * math/s_ctanl.c: Likewise.
19644         * math/w_fmod.c: Likewise.
19645         * math/w_fmodf.c: Likewise.
19646         * math/w_fmodl.c: Likewise.
19647         * math/w_remainder.c: Likewise.
19648         * math/w_remainderf.c: Likewise.
19649         * math/w_remainderl.c: Likewise.
19650         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
19651         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
19652         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
19653         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
19654         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
19655         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
19656         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
19657         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
19659         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
19660         of the number.
19661         * stdio-common/printf_fphex.c: Likewise.
19662         * stdio-common/printf_size.c: Likewise.
19664         * math/e_exp10.c: Include math_private.h using <...> not "...".
19665         * math/e_exp10f.c: Likewise.
19666         * math/e_exp10l.c: Likewise.
19667         * math/e_exp2l.c: Likewise.
19668         * math/e_j0l.c: Likewise.
19669         * math/e_j1l.c: Likewise.
19670         * math/e_jnl.c: Likewise.
19671         * math/e_lgammal_r.c: Likewise.
19672         * math/e_rem_pio2l.c: Likewise.
19673         * math/e_scalb.c: Likewise.
19674         * math/e_scalbf.c: Likewise.
19675         * math/e_scalbl.c: Likewise.
19676         * math/k_cosl.c: Likewise.
19677         * math/k_sinl.c: Likewise.
19678         * math/k_tanl.c: Likewise.
19679         * math/s_cacoshf.c: Likewise.
19680         * math/s_catan.c: Likewise.
19681         * math/s_catanf.c: Likewise.
19682         * math/s_catanh.c: Likewise.
19683         * math/s_catanhf.c: Likewise.
19684         * math/s_catanhl.c: Likewise.
19685         * math/s_catanl.c: Likewise.
19686         * math/s_ccosh.c: Likewise.
19687         * math/s_ccoshf.c: Likewise.
19688         * math/s_ccoshl.c: Likewise.
19689         * math/s_cexp.c: Likewise.
19690         * math/s_cexpf.c: Likewise.
19691         * math/s_cexpl.c: Likewise.
19692         * math/s_clog.c: Likewise.
19693         * math/s_clog10.c: Likewise.
19694         * math/s_clog10f.c: Likewise.
19695         * math/s_clog10l.c: Likewise.
19696         * math/s_clogf.c: Likewise.
19697         * math/s_clogl.c: Likewise.
19698         * math/s_csin.c: Likewise.
19699         * math/s_csinf.c: Likewise.
19700         * math/s_csinh.c: Likewise.
19701         * math/s_csinhf.c: Likewise.
19702         * math/s_csinhl.c: Likewise.
19703         * math/s_csinl.c: Likewise.
19704         * math/s_csqrt.c: Likewise.
19705         * math/s_csqrtf.c: Likewise.
19706         * math/s_csqrtl.c: Likewise.
19707         * math/s_ctan.c: Likewise.
19708         * math/s_ctanf.c: Likewise.
19709         * math/s_ctanh.c: Likewise.
19710         * math/s_ctanhf.c: Likewise.
19711         * math/s_ctanhl.c: Likewise.
19712         * math/s_ctanl.c: Likewise.
19713         * math/s_ldexp.c: Likewise.
19714         * math/s_ldexpf.c: Likewise.
19715         * math/s_ldexpl.c: Likewise.
19716         * math/s_significand.c: Likewise.
19717         * math/s_significandf.c: Likewise.
19718         * math/s_significandl.c: Likewise.
19719         * math/w_acos.c: Likewise.
19720         * math/w_acosf.c: Likewise.
19721         * math/w_acosh.c: Likewise.
19722         * math/w_acoshf.c: Likewise.
19723         * math/w_acoshl.c: Likewise.
19724         * math/w_acosl.c: Likewise.
19725         * math/w_asin.c: Likewise.
19726         * math/w_asinf.c: Likewise.
19727         * math/w_asinl.c: Likewise.
19728         * math/w_atan2.c: Likewise.
19729         * math/w_atan2f.c: Likewise.
19730         * math/w_atan2l.c: Likewise.
19731         * math/w_atanh.c: Likewise.
19732         * math/w_atanhf.c: Likewise.
19733         * math/w_atanhl.c: Likewise.
19734         * math/w_cosh.c: Likewise.
19735         * math/w_coshf.c: Likewise.
19736         * math/w_coshl.c: Likewise.
19737         * math/w_dremf.c: Likewise.
19738         * math/w_exp10.c: Likewise.
19739         * math/w_exp10f.c: Likewise.
19740         * math/w_exp10l.c: Likewise.
19741         * math/w_exp2.c: Likewise.
19742         * math/w_exp2f.c: Likewise.
19743         * math/w_fmod.c: Likewise.
19744         * math/w_fmodf.c: Likewise.
19745         * math/w_fmodl.c: Likewise.
19746         * math/w_hypot.c: Likewise.
19747         * math/w_hypotf.c: Likewise.
19748         * math/w_hypotl.c: Likewise.
19749         * math/w_j0.c: Likewise.
19750         * math/w_j0f.c: Likewise.
19751         * math/w_j0l.c: Likewise.
19752         * math/w_j1.c: Likewise.
19753         * math/w_j1f.c: Likewise.
19754         * math/w_j1l.c: Likewise.
19755         * math/w_jn.c: Likewise.
19756         * math/w_jnf.c: Likewise.
19757         * math/w_jnl.c: Likewise.
19758         * math/w_lgamma.c: Likewise.
19759         * math/w_lgamma_r.c: Likewise.
19760         * math/w_lgammaf.c: Likewise.
19761         * math/w_lgammaf_r.c: Likewise.
19762         * math/w_lgammal.c: Likewise.
19763         * math/w_lgammal_r.c: Likewise.
19764         * math/w_log.c: Likewise.
19765         * math/w_log10.c: Likewise.
19766         * math/w_log10f.c: Likewise.
19767         * math/w_log10l.c: Likewise.
19768         * math/w_log2.c: Likewise.
19769         * math/w_log2f.c: Likewise.
19770         * math/w_log2l.c: Likewise.
19771         * math/w_logf.c: Likewise.
19772         * math/w_logl.c: Likewise.
19773         * math/w_pow.c: Likewise.
19774         * math/w_powf.c: Likewise.
19775         * math/w_powl.c: Likewise.
19776         * math/w_remainder.c: Likewise.
19777         * math/w_remainderf.c: Likewise.
19778         * math/w_remainderl.c: Likewise.
19779         * math/w_scalb.c: Likewise.
19780         * math/w_scalbf.c: Likewise.
19781         * math/w_scalbl.c: Likewise.
19782         * math/w_sinh.c: Likewise.
19783         * math/w_sinhf.c: Likewise.
19784         * math/w_sinhl.c: Likewise.
19785         * math/w_sqrt.c: Likewise.
19786         * math/w_sqrtf.c: Likewise.
19787         * math/w_sqrtl.c: Likewise.
19788         * math/w_tgamma.c: Likewise.
19789         * math/w_tgammaf.c: Likewise.
19790         * math/w_tgammal.c: Likewise.
19792         * po/ja.po: Update from translation team.
19794 2011-09-29  Andreas Jaeger  <aj@suse.de>
19796         [BZ #13179]
19797         * sunrpc/netname.c (netname2host): Fix logic.
19799         [BZ #6779]
19800         [BZ #6783]
19801         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
19802         correctly.
19803         * math/w_remainder.c (__remainder): Likewise.
19804         * math/w_remainderf.c (__remainderf): Likewise.
19805         * math/libm-test.inc (remainder_test): Add test cases.
19807 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19809         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
19810         sdiv_qrnnd.
19812 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
19814         * string/test-memcmp.c: Avoid unncessary #defines.
19815         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
19817 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19819         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
19820         Use new sse2 version for core i3 - i7 as it's faster
19821         than sse42 version.
19822         (bit_Prefer_PMINUB_for_stringop): New.
19823         * sysdeps/x86_64/rawmemchr.S: Update.
19824         Replace with faster SSE2 version.
19825         * sysdeps/x86_64/memrchr.S: New file.
19826         * sysdeps/x86_64/memchr.S: Update.
19827         Replace with faster SSE2 version.
19829 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
19831         * elf/dl-load.c (lose): Add cast to avoid warning.
19833 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
19835         * po/ca.po: Update from translation team.
19837         * inet/getnetgrent_r.c: Hook up nscd.
19838         * nscd/Makefile (routines): Add nscd_netgroup.
19839         (nscd-modules): Add netgroupcache.
19840         (CFLAGS-netgroupcache.c): Define.
19841         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
19842         (cache_search): Add const to second parameter.
19843         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
19844         INNETGR.
19845         (dbs): Add netgrdb entry.
19846         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
19847         (verify_persistent_db): Handle netgrdb.
19848         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
19849         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
19850         GETFDNETGR.
19851         (netgroup_response_header): Define.
19852         (innetgroup_response_header): Define.
19853         (datahead): Add netgroup_response_header and innetgroup_response_header
19854         elements.
19855         * nscd/nscd.conf: Add entries for netgroup cache.
19856         * nscd/nscd.h (dbtype): Add netgrdb.
19857         (_PATH_NSCD_NETGROUP_DB): Define.
19858         (netgroup_iov_disabled): Declare.
19859         (xmalloc, xcalloc, xrealloc): Move declarations here.
19860         (cache_search): Adjust prototype.
19861         Add netgroup-related prototypes.
19862         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
19863         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
19864         (__nscd_innetgr): Declare.
19865         * nscd/selinux.c (perms): Use access_vector_t as element type and
19866         add netgroup-related initializers.
19867         * nscd/netgroupcache.c: New file.
19868         * nscd/nscd_netgroup.c: New file.
19869         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
19870         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
19871         For four parameters use innetgr.
19872         * nss/nss_files/files-init.c: Add definition and callback for netgr.
19873         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
19874         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
19875         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
19877         * nscd/connections.c (register_traced_file): Don't register file
19878         for disabled databases.
19880 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
19882         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
19884         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
19885         from tree and freeing node.
19887 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
19889         * nss/nsswitch.c (__nss_database_lookup): Handle
19890         nss_parse_service_list out of memory case.
19892 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
19894         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
19895         out of memory case.
19897 2011-10-04  Andreas Schwab  <schwab@redhat.com>
19899         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
19900         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
19901         pass it down.
19902         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
19903         elf_machine_rela, elf_machine_lazy_rel.
19904         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
19905         (ELF_DYNAMIC_DO_REL): Likewise.
19906         (ELF_DYNAMIC_DO_RELA): Likewise.
19907         (ELF_DYNAMIC_RELOCATE): Likewise.
19908         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
19909         to ELF_DYNAMIC_DO_REL.
19910         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
19911         (dl_main): In trace mode always set __RTLD_NOIFUNC.
19912         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
19913         elf_machine_rela.
19914         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
19915         skip_ifunc, don't call ifunc function if non-zero.
19916         (elf_machine_rela): Likewise.
19917         (elf_machine_lazy_rel): Likewise.
19918         (elf_machine_lazy_rela): Likewise.
19919         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
19920         (elf_machine_lazy_rel): Likewise.
19921         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
19922         Likewise.
19923         (elf_machine_lazy_rel): Likewise.
19924         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19925         Likewise.
19926         (elf_machine_lazy_rel): Likewise.
19927         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
19928         (elf_machine_lazy_rel): Likewise.
19929         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
19930         (elf_machine_lazy_rel): Likewise.
19931         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
19932         (elf_machine_lazy_rel): Likewise.
19933         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
19934         (elf_machine_lazy_rel): Likewise.
19935         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
19936         (elf_machine_lazy_rel): Likewise.
19937         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
19938         (elf_machine_lazy_rel): Likewise.
19940 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
19942         * nss/nss_files/files-init.c (_nss_files_init): Use static
19943         initialization for all the *_traced_file variables.
19945 2011-09-28  Andreas Schwab  <schwab@redhat.com>
19947         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19949 2011-09-27  Roland McGrath  <roland@hack.frob.com>
19951         [BZ #13226]
19952         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
19954 2011-09-27  Andreas Schwab  <schwab@redhat.com>
19956         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
19957         Reread the line before reparsing it.
19959 2011-09-26  Andreas Schwab  <schwab@redhat.com>
19961         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
19963 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
19964             Maxim Kuvyrkov  <maxim@codesourcery.com>
19965             Joseph Myers  <joseph@codesourcery.com>
19967         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
19968         if needed for __stack_chk_guard.
19970 2011-09-19  Roland McGrath  <roland@hack.frob.com>
19972         * sysdeps/posix/spawni.c (script_execute): Always define it.
19973         It will be optimized away if unused.
19974         (maybe_script_execute): New function.
19975         (__spawni): Call it.
19977         * Makerules: Don't include tls.make.
19978         (config-tls): Always set to thread.
19979         * tls.make.c: File removed.
19981 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
19983         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
19984         * config.make.in (CPPFLAGS-config): New substituted variable.
19986 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
19988         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
19990         [BZ #13192]
19991         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
19992         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
19994 2011-09-15  Roland McGrath  <roland@hack.frob.com>
19996         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
19997         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
19998         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19999         (CALL_FAIL): Likewise.
20000         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
20001         (CALL_FAIL): Macro removed.
20002         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
20004 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
20006         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
20007         for __FINITE_MATH_ONLY__ == 1.
20009 2011-09-15  Andreas Schwab  <schwab@redhat.com>
20011         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
20012         __ieee754_sqrt instead of sqrt.
20013         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
20014         __ieee754_sqrtf instead of sqrtf.
20015         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
20016         __floorf instead of floorf.
20017         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
20018         __floorf, __truncf instead of floorf, truncf.
20020 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
20022         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
20024         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
20025         __extern_always_inline.
20026         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
20027         32-bit.
20029 2011-09-14  Andreas Schwab  <schwab@redhat.com>
20031         * elf/rtld.c (dl_main): Also relocate in dependency order when
20032         doing symbol dependency testing.
20034 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
20036         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20037         Always define `refsym'.
20039 2011-09-13  Andreas Schwab  <schwab@redhat.com>
20041         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
20042         (__FD_ELT): Renamed from __FDELT.
20043         * misc/bits/select2.h (__FD_ELT): Likewise.
20044         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
20045         __FD_MASK instead of __FDELT, __FDMASK.
20046         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
20047         Likewise.
20048         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
20049         Likewise.
20051         * elf/Makefile (gen-ldd): Fix pattern.
20053         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
20054         (init_tls): Likewise.
20056 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
20058         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
20060 2011-09-12  Andreas Schwab  <schwab@redhat.com>
20062         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
20063         `struct cmsghdr *' instead of `void *'.
20064         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
20065         Likewise.
20067 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
20069         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
20070         if non-absolute.
20071         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
20072         ldd_rewrite_script.
20074 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
20076         * configure.in: Remove --with-tls option.
20077         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
20078         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
20079         out in case it is missing.
20080         * sysdeps/ia64/elf/configure.in: Likewise.
20081         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
20082         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
20083         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
20084         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
20085         * sysdeps/sh/elf/configure.in: Likewise.
20086         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
20087         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20088         * sysdeps/x86_64/elf/configure.in: Likewise.
20089         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
20090         * sysdeps/mach/hurd/tls.h: Likewise.
20092         [BZ #13067]
20093         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
20095         [BZ #13090]
20096         * configure.in: Fix use of AC_INIT.
20098         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
20100 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
20102         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
20103         __set_errno.
20104         * malloc/hooks.c: Likewise.
20106         [BZ #11929]
20107         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
20108         variables statically.
20109         (narenas): Initialize.
20110         (list_lock): Initialize.
20111         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
20112         initializtion of main_arena and list_lock.  Small cleanups.
20113         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
20114         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
20115         Add initializers to main_arena and mp_.
20116         (malloc_state): Remove pagesize member.  Change all users to use
20117         GLRO(dl_pagesize).
20119         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
20120         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
20121         is always initialized.
20123         * malloc/malloc.c: Removed unused configurations and dead code.
20124         * malloc/arena.c: Likewise.
20125         * malloc/hooks.c: Likewise.
20126         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
20128         * include/tls.h: Removed.  USE___THREAD must always be defined.
20129         * bits/libc-tsd.h: Don't handle !USE___THREAD.
20130         * elf/dl-libc.c: Likewise.
20131         * elf/dl-tsd.c: Likewise.
20132         * include/errno.h: Likewise.
20133         * include/netdb.h: Likewise.
20134         * include/resolv.h: Likewise.
20135         * inet/herrno-loc.c: Likewise.
20136         * inet/herrno.c: Likewise.
20137         * malloc/arena.c: Likewise.
20138         * malloc/hooks.c: Likewise.
20139         * malloc/malloc.c: Likewise.
20140         * resolv/res-state.c: Likewise.
20141         * resolv/res_libc.c: Likewise.
20142         * sysdeps/i386/dl-machine.h: Likewise.
20143         * sysdeps/ia64/dl-machine.h: Likewise.
20144         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
20145         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
20146         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
20147         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
20148         * sysdeps/sh/dl-machine.h: Likewise.
20149         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20150         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20151         * sysdeps/unix/i386/sysdep.S: Likewise.
20152         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
20153         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
20154         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
20155         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20156         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
20157         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
20158         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
20159         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20160         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20161         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
20162         * sysdeps/unix/x86_64/sysdep.S: Likewise.
20163         * sysdeps/x86_64/dl-machine.h: Likewise.
20164         * tls.make.c: Likewise.
20166         * configure.in: Remove --with-__thread option.  Make tests for
20167         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
20168         tls_model attribute fail if no support is available.  Remove
20169         USE_IN_LIBIO.
20170         * Makeconfig: Adjust for dropped configure option.  All features are
20171         now mandatory.
20172         * Makerules: Likewise.
20173         * Versions.def: Likewise.
20174         * argp/argp-fmtstream.c: Likewise.
20175         * argp/argp-fmtstream.h: Likewise.
20176         * argp/argp-help.c: Likewise.
20177         * assert/assert.c: Likewise.
20178         * config.h.in: Likewise.
20179         * config.make.in: Likewise.
20180         * configure: Likewise.
20181         * configure.in: Likewise.
20182         * csu/Versions: Likewise.
20183         * csu/init.c: Likewise.
20184         * elf/tst-audit2.c: Likewise.
20185         * elf/tst-tls10.c: Likewise.
20186         * elf/tst-tls10.h: Likewise.
20187         * elf/tst-tls11.c: Likewise.
20188         * elf/tst-tls12.c: Likewise.
20189         * elf/tst-tls14.c: Likewise.
20190         * elf/tst-tlsmod11.c: Likewise.
20191         * elf/tst-tlsmod12.c: Likewise.
20192         * elf/tst-tlsmod13.c: Likewise.
20193         * elf/tst-tlsmod13a.c: Likewise.
20194         * elf/tst-tlsmod14a.c: Likewise.
20195         * elf/tst-tlsmod15b.c: Likewise.
20196         * elf/tst-tlsmod16a.c: Likewise.
20197         * elf/tst-tlsmod16b.c: Likewise.
20198         * elf/tst-tlsmod7.c: Likewise.
20199         * elf/tst-tlsmod8.c: Likewise.
20200         * elf/tst-tlsmod9.c: Likewise.
20201         * gmon/gmon.c: Likewise.
20202         * grp/fgetgrent_r.c: Likewise.
20203         * grp/putgrent.c: Likewise.
20204         * hurd/fopenport.c: Likewise.
20205         * include/libc-symbols.h: Likewise.
20206         * include/tls.h: Likewise.
20207         * intl/gettextP.h: Likewise.
20208         * intl/loadinfo.h: Likewise.
20209         * locale/global-locale.c: Likewise.
20210         * locale/localeinfo.h: Likewise.
20211         * mach/devstream.c: Likewise.
20212         * malloc/arena.c: Likewise.
20213         * malloc/set-freeres.c: Likewise.
20214         * misc/err.c: Likewise.
20215         * misc/getttyent.c: Likewise.
20216         * misc/mntent_r.c: Likewise.
20217         * posix/getopt.c: Likewise.
20218         * posix/wordexp.c: Likewise.
20219         * pwd/fgetpwent_r.c: Likewise.
20220         * resolv/Versions: Likewise.
20221         * resolv/res_hconf.c: Likewise.
20222         * shadow/fgetspent_r.c: Likewise.
20223         * shadow/putspent.c: Likewise.
20224         * stdio-common/printf_fphex.c: Likewise.
20225         * stdio-common/tmpfile.c: Likewise.
20226         * stdlib/abort.c: Likewise.
20227         * stdlib/fmtmsg.c: Likewise.
20228         * sunrpc/auth_unix.c: Likewise.
20229         * sunrpc/clnt_perr.c: Likewise.
20230         * sunrpc/clnt_tcp.c: Likewise.
20231         * sunrpc/clnt_udp.c: Likewise.
20232         * sunrpc/clnt_unix.c: Likewise.
20233         * sunrpc/openchild.c: Likewise.
20234         * sunrpc/svc_simple.c: Likewise.
20235         * sunrpc/svc_tcp.c: Likewise.
20236         * sunrpc/svc_udp.c: Likewise.
20237         * sunrpc/svc_unix.c: Likewise.
20238         * sunrpc/xdr.c: Likewise.
20239         * sunrpc/xdr_array.c: Likewise.
20240         * sunrpc/xdr_rec.c: Likewise.
20241         * sunrpc/xdr_ref.c: Likewise.
20242         * sunrpc/xdr_stdio.c: Likewise.
20244 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
20246         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20248 2011-07-03  Andreas Jaeger  <aj@suse.de>
20250         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
20251         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
20252         regenerate with gen-libm-tests.pl.
20254 2010-05-12  Petr Baudis  <pasky@suse.cz>
20256         [BZ #11589]
20257         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
20258         around j0() zero points by switching to j1().
20259         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20260         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20261         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20262         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20264 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
20266         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
20267         instead of 0.
20268         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
20269         instead of 0.
20270         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20271         Patch in part by Pavel Roskin <proski@gnu.org>.
20273         [BZ #13138]
20274         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
20275         realloc.
20276         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
20277         Free memory block if necessary.
20279         [BZ #12847]
20280         * libio/genops.c (INTDEF): For string streams the _lock pointer can
20281         be NULL.  Don't lock in this case.
20283 2011-09-09  Roland McGrath  <roland@hack.frob.com>
20285         * elf/elf.h (ELFOSABI_GNU): New macro.
20286         (ELFOSABI_LINUX): Define to that.
20288 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
20290         * string/strncat.c (strncat): Undef the symbol in case it has been
20291         defined in bits/string.h.
20293 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
20295         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
20297         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
20298         link map.
20300 2011-08-17  Andreas Jaeger  <aj@suse.de>
20302         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
20304 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
20305             Ian Lance Taylor  <iant@google.com>
20307         * math/libm-test.inc (lround_test): New testcase.
20308         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
20310 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
20312         * Makefile: Remove support for automatic cvs check-ins.
20313         * Makerules: Likewise.
20314         * config.make.in: Likewise.
20315         * configure.in: Likewise.
20316         * intl/Makefile: Likewise.
20317         * locale/Makefile: Likewise.
20318         * po/Makefile: Likewise.
20319         * posix/Makefile: Likewise.
20320         * sysdeps/gnu/Makefile: Likewise.
20321         * sysdeps/mach/hurd/Makefile: Likewise.
20322         * sysdeps/sparc/sparc32/Makefile: Likewise.
20324         [BZ #13118]
20325         * posix/Makefile (bug-regex32-ENV): Define.
20326         Patch by John Stanley <jpsinthemix@verizon.net>.
20328         * misc/Makefile (headers): Add bits/select2.h.
20329         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
20330         * misc/bits/select2.h: New file.
20331         * include/bits/select2.h: New file.
20332         * debug/Makefile (routines): Add fdelt_chk.
20333         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
20334         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
20335         FD_ISSET.
20336         * debug/fdelt_chk.c: New file.
20338         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
20339         * wcsmbs/test-wmemcmp.c: Likewise.
20340         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
20341         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
20343 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20345         * string/Makefile (strop-tests): Add memcmp.
20346         * string/test-wmemcmp.c: New file.
20347         * string/test-memcmp.c: Add wmemcmp support.
20349 2011-09-08  Roland McGrath  <roland@hack.frob.com>
20351         [BZ #13153]
20352         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
20353         2011-07-19 change.
20355         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
20356         garbage value in a __mach_port_mod_refs call in the cases of the
20357         task-self and thread-self ports.
20359 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20361         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
20363 2011-09-08  Andreas Schwab  <schwab@redhat.com>
20365         * elf/dl-load.c (lose): Check for non-null L.
20367 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
20369         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
20371         * elf/dl-libc.c (dlerror_run): Pass back error code from
20372         dl_catch_error.
20374         [BZ #13123]
20375         * elf/dl-load.c (lose): Free l_origin if it is valid.
20377         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
20378         names.
20379         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
20380         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
20381         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
20382         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
20383         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
20384         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
20386 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20388         * sysdeps/powerpc/fpu/e_hypot.c: New file.
20389         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
20390         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
20391         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
20392         * sysdeps/powerpc/fpu/k_cosf.c: New file.
20393         * sysdeps/powerpc/fpu/k_sinf.c: New file.
20394         * sysdeps/powerpc/fpu/s_cosf.c: New file.
20395         * sysdeps/powerpc/fpu/s_sinf.c: New file.
20396         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
20397         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
20399 2011-08-15  Alan Modra  <amodra@gmail.com>
20401         [BZ #13092]
20402         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
20403         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
20404         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
20405         ppc_mcount to static-only-routines.
20406         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
20407         __mcount_internal.
20408         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
20409         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
20411 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
20413         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
20414         for finite and infinity parameters.
20416 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
20418         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
20419         and add nop instructions for throughput optimization.
20420         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20422 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
20424         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
20425         aligned copy for power7 with vector-scalar instructions.
20426         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
20428 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
20430         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
20431         AVX check.
20433 2011-09-07  Andreas Schwab  <schwab@redhat.com>
20435         [BZ #13144]
20436         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
20437         last change.
20439 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
20441         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20442         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
20443         syscall wrapper around clock_gettime in __vdso_clock_gettime.
20444         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
20445         clock_gettime.
20447 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
20449         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
20450         Forgot to demangle the pointer.
20452         * sysdeps/i386/sysdep.h: Define atom_text_section.
20453         * sysdeps/x86_64/sysdep.h: Likewise.
20454         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
20455         section with atom_text_section.
20456         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
20457         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
20458         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
20459         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
20460         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
20462         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
20463         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
20464         already be defined.  Change to take two parameters and don't assign
20465         result to variable.  Adjust all users.
20466         Define INTERNAL_GETTIME if not already defined.
20467         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
20468         call.
20469         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
20470         HAVE_CLOCK_GETTIME_VSYSCALL.
20471         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
20473         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
20474         gettimeofday vsyscall, just use time.
20476 2011-09-06  Andreas Schwab  <schwab@redhat.com>
20478         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
20479         <errno.h>.
20481 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
20483         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
20484         syscall on x86-64.
20485         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
20486         syscall.
20487         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
20488         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
20489         syscall if possible.
20491 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
20493         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
20494         e_ident.  Don't pass to find_mapsXX.
20495         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
20497 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20499         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20500         strchr-sse2-no-bsf strrchr-sse2-no-bsf
20501         * sysdeps/x86_64/multiarch/strchr.S: Update.
20502         Check bit_slow_BSF bit.
20503         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
20504         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
20505         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
20507 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
20509         [BZ #13134]
20510         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
20511         before glibc 2.15.
20512         (tryshell): Define.
20513         (__spawni): Change last parameter to be flag.  Test
20514         SPAWN_XFLAGS_USE_PATH flag to use path or not.
20515         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
20516         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
20517         * posix/spawni.c: Likewise.
20518         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
20519         * posix/spawnp.c: Likewise.  Change normal version to use
20520         SPAWN_XFLAGS_USE_PATH.
20521         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
20522         SPAWN_XFLAGS_TRY_SHELL.
20524         [BZ #13150]
20525         * posix/glob.h: Remove gcc 1.x support.
20527         [BZ #13068]
20528         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
20530 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20532         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20533         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
20534         strrchr-sse2-bsf
20535         * sysdeps/i386/i686/multiarch/strchr.S: New file.
20536         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
20537         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
20538         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
20539         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
20540         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
20542 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20544         * sysdeps/x86_64/wcscmp.S: New file.
20546         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
20547         wcscmp-c wcscmp-sse2
20548         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
20549         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
20550         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
20551         * wcsmbs/wcscmp.c: Allow renaming.
20553 2011-09-05  David S. Miller  <davem@davemloft.net>
20555         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
20556         stack slot, rather than the struct return pointer slot.
20557         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
20558         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
20559         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
20560         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
20562 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
20564         * po/ja.po: Update from translation team.
20566         [BZ #13144]
20567         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
20568         kernel in 64-bit binaries.
20570 2011-09-01  David S. Miller  <davem@davemloft.net>
20572         * elf/elf.h (HWCAP_SPARC_*): Move to..
20573         * sysdeps/sparc/sysdep.h: this new file and add new values.
20574         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
20575         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
20576         _DL_HWCAP_COUNT to 24.
20577         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
20578         entries.
20579         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
20580         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
20581         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
20582         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
20583         instead of magic constants.
20584         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20586 2011-08-31  David S. Miller  <davem@davemloft.net>
20588         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
20589         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
20590         Reimplement to do errno handling inline.
20591         (SYSCALL_ERROR_HANDLER): New macro.
20592         (__SYSCALL_STRING): Do not do errno handling in asm.
20593         (__CLONE_SYSCALL_STRING): Delete.
20594         (__INTERNAL_SYSCALL_STRING): Delete.
20595         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
20596         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
20597         (PSEUDO): Reimplement to do errno handling inline.
20598         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
20599         (SYSCALL_ERROR_HANDLER): New macro.
20600         (__SYSCALL_STRING): Do not do errno handling in asm.
20601         (__CLONE_SYSCALL_STRING): Delete.
20602         (__INTERNAL_SYSCALL_STRING): Delete.
20603         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
20604         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
20605         i386.
20606         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
20607         (inline_syscall*): Add 'err' argument.
20608         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
20609         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
20610         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
20611         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
20613         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
20614         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
20616 2011-08-30  Andreas Schwab  <schwab@redhat.com>
20618         * elf/rtld.c (dl_main): Relocate objects in dependency order.
20620 2011-08-29  Jiri Olsa <jolsa@redhat.com>
20622         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
20623         directive.
20625 2011-08-24  David S. Miller  <davem@davemloft.net>
20627         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
20629 2011-08-24  Andreas Schwab  <schwab@redhat.com>
20631         * elf/Makefile: Add rules to build and run unload8 test.
20632         * elf/unload8.c: New file.
20633         * elf/unload8mod1.c: New file.
20634         * elf/unload8mod1x.c: New file.
20635         * elf/unload8mod2.c: New file.
20636         * elf/unload8mod3.c: New file.
20638         * elf/dl-close.c (_dl_close_worker): Reset private search list if
20639         it wasn't used.
20641 2011-08-23  David S. Miller  <davem@davemloft.net>
20643         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
20644         subtract stack bias.
20645         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
20646         %sp not %fp in calculations.
20647         (_JMPBUF_UNWINDS_ADJ): Likewise.
20649         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
20650         (aio_suspend): Call it to force an exception region around the
20651         AIO_MISC_WAIT() invocation.
20653 2011-08-23  Andreas Schwab  <schwab@redhat.com>
20655         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
20656         backslash.
20658 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
20660         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
20661         protection macro.
20662         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
20663         and <dl-machine.h>.
20664         (Elf64_FuncDesc): Remove.
20666 2011-08-22  David S. Miller  <davem@davemloft.net>
20668         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
20669         sigaltstack check, add missing cfi directives.
20670         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
20671         missing cfi directives, and sigaltstack handling.
20673 2011-08-16  Andreas Schwab  <schwab@redhat.com>
20675         [BZ #11724]
20676         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
20677         object is seen twice.
20678         * elf/dl-fini.c (_dl_sort_fini): Likewise.
20680         * elf/Makefile (distribute): Add tst-initorder2.c.
20681         (tests): Add tst-initorder2.
20682         (modules-names): Add tst-initorder2a tst-initorder2b
20683         tst-initorder2c tst-initorder2d.  Add rules to build them.
20684         ($(objpfx)tst-initorder2.out): New rule.
20685         * elf/tst-initorder2.c: New file.
20686         * elf/tst-initorder2.exp: New file.
20688 2011-08-22  Andreas Schwab  <schwab@redhat.com>
20690         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
20692         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
20693         dependencies back to end of function.
20695         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20696         $(elfobjdir)/ld.so.
20698 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
20700         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
20701         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
20702         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
20703         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
20704         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
20705         of __vdso_gettimeofday.
20706         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
20707         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
20708         attribute_hidden.
20709         (_libc_vdso_platform_setup): Remove initialization of
20710         __vdso_gettimeofday and __vdso_time.
20712 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
20714         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
20715         and fgetc_unlocked.
20716         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
20717         getc_unlocked.
20719         * elf/dl-open.c (add_to_global): Report additions to the global scope
20720         for LD_DEBUG=scopes.
20721         (dl_open_worker): Also print scope of newly loaded dependencies.
20722         (_dl_show_scope): Indicate if there is no scope.
20724         [BZ #13114]
20725         * stdio-common/Makefile (tests): Add bug24.
20726         * stdio-common/bug24.c: New file.
20728 2011-08-19  Andreas Jaeger  <aj@suse.de>
20730         [BZ #13114]
20731         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
20732         non-existant file when using close-on-exec mode.
20734 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
20736         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
20737         the very first instruction.
20739         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
20740         the CFI state in the end.
20741         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
20742         inclusion of dl-trampoline.h.
20743         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
20745 2011-08-19  Andreas Schwab  <schwab@redhat.com>
20747         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
20748         expectations for long double.
20750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
20751         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
20753 2011-08-14  David S. Miller  <davem@davemloft.net>
20755         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
20756         artificual limit depends upon the system page size.
20758 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
20760         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
20761         * resolv/Makefile: Define CFLAGS-libresolv.
20763 2011-08-17  Andreas Schwab  <schwab@redhat.com>
20765         * nss/makedb.c (compute_tables): Make variables used in nested
20766         function static.
20768 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
20770         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
20771         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
20772         if buffer was too small.
20774         * elf/pldd.c (main): Attach to all threads in the process.
20775         Rewrite /proc handling to use *at functions.
20777 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
20779         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
20780         specifies first scope to show.
20781         (dl_open_worker): Update callers.  Move printing scope of new
20782         object to before the relocation.
20783         * elf/rtld.c (dl_main): Update _dl_show_scope call.
20784         * sysdeps/generic/ldsodefs.h: Update declaration.
20786         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
20787         string for the scope number.
20789 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
20791         * nscd/servicescache.c (cache_addserv): Make sure written is always
20792         initialized.
20794 2011-08-14  Roland McGrath  <roland@hack.frob.com>
20796         * sysdeps/i386/i486/bits/atomic.h
20797         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
20798         statement expression, so as to suppress "set but not used" warning.
20799         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
20801         * string/strncat.c (STRNCAT): Use prototype definition.
20803         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
20804         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
20805         -Iprograms here.
20806         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
20807         (localedef-modules): Add localedef.
20808         (locale-modules): Add locale.
20810         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
20811         * elf/rtld.c (dl_main): Invert order of assignment in last change,
20812         to avoid a warning.
20814 2011-08-14  David S. Miller  <davem@davemloft.net>
20816         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
20817         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
20819 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
20821         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
20822         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
20823         * elf/rtld.c (dl_main): Set l_name of vDSO.
20824         Call _dl_show_scope when DL_DEBUG_SCOPES.
20825         (process_dl_debug): Recognize scopes flag and also set it for all.
20826         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
20827         Declare _dl_show_scope.
20829         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
20830         (do_dlopen): Pass caller_dlopen to dl_open.
20831         (__libc_dlopen_mode): Initialize caller_dlopen.
20833         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
20834         of libc.  Make tolower call locale-independent.  Optimize a bit by
20835         using isdigit instead of isalnum.
20836         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
20838 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
20840         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
20841         was a dependency or dynamically loaded.
20843 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
20845         * intl/l10nflist.c: Allow architecture-specific pop function.
20846         * sysdeps/x86_64/l10nflist.c: New file.
20848         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
20849         classification.
20851 2011-08-10  Andreas Schwab  <schwab@redhat.com>
20853         * include/dirent.h: Add libc_hidden_proto for scandirat and
20854         scandirat64.  Don't declare __scandirat64.
20855         * dirent/scandirat.c: Add libc_hidden_def.
20856         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
20857         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
20859 2011-08-10  David S. Miller  <davem@davemloft.net>
20861         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
20862         enum.
20863         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20864         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20865         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20867 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
20869         * Versions.def [libc]: Add GLIBC_2.15.
20870         * dirent/Makefile (routines): Add scandirat and scandirat64.
20871         * dirent/Versions [libc]: Export scandirat and scandirat64 for
20872         GLIBC_2.15.
20873         * dirent/dirent.h: Declare scandirat and scandirat64.
20874         * dirent/scandirat.c: New file.
20875         * dirent/scandirat64.c: New file.
20876         * sysdeps/wordsize-64/scandirat.c: New file.
20877         * sysdeps/wordsize-64/scandirat64.c: New file.
20878         * dirent/opendir.c: Define opendirat.
20879         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
20880         using scandirat.
20881         * dirent/scandir64.c: Adjust for scandir.c change.
20882         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
20883         __scandirat64, and __scandir_cancel_handler.
20884         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
20885         additional parameter and use openat instead of open (outside of ld.so).
20886         Add new __opendir as wrapper around __opendirat.
20887         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
20888         here without requiring old scandirat implementation.
20890 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
20892         * dirent/scandir.c (cancel_handler): Renamed to
20893         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
20894         defined.  Adjust users.
20895         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
20896         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
20898 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
20900         * string/test-string.h (IMPL): Use __STRING to expand name and then
20901         stringify it.
20903         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
20904         of cleanups.
20906 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20908         * string/Makefile: Update.
20909         (strop-tests): Append strncat.
20910         * string/test-wcscmp.c: New file.
20911         New comprehensive test for wcscmp.
20912         * string/test-strcmp.c: Update.
20913         (WIDE): New define.
20915 2011-07-22  Andreas Schwab  <schwab@redhat.com>
20917         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
20918         line.
20920 2011-07-26  Andreas Schwab  <schwab@redhat.com>
20922         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20923         encoding to ACE if AI_IDN.
20925 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
20927         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
20928         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
20930 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20932         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
20933         Fix overflow bug in strncat.
20934         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
20936         * string/test-strncat.c: Update.
20937         Add new tests for checking overflow bugs.
20939 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20941         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20942         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
20943         * sysdeps/i386/i686/multiarch/strcat.S: New file.
20944         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
20945         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
20946         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
20947         * sysdeps/i386/i686/multiarch/strncat.S: New file.
20948         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
20949         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
20951         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
20952         (USE_AS_STRCAT): Define.
20953         Add strcat and strncat support.
20954         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
20956 2011-07-25  Andreas Schwab  <schwab@redhat.com>
20958         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
20959         __n bigger than INT_MAX+1.
20960         (__strncmp_g): Likewise.
20962 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
20964         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
20965         * libio/stido.h: Likewise.
20967         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
20968         (AF_NFC): Define.
20969         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
20970         (AF_NFC): Define.
20972         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
20973         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20974         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20975         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20976         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20978         [BZ #13021]
20979         * scripts/test-installation.pl: Don't expect libnss_test1 to be
20980         installed.
20982         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
20983         typo.
20984         (_dl_x86_64_save_sse): Likewise.
20986 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
20988         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
20989         OSXSAVE.
20990         (_dl_x86_64_save_sse): Likewise.
20992         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
20994         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
20996 2011-07-21  Andreas Schwab  <schwab@redhat.com>
20998         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
20999         change.
21000         (_dl_x86_64_save_sse): Use correct AVX check.
21002 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21004         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
21005         bug in strncpy/strncat.
21006         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
21008 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
21010         * string/tester.c (test_strcat): Add tests for different alignments
21011         of source and destination.
21012         (test_strncat): Likewise.
21014 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
21016         [BZ #12852]
21017         * posix/glob.c (glob): Check passed in values before using them in
21018         expressions to avoid some overflows.
21019         (glob_in_dir): Likewise.
21021         [BZ #13007]
21022         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
21023         check for AVX enablement so that we don't crash with old kernels and
21024         new hardware.
21025         * elf/tst-audit4.c: Add same checks here.
21026         * elf/tst-audit6.c: Likewise.
21028         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
21030 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
21032         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
21034 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
21036         * po/cs.po: Update from translation team.
21037         * po/bg.po: Likewise.
21039 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
21041         * misc/sys/cdefs.h: Add support for const attribute.
21042         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
21043         to gnu_dev_{major,minor,makedev} functions.
21045 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
21047         * intl/dcigettext.c (get_output_charset): Add missing bracket.
21049 2011-07-20  Andreas Schwab  <schwab@redhat.com>
21051         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
21052         strlen results.
21054 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21056         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
21057         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
21058         register in order to avoid conflicts with the soft frame pointer
21059         being held in r11 when necessary.
21060         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21061         (INTERNAL_VSYSCALL_NCS): Likewise.
21063 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
21065         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
21066         * elf/dl-fini.c (_dl_fini): Adjust caller.
21067         * elf/dl-close.c (_dl_close_worker): Likewise.
21068         * sysdeps/generic/ldsodefs.h: Adjust declaration.
21070 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
21072         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
21073         "aux_cache->nlibs < 0".
21075         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
21076         in the reload-count case.
21078 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21080         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21081         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
21082         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
21083         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
21084         * sysdeps/x86_64/multiarch/strcat.S: New file.
21085         * sysdeps/x86_64/multiarch/strncat.S: New file.
21086         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
21087         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
21088         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
21089         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
21090         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
21091         (USE_AS_STRCAT): Define.
21092         Add strcat and strncat support.
21093         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
21094         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
21095         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
21096         * string/strncat.c: Update.
21097         (USE_AS_STRNCAT): Define.
21098         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21099         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
21100         and i7.
21101         * sysdeps/x86_64/multiarch/init-arch.h
21102         (bit_Prefer_PMINUB_for_stringop): New.
21103         (index_Prefer_PMINUB_for_stringop): Likewise.
21104         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
21105         bit_Prefer_PMINUB_for_stringop.
21107 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
21109         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
21110         buffer64.
21111         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
21112         of casting of buffer.
21113         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
21114         buffer32 and buffer64.
21115         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
21116         writes instead of casting of buffer.
21117         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
21118         buffer32.
21119         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
21120         casting of buffer.
21122 2011-07-19  Andreas Schwab  <schwab@redhat.com>
21124         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
21126 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
21128         * nscd/nscd.c (termination_handler): Don't do anything for a database
21129         if it has not yet been initialized.
21131 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
21133         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
21135 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
21137         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
21139 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
21141         * po/nl.po: Update from translation team.
21142         * po/sv.po: Likewise.
21144 2011-07-16  Roland McGrath  <roland@hack.frob.com>
21146         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
21147         now disallowed by GCC.
21149         * configure.in (use-default-link): Default to yes if a test -shared
21150         link meets our qualifications.
21151         * configure: Regenerated.
21153         * config.make.in (output-format): New variable.
21154         * configure.in: Check for ld --print-output-format support.
21155         * configure: Regenerated.
21156         * Makerules ($(common-objpfx)format.lds)
21157         [$(output-format) != unknown]: Just use $(output-format),
21158         instead of the linker-script munging.
21160 2011-07-14  Roland McGrath  <roland@hack.frob.com>
21162         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
21163         of $(common-objpfx)shlib.lds.
21164         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
21166         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
21167         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
21169         * configure.in (-z relro check): Adjust test code to add a large
21170         writable data section after it.
21171         * configure: Regenerated.
21173 2011-07-11  Roland McGrath  <roland@hack.frob.com>
21175         * configure.in (-z relro check): Fix test code to make the variable
21176         truly const.
21177         * configure: Regenerated.
21179 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
21181         * nscd/nscd.h (struct traced_file): Define.
21182         (struct database_dyn): Remove inotify_descr, reset_res, and filename
21183         elements.  Add traced_files.
21184         (inotify_fd): Declare.
21185         (register_traced_file): Declare.
21186         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
21187         (inotify_fd): Export.
21188         (resolv_conf_descr): Remove.
21189         (nscd_init): Move inotify descriptor creation to main.
21190         Don't register files for notification here.
21191         (register_traced_file): New function.
21192         (invalidate_cache): Don't use reset_res to determine whether to call
21193         res_init, go through the list of registered files.
21194         (main_loop_poll): The inotify descriptors are now stored in the
21195         structures for the traced files.
21196         (main_loop_epoll): Likewise
21197         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
21198         to __nss_disable_nscd.
21199         * nscd/cache.c (prune_cache): There is no single inotify descriptor
21200         for a database anymore.  Check the records for all the registered
21201         files instead.
21202         * nss/Makefile (libnss_files-routines): Add files-init.
21203         (libnss_db-routines): Add db-init.
21204         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
21205         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
21206         * nss/nss_db/db-init.c: New file.
21207         * nss/nss_files/files-init.c: New file.
21208         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
21209         __nss_lookup_function.
21210         (__nss_lookup_function): Call nss_load_library.
21211         (nss_load_all_libraries): New function.
21212         (__nss_disable_nscd): Take parameter with callback function for files
21213         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
21214         used for the cached services.
21215         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
21216         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
21217         options for features to all the files in nscd.
21219         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
21221 2011-07-10  Roland McGrath  <roland@hack.frob.com>
21223         * csu/elf-init.c (__libc_csu_init): Comment typo.
21225 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
21227         * po/pl.po: Update from translation team.
21228         * po/ja.po: Likewise.
21229         * po/ru.po: Likewise.
21230         * po/ko.po: Likewise.
21231         * po/fr.po: Likewise.
21233 2011-07-09  Roland McGrath  <roland@hack.frob.com>
21235         * configure.in (.ctors/.dtors header and trailer check):
21236         Use an empirical test on a built program.
21237         * configure: Regenerated.
21239         * configure.in (-z relro check): Use an empirical test on a built DSO.
21240         Detect, but do not require, on ia64.
21241         * configure: Regenerated.
21243         * configure.in (READELF): Find it with AC_CHECK_TOOL.
21244         Update tests that use readelf to use $READELF instead.
21245         * configure: Regenerated.
21247 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
21249         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
21250         if the result is not used.
21252 2011-07-05  Andreas Jaeger  <aj@suse.de>
21254         [BZ#9696]
21255         * stdlib/tst-strtod.c: Add testcase.
21257 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
21259         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
21260         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
21261         The latter has a higher limit.  Take additional parameter to pass to
21262         the new function.
21263         (__pathconf): Pass file to __statfs_link_max.
21264         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
21265         __statfs_link_max.
21266         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
21267         __statfs_link_max.
21269         [BZ #12868]
21270         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
21271         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21272         Handle Lustre.
21273         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
21274         (__statfs_filesize_max): Likewise.
21275         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
21277 2011-07-05  Andreas Jaeger  <aj@suse.de>
21279         * resolv/res_comp.c (dn_skipname): Remove unused variable.
21281 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
21283         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
21284         `status' variable.
21285         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
21286         Likewise.
21288 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
21290         * Makefile (strop-tests): Add strncat.
21291         * string/test-strncat.c: New file.
21293 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
21295         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
21297 2011-06-21  Andreas Jaeger  <aj@suse.de>
21299         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
21300         Copy rule from iconvdata/Makefile.
21302 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
21304         [BZ #12922]
21305         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
21306         but no long options are defined, just return 'W'.
21308 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
21310         [BZ #9696]
21311         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
21313 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
21315         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
21316         netgroups to read.
21317         (innetgr): Likewise.
21319 2011-07-05  Roland McGrath  <roland@hack.frob.com>
21321         * config.make.in (install_root): Default to $(DESTDIR).
21323 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
21325         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
21327 2011-07-02  Roland McGrath  <roland@hack.frob.com>
21329         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
21331         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
21332         containing directory rather than embedding absolute directory names.
21334         * scripts/check-local-headers.sh: Rewritten using awk.
21335         Match by word, not by line.  Print error messages for matches.
21336         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
21338         * Makerules [shlib-lds-flags empty]:
21339         ($(common-objpfx)libc_pic.opts): New target.
21340         ($(common-objpfx)libc_pic.os.clean): New target.
21341         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
21343         * config.make.in (OBJCOPY): New variable.
21344         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
21345         * configure: Regenerated.
21347         * config.make.in (use-default-link): New variable.
21348         * configure.in (use_default_link): Grok --with-default-link to set it.
21349         * configure: Regenerated.
21350         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
21351         (shlib-lds, shlib-lds-flags): Define to empty.
21353         * Makerules (shlib-lds): New variable.
21354         (shlib-lds-flags): New variable.
21355         (build-shlib, build-moduile, build-module-asneeded): Use it.
21356         ($(common-objpfx)libc.so): Use $(shlib-lds).
21357         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
21358         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
21360         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
21361         DT_FLAGS/DT_FLAGS_1 with zero flags.
21363         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
21364         linker script munging.
21366 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
21368         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
21369         as 128-bit value.
21370         * crypt/sha512.c (sha512_process_block): Perform total addition using
21371         128-bit if possible.
21372         (__sha512_finish_ctx): Likewise.
21373         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
21374         as 64-bit value.
21375         * crypt/sha256.c (SWAP64): Define.
21376         (sha256_process_block): Perform total addition using 64-bit if
21377         possible.
21378         (__sha256_finish_ctx): Likewise.
21380 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
21382         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
21383         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21384         * nscd/hstcache.c (cache_addhst): Likewise.
21385         * nscd/grpcache.c (cache_addgr): Likewise.
21386         * nscd/aicache.c (addhstaiX): Likewise
21387         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
21389 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
21391         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
21392         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21393         * nscd/hstcache.c (cache_addhst): Likewise.
21394         * nscd/grpcache.c (cache_addgr): Likewise.
21395         * nscd/aicache.c (addhstaiX): Likewise
21397 2011-07-01  Andreas Schwab  <schwab@redhat.com>
21399         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
21400         domain only when needed.
21402 2011-06-30  Andreas Schwab  <schwab@redhat.com>
21404         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
21405         is always restored.
21407 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
21409         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
21410         are re-adding the entry.
21411         * nscd/servicescache.c (cache_addserv): Likewise.
21413 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
21415         * sysdeps/generic/dl-irel.h: fix protection against multiple
21416         inclusions.
21417         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
21419 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
21421         [BZ #12935]
21422         * malloc/memusage.sh: Fix quoting in message.
21423         * debug/xtrace.sh: Likewise.
21425         * configure.in: Remove support for --experimental-malloc option, make
21426         it the default.
21427         * config.make.in: Likewise.
21428         * malloc/Makefile: Likewise.
21430 2011-06-27  Andreas Schwab  <schwab@redhat.com>
21432         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
21433         two-byte characters.
21435 2011-06-27  Roland McGrath  <roland@hack.frob.com>
21437         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
21438         AC_CACHE_CHECK invocation.
21439         * configure: Regenerated.
21441         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
21443 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
21445         [BZ #12350]
21446         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
21447         bit from old_res_options.
21449         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
21451         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
21452         value type for setfct.
21454 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
21456         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
21457         __gettimeofday instead of gettimeofday.
21459 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
21461         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
21463 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21465         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
21467         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
21468         info.
21470 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
21472         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21473         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
21474         strcpy-sse2-unaligned strncpy-sse2-unaligned
21475         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
21476         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
21477         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
21478         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
21479         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
21480         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
21481         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
21482         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
21483         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
21484         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
21485         (STRCPY): Support SSE2 and SSSE3 versions.
21487 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
21489         [BZ #12874]
21490         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
21491         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
21492         kernels which artificially limit size of requests.
21494 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
21496         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21497         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
21498         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
21499         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
21500         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
21501         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
21502         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
21503         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
21504         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
21505         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
21506         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
21507         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
21508         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
21509         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
21510         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
21511         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21512         Enable unaligned load optimization for Intel Core i3, i5 and i7
21513         processors.
21514         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
21515         Define.
21516         (index_Fast_Unaligned_Load): Define.
21517         (HAS_FAST_UNALIGNED_LOAD): Define.
21519 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
21521         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
21523 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
21525         [BZ #12907]
21526         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
21527         until it is clear that the information is realy needed.
21528         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
21530 2011-06-22  Andreas Schwab  <schwab@redhat.com>
21532         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
21534 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
21536         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
21537         /sys/devices/system/cpu/online if it is usable.
21539         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
21540         reading the information from the /proc filesystem to once a second.
21542 2011-06-21  Andreas Jaeger  <aj@suse.de>
21544         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
21545         NULL after inclusion of kernel headers.
21547 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
21549         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
21550         calls to internal_setent.
21552         [BZ #12885]
21553         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
21554         addresses using gethostbyname4_r ignore IPv4 addresses.
21556         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
21557         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
21559         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
21561 2011-06-20  David S. Miller  <davem@davemloft.net>
21563         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
21564         inclusions.
21565         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
21567         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
21568         (elf_irel): Use it.
21569         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
21570         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
21571         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
21572         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
21573         * sysdeps/x86_64/dl-irel.h: Likewise.
21575         * elf/dl-runtime.c: Use elf_ifunc_invoke.
21576         * elf/dl-sym.c: Likewise.
21578 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
21580         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
21581         need to dereference resplen2.
21583 2011-06-14  Andreas Schwab  <schwab@redhat.com>
21585         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
21587 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
21589         * Makeconfig: Define vardbdir and inst_vardbdir.
21590         * nss/Makefile: Add rules to install db-Makefile.
21592         * nss/nss_db/db-XXX.c: Cleanup.
21594         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
21595         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
21596         GLIBC_PRIVATE.
21597         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
21598         * nss/makedb.c: Implement -g option to specify that value strings
21599         are generated and should not be added to table iterated over for
21600         get*ent calls.
21601         * nss/nss_db/db-initgroups.c: New file.
21603         * nss/getent.c: Add support for initgroups lookups through getgrouplist
21604         interface.
21606         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
21607         (internal_getgrouplist): Adjust to name change.
21608         Update use_initgroups_entry if this is not the first call.
21609         * nss/databases.def: Add initgroups entry.
21611         * nss/makedb.c (compute_tables): Check result of multiple hash table
21612         sizes to minimize maximum chain length.
21614 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
21616         * Versions.def: Add entry for libnss_db.
21617         * shlib-versions: Likewise.
21618         * nss/Makefile: Add rules to build libnss_db.
21619         * nss/Versions: Add libnss_db information.  Organize libnss_files
21620         entries better.
21621         * nss/db-Makefile: Add gshadow support.  Change rules for the new
21622         makedb progra.  Some minor improvements to generate smaller files.
21623         * nss/nss_db/nss_db.h: Move NSS database header data structures to
21624         here from...
21625         * nss/makedb.c: ...here.
21626         Improve database format to be smaller and require less memory at
21627         runtime.
21628         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
21629         db anymore.
21630         * nss/nss_db/db-netgrp.c: Likewise.
21631         * nss/nss_db/db-open.c: Likewise.
21632         * nss/nss_files/flies-XXX.x: Adjust comments.
21633         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
21634         * nss/nss_files/files-grp.c: Likewise.
21635         * nss/nss_files/files-hosts.c: Likewise.
21636         * nss/nss_files/files-network.c: Likewise.
21637         * nss/nss_files/files-proto.c: Likewise.
21638         * nss/nss_files/files-pwd.c: Likewise.
21639         * nss/nss_files/files-rpc.c: Likewise.
21640         * nss/nss_files/files-service.c: Likewise.
21641         * nss/nss_files/files-sgrp.c: Likewise.
21642         * nss/nss_files/files-spwd.c: Likewise.
21643         * nss/nss_db/db-alias.c: Removed.
21644         * nss/nss_db/dummy-db.h: Removed.
21646 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
21648         * nss/makedb.c: Rewritten to not use database library.
21649         * nss/Makefile: Update to build new makedb program.
21651 2011-06-14  Andreas Jaeger  <aj@suse.de>
21653         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
21654         memset declaration.
21656 2011-06-10  Andreas Schwab  <schwab@redhat.com>
21658         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
21659         tmpbuf.
21661 2011-06-10  Roland McGrath  <roland@hack.frob.com>
21663         * Makerules (shlib.lds): Fail if the linker script comes out empty.
21664         * elf/Makefile ($(objpfx)ld.so): Likewise.
21666         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
21667         Don't list ld.so twice in dependencies.
21669         * posix/bug-regex31.c: Include <stdlib.h>.
21671         * nscd/hstcache.c (cache_addhst): Remove unused variable.
21673         * nis/nss_compat/compat-spwd.c
21674         (getspent_next_nss_netgr): Remove unused variable.
21675         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
21677         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
21678         nonmembers" output to use the right array.
21680         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
21682         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
21684         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
21685         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
21686         * catgets/gencat.c (read_input_file): Likewise.
21687         * locale/programs/locarchive.c (enlarge_archive): Likewise.
21689         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
21690         variable definition inside #if's controlling its use.
21692         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
21694         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
21696         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
21698         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
21699         unreachable code.
21701         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
21703         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
21704         * configure: Regenerated.
21706         * Makerules: Revert last change.
21707         * elf/Makefile: Likewise.
21709 2011-06-09  Roland McGrath  <roland@hack.frob.com>
21711         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
21712         * elf/Makefile ($(objpfx)librtld.os): Likewise.
21713         (reloc-link): Likewise.
21715 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
21717         * elf/Makefile: Add rules to build pldd.
21718         * elf/pldd.c: New file.
21719         * elf/pldd-xx.c: New file.
21721 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
21723         * version.h: Update for 2.15 development version.
21725 2011-06-07  David S. Miller  <davem@davemloft.net>
21727         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
21728         ifuncs.
21729         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
21730         elf_machine_lazy_rel): Likewise.
21731         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
21732         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
21733         elf_machine_lazy_rel): Likewise.
21734         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
21735         dl_hwcap via passed in argument.
21736         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
21737         Likewise.
21739 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21741         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
21743 2011-06-06  Roland McGrath  <roland@hack.frob.com>
21745         [BZ #12849]
21746         * manual/fdl-1.1.texi: New file, verbatim from:
21747         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
21748         * manual/lgpl-2.1.texi: New file, verbatim from:
21749         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
21750         * manual/Makefile (licenses): New variable, list those new file names.
21751         (texis): Use it.
21752         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
21754         * manual/fdl.texi: File removed.
21755         * manual/lesser.texi: File removed.
21756         * manual/libc.texinfo (Copying, Documentation License):
21757         Use new @include file names, put @appendix directive before @include.
21759 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
21761         [BZ #12841]
21762         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
21763         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
21764         (mq_open): Add __NTH.
21766 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
21768         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21769         Assume Intel Core i3/i5/i7 processor if AVX is available.
21771 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
21773         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
21774         typo.
21776 2011-05-31  Andreas Schwab  <schwab@redhat.com>
21778         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
21779         memory.  Use alloca_account.  Fix memory leak when retrying.
21781 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
21783         * version.h (RELEASE): Bump for 2.14 release.
21784         * include/features.h (__GLIBC_MINOR__): Bump to 14.
21786         * config.make.in (RANLIB): Remove entry.
21788 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
21790         * po/Makefile (po-sed-cmd): Add ksh to extensions.
21791         (libc.pot): Work around missing support for .ksh extension in xgettext.
21793         [BZ #12684]
21794         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
21795         if both request failed.
21796         (send_dg): In case of server errors clear resplen or *resplen2.
21798         [BZ #12454]
21799         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
21800         when there are multiple maps.
21801         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
21802         (_dl_fini): Remove test here.
21804         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
21806 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
21808         [BZ #12350]
21809         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
21810         bit from old_res_options.
21811         (gaih_inet): Likewise.
21813         [BZ #11099]
21814         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
21815         as signed.
21817         * resolv/res_init.c (res_setoptions): Make the code more compact.
21819         [BZ #11558]
21820         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
21821         set RES_USEVC.
21823         [BZ #11634]
21824         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
21826         * malloc/malloc.h: Mark malloc hook variables as deprecated.
21828         [BZ #11781]
21829         * malloc/malloc.h: Declare malloc hook variables as volatile.
21831         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
21832         in last patch.
21834         [BZ #11799]
21835         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
21836         raise in the comment.
21837         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
21838         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
21839         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
21841 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
21843         [BZ #12811]
21844         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
21845         grow the buffers more if it already has to be sufficient.
21846         (build_wcs_upper_buffer): Likewise.
21847         * posix/regexec.c (check_matching): Likewise.
21848         (clean_state_log_if_needed): Likewise.
21849         (extend_buffers): Don't enlarge buffers beyond size of the input
21850         buffer.
21851         Patches mostly by Emil Wojak <emil@wojak.eu>.
21852         * posix/bug-regex32.c: New file.
21853         * posix/Makefile (tests): Add bug-regex32.
21855         * locale/findlocale.c (_nl_find_locale): Return right away if
21856         _nl_explode_name failed.
21857         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
21859         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
21861         * debug/xtrace.sh: Unify messages.
21862         * malloc/memusage.sh: Likewise.
21864         [BZ #12813]
21865         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
21866         time symbol from vDSO.  Substitute with vsyscall if not available.
21867         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
21868         __vdso_time.
21870         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
21871         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
21872         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
21873         Add sendmmsg and internal_sendmmsg.
21874         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
21875         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
21876         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
21878         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
21879         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
21880         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
21882 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
21884         [BZ #12813]
21885         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
21886         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
21887         available.
21888         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
21889         __vdso_getcpu.
21891         [BZ #12814]
21892         * iconvdata/Makefile (tests): Add bug-iconv9.
21893         * iconvdata/bug-iconv9.c: New file.
21895 2011-05-27  Andreas Schwab  <schwab@redhat.com>
21897         [BZ #12814]
21898         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
21900 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
21902         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
21903         (struct user_regs_struct): Change intcs field back to cs.
21905 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
21907         * po/ja.po: Update from translation team.
21909 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
21911         [BZ #12795]
21912         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
21913         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
21915 2011-05-20  Andreas Schwab  <schwab@redhat.com>
21917         * stdlib/longlong.h: Update from GCC.
21919 2011-05-23  Andreas Schwab  <schwab@redhat.com>
21921         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
21922         parameter name.
21923         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
21924         Add parameter name.
21925         (__sysconf): Pass it down.
21927 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
21929         [BZ #12671]
21930         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
21931         some situations.
21932         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
21933         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
21934         add in in __libc_use_alloca calls.  Adjust callers.
21935         (glob): Use malloc in some situations.
21937         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
21938         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
21939         pltexit.
21941 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
21943         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
21944         and CLOCK_BOOTTIME_ALARM.
21946         [BZ #12782]
21947         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
21948         is returned.
21950         * string/_strerror.c (__strerror_r): Print negative errors as signed
21951         numbers.
21953         [BZ #12777]
21954         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
21955         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
21956         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
21958         * configure.in: Fix typo in redirection and correct removal of test
21959         files in two cases.
21961         [BZ #12788]
21962         * locale/setlocale.c (new_composite_name): Fix test to check for
21963         identical name of all categories.
21965         [BZ #12792]
21966         * libio/filedoalloc.c (local_isatty): New function.
21967         (_IO_file_doallocate): Use local_isatty.
21968         * stdio-common/perror.c (perror): In case a new stream is used
21969         forward the stream error.
21970         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
21971         error flag.
21973 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
21975         [BZ #11869]
21976         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
21977         alloca.
21978         * include/alloca.h (extend_alloca_account): Define.
21980         [BZ #11857]
21981         * posix/regex.h: Fix comments with documentation of user-accessible
21982         fields after compilation and describe correct free'ing of pattern
21983         after re_compile_pattern.
21984         Patch by Reuben Thomas <rrt@sc3d.org>.
21986 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
21988         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
21989         and -mno-altivec to prevent the compiler from using Altivec and/or
21990         VSX instructions when the corresponding registers are not available.
21992 2011-05-19  Andreas Schwab  <schwab@redhat.com>
21994         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
21996 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
21998         * libio/freopen.c (freopen): Use __dup2, not dup2.
21999         * libio/freopen64.c (freopen64): Likewise.
22001 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22003         [BZ #12775]
22004         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
22005         * math/Makefile (tests): Add test-powl.
22006         (CFLAGS-test-powl.c): Define.
22007         * math/test-powl.c: New file.
22009 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
22011         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
22013 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
22015         [BZ #11837]
22016         * iconvdata/gb18030.c: Update to GB18020-2005.
22018 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
22020         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
22021         RE_SYNTAX_POSIX_AWK): Update to match recent development.
22022         Patch by Aharon Robbins <arnold@skeeve.com>.
22024         [BZ #11892]
22025         * stdlib/putenv.c (putenv): Don't always create copy of the variable
22026         on the stack.
22028         [BZ #11895]
22029         * misc/pselect.c (__pselect): Handle timeout value errors hidden
22030         through underflows.
22032         [BZ #12766]
22033         * misc/error.c (error_at_line): Ensure file_name and old_file_name
22034         point to strings before performing equality test for error_one_per_line
22035         mode.
22037         [BZ #11697]
22038         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
22040         [BZ #11820]
22041         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
22042         (struct user_fpregs_struct): Avoid __uint*_t types.
22044         [BZ #6420]
22045         * malloc/mtrace.c (tr_where): Add additional parameter to point to
22046         symbol info.  Use it instead of calling _dl_addr locally.
22047         (lock_and_info): New function.
22048         (tr_freehook): Call lock_and_info and pass symbol info as additional
22049         parameter to tr_where.
22050         (tr_mallochook): Likewise.
22051         (tr_reallochook): Likewise.
22052         (tr_memalignhook): Likewise.
22054         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
22055         used and couldn't be at all thread-safe.
22057 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
22059         * libio/freopen.c (freopen): Don't close old file descriptor
22060         before the new one is opened.  Instead dup the new file descriptor
22061         to the old one after the new stream is created.
22062         * libio/freopen64.c (freopen64): Likewise.
22063         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
22064         * libio/fileops.c (_IO_new_file_close_it): Handle new
22065         _IO_FLAGS2_NOCLOSE flag.
22066         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
22067         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
22068         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
22069         _IO_FLAGS2_NOCLOSE flag.
22070         * include/unistd.h: Add hidden_proto for dup3.
22071         Define __have_dup3.
22072         * io/dup3.c: Define hidden symbol.
22073         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
22075         [BZ #7101]
22076         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
22077         when an incomplete long option is used.
22078         * posix/tst-getopt_long1.c: New file.
22079         * posix/Makefile (tests): Add tst-getopt_long1.
22081         [BZ #10138]
22082         * scripts/config.guess: Update from autoconf-2.68.
22083         * scripts/config.sub: Likewise.
22085         [BZ #10157]
22086         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
22087         tests into ...
22088         (has_cpuclock): ...this.  New function.
22089         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
22090         macro here based on has_cpuclock code.
22092         [BZ #10149]
22093         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
22094         First byte (not low byte) is now always NUL.
22095         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
22097         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
22098         Use non-cancelable interfaces.
22100         [BZ #9809]
22101         * locale/iso-639.def: Add entry for Sorani.
22103         [BZ #11901]
22104         * include/stdlib.h: Move include protection to the right place.
22105         Define abort_msg_s.  Declare __abort_msg with it.
22106         * stdlib/abort.c (__abort_msg): Adjust type.
22107         * assert/assert.c (__assert_fail_base): New function.  Majority
22108         of code from __assert_fail.  Allocate memory for __abort_msg with
22109         mmap.
22110         (__assert_fail): Now call __assert_fail_base.
22111         * assert/assert-perr.c: Remove bulk of implementation.  Use
22112         __assert_fail_base.
22113         * include/assert.hL Declare __assert_fail_base.
22114         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
22115         mmap.
22116         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
22118 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
22120         [BZ #11952]
22121         [BZ #12453]
22122         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
22123         until all modules are registered in the DTV.
22124         * elf/Makefile: Add rules to build and run tst-tls19.
22125         * elf/tst-tls19.c: New file.
22126         * elf/tst-tls19mod1.c: New file.
22127         * elf/tst-tls19mod2.c: New file.
22128         * elf/tst-tls19mod3.c: New file.
22129         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
22131         [BZ #12083]
22132         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
22133         correctly.
22135         [BZ #12601]
22136         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
22137         two-byte sequence errors.
22138         * iconvdata/Makefile (tests): Add bug-iconv8.
22139         * iconvdata/bug-iconv8.c: New file.
22141         [BZ #12626]
22142         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
22143         buf2 definition.
22145         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
22147         [BZ #12432]
22148         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
22149         (dummy_getcfa): New function.
22150         (init): Get _Unwind_GetCFA address, use dummy if not found.
22151         (backtrace_helper): In recursion check, also check whether CFA changes.
22152         (__backtrace): Completely initialize arg.
22154         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
22155         storing incomplete byte sequence in state object.  Avoid testing for
22156         guaranteed too small input if we know there is enough data available.
22158 2011-05-11  Andreas Schwab  <schwab@redhat.com>
22160         * Makeconfig (+link-pie): Indent.
22161         * Rules (binaries-pie): Define if $(have-fpie) and
22162         $(build-shared).
22163         (binaries-shared): Also filter out $(binaries-pie).
22164         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
22165         * nscd/Makefile (others-pie): Add nscd.
22166         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
22167         ($(objpfx)nscd): Remove command override.
22168         * login/Makefile (others-pie): Add pt_chown.
22169         ($(objpfx)pt_chown): Remove command override.
22170         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
22171         remove command overrides.
22173 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
22175         * libio/tst_putwc.c: Fix error messages.
22177         [BZ #12724]
22178         * libio/fileops.c (_IO_new_file_close_it): Always flush when
22179         currently writing and seek to current position when not.
22180         * libio/Makefile (tests): Add bug-fclose1.
22181         * libio/bug-fclose1.c: New file.
22183 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
22185         [BZ #12511]
22186         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
22187         don't set DF_1_NODELETE here.
22188         (do_lookup_x): When entering new entry test for copy relocation
22189         and if necessary set DF_1_NODELETE flag.
22190         * elf/tst-unique4.cc: New file.
22191         * elf/tst-unique4.h: New file.
22192         * elf/tst-unique4lib.cc: New file.
22193         * elf/Makefile: Add rules to build and run tst-unique4.
22194         Patch by Piotr Bury <pbury@goahead.com>.
22196 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
22198         [BZ #12052]
22199         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
22201         [BZ #12625]
22202         * misc/mntent_r.c (addmntent): Flush the stream after the output
22204         [BZ #12393]
22205         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
22206         (is_trusted_path_normalize): Skip initial colon.  Append slash
22207         to empty buffer.  Duplicate is_trusted_path code but allow
22208         constructed patch to be prefix.
22209         (is_dst): Allow $ORIGIN followed by /.
22210         (_dl_dst_substitute): Correct clearing of check_for_trusted.
22211         Correct testing of result of is_trusted_path_normalize
22212         (decompose_rpath): Fix warning.
22214 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
22216         [BZ #11257]
22217         * grp/initgroups.c (internal_getgrouplist): When we found the service
22218         list through the initgroups entry in nsswitch.conf do not always
22219         continue on a successful lookup.  Don't always use the
22220         __nss_group_database value if it is set.
22221         * nss/nsswitch.conf (initgroups): Change action for successful db
22222         lookup to continue for compatibility.
22224 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
22226         [BZ #11532]
22227         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
22228         and CP774 modules.
22229         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
22230         and CP774 modules.
22231         * iconvdata/tst-tables.sh: Likewise.
22232         * iconvdata/cp770.c: New file.
22233         * iconvdata/cp771.c: New file.
22234         * iconvdata/cp772.c: New file.
22235         * iconvdata/cp773.c: New file.
22236         * iconvdata/cp774.c: New file.
22237         * iconvdata/testdata/CP770: New file.
22238         * iconvdata/testdata/CP770..UTF8: New file.
22239         * iconvdata/testdata/CP771: New file.
22240         * iconvdata/testdata/CP771..UTF8: New file.
22241         * iconvdata/testdata/CP772: New file.
22242         * iconvdata/testdata/CP772..UTF8: New file.
22243         * iconvdata/testdata/CP773: New file.
22244         * iconvdata/testdata/CP773..UTF8: New file.
22245         * iconvdata/testdata/CP774: New file.
22246         * iconvdata/testdata/CP774..UTF8: New file.
22248         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
22249         END CHARMAP line.
22250         * iconvdata/gen-8bit-gap.sh: Likewise.
22251         * iconvdata/gen-8bit.sh: Likewise.
22253         * locale/iso-639.def: Add ary entry.
22255         [BZ #11258]
22256         * locale/C-translit.h.in: Add U20A1 transliteration.
22258         [BZ #12178]
22259         * locale/iso-639.def: Add wae entry.
22260         Patch by Kevin Bortis <bortis@translate-wae.ch>.
22262         [BZ #12545]
22263         * locale/programs/localedef.c (construct_output_path): Use ssize_t
22264         for n.
22266         [BZ #12711]
22267         * locale/C-translit.h.in: Add entry for U20B9.
22268         Patch by pravin.d.s@gmail.com.
22270 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
22272         [BZ #12713]
22273         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
22274         ENAMETOOLONG use generic getcwd.
22275         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
22276         in rtld.  Use *stat64.
22277         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
22278         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
22279         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
22280         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
22281         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
22282         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
22283         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
22284         __fstatat64 macros.
22285         * include/dirent.h: Add libc_hidden_proto for rewinddir.
22286         * dirent/rewinddir.c: Add libc_hidden_def.
22287         * sysdeps/mach/hurd/rewinddir.c: Likewise.
22288         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
22290         * include/dirent.h (__alloc_dir): Add flags parameter.
22291         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
22292         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
22293         __alloc_dir.
22294         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
22295         from fdopendir if O_CLOEXEC is already set.
22297 2011-03-15  Alan Modra  <amodra@gmail.com>
22299         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
22300         l_tls_firstbyte_offset non-zero.  Save padding offset in
22301         l_tls_firstbyte_offset for later use.
22302         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
22303         freeing static tls block.
22305 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
22307         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
22308         where #ifdef was intended.  The intent is to prevent ARG_MAX from
22309         being defined by the kernel headers.
22311 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
22313         [BZ #12734]
22314         * resolv/resolv.h: Define RES_NOTLDQUERY.
22315         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
22316         no-tld-query and set RES_NOTLDQUERY.
22317         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
22318         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
22319         modern BIND to search name as TLD unless forbidden.
22321 2011-05-07  Petr Baudis  <pasky@suse.cz>
22322             Ulrich Drepper  <drepper@gmail.com>
22324         [BZ #12393]
22325         * elf/dl-load.c (fillin_rpath): Move trusted path check...
22326         (is_trusted_path): ...to here.
22327         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
22328         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
22329         using is_trusted_path_normalize() in setuid scripts.
22331 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
22333         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
22334         __BEGIN/__END_DECLS.
22336 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
22338         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
22339         NSS_STATUS_NOTFOUND if no record was found.
22341 2011-05-05  Andreas Schwab  <schwab@redhat.com>
22343         * sunrpc/Makefile (headers): Add rpc/netdb.h.
22344         (headers-not-in-tirpc): Remove rpc/netdb.h
22345         * resolv/netdb.h: Revert last change.
22347 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
22349         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
22350         circular dependency between libgcc.a and libc.a.
22352 2011-05-05  Andreas Schwab  <schwab@redhat.com>
22354         * resolv/netdb.h: Don't include <rpc/netdb.h>.
22355         * nis/Makefile: Don't install rpcsvc/*.
22356         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
22357         instead of <rpc/types.h>.
22358         (MAXHOSTNAMELEN): Define.
22360 2011-05-03  Andreas Schwab  <schwab@redhat.com>
22362         * elf/ldconfig.c (add_dir): Don't crash on empty path.
22364 2011-04-28  Maciej Babinski  <mbabinski@google.com>
22366         [BZ #12714]
22367         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
22368         gethostbyname4_r when IPv6 results are possible.
22370 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
22372         [BZ #12723]
22373         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
22374         _PC_PIPE_BUF handling.
22376 2011-04-30  Bruno Haible  <bruno@clisp.org>
22378         [BZ #12717]
22379         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
22380         * resolv/netdb.h (getnameinfo): Change type of flags parameter
22381         to 'int'.
22382         * inet/getnameinfo.c (getnameinfo): Likewise.
22384 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
22386         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
22387         to groups setting in database lookup.
22388         * nss/nsswitch.conf: Add initgroups entry.
22390 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
22392         [BZ #12685]
22393         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
22394         mode string.
22395         Patch by Eric Blake <eblake@redhat.com>.
22397 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
22399         * sunrpc/Makefile (need-export-routines): Add svc_run.
22400         (routines): Remove svc_run.
22401         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
22402         * sunrpc/clnt_perr.c (clnt_perrno): Export.
22403         * sunrpc/svc_run.c (svc_run): Likewise.
22404         * sunrpc/svc_udp.c (svcudp_create): Likewise.
22406 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
22408         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
22409         problem in reallocation in last patch.
22411 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
22413         * sunrpc/Makefile: Move inclusion of Rules.
22415 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
22417         * nss/nss_files/files-initgroups.c: New file.
22418         * nss/Makefile (libnss_files-routines): Add files-initgroups.
22419         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
22420         _nss_files_initgroups_dyn.
22422 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
22424         * elf/elf.h (R_ARM_IRELATIVE): Define.
22426 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
22428         * po/ru.po: Update from translation team.
22430 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
22432         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
22433         dependencies.
22435 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
22437         [BZ #12653]
22438         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
22439         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
22440         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
22441         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
22442         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
22444 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
22446         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
22447         differing bytes.
22448         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
22449         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
22450         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22452 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
22454         [BZ #12420]
22455         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
22456         storing it.
22457         * stdlib/bug-getcontext.c: New file.
22458         * stdlib/Makefile: Add rules to build and run bug-getcontext.
22460 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22462         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
22463         instructions into .machine "z9-109".
22464         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
22465         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
22467 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22469         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
22470         between environment variables and auxiliary vector.
22472 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
22474         * Makefile: Add rules to build linkobj/libc.so.
22475         * include/libc-symbols.h: Define libc_hidden_nolink.
22476         * include/rpc/auth.h: Mark functions which are to be hidden.
22477         * include/rpc/auth_des.h: Likewise.
22478         * include/rpc/auth_unix.h: Likewise.
22479         * include/rpc/clnt.h: Likewise.
22480         * include/rpc/des_crypt.h: Likewise.
22481         * include/rpc/key_prot.h: Likewise.
22482         * include/rpc/pmap_clnt.h: Likewise.
22483         * include/rpc/pmap_prot.h: Likewise.
22484         * include/rpc/pmap_rmt.h: Likewise.
22485         * include/rpc/rpc_msg.h: Likewise.
22486         * include/rpc/svc.h: Likewise.
22487         * include/rpc/svc_auth.h: Likewise.
22488         * include/rpc/xdr.h: Likewise.
22489         * nis/Makefile: Link all DSOs against linkobj/libc.so.
22490         * nss/Makefile: Likewise.
22491         * sunrpc/Makefile: Don't install headers.  Build library with normal
22492         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
22493         * sunrpc/auth_des.c: Hide exported symbols by default, export some
22494         for the compat linking library.  Remove use of INTDEF/INTUSE.
22495         * sunrpc/auth_none.c: Likewise.
22496         * sunrpc/auth_unix.c: Likewise.
22497         * sunrpc/authdes_prot.c: Likewise.
22498         * sunrpc/authuxprot.c: Likewise.
22499         * sunrpc/clnt_gen.c: Likewise.
22500         * sunrpc/clnt_perr.c: Likewise.
22501         * sunrpc/clnt_raw.c: Likewise.
22502         * sunrpc/clnt_simp.c: Likewise.
22503         * sunrpc/clnt_tcp.c: Likewise.
22504         * sunrpc/clnt_udp.c: Likewise.
22505         * sunrpc/clnt_unix.c: Likewise.
22506         * sunrpc/des_crypt.c: Likewise.
22507         * sunrpc/des_soft.c: Likewise.
22508         * sunrpc/get_myaddr.c: Likewise.
22509         * sunrpc/key_call.c: Likewise.
22510         * sunrpc/key_prot.c: Likewise.
22511         * sunrpc/netname.c: Likewise.
22512         * sunrpc/pm_getmaps.c: Likewise.
22513         * sunrpc/pm_getport.c: Likewise.
22514         * sunrpc/pmap_clnt.c: Likewise.
22515         * sunrpc/pmap_prot.c: Likewise.
22516         * sunrpc/pmap_prot2.c: Likewise.
22517         * sunrpc/pmap_rmt.c: Likewise.
22518         * sunrpc/publickey.c: Likewise.
22519         * sunrpc/rpc_cmsg.c: Likewise.
22520         * sunrpc/rpc_common.c: Likewise.
22521         * sunrpc/rpc_dtable.c: Likewise.
22522         * sunrpc/rpc_prot.c: Likewise.
22523         * sunrpc/rpc_thread.c: Likewise.
22524         * sunrpc/rtime.c: Likewise.
22525         * sunrpc/svc.c: Likewise.
22526         * sunrpc/svc_auth.c: Likewise.
22527         * sunrpc/svc_authux.c: Likewise.
22528         * sunrpc/svc_raw.c: Likewise.
22529         * sunrpc/svc_run.c: Likewise.
22530         * sunrpc/svc_simple.c: Likewise.
22531         * sunrpc/svc_tcp.c: Likewise.
22532         * sunrpc/svc_udp.c: Likewise.
22533         * sunrpc/svc_unix.c: Likewise.
22534         * sunrpc/svcauth_des.c: Likewise.
22535         * sunrpc/xcrypt.c: Likewise.
22536         * sunrpc/xdr.c: Likewise.
22537         * sunrpc/xdr_array.c: Likewise.
22538         * sunrpc/xdr_float.c: Likewise.
22539         * sunrpc/xdr_intXX_t.c: Likewise.
22540         * sunrpc/xdr_mem.c: Likewise.
22541         * sunrpc/xdr_rec.c: Likewise.
22542         * sunrpc/xdr_ref.c: Likewise.
22543         * sunrpc/xdr_sizeof.c: Likewise.
22544         * sunrpc/xdr_stdio.c: Likewise.
22546 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
22548         [BZ #12650]
22549         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
22550         * sysdeps/ia64/dl-tls.h: Likewise.
22551         * sysdeps/powerpc/dl-tls.h: Likewise.
22552         * sysdeps/s390/dl-tls.h: Likewise.
22553         * sysdeps/sh/dl-tls.h: Likewise.
22554         * sysdeps/sparc/dl-tls.h: Likewise.
22555         * sysdeps/x86_64/dl-tls.h: Likewise.
22556         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
22558 2011-03-14  Andreas Schwab  <schwab@redhat.com>
22560         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
22561         rpath element also skip the following colon.
22562         (expand_dynamic_string_token): Add is_path parameter and pass
22563         down to DL_DST_REQUIRED and _dl_dst_substitute.
22564         (decompose_rpath): Call expand_dynamic_string_token with
22565         non-zero is_path.  Ignore empty rpaths.
22566         (_dl_map_object_from_fd): Call expand_dynamic_string_token
22567         with zero is_path.
22569 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
22571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
22572         Make cancelable.
22574 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
22576         [BZ #12655]
22577         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
22578         Patch by Filipe David Manana <fdmanana@apache.org>.
22580 2011-04-07  Andreas Schwab  <schwab@redhat.com>
22582         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
22583         Maintain aligned stack.
22584         (CHECK_RSP): Remove unused macro.
22586 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
22588         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
22589         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
22591 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
22593         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
22595         * include/features.h: Mention __USE_XOPEN2K8 in comment.
22597 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
22599         [BZ #12518]
22600         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
22601         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
22602         * sysdeps/x86_64/memmove.c: New file.
22603         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
22604         (memcpy): Renamed to ...
22605         (__new_memcpy): This.
22606         (memcpy): Provide GLIBC_2_14 memcpy.
22607         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
22608         (memcpy): Provide GLIBC_2_2_5 memcpy.
22610 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
22612         [BZ #12631]
22613         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
22615 2011-03-30  Andreas Schwab  <schwab@redhat.com>
22617         * misc/syncfs.c: New file.
22618         * misc/Makefile (routines): Add syncfs.
22619         * posix/unistd.h: Declare syncfs.
22620         * sysdeps/unix/syscalls.list: Add syncfs.
22622 2011-04-01  Andreas Schwab  <schwab@redhat.com>
22624         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
22625         open_by_handle_at.
22626         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22627         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
22628         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22629         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22630         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22631         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
22632         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22634 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
22636         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
22637         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
22638         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
22639         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22640         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22641         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22642         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22644         * io/Makefile: Compile fallocate.c, fallocate64.c, and
22645         sync_file_range.c with -fexceptions.
22646         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
22647         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
22648         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
22649         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
22650         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
22651         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
22652         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
22653         sync_file_range as cancellation point
22654         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
22655         now a wrapper around __call_sync_file_range with cancellation handling.
22656         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
22657         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
22658         function name to __call_sync_file_range.
22659         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
22660         Add call_sync_file_range.
22662 2011-04-01  Andreas Schwab  <schwab@redhat.com>
22664         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22665         bits/timex.h.
22667 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
22669         * iconv/iconv.h: Fix typo in comment.
22670         * io/fcntl.h: Likewise.
22671         * libio/stdio.h: Likewise.
22672         * posix/spawn.h: Likewise.
22673         * posix/unistd.h: Likewise.
22674         * stdlib/stdlib.h: Likewise.
22675         * time/time.h: Likewise.
22676         * wcsmbs/wchar.h: Likewise.
22678         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
22679         open_by_handle): Add.
22680         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
22681         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
22682         Augment a few comments.
22683         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
22684         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22685         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22686         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22687         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22688         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
22689         open_by_handle.
22691         * io/fcntl.h (AT_EMPTY_PATH): Define.
22693 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
22695         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
22696         * sysdeps/unix/sysv/linux/bits/time.h: New file.
22697         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
22698         to...
22699         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
22700         * Versions.def: Add GLIBC_2.14.
22701         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
22702         Export.
22704 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
22706         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
22707         round counter.
22708         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
22710 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
22712         [BZ #12597]
22713         * string/test-strncmp.c (do_page_test): New function.
22714         (check2): Likewise.
22715         (test_main): Call check2.
22716         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
22718 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
22720         [BZ #12587]
22721         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
22722         Handle cache information in CPU leaf 4.
22723         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
22725 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
22727         [BZ #12583]
22728         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
22729         character representation.
22730         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
22732 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
22734         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
22735         END(__isnan) to END(__isnanf) to match function entry point/label
22736         EALIGN(__isnanf,...).
22738 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
22740         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
22742 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
22744         [BZ #12510]
22745         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
22746         copy from the symbol referenced in the relocation to initialize the
22747         used variable.
22748         Patch by Piotr Bury <pbury@goahead.com>.
22749         * elf/Makefile: Add rules to build and tst-unique3.
22750         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
22751         * elf/tst-unique3.cc: New file.
22752         * elf/tst-unique3.h: New file.
22753         * elf/tst-unique3lib.cc: New file.
22754         * elf/tst-unique3lib2.cc: New file.
22756         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
22758 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
22760         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
22761         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
22762         to _start.
22764 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
22766         * elf/dl-load.c (_dl_map_object): If we are looking for the first
22767         to-be-loaded object along a path to loader is ld.so.
22769 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
22770             Ulrich Drepper  <drepper@gmail.com>
22772         * sysdeps/x86_64/memset.S: After aligning destination, code
22773         branches to different locations depending on the value of
22774         misalignment, when multiarch is enabled. Fix this.
22776 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
22778         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
22779         Set _x86_64_preferred_memory_instruction for AMD processsors.
22780         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22781         Set bit_Prefer_SSE_for_memop for AMD processors.
22783 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
22785         * libio/fmemopen.c (fmemopen): Optimize a bit.
22787 2011-03-03  Andreas Schwab  <schwab@redhat.com>
22789         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
22791 2011-03-03  Roland McGrath  <roland@redhat.com>
22793         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
22795 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
22797         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
22798         __bzero_ultra1 instead of __memset_ultra1.
22800 2011-02-23  Andreas Schwab  <schwab@redhat.com>
22801             Ulrich Drepper  <drepper@gmail.com>
22803         [BZ #12509]
22804         * include/link.h (struct link_map): Add l_orig_initfini.
22805         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
22806         returning unsuccessfully.
22807         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
22808         close of a file loaded at startup, restore the original l_initfini
22809         list.
22810         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
22811         list, store the pointer.
22812         * elf/Makefile ($(objpfx)noload-mem): New rule.
22813         (noload-ENV): Define.
22814         (tests): Add $(objpfx)noload-mem.
22815         * elf/noload.c: Include <memcheck.h>.
22816         (main): Call mtrace.  Close all opened handles.
22818 2011-02-17  Andreas Schwab  <schwab@redhat.com>
22820         [BZ #12454]
22821         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
22822         dependencies are missing.
22824 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22826         Fix __if_freereq crash: Unlike the generic version which uses free,
22827         Hurd needs munmap.
22828         * sysdeps/mach/hurd/ifreq.h: New file.
22830 2011-01-27  Petr Baudis  <pasky@suse.cz>
22831             Ulrich Drepper  <drepper@gmail.com>
22833         [BZ 12445]#
22834         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
22835         to extend_alloca().
22836         * stdio-common/bug23.c: New file.
22837         * stdio-common/Makefile (tests): Add bug23.
22839 2010-09-28  Andreas Schwab  <schwab@redhat.com>
22840             Ulrich Drepper  <drepper@gmail.com>
22842         [BZ #12489]
22843         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
22844         before performing relro protection.  At old place add assertion
22845         to make sure nothing changed.
22847 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
22848             Glauber de Oliveira Costa  <glommer@gmail.com>
22850         * elf/elf.h: Add new ARM TLS relocs.
22852 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
22854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
22855         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
22856         cast from r3.
22857         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
22858         'tests' variable.
22859         * sysdeps/wordsize-64/tst-writev.c: New file.
22861 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
22863         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
22864         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
22865         insns in _dl_start to prevent a TOC reference before relocs are
22866         resolved.
22868 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
22870         [BZ #12469]
22871         * Makeconfig: Remove RANLIB definition.
22872         * Makerules: Don't use RANLIB.
22873         * aclocal.m4: Remove ranlib test.
22874         * configure.in: No need to check for ranlib.
22875         * elf/rtld-Rules: Don't use RANLIB.
22877 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22879         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
22880         protection macro.
22881         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
22882         inclusion protection macro.
22884         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
22885         SIGRTMIN and SIGRTMAX and print information in that case only when
22886         SIGRTMIN is defined.
22888 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
22890         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
22891         arginfo fn returning -1.
22893         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
22894         and thousands string is zero terminated.
22896 2011-02-03  Andreas Schwab  <schwab@redhat.com>
22898         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
22899         sysdeps/unix/sysv/linux/bits/socket.h.
22901 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22903         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
22904         (__CPU_COUNT): Remove old macros.
22905         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
22906         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
22907         (__CPU_ALLOC, __CPU_FREE): Add macros.
22908         (__sched_cpualloc, __sched_cpufree): Add declarations.
22910 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
22912         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
22913         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
22914         * nscd/aicache.c (addhstaiX): Return timeout of added value.
22915         (readdhstai): Return value of addhstaiX call.
22916         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
22917         (addgrbyX): Return value returned by cache_addgr.
22918         (readdgrbyname): Return value returned by addgrbyX.
22919         (readdgrbygid): Likewise.
22920         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
22921         (addpwbyX): Return value returned by cache_addpw.
22922         (readdpwbyname): Return value returned by addhstbyX.
22923         (readdpwbyuid): Likewise.
22924         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
22925         (addservbyX): Return value returned by cache_addserv.
22926         (readdservbyname): Return value returned by addservbyX:
22927         (readdservbyport): Likewise.
22928         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
22929         (addhstbyX): Return value returned by cache_addhst.
22930         (readdhstbyname): Return value returned by addhstbyX.
22931         (readdhstbyaddr): Likewise.
22932         (readdhstbynamev6): Likewise.
22933         (readdhstbyaddrv6): Likewise.
22934         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
22935         (readdinitgroups): Return value returned by addinitgroupsX.
22936         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
22937         (prune_cache): Keep track of timeout value of re-added entries.
22938         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
22939         * nscd/nscd.h: Adjust prototypes of readd* functions.
22941 2011-02-04  Roland McGrath  <roland@redhat.com>
22943         * nis/nis_server.c (nis_servstate): Use the right name for 0.
22944         (nis_stats): Likewise.
22945         * nis/nis_modify.c (nis_modify): Likewise.
22946         * nis/nis_remove.c (nis_remove): Likewise.
22947         * nis/nis_add.c (nis_add): Likewise.
22949         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
22951         * posix/fnmatch_loop.c: Add some consts.
22953         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
22955 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
22957         [BZ #12460]
22958         * config.make.in (config-cflags-novzeroupper): Define.
22959         * configure.in: Substitute libc_cv_cc_novzeroupper.
22960         * elf/Makefile (AVX-CFLAGS): Define.
22961         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
22962         (CFLAGS-tst-auditmod4a.c): Likewise.
22963         (CFLAGS-tst-auditmod4b.c): Likewise.
22964         (CFLAGS-tst-auditmod6b.c): Likewise.
22965         (CFLAGS-tst-auditmod6c.c): Likewise.
22966         (CFLAGS-tst-auditmod7b.c): Likewise.
22967         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
22969 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
22971         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
22972         function to the callback.
22973         Patch partly by Jiri Olsa <jolsa@redhat.com>.
22975 2011-02-02  Andreas Schwab  <schwab@redhat.com>
22977         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
22978         of errno.
22980 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
22982         [BZ #11724]
22983         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
22984         of constructors.
22985         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
22986         of destructors.
22987         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
22989         [BZ #11724]
22990         * elf/Makefile: Add rules to build and run new test.
22991         * elf/tst-initorder.c: New file.
22992         * elf/tst-initorder.exp: New file.
22993         * elf/tst-initordera1.c: New file.
22994         * elf/tst-initordera2.c: New file.
22995         * elf/tst-initordera3.c: New file.
22996         * elf/tst-initordera4.c: New file.
22997         * elf/tst-initorderb1.c: New file.
22998         * elf/tst-initorderb2.c: New file.
22999         * elf/tst-order-a1.c: New file.
23000         * elf/tst-order-a2.c: New file.
23001         * elf/tst-order-a3.c: New file.
23002         * elf/tst-order-a4.c: New file.
23003         * elf/tst-order-b1.c: New file.
23004         * elf/tst-order-b2.c: New file.
23005         * elf/tst-order-main.c: New file.
23006         New test case by George Gensure <werkt0@gmail.com>.
23008 2010-10-01  Andreas Schwab  <schwab@redhat.com>
23010         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
23011         decoding ACE if AI_CANONIDN.
23013 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
23015         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
23017 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
23019         * version.h (RELEASE): Bump for 2.13 release.
23020         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
23022         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
23024         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
23025         MADV_NOHUGEPAGE.
23026         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
23027         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
23028         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
23029         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
23030         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
23031         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
23033         * posix/getconf.c: Update copyright year.
23034         * catgets/gencat.c: Likewise.
23035         * csu/version.c: Likewise.
23036         * debug/catchsegv.sh: Likewise.
23037         * debug/xtrace.sh: Likewise.
23038         * elf/ldconfig.c: Likewise.
23039         * elf/ldd.bash.in: Likewise.
23040         * elf/sprof.c (print_version): Likewise.
23041         * iconv/iconv_prog.c: Likewise.
23042         * iconv/iconvconfig.c: Likewise.
23043         * locale/programs/locale.c: Likewise.
23044         * locale/programs/localedef.c: Likewise.
23045         * malloc/memusage.sh: Likewise.
23046         * malloc/mtrace.pl: Likewise.
23047         * nscd/nscd.c (print_version): Likewise.
23048         * nss/getent.c: Likewise.
23050         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
23051         PF_CAIF, and PF_ALG.
23052         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
23054 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
23056         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
23057         (modules-names): Use them.
23058         (ifunc-test-modules, ifunc-pie-tests): Define.
23059         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
23060         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
23061         (test-extras): Likewise.
23062         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
23063         $(compile-command.c).
23064         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
23065         (all-built-dso): Define.
23066         (check-textrel.out, check-execstack.out): Depend on it.
23068         * configure.in: Don't override --enable-multi-arch.
23070 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
23072         [BZ #6812]
23073         * nscd/hstcache.c (tryagain): Define.
23074         (cache_addhst): Return tryagain not notfound for temporary errors.
23075         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
23076         failed.
23078 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
23080         [BZ #10563]
23081         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
23082         to make the syscall.
23083         * sysdeps/unix/sysv/linux/setgroups.c: New file.
23085         [BZ #12378]
23086         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
23087         and fall back to matching as normal character if the string ends before
23088         the matching ']' is found.  This is what POSIX requires.
23089         * posix/testfnm.c: Adjust test result.
23090         * posix/globtest.sh: Adjust test result.  Add new test.
23091         * posix/tst-fnmatch.input: Likewise.
23092         * posix/tst-fnmatch2.c: Add new test.
23094 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
23096         * elf/Makefile (check-execstack): Revert last change.  Depend on
23097         check-execstack.h.
23098         (check-execstack.h): New target.
23099         (generated): Add check-execstack.h.
23100         * elf/check-execstack.c: Include "check-execstack.h".
23101         (main): Revert last change.
23102         (handle_file): Return zero if GNU_STACK is absent and
23103         DEFAULT_STACK_PERMS doesn't include PF_X.
23105 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
23107         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
23108         in child fails because the descriptor is already closed.
23109         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
23110         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
23111         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
23113         [BZ #12397]
23114         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
23115         syscall.
23117         [BZ #10484]
23118         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
23119         temporary buffer used to handle multi lookups locally.
23120         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
23122 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
23124         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
23125         loader is ld.so.
23127 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
23129         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
23130         alignment for SSE2.
23132 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
23134         [BZ #12394]
23135         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
23136         characters.  When rounding increased number of integer digits recompute
23137         number of groups.
23138         * stdio-common/tst-grouping.c: New file.
23139         * stdio-common/Makefile: Add rules to build and run tst-grouping.
23141 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
23143         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
23144         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
23146         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
23147         void.
23148         * bits/select.h: Likewise.
23150 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
23152         * po/ja.po: Update from translation team.
23154 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
23156         [BZ #11155]
23157         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
23158         implementation just like for lxstat, fxstatat, et al.
23160 2010-12-27  Jim Meyering  <meyering@redhat.com>
23162         [BZ #12348]
23163         * posix/regexec.c (build_trtable): Return failure indication upon
23164         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23166 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
23168         [BZ #12201]
23169         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
23170         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
23171         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
23172         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
23174         [BZ #12207]
23175         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
23177         [BZ #12204]
23178         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
23179         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
23181 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
23183         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
23184         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
23185         script has SORT_BY_INIT_PRIORITY.
23186         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
23187         NO_CTORS_DTORS_SECTIONS is defined.
23188         * elf/soinit.c: Likewise.
23189         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
23190         NO_CTORS_DTORS_SECTIONS is defined.
23191         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
23192         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
23193         * sysdeps/sh/init-first.c: Likewise.
23194         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
23196 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
23198         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
23199         always use the slow path.
23201 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
23203         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
23204         similar rule which adds the sysdep directories to the header search in
23205         order to pick up the correct platform stackinfo.h.
23206         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
23207         perform test if it is, otherwise return successfully without testing.
23208         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
23209         DEFAULT_STACK_PERMS define in stackinfo.h.
23210         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
23211         defined in stackinfo.h.
23212         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
23213         DEFAULT_STACK_PERMS defined in stackinfo.h.
23214         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
23215         * sysdeps/ia64/stackinfo.h: Likewise.
23216         * sysdeps/s390/stackinfo.h: Likewise.
23217         * sysdeps/sh/stackinfo.h: Likewise.
23218         * sysdeps/sparc/stackinfo.h: Likewise.
23219         * sysdeps/x86_64/stackinfo.h: Likewise.
23220         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
23221         PF_X for powerpc64.  Retain PF_X for powerpc32.
23223 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
23225         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
23226         accurately.
23227         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
23228         GETDENTS_64BIT_ALIGNED.
23230 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
23232         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
23234 2010-12-10  Andreas Schwab  <schwab@redhat.com>
23236         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
23237         _GNU_SOURCE.
23239         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
23240         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
23241         Remove __restrict.
23242         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
23243         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
23245 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
23247         [BZ #11655]
23248         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
23249         are initialized.
23251 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
23253         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
23255 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
23257         * po/it.po: Update from translation team.
23259 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
23261         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
23262         unused codes.
23264 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
23266         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
23268 2010-11-24  Andreas Schwab  <schwab@redhat.com>
23270         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
23271         specially.
23272         (gaih_getanswer_slice): Likewise.
23274 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
23276         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
23278 2010-05-31  Petr Baudis  <pasky@suse.cz>
23280         [BZ #11149]
23281         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
23282         silently even in the chroot mode.
23284 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
23286         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
23287         last patch a bit.  Pretty printing
23289 2010-05-31  Petr Baudis <pasky@suse.cz>
23291         [BZ #10085]
23292         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
23293         initialization of skip_initgroups_dyn.
23295 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
23297         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
23298         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
23300 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
23302         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
23304 2010-11-11  Andreas Schwab  <schwab@redhat.com>
23306         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
23307         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
23308         (tst-fnmatch-ENV): Set MALLOC_TRACE.
23309         ($(objpfx)tst-fnmatch-mem): New rule.
23310         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
23311         * posix/tst-fnmatch.c (main): Call mtrace.
23313 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
23315         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23316         Support Intel processor model 6 and model 0x2c.
23318 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
23320         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
23321           signed comparison.
23323 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
23325         [BZ #12205]
23326         * string/test-strncasecmp.c (check_result): New function.
23327         (do_one_test): Use it.
23328         (check1): New function.
23329         (test_main): Use it.
23330         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
23331         Support strcasecmp and strncasecmp.
23333 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
23335         [BZ #12194]
23336         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
23337         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23339 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
23341         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
23342         IFUNC support.
23343         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23344         memset-x86-64.
23345         * sysdeps/x86_64/multiarch/bzero.S: New file.
23346         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
23347         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
23348         * sysdeps/x86_64/multiarch/memset.S: New file.
23349         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
23350         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23351         Set bit_Prefer_SSE_for_memop for Intel processors.
23352         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
23353         Define.
23354         (index_Prefer_SSE_for_memop): Define.
23355         (HAS_PREFER_SSE_FOR_MEMOP): Define.
23357 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
23359         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
23360         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
23362 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
23364         [BZ #12191]
23365         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
23366         (__x86_64_raw_data_cache_size_half): Likewise.
23367         (__x86_64_raw_shared_cache_size): Likewise.
23368         (__x86_64_raw_shared_cache_size_half): Likewise.
23370         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
23371         (__x86_64_raw_data_cache_size_half): Likewise.
23372         (__x86_64_raw_shared_cache_size): Likewise.
23373         (__x86_64_raw_shared_cache_size_half): Likewise.
23374         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
23375         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
23376         and __x86_64_raw_shared_cache_size_half.  Round
23377         __x86_64_data_cache_size_half, __x86_64_data_cache_size
23378         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
23379         to multiple of 256 bytes.
23381 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
23383         [BZ #12167]
23384         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
23385         of inacessible symlinks.  Verify result of symlink before returning it.
23386         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
23387         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
23389 2010-10-28  Erich Ritz  <erichritz@gmail.com>
23391         * math/math.h (isinf): Fix typo in comment.
23393 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
23395         * po/da.po: Update from translation team.
23397 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
23399         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
23400         is added to the list.
23402 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23403             Ulrich Drepper  <drepper@gmail.com>
23405         * elf/dl-object.c (_dl_new_object): Don't append the new object to
23406         the global list here.  Move code to...
23407         (_dl_add_to_namespace_list): ...here.  New function.
23408         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
23409         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
23410         * elf/dl-load.c (lose): Don't remove the element from the list.
23411         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
23412         (_dl_map_object): Likewise.
23414 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
23416         [BZ #12159]
23417         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
23418         into all bytes of SSE register.
23419         Patch by Richard Li <richardpku@gmail.com>.
23421 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
23423         [BZ #12140]
23424         * malloc/malloc.c (_int_free): Fill correct number of bytes when
23425         perturbing.
23427 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
23429         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
23430         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
23431         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
23432         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
23433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
23434         submachine.
23435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
23437 2010-10-22  Andreas Schwab  <schwab@redhat.com>
23439         * include/dlfcn.h (__RTLD_SECURE): Define.
23440         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
23441         mode & __RTLD_SECURE instead.
23442         (open_path): Rename preloaded parameter to secure.
23443         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
23444         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
23445         * elf/dl-deps.c (openaux): Likewise.
23446         * elf/rtld.c (struct map_args): Remove is_preloaded.
23447         (map_doit): Don't use it.
23448         (dl_main): Likewise.
23449         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
23450         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
23452 2010-09-09  Andreas Schwab  <schwab@redhat.com>
23454         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
23455         (sysd-rules-targets): Remove duplicates.
23456         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
23457         rtld-%.$o dependency.
23459 2010-10-18  Andreas Schwab  <schwab@redhat.com>
23461         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
23462         _dl_map_object do it.
23464 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
23466         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
23467         fast fma builtins, define the macros in the C99 standard.
23468         (FP_FAST_FMAF): Likewise.
23469         (FP_FAST_FMAL): Likewise.
23470         * sysdeps/x86_64/bits/mathdef.h: Likewise.
23472         * bits/mathdef.h: Update copyright year.
23473         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23475 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
23477         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
23478         builtins, define the macros in the C99 standard.
23479         (FP_FAST_FMAF): Likewise.
23480         (FP_FAST_FMAL): Likewise.
23481         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
23482         multiply/add.
23483         (FP_FAST_FMAF): Likewise.
23485 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
23487         [BZ #3268]
23488         * math/libm-test.inc (fma_test): Some new testcases.
23489         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
23490         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
23491         y and infinite z.  Do multiplication by C already in long double.
23492         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
23493         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
23494         y and infinite z.  Do bitwise or of inexact bit into u.d.
23495         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
23496         * sysdeps/i386/fpu/s_fmaf.S: Removed.
23497         * sysdeps/i386/fpu/s_fma.S: Removed.
23498         * sysdeps/i386/fpu/s_fmal.S: Removed.
23500 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
23502         [BZ #3268]
23503         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
23504         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
23505         computation is not scheduled after fetestexcept.  Fix value
23506         of minimum denormal long double.
23508 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
23510         [BZ #3268]
23511         * math/libm-test.inc (fma_test): Add some more tests.
23512         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
23513         correctly.
23515 2010-10-15  Andreas Schwab  <schwab@redhat.com>
23517         * scripts/data/localplt-s390-linux-gnu.data: New file.
23518         * scripts/data/localplt-s390x-linux-gnu.data: New file.
23520 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
23522         [BZ #3268]
23523         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
23524         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
23525         instead of dbl-64.
23526         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
23527         inlines.
23528         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
23529         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
23530         if one of x and y is very large and the other is subnormal.
23531         * sysdeps/s390/fpu/s_fmaf.c: New file.
23532         * sysdeps/s390/fpu/s_fma.c: New file.
23533         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
23534         * sysdeps/powerpc/fpu/s_fma.S: New file.
23535         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
23536         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
23537         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
23539 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
23541         [BZ #3268]
23542         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
23543         fma tests.
23544         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
23545         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
23546         * sysdeps/i386/i686/multiarch/s_fma.c: Include
23547         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
23548         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
23549         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
23550         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
23552 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
23554         [BZ #12078]
23555         * posix/regcomp.c (parse_branch): One more memory leak plugged.
23556         * posix/bug-regex31.input: Add test case.
23558 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
23560         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
23561         * posix/bug-regex31.input: New file.
23563         [BZ #12078]
23564         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
23565         (parse_sub_exp): Fix last change, use postorder.
23567         * posix/bug-regex31.c: New file.
23568         * posix/Makefile: Add rules to build and run bug-regex31.
23570         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
23572         [BZ #12078]
23573         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
23575         [BZ #12108]
23576         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
23577         to have entries in sys_siglist.
23579         [BZ #12093]
23580         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
23581         be NULL.
23583 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
23585         [BZ #3268]
23586         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
23587         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
23588         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23589         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
23590         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23591         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
23592         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
23593         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
23594         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
23595         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
23596         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
23597         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
23598         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
23599         * math/ftestexcept.c (fetestexcept): Likewise.
23600         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
23601         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
23602         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
23603         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
23604         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
23605         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
23606         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
23608 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
23610         [BZ #12107]
23611         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
23612         newline.
23614 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
23616         * string/bug-strstr1.c: New file.
23617         * string/Makefile: Add rules to build and run bug-strstr1.
23619 2010-10-05  Eric Blake  <eblake@redhat.com>
23621         [BZ #12092]
23622         * string/str-two-way.h (two_way_long_needle): Always clear memory
23623         when skipping input due to the shift table.
23625 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
23627         [BZ #12005]
23628         * malloc/mcheck.c: Handle large requests.
23630         [BZ #12077]
23631         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
23632         for strncmp and strncasecmp.
23633         * string/stratcliff.c: Add tests for strcmp and strncmp.
23634         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
23636 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23638         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
23639         __set_fpscr.
23641 2010-09-30  Andreas Jaeger  <aj@suse.de>
23643         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
23644         (CGROUP_SUPER_MAGIC): Define.
23645         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
23646         Handle btrfs and cgroup file systems.
23647         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
23648         Likewise.
23650 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
23652         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
23653         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
23655 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23657         [BZ #12067]
23658         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
23659         trying to locate the ELF header.
23661 2010-09-27  Andreas Schwab  <schwab@redhat.com>
23663         [BZ #11611]
23664         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
23665         Mask out sign-bit copies when constructing f_fsid.
23667 2010-09-24  Petr Baudis <pasky@suse.cz>
23669         * debug/stack_chk_fail_local.c: Add missing licence exception.
23670         * debug/warning-nop.c: Likewise.
23672 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
23674         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
23675         implementing getdents64 using getdents syscall, set d_type if
23676         __ASSUME_GETDENTS32_D_TYPE.
23678 2010-09-16  Andreas Schwab  <schwab@redhat.com>
23680         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
23681         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
23683 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
23685         [BZ #12037]
23686         * posix/unistd.h: Undo change of feature selection for ftruncate from
23687         2010-01-11.
23689 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
23691         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
23692         detection.
23694 2010-09-20  Andreas Schwab  <schwab@redhat.com>
23696         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
23697         fanotify_mark.
23698         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
23700 2010-09-14  Andreas Schwab  <schwab@redhat.com>
23702         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
23703         variables after CHECK_SP call.
23704         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
23706 2010-09-13  Andreas Schwab  <schwab@redhat.com>
23707             Ulrich Drepper  <drepper@redhat.com>
23709         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
23710         re-relocationg ld.so.
23711         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
23712         _dl_init_paths call.
23713         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
23714         here anymore.
23716 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
23718         * resolv/res_init.c (__res_vinit): Count the default server we added.
23720 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
23721             Ulrich Drepper  <drepper@redhat.com>
23723         [BZ #11968]
23724         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
23725         (____longjmp_chk): Use %ebx for saving value across system call.
23726         Add unwind info.
23728 2010-09-06  Andreas Schwab  <schwab@redhat.com>
23730         * manual/Makefile: Don't mix pattern rules with normal rules.
23732 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
23734         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
23735         operation.
23736         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
23737         * libio/iofopncook.c (_IO_cookie_init): Likewise.
23738         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
23739         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
23740         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23741         Likewise.
23743 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
23745         [BZ #11979]
23746         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
23747         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
23749 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
23751         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
23752         * sysdeps/x86_64/addmul_1.S: Likewise.
23753         * sysdeps/x86_64/lshift.S: Likewise.
23754         * sysdeps/x86_64/mul_1.S: Likewise.
23755         * sysdeps/x86_64/rshift.S: Likewise.
23756         * sysdeps/x86_64/sub_n.S: Likewise.
23757         * sysdeps/x86_64/submul_1.S: Likewise.
23759 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23761         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
23762         Define __sched_param instead of SCHED_* and sched_param when
23763         <bits/sched.h> is included with __need_schedparam defined.
23764         * bits/sched.h [__need_schedparam]
23765         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
23766         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
23767         (__defined_schedparam): Define to 1.
23768         (__sched_param): New structure, identical to sched_param.
23769         (__need_schedparam): Undefine.
23771 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
23773         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
23774         (epoll_create1): Declare.
23776         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
23778 2010-08-31  Andreas Schwab  <schwab@redhat.com>
23780         [BZ #7066]
23781         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
23782         shifting retval into place.
23784 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
23786         * nis/rpcsvc/nis.h: Update copyright notice.
23787         * nis/rpcsvc/nis.x: Likewise.
23788         * nis/rpcsvc/nis_callback.h: Likewise.
23789         * nis/rpcsvc/nis_callback.x: Likewise.
23790         * nis/rpcsvc/nis_object.x: Likewise.
23791         * nis/rpcsvc/nis_tags.h: Likewise.
23792         * nis/rpcsvc/yp.h: Likewise.
23793         * nis/rpcsvc/yp.x: Likewise.
23794         * nis/rpcsvc/ypupd.h: Likewise.
23795         * nis/yp_xdr.c: Likewise.
23796         * nis/ypupdate_xdr.c: Likewise.
23798         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
23799         mainly the body of pmap_getport.  Add parameters to specify timeouts.
23800         (pmap_getport): Use __libc_rpc_getport.
23801         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
23802         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
23803         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
23805 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
23807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
23808         fanotify_mark.
23810 2010-08-27  Roland McGrath  <roland@redhat.com>
23812         * sysdeps/i386/i686/multiarch/Makefile
23813         (CFLAGS-varshift.c): New variable.
23815 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
23817         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
23818         * sysdeps/i386/i686/multiarch/varshift.c: New file.
23820         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
23822         * sysdeps/x86_64/strlen.S: Minimal code improvement.
23824 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
23826         * sysdeps/x86_64/strlen.S: Unroll the loop.
23827         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23828         strlen-sse2 strlen-sse2-bsf.
23829         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
23830         __strlen_no_bsf if bit_Slow_BSF is set.
23831         (__strlen_sse42): Removed.
23832         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
23833         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
23835 2010-08-25  Roland McGrath  <roland@redhat.com>
23837         * sysdeps/x86_64/multiarch/varshift.S: File removed.
23838         * sysdeps/x86_64/multiarch/varshift.c: New file.
23839         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
23840         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
23841         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
23842         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
23844 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
23846         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23847         strlen-sse2 strlen-sse2-bsf.
23848         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
23849         __strlen_sse2_bsf if bit_Slow_BSF is unset.
23850         (__strlen_sse2): Removed.
23851         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
23852         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
23853         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
23854         bit_Slow_BSF for Atom.
23855         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
23856         (index_Slow_BSF): Define.
23857         (HAS_SLOW_BSF): Define.
23859 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
23861         [BZ #10851]
23862         * resolv/res_init.c (__res_vinit): When no server address at all
23863         is given default to loopback.
23865 2010-08-24  Roland McGrath  <roland@redhat.com>
23867         * configure.in: Remove config-name.h generation.
23868         * configure: Regenerated.
23869         * config-name.in: File removed.
23870         * scripts/config-uname.sh: New file.
23871         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
23872         ($(objdir)config-name.h): New target.
23874         * sunrpc/rpc_parse.h: Avoid nested comment.
23876 2010-08-24  Richard Henderson  <rth@redhat.com>
23877             Ulrich Drepper  <drepper@redhat.com>
23878             H.J. Lu  <hongjiu.lu@intel.com>
23880         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
23881         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
23882         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
23883         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
23884         _mm_alignr_epi8 with _mm_loadu_si128.
23885         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
23886         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
23887         (__m128i_shift_right): Removed.
23888         * sysdeps/i386/i686/multiarch/varshift.h: New file.
23889         * sysdeps/i386/i686/multiarch/varshift.S: New file.
23890         * sysdeps/x86_64/multiarch/varshift.h: New file.
23891         * sysdeps/x86_64/multiarch/varshift.S: New file.
23893 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
23895         * configure.in: Move assembler checks to before sysdep dir checking.
23897 2010-08-20  Petr Baudis  <pasky@suse.cz>
23899         * LICENSES: Sync the sunrpc license.
23901 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
23903         * sunrpc/auth_des.c: Update copyright notice once again.
23904         * sunrpc/auth_none.c: Likewise.
23905         * sunrpc/auth_unix.c: Likewise.
23906         * sunrpc/authdes_prot.c: Likewise.
23907         * sunrpc/authuxprot.c: Likewise.
23908         * sunrpc/bindrsvprt.c: Likewise.
23909         * sunrpc/clnt_gen.c: Likewise.
23910         * sunrpc/clnt_perr.c: Likewise.
23911         * sunrpc/clnt_raw.c: Likewise.
23912         * sunrpc/clnt_simp.c: Likewise.
23913         * sunrpc/clnt_tcp.c: Likewise.
23914         * sunrpc/clnt_udp.c: Likewise.
23915         * sunrpc/clnt_unix.c: Likewise.
23916         * sunrpc/des_crypt.c: Likewise.
23917         * sunrpc/des_soft.c: Likewise.
23918         * sunrpc/get_myaddr.c: Likewise.
23919         * sunrpc/getrpcport.c: Likewise.
23920         * sunrpc/key_call.c: Likewise.
23921         * sunrpc/key_prot.c: Likewise.
23922         * sunrpc/openchild.c: Likewise.
23923         * sunrpc/pm_getmaps.c: Likewise.
23924         * sunrpc/pm_getport.c: Likewise.
23925         * sunrpc/pmap_clnt.c: Likewise.
23926         * sunrpc/pmap_prot.c: Likewise.
23927         * sunrpc/pmap_prot2.c: Likewise.
23928         * sunrpc/pmap_rmt.c: Likewise.
23929         * sunrpc/rpc/auth.h: Likewise.
23930         * sunrpc/rpc/auth_unix.h: Likewise.
23931         * sunrpc/rpc/clnt.h: Likewise.
23932         * sunrpc/rpc/des_crypt.h: Likewise.
23933         * sunrpc/rpc/key_prot.h: Likewise.
23934         * sunrpc/rpc/netdb.h: Likewise.
23935         * sunrpc/rpc/pmap_clnt.h: Likewise.
23936         * sunrpc/rpc/pmap_prot.h: Likewise.
23937         * sunrpc/rpc/pmap_rmt.h: Likewise.
23938         * sunrpc/rpc/rpc.h: Likewise.
23939         * sunrpc/rpc/rpc_des.h: Likewise.
23940         * sunrpc/rpc/rpc_msg.h: Likewise.
23941         * sunrpc/rpc/svc.h: Likewise.
23942         * sunrpc/rpc/svc_auth.h: Likewise.
23943         * sunrpc/rpc/types.h: Likewise.
23944         * sunrpc/rpc/xdr.h: Likewise.
23945         * sunrpc/rpc_clntout.c: Likewise.
23946         * sunrpc/rpc_cmsg.c: Likewise.
23947         * sunrpc/rpc_common.c: Likewise.
23948         * sunrpc/rpc_cout.c: Likewise.
23949         * sunrpc/rpc_dtable.c: Likewise.
23950         * sunrpc/rpc_hout.c: Likewise.
23951         * sunrpc/rpc_main.c: Likewise.
23952         * sunrpc/rpc_parse.c: Likewise.
23953         * sunrpc/rpc_parse.h: Likewise.
23954         * sunrpc/rpc_prot.c: Likewise.
23955         * sunrpc/rpc_sample.c: Likewise.
23956         * sunrpc/rpc_scan.c: Likewise.
23957         * sunrpc/rpc_scan.h: Likewise.
23958         * sunrpc/rpc_svcout.c: Likewise.
23959         * sunrpc/rpc_tblout.c: Likewise.
23960         * sunrpc/rpc_util.c: Likewise.
23961         * sunrpc/rpc_util.h: Likewise.
23962         * sunrpc/rpcinfo.c: Likewise.
23963         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
23964         * sunrpc/rpcsvc/key_prot.x: Likewise.
23965         * sunrpc/rpcsvc/klm_prot.x: Likewise.
23966         * sunrpc/rpcsvc/mount.x: Likewise.
23967         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
23968         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
23969         * sunrpc/rpcsvc/rex.x: Likewise.
23970         * sunrpc/rpcsvc/rstat.x: Likewise.
23971         * sunrpc/rpcsvc/rusers.x: Likewise.
23972         * sunrpc/rpcsvc/sm_inter.x: Likewise.
23973         * sunrpc/rpcsvc/spray.x: Likewise.
23974         * sunrpc/rpcsvc/yppasswd.x: Likewise.
23975         * sunrpc/rtime.c: Likewise.
23976         * sunrpc/svc.c: Likewise.
23977         * sunrpc/svc_auth.c: Likewise.
23978         * sunrpc/svc_authux.c: Likewise.
23979         * sunrpc/svc_raw.c: Likewise.
23980         * sunrpc/svc_run.c: Likewise.
23981         * sunrpc/svc_simple.c: Likewise.
23982         * sunrpc/svc_tcp.c: Likewise.
23983         * sunrpc/svc_udp.c: Likewise.
23984         * sunrpc/svc_unix.c: Likewise.
23985         * sunrpc/svcauth_des.c: Likewise.
23986         * sunrpc/xcrypt.c: Likewise.
23987         * sunrpc/xdr.c: Likewise.
23988         * sunrpc/xdr_array.c: Likewise.
23989         * sunrpc/xdr_float.c: Likewise.
23990         * sunrpc/xdr_mem.c: Likewise.
23991         * sunrpc/xdr_rec.c: Likewise.
23992         * sunrpc/xdr_ref.c: Likewise.
23993         * sunrpc/xdr_sizeof.c: Likewise.
23994         * sunrpc/xdr_stdio.c: Likewise.
23996         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
23997         handling.
23999 2010-08-19  Andreas Schwab  <schwab@redhat.com>
24001         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
24003 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
24005         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
24006         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
24007         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
24008         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
24009         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
24010         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
24011         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
24012         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
24013         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
24014         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
24015         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
24016         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
24017         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
24018         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
24020 2010-07-26  Anton Blanchard  <anton@samba.org>
24022         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
24023         * malloc/arena.c (heap_trim): Likewise.
24025 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
24027         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
24028         here.  Not...
24029         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
24030         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
24032 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
24034         * sysdeps/i386/elf/Makefile: New file.
24036 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
24038         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
24039         from fanotify_init.
24040         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
24041         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
24043 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
24045         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
24046         of strncasecmp_l.
24047         * sysdeps/multiarch/strcmp.S: Likewise.
24049 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
24051         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
24052         strncase_l-nonascii.
24053         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
24054         Add strncase_l-ssse3.
24055         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
24056         * sysdeps/x86_64/strcmp.S: Likewise.
24057         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
24058         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
24059         * sysdeps/x86_64/strncase.S: New file.
24060         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
24061         * sysdeps/x86_64/strncase_l.S: New file.
24062         * string/Makefile (strop-tests): Add strncasecmp.
24063         * string/test-strncasecmp.c: New file.
24065         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
24066         warning.
24068         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
24069         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
24071 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
24073         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
24075 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
24077         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
24078         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
24079         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
24081 2010-05-01  Alan Modra  <amodra@gmail.com>
24083         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
24084         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
24085         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
24086         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
24087         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
24088         tidying.  Don't tail-call __sigjmp_save for static lib.
24089         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
24090         save location.
24091         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
24092         (CALL_MCOUNT): Add eh info, and nop after bl.
24093         (TAIL_CALL_SYSCALL_ERROR): New macro.
24094         (PSEUDO_RET): Use it.
24095         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
24096         Correct save location of integer regs and cr.
24097         (_dl_profile_resolve): Correct cr save location.  Delete nops
24098         after bl when SHARED.  Reduce cfi size a little by better
24099         placement of cfi directives.
24100         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
24101         make a stack frame.  Instead use parm save area as a temp.
24102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
24103         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
24104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
24105         Don't make a stack frame for parent, use parm save area.
24106         Increase child stack frame to 112 bytes.  Don't save unused reg,
24107         and adjust reg usage.  Set up cfi on error recovery and
24108         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
24109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
24110         (__makecontext): Add dummy nop after jump to exit.
24111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
24112         Use correct parm save area and cr save, reduce stack frame.
24113         Correct cfi for possible PSEUDO_RET frame setup.
24114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
24115         Branch to local label emitted by PSEUDO_RET rather than
24116         __syscall_error.
24118 2010-08-12  Andreas Schwab  <schwab@redhat.com>
24120         [BZ #11904]
24121         * locale/programs/locale.c (print_assignment): New function.
24122         (show_locale_vars): Use it.
24124 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
24126         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
24127         field.
24128         (struct statfs64): Likewise.
24129         (_STATFS_F_FLAGS): Define.
24130         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
24131         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
24132         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
24133         (ST_VALID): Define locally.
24134         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
24135         __statvfs_getflags, use the provided value.
24136         * sysdeps/unix/sysv/linux/kernel-features.h: Define
24137         __ASSUME_STATFS_F_FLAGS.
24139         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
24141         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
24142         Add sys/fanotify.h.
24143         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
24144         fanotify_mask for GLIBC_2.13.
24145         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
24146         fanotify_init and fanotify_mark.
24147         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
24148         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
24150         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
24151         Add prlimit.
24152         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
24153         prlimit64 for GLIBC_2.13.
24154         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
24155         prlimit64.
24156         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
24157         syscall.
24158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
24159         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
24160         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
24161         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
24162         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
24163         add prlimit alias.
24164         * sysdeps/unix/sysv/linux/prlimit.c: New file.
24166         [BZ #11903]
24167         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
24168         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
24170         * nss/Makefile: Add rules to build and run tst-nss-test1.
24171         * shlib-versions: Add entry for libnss_test1.
24172         * nss/nss_test1.c: New file.
24173         * nss/tst-nss-test1.c: New file.
24175         * nss/nsswitch.c (__nss_database_custom): Define new variable.
24176         (__nss_configure_lookup): Set appropriate entry in
24177         __nss_configure_lookup to true.
24178         * nss/nsswitch.h: Define enum with indeces of databases in
24179         databases and __nss_database_custom arrays.  Declare
24180         __nss_database_custom.
24181         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
24182         to avoid using nscd when custom rules are installed.
24183         * nss/getXXbyYY_r.c: Likewise.
24184         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
24186         * nss/nss_files/files-parse.c: Whitespace fixes.
24188 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
24190         [BZ #11883]
24191         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
24192         * posix/fnmatch_loop.c: Likewise.
24194 2010-07-17  Andi Kleen  <ak@linux.intel.com>
24196         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
24197         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
24198         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
24199         * Versions.def [GLIBC_2.13]: Add.
24201 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
24203         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
24204         Also fail if tpwd after pwuid call is NULL.
24206 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24208         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
24209         when converting to ms.
24211 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24213         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
24214         EOPNOTSUPP errors with ENOTTY.
24215         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
24216         EOPNOTSUPP errors with ENOTTY.
24218 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
24220         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
24221         Add strcasecmp_l-ssse3.
24222         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
24223         strcasecmp.
24224         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
24225         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
24226         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
24228 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
24230         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
24232         * string/Makefile (strop-tests): Add strcasecmp.
24233         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
24234         strcasecmp_l-nonascii.
24235         (gen-as-const-headers): Add locale-defines.sym.
24236         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
24237         * sysdeps/x86_64/strcasecmp.S: New file.
24238         * sysdeps/x86_64/strcasecmp_l.S: New file.
24239         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
24240         * sysdeps/x86_64/locale-defines.sym: New file.
24241         * string/test-strcasecmp.c: New file.
24243         * string/test-strcasestr.c: Test both ends of the range of characters.
24244         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
24246 2010-07-29  Roland McGrath  <roland@redhat.com>
24248         [BZ #11856]
24249         * manual/locale.texi (Yes-or-No Questions): Fix example code.
24251 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
24253         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
24254         for ld.so.
24256 2010-07-27  Andreas Schwab  <schwab@redhat.com>
24258         * manual/memory.texi (Malloc Tunable Parameters): Document
24259         M_PERTURB.
24261 2010-07-26  Roland McGrath  <roland@redhat.com>
24263         [BZ #11840]
24264         * configure.in (-fgnu89-inline check): Set and substitute
24265         gnu89_inline, not libc_cv_gnu89_inline.
24266         * configure: Regenerated.
24267         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
24269 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
24271         * string/test-strnlen.c: New file.
24272         * string/Makefile (strop-tests): Add strnlen.
24273         * string/tester.c (test_strnlen): Add a few more test cases.
24274         * string/tst-strlen.c: Better error reporting.
24276         * sysdeps/x86_64/strnlen.S: New file.
24278 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
24280         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
24281         lower-latency instructions.
24283 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
24285         * string/test-strcasestr.c: New file.
24286         * string/test-strstr.c: New file.
24287         * string/Makefile (strop-tests): Add strstr and strcasestr.
24288         * string/str-two-way.h: Don't undefine MAX.
24289         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
24291 2010-07-21  Andreas Schwab  <schwab@redhat.com>
24293         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24294         strcasestr-nonascii.
24295         (CFLAGS-strcasestr-nonascii.c): Define.
24296         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
24297         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
24298         Remove unused attribute.
24300 2010-07-20  Roland McGrath  <roland@redhat.com>
24302         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
24303         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
24304         ld.so.cache was broken.  With it, there is no way to disable dsocaps
24305         like LD_HWCAP_MASK can disable hwcaps.
24307 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
24309         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
24311 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
24313         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
24314         call in strcasestr.
24315         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
24316         __strcasestr_sse42_nonascii.
24317         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
24318         strcasestr-nonascii.c.
24319         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
24321 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
24323         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
24324         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
24325         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
24326         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
24328 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
24330         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
24331         fcntl.
24333 2010-07-06  Andreas Schwab  <schwab@redhat.com>
24335         [BZ #11577]
24336         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
24337         dl_signal_cerror.
24339 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
24341         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
24342         _PC_PIPE_BUF using F_GETPIPE_SZ.
24344 2010-07-05  Roland McGrath  <roland@redhat.com>
24346         * manual/arith.texi (Rounding Functions): Fix rint description
24347         implicit in round description.
24349 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
24351         * elf/Makefile: Fix linking for a few tests to make recent linker
24352         happy.
24354 2010-06-30  Andreas Schwab  <schwab@redhat.com>
24356         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
24357         $(common-objpfx)libc_nonshared.a.
24359 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
24361         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
24362         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
24363         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
24364         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
24365         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
24366         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
24367         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
24368         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
24369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
24370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
24371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
24372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
24373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
24374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
24375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
24376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
24377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
24378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
24379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
24380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
24381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
24382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
24383         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
24384         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
24385         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
24386         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
24387         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
24388         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
24389         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
24390         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
24391         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
24392         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
24393         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
24394         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
24395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
24396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
24397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
24398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
24399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
24400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
24401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
24402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
24403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
24404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
24405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
24406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
24407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
24408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
24410 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24412         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
24413         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
24414         * string/memmove.c (memmove): Renamed to ...
24415         (MEMMOVE): ...this.  Default to memmove.
24416         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
24417         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
24418         (END_CHK): Define.
24419         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24420         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
24421         mempcpy-ssse3-back memmove-ssse3-back.
24422         * sysdeps/x86_64/multiarch/bcopy.S: New file .
24423         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
24424         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
24425         * sysdeps/x86_64/multiarch/memcpy.S: New file.
24426         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
24427         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
24428         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
24429         * sysdeps/x86_64/multiarch/memmove.c: New file.
24430         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
24431         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
24432         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
24433         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
24434         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
24435         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
24436         Define.
24437         (index_Fast_Copy_Backward): Define.
24438         (HAS_ARCH_FEATURE): Define.
24439         (HAS_FAST_REP_STRING): Define.
24440         (HAS_FAST_COPY_BACKWARD): Define.
24442 2010-06-21  Andreas Schwab  <schwab@redhat.com>
24444         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
24445         Restore proper fallback handling.
24447 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
24449         [BZ #11701]
24450         * posix/group_member.c (__group_member): Correct checking loop.
24452         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
24453         OOM in getpwuid_r correctly.  Return error number when the caller
24454         should return, otherwise -1.
24455         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
24456         call returning > 0 value.
24457         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
24459 2010-06-07  Andreas Schwab  <schwab@redhat.com>
24461         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
24462         libc_nonshared.a from targets in modules-names.
24464 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
24466         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
24467         requires it.
24469 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
24471         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
24472         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
24473         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
24474         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
24476 2010-06-02  Andreas Schwab  <schwab@redhat.com>
24478         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
24480 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
24482         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
24483         and F_GETPIPE_SZ.
24484         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
24485         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24486         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24487         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24488         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24489         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
24491 2010-06-14  Roland McGrath  <roland@redhat.com>
24493         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
24495 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
24497         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
24498         __REDIRECT followed by __THROW.
24499         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
24500         * posix/getopt.h (getopt): Likewise.
24502 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
24504         * hurd/lookup-at.c (__file_name_lookup_at): Accept
24505         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
24506         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
24507         in AT_FLAGS.
24508         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
24509         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
24511 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
24513         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
24515 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
24517         [BZ #11640]
24518         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24519         Properly check family and model.
24521 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
24523         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
24525 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
24527         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
24529 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
24531         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
24532         symbol reference.
24534 2010-05-19  Andreas Schwab  <schwab@redhat.com>
24536         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
24537         symbol reference.
24539 2010-05-21  Andreas Schwab  <schwab@redhat.com>
24541         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
24542         and internal_recvmmsg.
24543         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
24544         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
24545         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
24546         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
24548         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
24549         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
24550         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
24552 2010-05-20  Andreas Schwab  <schwab@redhat.com>
24554         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
24556 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
24558         POWER7 optimizations.
24559         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
24560         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
24562 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
24564         * version.h: Update for 2.13 development version.
24566 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
24568         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
24569         exceptions.  Return 0.
24571 2010-05-07  Roland McGrath  <roland@redhat.com>
24573         * elf/ldconfig.c (main): Add a const.
24575 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
24577         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
24578         (args_options): Add no-idn option.
24579         (ahosts_keys_int): Add idn_flags to ai_flags.
24580         (parse_option): Handle 'i' option to clear idn_flags.
24582         * malloc/malloc.c (_int_free): Possible race in the most recently
24583         added check.  Only act on the data if no current modification
24584         happened.
24586 See ChangeLog.17 for earlier changes.