Update i386 ULPs for recently added math tests
[glibc.git] / ChangeLog
blob5c756e95888874d5bc39ffe9c90a8233f4378937
1 2012-12-09  Allan McRae  <allan@archlinux.org>
3         * sysdeps/i386/fpu/libm-test-ulps: Update
5 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
7         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
8         (_G_int32_t): Likewise.
9         (_G_uint16_t): Likewise.
10         (_G_uint32_t): Likewise.
11         (_G_HAVE_BOOL): Likewise.
12         (_G_HAVE_ATEXIT): Likewise.
13         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14         (_G_HAVE_IO_FILE_OPEN): Likewise.
15         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
16         (_G_int32_t): Likewise.
17         (_G_uint16_t): Likewise.
18         (_G_uint32_t): Likewise.
19         (_G_HAVE_BOOL): Likewise.
20         (_G_HAVE_ATEXIT): Likewise.
21         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
22         (_G_HAVE_IO_FILE_OPEN): Likewise.
23         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
24         (_G_int32_t): Likewise.
25         (_G_uint16_t): Likewise.
26         (_G_uint32_t): Likewise.
27         (_G_HAVE_BOOL): Likewise.
28         (_G_HAVE_ATEXIT): Likewise.
29         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
30         (_G_HAVE_IO_FILE_OPEN): Likewise.
32 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
34         * csu/libc-tls.c: Update copyright years.
36 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
38         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
39         [!_G_USING_THUNKS]: Remove conditional code.
40         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
41         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
43         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
44         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
45         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
46         (_G_VTABLE_LABEL_PREFIX): Likewise.
47         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
48         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
49         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
50         (_G_VTABLE_LABEL_PREFIX): Likewise.
51         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
52         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
53         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
54         (_G_VTABLE_LABEL_PREFIX): Likewise.
55         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
59         * libio/Makefile: Include ../Makeconfig before tests.
60         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
61         only if $(build-shared) is yes.
63         * iconv/gconv_db.c: Update copyright years.
65 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
67         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
68         unwind info if defined PIC. Fix special cases description.
69         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
71         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
72         DP_HI_MASK entry.
73         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
75 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
77         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
79         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
80         is NULL.
82         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
83         (LDLIBS-tst-chk4): This.
84         (LDFLAGS-tst-chk5): Renamed to ...
85         (LDLIBS-tst-chk5): This.
86         (LDFLAGS-tst-chk6): Renamed to ...
87         (LDLIBS-tst-chk6): This.
88         (LDFLAGS-tst-lfschk4): Renamed to ...
89         (LDLIBS-tst-lfschk4): This.
90         (LDFLAGS-tst-lfschk5): Renamed to ...
91         (LDLIBS-tst-lfschk5): This.
92         (LDFLAGS-tst-lfschk6): Renamed to ...
93         (LDLIBS-tst-lfschk6): This.
95         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
96         on $(common-objpfx)soversions.mk.
98 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
100         [BZ #10014]
101         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
102         example host name.
104 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
106         * malloc/arena.c (arena_get_retry): New function that gets
107         another arena for the caller to try its request on.
108         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
109         current arena cannot fulfill the request.
110         (__libc_memalign): Likewise.
111         (__libc_memalign): Likewise.
112         (__libc_pvalloc): Likewise.
113         (__libc_calloc): Likewise.
115 2012-09-05  John Tobey  <john.tobey@gmail.com>
117         [BZ #13542]
118         * manual/arith.texi (Operations on Complex): Fix description
119         of carg branch cut.
121 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
123         [BZ #10014]
124         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
125         host name.
127         [BZ #10038]
128         * manual/memory.texi (Memory): Make order of menu items match
129         order of sections.
131 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
133         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
134         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
135         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
137 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
139         * csu/libc-tls.c (static_dtv): Renamed to ...
140         (_dl_static_dtv): This.  Make it global.
141         (_dl_initial_dtv): Removed.
142         (__libc_setup_tls): Updated.
143         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
144         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
145         DL_INITIAL_DTV.
147 2012-09-06  Petr Machata  <pmachata@redhat.com>
149         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
150         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
151         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
152         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
154 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
156         [BZ #14545]
157         * csu/libc-tls.c (_dl_initial_dtv): New variable.
158         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
159         freeing dtv[-1].
161 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
163         [BZ #14544]
164         * Makeconfig (link-static-before-libc): Replace $(+prector)
165         with $(+prectorT).
166         (link-static-after-libc): Replace $(+postctor) with
167         $(+postctorT).
168         (link-bounded): Replace $(+prector)/$(+postctor) with
169         $(+prectorT)/$(+postctorT).
170         (+prectorT): New macro.
171         (+postctorT): Likewise.
173 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
175         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
176         (round_str): Handle values above the maximum for IBM long double
177         as inexact.
178         * stdlib/tst-strtod-round.c (tests): Regenerated.
180 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
182         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
183         assembler flag.
184         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
185         zarch_nohighgprs around the zarch optimized routines.
186         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
187         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
188         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
189         for zarch.
191 2012-09-05  David S. Miller  <davem@davemloft.net>
193         * sysdeps/sparc/fpu/libm-test-ulps: Update.
195         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
196         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
197         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
198         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
199         entries.
201 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
203         * malloc/arena.c: Fold copyright years.
204         * malloc/mcheck.c, malloc/memusage.c: Likewise.
206 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
208         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
210 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
212         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
214 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
216         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
217         change internal state upon failure.
219 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
221         * malloc/mcheck.c (mcheck_check_all): Fix typo.
222         * malloc/memusage.c (mmap): Likewise.
223         (mmap64, mremap): Likewise.  Adjust name in comment.
225 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
227         * libio/fileops.c: Fix typos in comments.
228         * libio/oldfileops.c: Likewise.
229         * libio/wfileops.c: Likewise.
231 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
233         [BZ #1349]
234         * malloc/Makefile (tests): Add tst-malloc-usable test case.
235         (tst-malloc-usable-ENV): Set environment for test case.
236         * malloc/hooks.c (malloc_check_get_size): New function to get
237         requested size.
238         * malloc/malloc.c (musable): Use malloc_check_get_size.
239         * malloc/tst-malloc-usable.c: New test case.
241 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
243         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
245 2012-09-05  Allan McRae  <allan@archlinux.org>
247         [BZ #13966]
248         * configure.in (CXX_SYSINCLUDES): Use compiler output to
249         determine header location.
250         * configure: Regenerated.
252 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
254         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
255         float format.
256         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
257         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
258         format.
259         (test): Regenerate.
261 2012-09-04  David S. Miller  <davem@davemloft.net>
263         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
264         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
265         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
267 2012-09-04  Florian Weimer  <fweimer@redhat.com>
269         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
270         failures.
272         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
274 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
276         [BZ #9914]
277         * libio/iogetdelim.c: Include <limits.h>.
278         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
279         + len + 1 would overflow.
281 2012-09-03  Andreas Jaeger  <aj@suse.de>
283         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
284         * sysdeps/i386/fpu/libm-test-ulps: Update.
286 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
288         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
289         Add s_sinf-sse2, s_conf-sse2.
291         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
292         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
293         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
294         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
296         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
297         for using routine as __sinf_ia32.
298         Use macro for function declaration and weak_alias.
299         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
300         for using routine as __cosf_ia32.
301         Use macro for function declaration and weak_alias.
303         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
304         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
306         * sysdeps/x86_64/fpu/s_sinf.S: New file.
307         * sysdeps/x86_64/fpu/s_cosf.S: New file.
308         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
310         * math/libm-test.inc (cos_test): Add more test cases.
311         (sin_test): Likewise.
312         (sincos_test): Likewise.
314 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
316         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
317         (IFUNC_RESOLVE): Make pointers to the specialized implementations
318         hidden.
319         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
321 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
323         [BZ #14538]
324         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
325         first element of the GOT.
326         (elf_machine_load_address): Return the difference between
327         the runtime address of _DYNAMIC and elf_machine_dynamic ().
329 2012-09-01  Allan McRae  <allan@archlinux.org>
331         [BZ #13412]
332         * configure.in (AWK): Require gawk version 3.0 or later.
333         * configure: Regenerated.
335 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
337         * sysdeps/unix/sysv/linux/kernel-features.h
338         (__ASSUME_POSIX_CPU_TIMERS): Remove.
339         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
340         [__NR_clock_getres]: Make code unconditional.
341         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
342         (clock_getcpuclockid): Remove code left unreachable by removal of
343         conditionals.
344         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
345         code unconditional.
346         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
347         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
348         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
349         Make code unconditional.
350         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
351         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
352         * sysdeps/unix/sysv/linux/clock_settime.c
353         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
354         conditional code.
355         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
356         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
358 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
360         [BZ #14476]
361         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
362         scripts/test-installation.pl.
364         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
365         and $ld_so_version if it is set.
367 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
369         [BZ #14516]
370         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
371         failure if reading from procfs failed.
372         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
374 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
376         * sysdeps/unix/sysv/linux/kernel-features.h
377         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
378         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
379         Remove conditional code.
380         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
381         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
382         Remove conditional code.
383         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
384         * sysdeps/unix/sysv/linux/i386/fxstat.c
385         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
386         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
387         * sysdeps/unix/sysv/linux/i386/fxstatat.c
388         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
389         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
390         * sysdeps/unix/sysv/linux/i386/lxstat.c
391         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
392         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
393         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
394         Remove conditional code.
395         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
396         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
397         Remove conditional code.
398         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
399         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
400         <kernel-features.h>.
401         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
402         Remove.
403         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
404         Remove conditional code.
405         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
406         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
407         Remove conditional.
409 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
411         [BZ #5400]
412         * NEWS: Add fixed bug number.
414 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
416         [BZ #14519]
417         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
418         underflowing exponent in case of negative sign.
419         * stdlib/tst-strtod-round-data: Add more tests.
420         * stdlib/tst-strtod-round.c (tests): Regenerated.
422         [BZ #3479]
423         * stdlib/strtod_l.c (NDIG): Remove.
424         (HEXNDIG): Likewise.
425         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
426         smallest representable value.
427         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
428         lie within an exact representation of 1/2 ulp of the result.
429         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
430         unconditionally.
431         (TENS_P9_IDX): Define unconditionally.
432         (TENS_P9_SIZE): Likewise.
433         (TENS_P10_IDX): Likewise.
434         (TENS_P10_SIZE): Likewise.
435         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
436         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
437         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
438         entries for 10^2^13 and 10^2^14.
439         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
440         (TENS_P13_IDX): Define.
441         (TENS_P13_SIZE): Likewise.
442         (TENS_P14_IDX): Likewise.
443         (TENS_P14_SIZE): Likewise.
444         (_fpioconst_pow10): Change array size to
445         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
446         unconditional.
447         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
448         1024]: Add entries for 10^2^13 and 10^2^14.
449         [LAST_POW10 > _LAST_POW10]: Remove #error.
450         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
451         (_fpioconst_pow10): Change array size to
452         FPIOCONST_POW10_ARRAY_SIZE.
453         * stdlib/gen-fpioconst.c: New file.
454         * stdlib/gen-tst-strtod-round.c: Likewise.
455         * stdlib/tst-strtod-round-data: Likewise.
456         * stdlib/tst-strtod-round.c: Likewise.
457         * stdlib/Makefile (tests): Add tst-strtod-round.
459         [BZ #14459]
460         * stdlib/strtod_l.c: Include <stdint.h>.
461         (NDEBUG): Do not define.
462         (round_and_return): Change EXPONENT parameter to type intmax_t.
463         Rearrange calculations to avoid internal overflow possibilities.
464         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
465         Rearrange calculations to avoid internal overflow possibilities.
466         Assert that number fits inside MPNSIZE limbs.
467         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
468         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
469         calculations and add assertions to avoid internal overflow
470         possibilities.  Add casts to avoid signed/unsigned operations.
471         * stdlib/tst-strtod-overflow.c: New file.
472         * stdlib/Makefile (tests): Add tst-strtod-overflow.
474 2012-08-25  Marek Polacek  <polacek@redhat.com>
476         * time/time.h: Fix some typos in comments.
478 2012-08-23  Roland McGrath  <roland@hack.frob.com>
480         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
481         * posix/tst-rfc3484-2.c: Likewise.
482         * posix/tst-rfc3484-3.c: Likewise.
484 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
486         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
487         (EF_ARM_ABI_FLOAT_HARD): Likewise.
489 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
491         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
492         #include of fxstatat64.c.
494 2012-08-22  Roland McGrath  <roland@hack.frob.com>
496         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
497         * shadow/getspent_r.c: Likewise.
498         * shadow/getspnam.c: Likewise.
499         * shadow/getspnam_r.c: Likewise.
500         * gshadow/getsgent.c: Likewise.
501         * gshadow/getsgent_r.c: Likewise.
502         * gshadow/getsgnam.c: Likewise.
503         * gshadow/getsgnam_r.c: Likewise.
504         * inet/getnetbyad.c: Likewise.
505         * inet/getnetbyad_r.c: Likewise.
506         * inet/getnetbynm.c: Likewise.
507         * inet/getnetbynm_r.c: Likewise.
508         * inet/getnetent.c: Likewise.
509         * inet/getnetent_r.c: Likewise.
510         * inet/getproto.c: Likewise.
511         * inet/getproto_r.c: Likewise.
512         * inet/getprtent.c: Likewise.
513         * inet/getprtent_r.c: Likewise.
514         * inet/getprtname.c: Likewise.
515         * inet/getprtname_r.c: Likewise.
516         * inet/getrpcbyname.c: Likewise.
517         * inet/getrpcbyname_r.c: Likewise.
518         * inet/getrpcbynumber.c: Likewise.
519         * inet/getrpcbynumber_r.c: Likewise.
520         * inet/getrpcent.c: Likewise.
521         * inet/getrpcent_r.c: Likewise.
522         * inet/getaliasent.c: Likewise.
523         * inet/getaliasent_r.c: Likewise.
524         * inet/getaliasname.c: Likewise.
525         * inet/getaliasname_r.c: Likewise.
526         * nscd/getgrgid_r.c: Likewise.
527         * nscd/getgrnam_r.c: Likewise.
528         * nscd/gethstbyad_r.c: Likewise.
529         * nscd/gethstbynm3_r.c: Likewise.
530         * nscd/getpwnam_r.c: Likewise.
531         * nscd/getpwuid_r.c: Likewise.
532         * nscd/getsrvbynm_r.c: Likewise.
533         * nscd/getsrvbypt_r.c: Likewise.
534         * nscd/gai.c: Likewise.
536         * configure.in (build_nscd): New substituted variable, set
537         by --disable-build-nscd and defaults to $use_nscd.
538         * configure: Regenerated.
539         * config.make.in (build-nscd): New substituted variable.
540         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
541         Change conditional to require [$(build-nscd) = yes] as well.
542         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
544         [BZ# 13696]
545         * configure.in (use_nscd): New substituted variable, set by
546         --disable-nscd.  If enabled, define USE_NSCD.
547         * configure: Regenerated.
548         * config.h.in: Add USE_NSCD.
549         * config.make.in (use-nscd): New substituted variable.
550         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
551         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
552         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
553         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
554         (CFLAGS-getgrnam_r.c): Likewise.
555         (CFLAGS-initgroups.c): Likewise.
556         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
557         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
558         Variables removed.
559         * inet/getnetgrent_r.c
560         (nscd_setnetgrent): New function, broken out of ...
561         (setnetgrent): ... here.  Call it.
562         (innetgr): Conditionalize nscd bits on [USE_NSCD].
563         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
564         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
565         * nscd/Makefile (routines, aux): Move definitions after include of
566         Makeconfig.  Conditionalize on [$(use-nscd) != no].
567         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
568         Conditionalize on [USE_NSCD].
569         (is_nscd, nscd_init_cb): Likewise.
570         (nss_load_library): Conditionalize init callback on [USE_NSCD].
571         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
572         * nss/nss_db/db-init.c: Likewise.
573         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
574         [USE_NSCD].
575         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
576         (make_request): Use it.
577         (cache_valid_p): New function.
578         (__check_pf): Use it.
579         * NEWS: Add item for --disable-nscd.
581 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
583         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
584         to support sed >= 4.2.1-20-ga9bf076.
585         * configure: Regenerated.
587 2012-08-22  Roland McGrath  <roland@hack.frob.com>
589         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
590         Conditionalize whole body on [IREL].
592 2012-08-22  Jeff Law <law@redhat.com>
594         [BZ #14505]
595         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
596         if the family is PF_UNSPEC.
598 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
600         * Makerules (lib-version): Rename from V.
601         (install-lib-nosubdir): Change V to lib-version.
603 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
605         [BZ #14252]
606         * powerpc32/power6/wcschr.c: New file.
607         * powerpc32/power6/wcscpy.c: New file.
608         * powerpc32/power6/wcsrchr.c: New file.
609         * powerpc64/power6/wcschr.c: New file.
610         * powerpc64/power6/wcscpy.c: New file.
611         * powerpc64/power6/wcsrchr.c: New file.
613 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
615         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
616         (two_way_short_needle): Use it.
617         * string/strstr.c (AVAILABLE1_USES_J): Define.
618         * string/strcasestr.c: Likewise.
620         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
621         array references.
622         * string/strcasestr.c (TOLOWER): Make side-effect safe.
624         [BZ #11607]
625         * NEWS: Add an entry.
626         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
627         define their defaults.
628         (two_way_short_needle): Detect end-of-string on-the-fly.
629         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
630         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
631         * string/bug-strcasestr1.c: New test.
632         * string/Makefile: Run it.
634 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
636         [BZ #11607]
637         * string/str-two-way.h (two_way_short_needle): Optimize matching of
638         the first character.
640 2012-08-21  Roland McGrath  <roland@hack.frob.com>
642         * csu/elf-init.c (__libc_csu_irel): Function removed.
643         * csu/libc-start.c (apply_irel): New function.
644         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
646 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
648         * sysdeps/unix/sysv/linux/kernel-features.h
649         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
650         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
651         <kernel-features.h>.
652         [__NR_fadvise64_64]: Make code unconditional.
653         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
654         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
655         !__NR_fadvise64_64)]: Likewise.
656         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
657         !__NR_fadvise64_64))]: Likewise.
658         [__NR_fadvise64]: Make code unconditional.
659         [!__NR_fadvise64]: Remove conditional code.
660         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
661         <kernel-features.h>.
662         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
663         unconditional.
664         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
665         conditional code.
666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
667         not include <kernel-features.h>.
668         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
669         unconditional.
670         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
671         conditional code.
672         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
673         include <kernel-features.h>.
674         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
675         unconditional.
676         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
677         conditional code.
679 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
681         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
682         slight instruction rearrangements per scrollpipe analysis.
683         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
685 2012-08-20  Roland McGrath  <roland@hack.frob.com>
687         * manual/syslog.texi (syslog; vsyslog, closelog):
688         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
689         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
691         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
692         DSOCAPS to match condition on defining it.
694 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
696         * sysdeps/unix/sysv/linux/kernel-features.h
697         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
699         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
700         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
702         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
703         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
705         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
706         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
708         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
709         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
711         * sysdeps/unix/sysv/linux/kernel-features.h
712         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
713         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
714         unconditional.
715         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
716         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
717         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
718         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
719         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
720         Make code unconditional.
721         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
722         (__mmap64) [!__NR_mmap2]: Likewise.
723         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
724         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
725         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
726         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
727         [__NR_mmap2]: Make code unconditional.
728         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
729         (__mmap64) [!__NR_mmap2]: Likewise.
731 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
733         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
735 2012-08-18  Andreas Jaeger  <aj@suse.de>
737         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
739 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
741         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
742         * include/unistd.h (__have_sock_cloexec): Likewise.
743         (__have_pipe2): Likewise.
744         (__have_dup3): Likewise.
746 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
748         [BZ #9685]
749         * include/unistd.h (__have_pipe2): Change define into an extern int.
750         (__have_dup3): Likewise.
751         * socket/have_sock_cloexec.c: Include fcntl.h.
752         (__have_pipe2): New variable.
753         (__have_dup3): Likewise.
755 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
757         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
759 2012-08-17  Marek Polacek  <polacek@redhat.com>
761         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
762         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
764 2012-08-17  Roland McGrath  <roland@hack.frob.com>
766         * configure.in: Add AC_SUBST for sysheaders.
767         * configure: Regenerated.
768         * config.make.in (sysheaders): New substituted variable.
770         * sysdeps/unix/mkfifo.c: Moved ...
771         * sysdeps/posix/mkfifo.c: ... here.
772         * sysdeps/unix/mkfifoat.c: Moved ...
773         * sysdeps/posix/mkfifoat.c: ... here.
775         * sysdeps/unix/utime.c: Moved ...
776         * sysdeps/posix/utime.c: ... here.
778         * sysdeps/unix/time.c: Moved ...
779         * sysdeps/posix/time.c: ... here.
780         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
781         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
783         * sysdeps/unix/nice.c: Moved ...
784         * sysdeps/posix/nice.c: ... here.
786         * sysdeps/unix/alarm.c: Moved ...
787         * sysdeps/posix/alarm.c: ... here.
789         * intl/Makefile ($(codeset_mo)): Depend on the input file.
791 2012-08-17  Jeff Law <law@redhat.com>
793         * intl/Makefile (codeset_mo): New variable.
794         ($(codeset_mo)): New target.
795         (tst-codeset.out): Depend on that.  Remove explicit rule.
796         (tst-gettext3.out, tst-gettext5.out): Likewise.
797         (LOCPATH-ENV, tst-codeset-ENV): New variables.
798         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
799         * intl/tst-codeset.sh: Remove.
800         * intl/tst-gettext3.sh: Likewise.
801         * intl/tst-gettext5.sh: Likewise.
803 2012-08-17  Roland McGrath  <roland@hack.frob.com>
805         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
806         * sysdeps/unix/syscalls.list: ... here.
808         * sysdeps/posix/getaddrinfo.c
809         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
810         (gaiconf_init, gaiconf_reload): Use them.
811         [!_STATBUF_ST_NSEC]
812         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
813         Define using time_t rather than struct timespec.
815         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
816         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
817         Macros removed.
818         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
819         [!NO_THREADS].
820         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
821         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
822         Likewise.
824         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
825         __libc_cleanup_push argument.
827         * bits/param.h: New file.
828         * misc/sys/param.h: New file.
829         * include/sys/param.h: New file.
830         * misc/Makefile (headers): Add bits/param.h.
831         * sysdeps/generic/sys/param.h: File removed.
832         * sysdeps/unix/sysv/linux/bits/param.h: New file.
833         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
834         * sysdeps/mach/hurd/bits/param.h: New file.
835         * sysdeps/mach/hurd/sys/param.h: New file.
837         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
838         last change.
840         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
841         [_IO_MTSAFE_IO].
842         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
843         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
844         New macros.
846         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
847         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
848         rather than -D_IO_MTSAFE_IO conditionally.
849         * stdio-common/Makefile (CPPFLAGS): Likewise.
850         * wcsmbs/Makefile (CPPFLAGS): Likewise.
851         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
852         Use $(libio-mtsafe).
853         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
854         of -D_IO_MTSAFE_IO.
855         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
856         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
857         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
858         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
859         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
860         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
861         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
862         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
863         (CFLAGS-fread_u_chk.c): Likewise.
864         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
865         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
866         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
867         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
868         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
869         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
870         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
871         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
872         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
874         * libio/Makefile: Test [$(libc-reentrant) = yes]
875         instead of [$(filter %REENTRANT, $(defines)) nonempty].
877         * Makeconfig
878         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
879         * sysdeps/pthread/configure: File removed.
880         * sysdeps/pthread/Makeconfig: New file.
881         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
882         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
884 2012-08-16  Gary Benson  <gbenson@redhat.com>
886         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
887         unmapping the first object in a namespace.
889 2012-08-16  Roland McGrath  <roland@hack.frob.com>
891         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
892         (__internal_setnetgrent): ... this.  Add internal_function to
893         definition.  Add libc_hidden_def.
894         (setnetgrent): Update caller.
895         (internal_endnetgrent): Renamed to ...
896         (__internal_endnetgrent): ... this.  Add internal_function to
897         definition.  Add libc_hidden_def.
898         (endnetgrent): Update caller.
899         (internal_getnetgrent_r): Renamed to ...
900         (__internal_getnetgrent_r): ... this.  Add internal_function to
901         definition.  Add libc_hidden_def.
902         (__getnetgrent_r): Update caller.
903         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
905 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
907         * stdlib/longlong.h: Update from GCC.
909 2012-08-16  Roland McGrath  <roland@hack.frob.com>
911         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
912         on _QL, which is set by umul_ppmm but never used.
913         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
914         variables, which are set by GMP macros but never used.
915         * stdio-common/_itowa.c (_itowa): Likewise.
916         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
917         * stdlib/mod_1.c (mpn_mod_1): Likewise.
919 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
921         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
922         struct La_sh_regs is not constant.
923         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
924         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
925         and struct La_sparc64_regs are not constant.
927 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
929         * sysdeps/unix/sysv/linux/kernel-features.h
930         (__ASSUME_POSIX_TIMERS): Remove.
931         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
932         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
933         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
934         Make code unconditional.
935         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
936         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
937         Make code unconditional.
938         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
939         * sysdeps/unix/sysv/linux/clock_nanosleep.c
940         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
941         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
942         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
943         Make code unconditional.
944         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
945         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
946         (__libc_missing_posix_timers): Remove.
948 2012-08-15  Roland McGrath  <roland@hack.frob.com>
950         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
951         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
953         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
955         * elf/dl-sym.c: Include <stdlib.h>.
957         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
958         constants, which avoids warnings in 32-bit builds.
960         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
961         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
963         * misc/lseek.c: File moved to ...
964         * io/lseek.c: ... here.
966         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
968         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
969         shifting LEN more than 31 bits at once.
971 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
973         [BZ #14195]
974         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
975         segmentation fault for a case of two empty input strings.
976         * string/test-strncasecmp.c (check1): Renamed to...
977         (bz12205): ...this.
978         (bz14195): Add new testcase for two empty input strings and N > 0.
979         (test_main): Call new testcase, adapt for renamed function.
981 2012-08-15  Andreas Jaeger  <aj@suse.de>
983         [BZ #14090]
984         * crypt/md5test2.c: New test, based on test supplied by Serge
985         Belyshev <belyshev@depni.sinp.msu.ru>.
986         * crypt/Makefile (xtests): Add md5test-giant..
987         * crypt/Makefile ($(objpfx)md5test-giant): Add.
989 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
991         [BZ #14090]
992         * crypt/md5.c (md5_process_block): Don't assume the buffer
993         length is less than 2**32.
994         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
995         length is less than 2**64.
997 2012-08-15  Roland McGrath  <roland@hack.frob.com>
999         * string/str-two-way.h: Include <sys/param.h>.
1000         (MAX): Macro removed.
1002         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1003         Move #define and #undef of memmove to just before and after
1004         including <string.h>.
1006         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1007         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1008         and after including <string.h>.  Move declarations of
1009         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1010         to before #include "string/memmove.c".
1012         * include/dirent.h: Declare __getdirentries.
1014         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1015         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1017 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1019         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1020         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1021         * sysdeps/i386/configure: Regenerated.
1022         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1023         STABS_CURRENT_FILE, and STABS_FUN.
1024         (END): Remove call to STABS_FUN_END.
1025         (STABS_CURRENT_FILE1): Delete.
1026         (STABS_CURRENT_FILE): Likewise.
1027         (STABS_FUN): Likewise.
1028         (STABS_FUN_END): Likewise.
1029         (STABS_FUN2): Likewise.
1030         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1031         * sysdeps/x86_64/configure: Regenerated.
1033 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1035         * elf/dl-open.c: Include <atomic.h>.
1036         * elf/dl-lookup.c: Likewise.
1038 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1040         * sysdeps/unix/sysv/linux/kernel-features.h
1041         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1042         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1043         unconditionally.
1044         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1045         unconditionally.
1046         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1047         condition on __ASSUME_CLONE_THREAD_FLAGS.
1049 2012-08-14  Andreas Jaeger  <aj@suse.de>
1051         * sysdeps/i386/fpu/libm-test-ulps: Update.
1053 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1055         * include/atomic.h (atomic_exchange_and_add): Split into ...
1056         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1057         New atomic macros.
1059 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1061         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1063 2012-08-13  Jeff Law <law@redhat.com>
1065         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1066         null byte in the output string.
1068 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1070         * sysdeps/unix/sysv/linux/kernel-features.h
1071         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1072         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1073         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1074         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1075         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1076         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1077         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1079 2012-08-09  Jeff Law <law@redhat.com>
1081         [BZ #13939]
1082         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1083         When avoid_arena is set, don't retry in the that arena.  Pick the
1084         next one, whatever it might be.
1085         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1086         (arena_lock): Pass in new parameter to arena_get2.
1087         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1088         arena_get2.
1089         (__libc_malloc): Unify retrying after main arena failure with
1090         __libc_memalign version.
1091         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1093 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1095         [BZ #14166]
1096         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1097         to __redirect_strstr.
1098         (__strstr_sse42): Use typeof __redirect_strstr.
1099         (__strstr_ia32): Likewise.
1100         (__libc_strstr): New prototype.
1101         (strstr): Renamed to ...
1102         (__libc_strstr): This.
1103         (strstr): New strong alias of __libc_strstr.
1104         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1105         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1106         __redirect_time.
1107         Include <time.h>.
1108         (__libc_time): New prototype.
1109         (time_ifunc): Replace time with __libc_time.
1110         (time): New strong alias and hidden definition of __libc_time.
1111         (__GI_time): Remove strong alias.
1112         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1113         Include <stddef.h>.
1114         (memmove): Redefined to __redirect_memmove.
1115         (__memmove_sse2): Use typeof __redirect_memmove.
1116         (__memmove_ssse3): Likewise.
1117         (__memmove_ssse3_back): Likewise.
1118         (__libc_memmove): New prototype.
1119         (memmove): Renamed to ...
1120         (__libc_memmove): This.
1121         (memmove): New strong alias of __libc_memmove.
1123 2012-08-08  Mark Salter  <msalter@redhat.com>
1125         * elf/elf.h
1126         (R_MN10300_TLS_GD): Define.
1127         (R_MN10300_TLS_LD): Likewise.
1128         (R_MN10300_TLS_LDO): Likewise.
1129         (R_MN10300_TLS_GOTIE): Likewise.
1130         (R_MN10300_TLS_IE): Likewise.
1131         (R_MN10300_TLS_LE): Likewise.
1132         (R_MN10300_TLS_DTPMOD): Likewise.
1133         (R_MN10300_TLS_DTPOFF): Likewise.
1134         (R_MN10300_TLS_TPOFF): Likewise.
1135         (R_MN10300_SYM_DIFF): Likewise.
1136         (R_MN10300_ALIGN): Likewise.
1137         (R_MN10300_NUM): Update.
1139 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1141         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1142         Remove.
1144 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1146         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1148         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1149         sysdeps/unix -> sysdeps/posix move.
1150         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1152 2012-08-07      Allan McRae     <allan@archlinux.org>
1154         [BZ #14303]
1155         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1156         (SUNOS_CPP): Likewise.
1157         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1158         not found.
1159         (open_input): Call CPP using execvp.
1161 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1163         * sysdeps/unix/sysv/linux/kernel-features.h
1164         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1165         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1166         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1167         (__ASSUME_WAITID_SYSCALL): Likewise.
1168         * sysdeps/unix/sysv/linux/dl-execstack.c
1169         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1170         code unconditional.
1171         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1172         conditional code.
1173         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1174         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1175         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1176         code.
1177         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1178         unconditional.
1179         [__ASSUME_WAITID_SYSCALL]: Likewise.
1180         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1182 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1184         * sysdeps/unix/closedir.c: Renamed to ...
1185         * sysdeps/posix/closedir.c: ... here.
1186         * sysdeps/unix/dirfd.c: Renamed to ...
1187         * sysdeps/posix/dirfd.c: ... here.
1188         * sysdeps/unix/dirstream.h: Renamed to ...
1189         * sysdeps/posix/dirstream.h: ... here.
1190         * sysdeps/unix/fdopendir.c: Renamed to ...
1191         * sysdeps/posix/fdopendir.c: ... here.
1192         * sysdeps/unix/opendir.c: Renamed to ...
1193         * sysdeps/posix/opendir.c: ... here.
1194         * sysdeps/unix/readdir.c: Renamed to ...
1195         * sysdeps/posix/readdir.c: ... here.
1196         * sysdeps/unix/readdir_r.c: Renamed to ...
1197         * sysdeps/posix/readdir_r.c: ... here.
1198         * sysdeps/unix/rewinddir.c: Renamed to ...
1199         * sysdeps/posix/rewinddir.c: ... here.
1200         * sysdeps/unix/seekdir.c: Renamed to ...
1201         * sysdeps/posix/seekdir.c: ... here.
1202         * sysdeps/unix/telldir.c: Renamed to ...
1203         * sysdeps/posix/telldir.c: ... here.
1204         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1205         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1206         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1207         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1209         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1210         * bits/fcntl.h: ... here.
1212         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1213         not 0.
1214         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1215         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1216         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1217         (struct flock): Move l_start, l_len to the beginning.
1218         Use __pid_t for l_pid.
1219         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1220         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1221         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1222         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1223         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1224         [__USE_LARGEFILE64] (struct flock64): New type.
1225         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1227         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1228         * bits/dirent.h: ... here.
1230         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1231         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1233 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1235         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1236         Change from 2.6.0 to 2.6.16.
1237         * sysdeps/unix/sysv/linux/configure: Regenerated.
1238         * sysdeps/unix/sysv/linux/kernel-features.h
1239         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1240         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1241         version.
1242         (__ASSUME_UTIMES): Likewise.
1243         (__ASSUME_CLONE_STOPPED): Remove.
1244         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1245         architectures, not kernel version.
1246         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1247         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1248         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1249         (__ASSUME_WAITID_SYSCALL): Likewise.
1250         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1251         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1252         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1253         refer to older versions.
1255 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1257         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1258         Define alphasort64 as an alias.
1259         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1260         Define versionsort64 as an alias.
1261         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1262         Define scandir64 as an alias.
1263         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1264         Define scandirat64 as an alias.
1265         * dirent/alphasort64.c (alphasort64):
1266         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1267         * dirent/versionsort64.c: Likewise.
1268         * dirent/scandir64.c: Likewise.
1269         * dirent/scandirat64.c: Likewise.
1270         * sysdeps/wordsize-64/alphasort.c: File removed.
1271         * sysdeps/wordsize-64/alphasort64.c: File removed.
1272         * sysdeps/wordsize-64/scandir.c: File removed.
1273         * sysdeps/wordsize-64/scandir64.c: File removed.
1274         * sysdeps/wordsize-64/scandirat.c: File removed.
1275         * sysdeps/wordsize-64/scandirat64.c: File removed.
1276         * sysdeps/wordsize-64/versionsort.c: File removed.
1277         * sysdeps/wordsize-64/versionsort64.c: File removed.
1278         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1279         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1280         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1281         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1282         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1283         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1284         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1285         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1287         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1288         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1289         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1290         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1291         [defined __arch64__ || defined __sparcv9]
1292         (__INO_T_MATCHES_INO64_T): New macro.
1293         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1294         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1295         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1296         * sysdeps/unix/sysv/linux/bits/dirent.h
1297         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1298         (_DIRENT_MATCHES_DIRENT64): New macro.
1300         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1301         Define lockf64 as an alias.
1302         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1303         Define fseeko64 as an alias.
1304         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1305         Define ftello64 as an alias.
1306         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1307         Define _IO_fgetpos64 and fgetpos64 as aliases.
1308         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1309         Define _IO_fsetpos64 and fsetpos64 as aliases.
1310         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1311         Conditionalize body on this.
1312         * libio/fseeko64.c: Likewise.
1313         * libio/ftello64.c: Likewise.
1314         * libio/iofgetpos64.c: Likewise.
1315         * libio/iofsetpos64.c: Likewise.
1316         * sysdeps/wordsize-64/lockf.c: File removed.
1317         * sysdeps/wordsize-64/lockf64.c: File removed.
1318         * sysdeps/wordsize-64/fseeko.c: File removed.
1319         * sysdeps/wordsize-64/fseeko64.c: File removed.
1320         * sysdeps/wordsize-64/ftello.c: File removed.
1321         * sysdeps/wordsize-64/ftello64.c: File removed.
1322         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1323         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1324         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1325         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1326         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1327         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1328         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1329         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1330         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1331         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1332         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1333         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1334         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1335         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1337         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1338         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1339         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1340         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1341         [defined __arch64__ || defined __sparcv9]
1342         (__OFF_T_MATCHES_OFF64_T): New macro.
1343         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1344         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1345         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1346         (__OFF_T_MATCHES_OFF64_T): New macro.
1348 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1350         * stdlib/secure-getenv.c (__secure_getenv): Replace
1351         GLIBC_2_16 with GLIBC_2_17.
1353 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1355         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1356         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1358 2012-08-03  David S. Miller  <davem@davemloft.net>
1360         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1362 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1364         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1365         Remove.
1366         (__ASSUME_CORRECT_SI_PID): Likewise.
1367         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1368         (__ASSUME_TMPFS_NAME): Likewise.
1369         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1370         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1371         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1372         (HAVE_AUX_SECURE): Make definition unconditional.
1373         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1374         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1376 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1378         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1379         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1380         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1381         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1382         __eloop_threshold instead of SYMLOOP_MAX.
1384         * sysdeps/generic/eloop-threshold.h: New file.
1385         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1386         of MAXSYMLINKS.
1387         * elf/chroot_canon.c (chroot_canon): Likewise.
1389 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1391         [BZ #13717]
1392         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1393         Change to 2.6.0 everywhere.
1394         * sysdeps/unix/sysv/linux/configure: Regenerated.
1395         * sysdeps/unix/sysv/linux/kernel-features.h
1396         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1397         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1398         kernel versions.
1399         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1400         (__ASSUME_FUTEX_REQUEUE): Remove.
1401         (__ASSUME_STATFS64): Define unconditionally.
1402         (__ASSUME_AT_SECURE): Likewise.
1403         (__ASSUME_CORRECT_SI_PID): Likewise.
1404         (__ASSUME_TGKILL): Define without depending on kernel version for
1405         i386.
1406         (__ASSUME_UTIMES): Likewise.
1407         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1408         kernel version.
1409         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1410         (__ASSUME_TMPFS_NAME): Likewise.
1411         * README: Update reference to Linux kernel versions.
1413 2012-08-02  Marek Polacek  <polacek@redhat.com>
1415         [BZ# 14150]
1416         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1417         libc_cv_asm_type_prefix with %.
1418         * configure: Regenerated.
1419         * include/libc-symbols.h: Remove comment about
1420         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1421         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1422         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1423         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1424         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1425         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1426         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1427         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1428         * elf/tst-unique2mod1.c: Likewise.
1429         * elf/tst-unique1mod2.c: Likewise.
1430         * elf/tst-unique1mod1.c: Likewise.
1431         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1432         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1433         Replace ASM_TYPE_DIRECTIVE with .type.
1434         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1435         * sysdeps/i386/sysdep.h: Likewise.
1436         * sysdeps/x86_64/sysdep.h: Likewise.
1437         * sysdeps/sh/sysdep.h: Likewise.
1438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1439         Do not define ASM_TYPE_DIRECTIVE.
1440         * sysdeps/powerpc/sysdep.h: Likewise.
1441         * sysdeps/powerpc/powerpc32/sysdep.h:
1442         Replace ASM_TYPE_DIRECTIVE with .type.
1443         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1444         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1445         * sysdeps/i386/fpu/e_powf.S: Likewise.
1446         * sysdeps/i386/fpu/e_expl.S: Likewise.
1447         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1448         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1449         * sysdeps/i386/fpu/e_pow.S: Likewise.
1450         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1451         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1452         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1453         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1454         * sysdeps/i386/fpu/e_log2.S: Likewise.
1455         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1456         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1457         * sysdeps/i386/fpu/e_powl.S: Likewise.
1458         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1459         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1460         * sysdeps/i386/fpu/e_logl.S: Likewise.
1461         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1462         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1463         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1464         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1465         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1466         * sysdeps/i386/fpu/e_log.S: Likewise.
1467         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1468         * sysdeps/i386/fpu/e_logf.S: Likewise.
1469         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1470         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1471         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1472         * sysdeps/i386/fpu/e_log10.S: Likewise.
1473         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1474         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1475         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1476         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1477         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1478         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1479         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1480         * sysdeps/i386/i686/strtok.S: Likewise.
1481         * sysdeps/i386/i386-mcount.S: Likewise.
1482         * sysdeps/i386/strtok.S: Likewise.
1483         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1484         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1485         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1486         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1487         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1488         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1489         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1490         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1491         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1492         * sysdeps/x86_64/_mcount.S: Likewise.
1493         * sysdeps/x86_64/strtok.S: Likewise.
1494         * sysdeps/sh/_mcount.S: Likewise.
1496 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1498         * libio/iofopen.c: Include <fcntl.h>.
1499         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1500         (_IO_fopen64, fopen64): Define as aliases.
1501         * libio/iofopen64.c: Include <fcntl.h>.
1502         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1503         Conditionalize body on this.
1504         * sysdeps/wordsize-64/iofopen.c: File removed.
1505         * sysdeps/wordsize-64/iofopen64.c: File removed.
1507 2012-08-01  Marek Polacek  <polacek@redhat.com>
1509         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1510         Use dlfcn directly instead of a variable.
1511         (binfmt-subdir): Do not define.
1512         (dlfcn): Likewise.
1514 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1516         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1517         Remove all definitions.
1518         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1519         <kernel-features.h>.
1520         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1521         (miss_F_GETOWN_EX): Remove all definitions.
1522         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1523         macro definition.
1524         [!__ASSUME_FCNTL64]: Remove conditional code.
1525         [__ASSUME_FCNTL64]: Make code unconditional.
1526         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1527         <kernel-features.h>.
1528         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1529         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1530         (lockf64) [__NR_fcntl64]: Make code unconditional.
1531         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1533         * sysdeps/unix/sysv/linux/kernel-features.h
1534         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1535         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1536         Make code unconditional.
1537         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1538         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1540         [__NR_vfork]: Make code unconditional.
1541         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1542         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1544         [__NR_vfork]: Make code unconditional.
1545         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1546         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1548 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1550         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1551         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1553         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1554         Define mkstemp64 as an alias.
1555         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1556         Define mkstemps64 as an alias.
1557         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1558         Define mkostemp64 as an alias.
1559         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1560         Define mkostemps64 as an alias.
1561         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1562         Conditionalize body on this.
1563         * misc/mkostemp64.c: Likewise.
1564         * misc/mkostemps64.c: Likewise.
1565         * misc/mkstemps64.c: Likewise.
1566         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1567         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1568         * sysdeps/wordsize-64/mkostemp.c: File removed.
1569         * sysdeps/wordsize-64/mkstemp.c: File removed.
1570         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1571         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1572         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1573         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1575         [BZ #14138]
1576         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1577         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1578         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1579         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1581         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1582         compat_symbol macros from <shlib-compat.h> rather than the underlying
1583         default_symbol_version and symbol_version macros, so that DEFAULT
1584         lines in shlib-versions are respected.
1585         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1587 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1589         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1590         Declare with warn_unused_result.
1591         (setgid, setregid, setegid, setresgid): Likewise.
1592         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1593         Likewise.
1594         * WUR-REPORT: Remove set*id functions.
1596 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1598         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1600 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1602         * include/sys/socket.h (__libc_accept, __libc_accept4):
1603         Add attribute_hidden.
1604         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1606         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1607         use of PTR_MANGLE.
1608         * inet/getnetgrent_r.c (setup): Likewise.
1610         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1612 2012-07-31  David S. Miller  <davem@davemloft.net>
1614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1616 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1618         [BZ #13629]
1619         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1620         value between 1.0 and 2.0 and smaller part has absolute value less
1621         than 1.0.
1622         * math/s_clog10.c (__clog10): Likewise.
1623         * math/s_clog10f.c (__clog10f): Likewise.
1624         * math/s_clog10l.c (__clog10l): Likewise.
1625         * math/s_clogf.c (__clogf): Likewise.
1626         * math/s_clogl.c (__clogl): Likewise.
1627         * math/libm-test.inc (clog_test): Add more tests.
1628         (clog10_test): Likewise.
1629         * sysdeps/i386/fpu/libm-test-ulps: Update.
1630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1632 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1634         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1635         Exit with zero in case no suitable GID is found, and write a
1636         message to standard error.
1638 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1640         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1641         rather than to 1.
1642         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1643         (MAXPATHLEN): Removed.
1644         (NOGROUP, NODEV): New macros.
1645         (setbit, clrbit, isset, isclr): New macros.
1646         (howmany, roundup, powerof2): New macros.
1647         (DEV_BSIZE): New macro.
1649         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1650         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1652         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1653         definition on [!__NO_LONG_DOUBLE_MATH].
1655         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1656         PTR_MANGLE and PTR_DEMANGLE.
1658         * socket/accept4.c (accept4): Rename to __libc_accept4.
1659         Define accept4 as a weak alias.
1661         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1662         on [_DIRENT_HAVE_D_TYPE].
1663         * io/ftw.c (ftw_dir): Likewise.
1665         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1667         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1669         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1670         Use the BSD numbers rather than the arbitrary ones we had.
1671         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1672         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1673         (SIGXCPU, SIGXFSZ): New macros.
1674         (_NSIG): Now 32.
1676         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1677         initializer on [_LIBC_REENTRANT].
1679         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1680         definitions inside [_POSIX_MAPPED_FILES].
1682         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1684         * dirent/opendir.c: Include <fcntl.h>.
1686         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1687         (__libc_getspecific): Likewise.
1688         (__libc_key_create): Likewise.
1690         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1691         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1692         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1693         (tmpfile64): Define as alias.
1694         * sysdeps/wordsize-64/tmpfile.c: File removed.
1695         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1696         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1697         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1699         * stdio-common/vfscanf.c: Include <stdbool.h>.
1700         * nss/makedb.c: Likewise.
1701         * stdio-common/_i18n_number.h: Likewise.
1702         * argp/argp-help.c: Likewise.
1703         * posix/wordexp.c: Likewise.
1704         * sysdeps/posix/spawni.c: Likewise.
1705         * nss/nss_files/files-initgroups.c: Likewise.
1706         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1707         * nss/nss_files/files-initgroups.c: Likewise.
1708         * nss/nss_db/db-netgrp.c: Likewise.
1709         * nss/nss_db/db-initgroups.c: Likewise.
1710         * io/fchmodat.c: Include <sys/stat.h>.
1712         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1713         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1715         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1716         [HAVE_MMAP].
1718         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1719         Add multiple inclusion protection.
1721 2012-07-27  David S. Miller  <davem@davemloft.net>
1723         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1725 2012-07-27  Gary Benson  <gbenson@redhat.com>
1727         [BZ #14298]
1728         * elf/rtld.c: Include <stap-probe.h>.
1729         (dl_main): Added static probes "init_start" and "init_complete".
1730         * elf/dl-load.c: Include <stap-probe.h>.
1731         (lose): Take new parameter "nsid".
1732         Added static probe "map_failed".
1733         (_dl_map_object_from_fd): Pass namespace id to lose.
1734         Added static probe "map_start".
1735         (open_verify): Pass namespace id to lose.
1736         * elf/dl-open.c: Include <stap-probe.h>.
1737         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1738         and "reloc_complete".
1739         * elf/dl-close.c: Include <stap-probe.h>.
1740         (_dl_close_worker): Added static probes "unmap_start" and
1741         "unmap_complete".
1742         * elf/rtld-debugger-interface.txt: New file documenting the above.
1744 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1746         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1747         rather than a string variable.
1748         * sunrpc/rpc_main.c (h_output): Likewise.
1749         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1751 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1753         * inet/check_native.c: New file.
1755 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1757         [BZ #13629]
1758         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1759         if larger part has absolute value 1.0.
1760         * math/s_clog10.c (__clog10): Likewise.
1761         * math/s_clog10f.c (__clog10f): Likewise.
1762         * math/s_clog10l.c (__clog10l): Likewise.
1763         * math/s_clogf.c (__clogf): Likewise.
1764         * math/s_clogl.c (__clogl): Likewise.
1765         * math/libm-test.inc (clog_test): Add more tests.
1766         (clog10_test): Likewise.
1767         * sysdeps/i386/fpu/libm-test-ulps: Update.
1768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1770         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1771         (pltexit): Likewise.
1772         (La_regs): Likewise.
1773         (La_retval): Likewise.
1774         (int_retval): Likewise.
1775         Update #error for removed macros to refer only to definitions in
1776         tst-audit.h.
1777         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1778         macro.
1779         (pltexit): Likewise.
1780         (La_regs): Likewise.
1781         (La_retval): Likewise.
1782         (int_retval): Likewise.
1783         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1784         macro.
1785         (pltexit): Likewise.
1786         (La_regs): Likewise.
1787         (La_retval): Likewise.
1788         (int_retval): Likewise.
1789         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1790         macro.
1791         (pltexit): Likewise.
1792         (La_regs): Likewise.
1793         (La_retval): Likewise.
1794         (int_retval): Likewise.
1795         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1796         macro.
1797         (pltexit): Likewise.
1798         (La_regs): Likewise.
1799         (La_retval): Likewise.
1800         (int_retval): Likewise.
1801         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1802         macro.
1803         (pltexit): Likewise.
1804         (La_regs): Likewise.
1805         (La_retval): Likewise.
1806         (int_retval): Likewise.
1807         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1808         macro.
1809         (pltexit): Likewise.
1810         (La_regs): Likewise.
1811         (La_retval): Likewise.
1812         (int_retval): Likewise.
1813         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1814         macro definitions in tst-audit.h.
1815         * sysdeps/i386/tst-audit.h: New file.
1816         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1817         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1818         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1819         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1820         * sysdeps/sh/tst-audit.h: Likewise.
1821         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1822         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1823         * sysdeps/x86_64/tst-audit.h: Likewise.
1825 2012-07-26  Andreas Jaeger  <aj@suse.de>
1827         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1828         ptrace.
1830         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1831         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1832         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1833         PTRACE_O_MASK.
1834         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1835         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1836         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1838         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1839         value.
1841         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1842         _sigsys.
1843         (si_call_addr, si_syscall, si_arch): Define new macro.
1844         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1845         _sigsys.
1846         (si_call_addr, si_syscall, si_arch): Define new marcro.
1847         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1848         _sigsys.
1849         (si_call_addr, si_syscall, si_arch): Define new macro.
1850         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1851         _sigsys.
1852         (si_call_addr, si_syscall, si_arch): Define new macro.
1854 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1856         [BZ #13717]
1857         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1858         Change to 2.4.21 where previously 2.4.1.
1859         * sysdeps/unix/sysv/linux/configure: Regenerated.
1860         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1861         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1862         Linux kernel version.
1863         (__ASSUME_STD_AUXV): Remove.
1864         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1865         kernel version.
1866         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1867         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1868         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1869         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1870         (__ASSUME_NETLINK_SUPPORT): Likewise.
1871         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1872         (__no_netlink_support): Remove conditional definition.
1873         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1874         Remove.
1875         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1876         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1877         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1878         (if_nameindex_ioctl): Remove.
1879         (if_nameindex_netlink): Do not handle __no_netlink_support.
1880         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1881         code.
1882         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1883         Remove conditional code.
1884         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1885         code.
1886         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1887         unconditional.
1888         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1889         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1890         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1891         Remove.
1892         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1893         [!__ASSUME_STD_AUXV]: Remove conditional code.
1894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1895         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1896         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1898         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1899         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1900         code.
1901         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1903         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1904         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1905         conditional code.
1906         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1908         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1909         code.
1910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1911         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1912         conditional code.
1913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1914         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1915         code unconditional.
1916         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1917         conditional code.
1918         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1919         unconditional.
1920         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1921         conditional code.
1922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1923         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1924         unconditional.
1925         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1926         conditional code.
1927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1928         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1929         code unconditional.
1930         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1931         conditional code.
1932         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1933         unconditional.
1934         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1935         conditional code.
1936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1937         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1938         code unconditional.
1939         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1940         conditional code.
1941         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1942         unconditional.
1943         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1944         conditional code.
1946 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1948         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1949         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1950         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1951         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1952         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1953         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1954         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1955         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1956         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1957         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1958         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1959         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1960         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1961         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1962         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1963         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1964         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1965         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1966         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1967         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1968         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1969         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1970         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1972 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1974         * Versions.def: Add GLIBC_2.17.
1975         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1976         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1977         Introduce __libc_secure_getenv.
1978         * stdlib/Versions (2.17): Add secure_getenv
1979         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1980         * stdlib/secure-getenv.c: Rename __secure_getenv to
1981         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1982         symbol __secure_getenv for GLIBC_2.0.
1983         * stdlib/tst-secure-getenv.c: New.
1984         * stdlib/Makefile (tests): Add testcase.
1985         * manual/startup.texi (Environment Access): Document
1986         secure_getenv.
1987         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1988         __libc_secure_getenv.
1989         * inet/ruserpass.c (ruserpass): Likewise.
1990         * malloc/mtrace.c (mtrace): Likewise.
1991         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1992         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1993         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1994         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1995         HAVE_SECURE_GETENV.
1996         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1997         __secure_getenv to __libc_secure_getenv.
1998         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2000         Likewise.
2001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2002         Likewise.
2003         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2004         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2005         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2006         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2007         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2008         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2009         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2011 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2013         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2014         (struct La_i86_retval): Likewise.
2015         (struct La_x86_64_regs): Likewise.
2016         (struct La_x86_64_retval): Likewise.
2017         (struct La_x32_regs): Likewise.
2018         (struct La_x32_retval): Likewise.
2019         (struct La_ppc32_regs): Likewise.
2020         (struct La_ppc32_retval): Likewise.
2021         (struct La_ppc64_regs): Likewise.
2022         (struct La_ppc64_retval): Likewise.
2023         (struct La_sh_regs): Likewise.
2024         (struct La_sh_retval): Likewise.
2025         (struct La_s390_32_regs): Likewise.
2026         (struct La_s390_32_retval): Likewise.
2027         (struct La_s390_64_regs): Likewise.
2028         (struct La_s390_64_retval): Likewise.
2029         (struct La_sparc32_regs): Likewise.
2030         (struct La_sparc32_retval): Likewise.
2031         (struct La_sparc64_regs): Likewise.
2032         (struct La_sparc64_retval): Likewise.
2033         (struct audit_ifaces): Remove architecture-specific pltenter and
2034         pltexit members.
2035         * sysdeps/i386/ldsodefs.h: New file.
2036         * sysdeps/powerpc/ldsodefs.h: Likewise.
2037         * sysdeps/s390/ldsodefs.h: Likewise.
2038         * sysdeps/sh/ldsodefs.h: Likewise.
2039         * sysdeps/sparc/ldsodefs.h: Likewise.
2040         * sysdeps/x86_64/ldsodefs.h: Likewise.
2042 2012-07-25  Marek Polacek  <polacek@redhat.com>
2044         [BZ #6808]
2045         * math/libm-test.inc (yn_test): Add another test.
2046         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2047         to ERANGE when the result is +-Inf.
2048         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2049         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2050         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2051         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2053 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2055         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2056         equal to 0.
2057         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2058         clock_t.
2059         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2061 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2063         * configure.in <sysdeps resolving>: Correct printing
2064         Implies_before.
2065         * configure: Regenerate.
2067 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2069         * math/w_ilogb.c: Include <limits.h>.
2070         * math/w_ilogbl.c: Likewise.
2072 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2074         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2075         va_copy.  Document allowing for unavailable va_copy only as
2076         pre-C99 compatibility.
2077         * manual/string.texi (Copying and Concatenation): Use va_copy
2078         instead of __va_copy in concat example.
2080 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2082         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2083         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2084         it if not null.
2086         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2087         with O_NOLINK passed to __file_name_lookup.
2089         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2090         with O_NOLINK passed to __file_name_lookup.
2092         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2093         negative N or less than NGIDS.
2095         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2096         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2097         enough.  Use memcpy instead of strncpy.
2099 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2101         * elf/Makefile (check-data): Remove.
2102         (localplt.data): New vpath directive.
2103         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2104         instead of $(check-data).
2105         * scripts/data/localplt-generic.data: Move to ...
2106         * sysdeps/generic/localplt.data: ... here.
2107         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2108         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2109         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2111         ... here.
2112         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2114         ... here.
2115         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2116         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2117         ... here.
2118         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2119         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2120         ... here.
2121         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2122         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2123         ... here.
2124         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2125         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2126         ... here.
2128 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2130         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2131         PPC32 and PPC64 files.
2132         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2133         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2135 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2137         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2138         __makecontext_ret to ...
2139         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2140         ... here and call exit if uc_link is NULL.  New file.
2141         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2142         __makecontext_ret.S.
2143         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2144         __makecontext_ret to ...
2145         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2146         ... here and call exit if uc_link is NULL.  New file.
2147         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2148         __makecontext_ret.S.
2150 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2152         * elf/elf.h (R_390_IRELATIVE): New definition.
2153         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2154         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2155         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2156         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2157         (elf_machine_lazy_rel): Likewise.
2158         * sysdeps/s390/dl-irel.h: New file.
2159         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2160         * sysdeps/s390/s390-64/memset.S: New asm code.
2161         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2162         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2163         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2164         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2165         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2166         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2167         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2168         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2169         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2170         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2171         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2172         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2173         * sysdeps/s390/s390-32/memset.S: New asm code.
2174         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2176 2012-07-17  Marek Polacek  <polacek@redhat.com>
2178         [BZ #14349]
2179         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2180         * sysdeps/s390/s390-64/configure.in: Likewise.
2181         * sysdeps/sparc/configure.in: Likewise.
2182         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2183         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2184         * sysdeps/i386/configure.in: Likewise.
2185         * sysdeps/x86_64/configure.in: Likewise.
2186         * sysdeps/sh/configure.in: Likewise.
2187         * sysdeps/s390/s390-32/configure: Regenerated.
2188         * sysdeps/s390/s390-64/configure: Likewise.
2189         * sysdeps/x86_64/configure: Likewise.
2190         * sysdeps/sh/configure: Likewise.
2191         * sysdeps/powerpc/powerpc64/configure: Likewise.
2192         * sysdeps/powerpc/powerpc32/configure: Likewise.
2193         * sysdeps/sparc/configure: Likwise.
2194         * sysdeps/i386/configure: Likewise.
2196         * elf/dl-open.c: Comment fixes.
2198 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2200         * Makefile [CXX] (check-data): Remove.
2201         [CXX] (c++-types.data): New vpath directive.
2202         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2203         vpath.  Do not allow for C++ type data being missing.
2204         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2205         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2206         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2207         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2208         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2209         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2210         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2212         ... here.
2213         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2215         ... here.
2216         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2217         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2218         ... here.
2219         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2221         ... here.
2222         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2223         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2224         ... here.
2225         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2226         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2227         ... here.
2228         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2229         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2230         ... here.
2231         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2232         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2234         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2235         definitions to architecture-specific files.
2236         (TLS_IE): Likewise.
2237         (TLS_LD): Likewise.
2238         (TLS_GD): Likewise.
2239         * sysdeps/i386/tls-macros.h: New file.
2240         * sysdeps/powerpc/tls-macros.h: Likewise.
2241         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2242         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2243         * sysdeps/sh/tls-macros.h: Likewise.
2244         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2245         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2246         * sysdeps/x86_64/tls-macros.h: Likewise.
2248 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2250         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2251         zero value for regular exit case.
2253         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2254         (__start_context): Preserve zero value for regular exit case.
2256 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2257             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2259         * manual/setjmp.texi (setcontext): Clarify normal process
2260         termination when uc_link is the null pointer.
2261         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2262         exit call.
2264 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2266         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2267         preprocessor.  Test for each exception mask separately.
2269 2012-07-16  Andreas Jaeger  <aj@suse.de>
2271         * po/ru.po: Update from translation team.
2273 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2275         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2276         equal to 0.
2277         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2278         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2279         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2280         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2281         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2283 2012-07-13  Andreas Jaeger  <aj@suse.de>
2285         * po/fr.po: Update from translation team.
2287 2012-07-12  Marek Polacek  <polacek@redhat.com>
2289         [BZ #14173]
2290         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2291         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2292         loop condition.
2294 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2296         [BZ #13717]
2297         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2298         Change to 2.4.1 where previously 2.4.0.
2299         * sysdeps/unix/sysv/linux/configure: Regenerated.
2300         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2301         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2302         version.
2303         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2304         (__ASSUME_AT_CLKTCK): Remove.
2305         (__ASSUME_AT_PAGESIZE): Likewise.
2306         (__ASSUME_AT_XID): Likewise.
2307         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2308         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2309         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2310         unconditionally.
2311         (HAVE_AUX_PAGESIZE): Likewise.
2312         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2313         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2314         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2316 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2318         [BZ #14307]
2319         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2320         the temporary buffer used to invoke __gethostbyname2_r,
2321         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2322         host_data / struct gaih_addrtuple.
2323         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2324         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2325         header file nss/nsswitch.h.
2326         * nss/nsswitch.h (global scope): Add definition of implementation
2327         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2328         resolv/nss_dns/dns-host.c).
2330 2012-07-11  Andreas Jaeger  <aj@suse.de>
2332         * po/fr.po: Update from translation team.
2334         * po/sv.po: Update from translation team
2335         * po/fr.po: Another update from translation team.
2337 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2339         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2340         for subnormals or multiply small sinh result by itself.
2341         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2342         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2344 2012-07-11  David S. Miller  <davem@davemloft.net>
2346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2348 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2350         [BZ #14347]
2351         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2352         (INTERNAL_MARK): Shift it here.
2354 2012-07-10  Marek Polacek  <polacek@redhat.com>
2356         [BZ #14151]
2357         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2358         libc_cv_asm_global_directive with .globl.
2359         * configure: Regenerated.
2360         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2361         with .globl.
2362         * sysdeps/i386/configure: Regenerated.
2363         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2364         with .globl.
2365         * sysdeps/x86_64/configure: Regenerated.
2366         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2367         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2368         * elf/tst-unique2mod2.c: Likewise.
2369         * elf/tst-unique2mod1.c: Likewise.
2370         * elf/tst-unique1mod2.c: Likewise.
2371         * elf/tst-unique1mod1.c: Likewise.
2372         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2373         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2374         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2375         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2376         * sysdeps/mach/sysdep.h: Likewise.
2377         * sysdeps/i386/sysdep.h: Likewise.
2378         * sysdeps/i386/i386-mcount.S: Likewise.
2379         * sysdeps/x86_64/_mcount.S: Likewise.
2380         * sysdeps/x86_64/sysdep.h: Likewise.
2381         * sysdeps/sh/_mcount.S: Likewise.
2382         * sysdeps/sh/sysdep.h: Likewise.
2383         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2384         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2385         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2386         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2387         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2388         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2389         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2390         * locale/localeinfo.h: Likewise.
2391         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2392         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2394 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2396         [BZ #14336]
2397         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2398         system".
2399         * manual/message.texi (The Uniforum approach): Likewise.
2400         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2401         (glibc iconv Implementation): Likewise.
2403 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2405         [BZ #14337]
2406         * math/s_clog.c (__clog): Avoid scaling a value down where that
2407         could result in underflow.
2408         * math/s_clog10.c (__clog10): Likewise.
2409         * math/s_clog10f.c (__clog10f): Likewise.
2410         * math/s_clog10l.c (__clog10l): Likewise.
2411         * math/s_clogf.c (__clogf): Likewise.
2412         * math/s_clogl.c (__clogl): Likewise.
2413         * math/libm-test.inc (clog_test): Add more tests.
2414         (clog10_test): Likewise.
2415         * sysdeps/i386/fpu/libm-test-ulps: Update.
2416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2418 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2420         [BZ #14283]
2421         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2422         by 7 not 8 to examine high bit of fractional part.
2424         [BZ #14042]
2425         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2426         for call to __mcount_internal.
2427         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2428         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2429         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2431 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2433         [BZ #14154]
2434         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2435         approximation for values within 0x1p-13f of an odd multiple of
2436         pi/4.
2437         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2438         exception.  Add more tests.
2439         * sysdeps/i386/fpu/libm-test-ulps: Update.
2441         [BZ #6778]
2442         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2443         inputs and return -1 for them.  Do not check for +Inf in case not
2444         reachable for +Inf.
2445         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2446         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2447         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2448         and return -1 for them.  Do not check for +Inf in case not
2449         reachable for +Inf.
2450         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2451         define.
2452         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2453         and return -1 for them.  Do not check for +Inf in case not
2454         reachable for +Inf.
2455         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2456         spurious underflow.
2457         * sysdeps/i386/fpu/libm-test-ulps: Update.
2458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2460 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2462         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2464 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2466         [BZ #14157]
2467         [BZ #14331]
2468         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2469         could result in spurious underflow.  Scale down values above
2470         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2471         * math/s_csqrtf.c (__csqrtf): Likewise.
2472         * math/s_csqrtl.c (__csqrtl): Likewise.
2473         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2474         spurious underflow.
2475         * sysdeps/i386/fpu/libm-test-ulps: Update.
2476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2478 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2480         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2481         xopen-msg.sed.
2482         * catgets/xopen-msg.awk: New file.
2483         * catgets/xopen-msg.sed: Removed.
2485         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2486         po2text.sed.
2487         * intl/po2test.awk: New file.
2488         * intl/po2test.sed: Removed.
2490 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2492         [BZ #14328]
2493         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2494         or multiply small sinh result by itself.
2495         * math/s_ctanf.c (__ctanf): Likewise.
2496         * math/s_ctanh.c (__ctanh): Likewise.
2497         * math/s_ctanhf.c (__ctanhf): Likewise.
2498         * math/s_ctanhl.c (__ctanhl): Likewise.
2499         * math/s_ctanl.c (__ctanl): Likewise.
2500         * math/libm-test.inc (ctan_test_tonearest): New function.
2501         (ctan_test_towardzero): Likewise.
2502         (ctan_test_downward): Likewise.
2503         (ctan_test_upward): Likewise.
2504         (ctanh_test_tonearest): Likewise.
2505         (ctanh_test_towardzero): Likewise.
2506         (ctanh_test_downward): Likewise.
2507         (ctanh_test_upward): Likewise.
2508         (main): Call these new functions.
2509         * sysdeps/i386/fpu/libm-test-ulps: Update.
2510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2512 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2514         * .gitignore: Delete /ports entry.
2516 2012-07-03  Andreas Jaeger  <aj@suse.de>
2518         * po/bg.po: Update from translation team.
2519         * po/cs.po: Likewise.
2520         * po/de.po: Likewise.
2521         * po/hr.po: Likewise.
2522         * po/nl.pl: Likewise.
2523         * po/pl.po: Likewise.
2524         * po/vi.po: Likewise.
2526 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2528         * Makeconfig [!+link] (+link-before-libc): New variable.
2529         [!+link] (+link-after-libc): Likewise.
2530         [!+link] (+link-tests): Likewise.
2531         [!+link] (+link): Define in terms of $(+link-before-libc) and
2532         $(+link-after-libc).
2533         [!+link-static] (+link-static-before-libc): New variable.
2534         [!+link-static] (+link-static-after-libc): Likewise.
2535         [!+link-static] (+link-static-tests): Likewise.
2536         [!+link-static] (+link-static): Define in terms of
2537         $(+link-static-before-libc) and $(+link-static-after-libc).
2538         [build-shared] (link-libc-before-gnulib): New variable.
2539         [build-shared] (link-libc-tests): Likewise.
2540         [build-shared] (link-libc): Define in terms of
2541         $(link-libc-before-gnulib).
2542         [!build-shared] (link-libc-tests): New variable.
2543         (link-libc-static-tests): New variable.
2544         [!gnulib] (gnulib-arch): New variable.
2545         [!gnulib] (gnulib-tests): Likewise.
2546         [!gnulib] (static-gnulib-arch): Likewise.
2547         [!gnulib] (static-gnulib-tests): Likewise.
2548         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2549         Define with "=" instead of ":=".
2550         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2551         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2552         * Rules (binaries-all-notests): New variable.
2553         (binaries-all-tests): Likewise.
2554         (binaries-static-notests): Likewise.
2555         (binaries-static-tests): Likewise.
2556         (binaries-all): Define using $(binaries-all-notests) and
2557         $(binaries-all-tests).
2558         (binaries-static): Define using $(binaries-static-notests) and
2559         $(binaries-static-tests).
2560         (binaries-shared-tests): New variable.
2561         (binaries-shared-notests): Likewise.
2562         (binaries-shared): Remove variable.
2563         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2564         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2565         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2566         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2567         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2568         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2569         * elf/Makefile (sln-modules): New variable.
2570         (extra-objs): Add $(sln-modules:=.o).
2571         (ldconfig-modules): Add static-stubs.
2572         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2573         * elf/static-stubs.c: New file.
2575         [BZ #14283]
2576         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2577         by 7 not 8 to examine high bit of fractional part.  Use volatile
2578         variables when splitting into final array of floats if
2579         __FLT_EVAL_METHOD__ != 0.
2580         * math/libm-test.inc (cos_test): Add another test.
2581         (sin_test): Likewise.
2582         * sysdeps/i386/fpu/libm-test-ulps: Update.
2584         [BZ #14273]
2585         * math/libm-test.inc (cosh_test): Add more tests.
2587         * version.h (RELEASE): Set to "development".
2588         (VERSION): Set to "2.16.90".
2590 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2592         * NEWS: Update copyright. Remove last-updated date.
2593         Mention math library bug fixes and timezone data changes.
2594         * README: Mention GNU/Hurd, x32, and HPPA support status.
2596 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2598         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2600 2012-06-27  Andreas Jaeger  <aj@suse.de>
2602         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2604 2012-06-25  Andreas Jaeger  <aj@suse.de>
2606         * sysdeps/s390/fpu/libm-test-ulps: Update.
2608 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2609             Thomas Schwinge  <thomas@codesourcery.com>
2611         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2612         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2613         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2614         fanotify_mark.
2616 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2618         * sysdeps/mach/start.c: Remove file.
2619         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2620         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2621         * sysdeps/sh/init-first.c: Likewise.
2623         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2624         registers for frame unwinding purposes, add CFI directives.
2625         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2626         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2627         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2628         Likewise.
2630         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2631         __fortify_fail returning.
2632         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2634         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2635         sysdeps/sh/____longjmp_chk.S.
2636         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2637         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2638         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2639         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2641         * sysdeps/sh/abort-instr.h: New file.
2642         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2643         process in case exit returns.
2645         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2646         initialize the GOT register before use.
2648         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2649         calculation of ARGC > 4.
2651         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2652         meaningful names to some local labels.
2654 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2655             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2657         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2658         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2659         (__arch_compare_and_exchange_val_16_acq): Likewise.
2660         (__arch_compare_and_exchange_val_32_acq): Likewise.
2661         (atomic_exchange_and_add): Fix gUSA sequence.
2662         (atomic_add): Likewise.
2663         (atomic_add_negative): Likewise.
2664         (atomic_add_zero): Likewise.
2665         (atomic_bit_test_set): Likewise.
2667 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2669         [BZ #13579]
2670         * include/link.h (struct link_map): Add l_free_initfini.
2671         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2672         l_initfini.
2673         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2674         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2675         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2676         set.
2678 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2680         * configure.in: Use AC_LANG_SOURCE.
2681         * configure: Regenerate.
2683 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2685         * configure.in (libc_cv_localstatedir): New substituted variable.
2686         * configure: Regenerated.
2687         * config.make.in (localstatedir): New variable, substituted from
2688         libc_cv_localstatedir.
2689         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2690         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2691         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2692         * sysdeps/gnu/configure: Regenerated.
2694 2012-06-21  Jeff Law  <law@redhat.com>
2696         [BZ #14277]
2697         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2698         free.  Simplify list management for _LIBC case.
2700 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2702         [BZ #14273]
2703         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2704         Clear sign bit of 64-bit integer value before comparing against
2705         overflow value.
2707         * sysdeps/mach/configure: Regenerated.
2709 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2711         [BZ #14278]
2712         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2714 2012-06-21  Jeff Law  <law@redhat.com>
2716         [BZ #13882]
2717         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2718         uint16_t for elements in the "seen" array to avoid char overflows.
2719         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2720         * elf/dl-open.c (dl_open_worker): Likewise.
2722 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2724         * scripts/list-sources.sh: Scan PORTS for translations.
2725         * po/libc.pot: Regenerated.
2727 2012-06-21  Andreas Jaeger  <aj@suse.de>
2729         [BZ #12194]
2730         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2731         warning.
2732         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2733         * bits/byteswap-16.h (__bswap_16): Likewise.
2734         * bits/byteswap.h (__bswap_constant_16): Likewise.
2736 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2738         [BZ #14117]
2739         * sysdeps/i386/fpu_control.h: Removed.
2740         * sysdeps/x86_64/fpu_control.h: Moved to ...
2741         * sysdeps/x86/fpu_control.h: Here.
2743         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2744         (_FPU_SETCW): Likewise.
2746 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2748         [BZ #14117]
2749         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2750         * sysdeps/x86/fpu/bits/mathinline.h: This.
2751         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2753         [BZ #14050]
2754         [BZ #14117]
2755         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2756         functions if __x86_64__ is defined.
2758 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2760         * string/endian.h: Add !__ASSEMBLER__ condition for including
2761         conversion interfaces.
2763 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2765         [BZ #14241]
2766         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2767         of ABS(x) in calculating zero to negative powers other than odd
2768         integers.
2769         * math/libm-test.inc (pow_test): Add more tests.
2771 2012-06-15  Andreas Jaeger  <aj@suse.de>
2773         * manual/contrib.texi (Contributors): Update entry of Liubov
2774         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2775         Machado Filho.
2777 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2779         * string/string.h: Add __wur to GNU version of strerror_r.
2781 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2783         [BZ #14229]
2784         * string/Makefile (tests): Add tst-strtok_r.
2785         * string/tst-strtok_r.c: New file.
2786         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2787         RAX_LP/RDX_LP on SAVE_PTR.
2789 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2791         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2793 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2795         * libm_test.inc (csqrt_test): Allow more spurious underflow
2796         exceptions.
2797         (j0_test): Likewise.
2798         (j1_test): Likewise.
2799         (y0_test): Likewise.
2800         (y1_test): Likewise.
2802 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2804         * po/Makefile (libc.pot): Use UTF-8 charset.
2806 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2808         [BZ #14210]
2809         Suppress sign-conversion warning from FD_SET.
2810         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2811         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2812         not unsigned long int.
2813         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2815 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2817         [BZ #14050]
2818         [BZ #14117]
2819         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2820         __extern_always_inline instead of __extern_inline.
2821         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2822         (__signbit): Likewise.
2823         (__signbitl): Support C++ namespace.
2824         (lrintf): New inline function.
2825         (lrint): Likewise.
2826         (llrintf): Likewise.
2827         (llrint): Likewise.
2828         (fmaxf): Likewise.
2829         (fmax): Likewise.
2830         (fminf): Likewise.
2831         (fmin): Likewise.
2832         (rint): Likewise.
2833         (rintf): Likewise.
2834         (ceil): Likewise.
2835         (ceilf): Likewise.
2836         (floor): Likewise.
2837         (floorf): Likewise.
2838         (nearbyint): Likewise.
2839         (nearbyintf): Likewise.
2841 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2843         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2844         non-default versions.
2846 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2848         [BZ #14218]
2849         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2851 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2853         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2854         (FE_UPWARD, FE_DOWNWARD): Don't define.
2855         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2856         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2858         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2859         reading it.
2860         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2861         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2863 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2865         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2866         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2867         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2868         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2870 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2872         [BZ #14117]
2873         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2874         * sysdeps/i386/fpu/Implies: New file.
2875         * sysdeps/x86_64/fpu/Implies: Likewise.
2876         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2877         * sysdeps/x86/fpu/bits/fenv.h: This.
2879         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2880         __SSE_MATH__.
2882 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2884         [BZ #14134]
2885         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2886         character 0xffff that matches the last element of the
2887         conversion table.
2889 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2891         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2892         fmodl commit.
2894 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2896         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2897         values higher than 25.6283.
2899 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2901         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2902         subnormal exponent extraction and add some __builtin_expect.
2903         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2904         Fix for subnormal mantissa calculation.
2906 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2908         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2909         cpu2 is -1 and errno is not ENOSYS.
2911 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2913         [BZ #14117]
2914         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2915         * sysdeps/x86/bits/string.h: This.
2916         * sysdeps/x86_64/bits/string.h: Removed.
2918         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2919         if not compiling for x86-64, but compiling for >= i486.
2921         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2922         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2924         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2925         New macro from Linux kernel 3.4.0.
2926         (FP_XSTATE_MAGIC2): Likewise.
2927         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2928         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2929         (struct _fpx_sw_bytes): New struct.
2930         (struct _xsave_hdr): Likewise.
2931         (struct _ymmh_state): Likewise.
2932         (struct _xstate): Likewise.
2934         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2935         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2936         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2937         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2938         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2939         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2941         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2942         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2943         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2944         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2945         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2946         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2948 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2950         [BZ #13743]
2951         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2952         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2953         (sysdep_headers): Include sys/platform/ppc.h.
2954         * sysdeps/powerpc/test-gettimebase.c: Test for
2955         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2956         * manual/Makefile (appendices): Include platform.texi.
2957         * manual/contrib.texi (Contributors): Update @node pointers.
2958         * manual/maint.texi (Maintenance): Likewise.
2959         (Platform): New node.
2960         * manual/platform.texi: New file.  Document the new features.
2962 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2963             Jakub Jelinek  <jakub@redhat.com>
2965         [BZ #14188]
2966         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2967         where __builtin_expect is unavailable.
2969 2012-06-03  David S. Miller  <davem@davemloft.net>
2971         * stdlib/longlong.h: Updated from GCC.
2973 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2975         [BZ #14042]
2976         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2977         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2978         __mcount_internal.
2979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2980         (GLIBC_2.16): Likewise.
2982 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2984         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2986 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2989         (default-abi): New variable.
2990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2991         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2992         variable.
2993         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2994         Likewise.
2995         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2996         Likewise.
2997         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2998         Likewise.
3000         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3001         definition.  Document in comment.
3003 2012-06-01  David S. Miller  <davem@davemloft.net>
3005         * stdlib/longlong.h: Updated from GCC.
3007 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3009         [BZ #14117]
3010         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3011         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3012         sys/debugreg.h sys/io.h here.
3013         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3014         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3015         sys/io.h.
3016         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3017         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3018         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3019         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3020         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3021         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3023         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3024         Define only if __x86_64__ is defined.
3026 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3028         [BZ #14048]
3029         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3030         Use int64_t for variable i.
3031         * math/libm-test.inc (fmod_test): Add more tests.
3033         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3034         z computation is not scheduled after fetestexcept.
3035         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3036         Use math_force_eval instead of asm to ensure calculation scheduled
3037         before exception test.
3038         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3039         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3041 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3043         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3044         computation is not scheduled after fetestexcept.
3046 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3048         [BZ #14117]
3049         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3050         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3052 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3054         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3055         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3057 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3059         [BZ #14117]
3060         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3061         <bits/wordsize.h>.
3062         (__WCHAR_MIN): Support __WORDSIZE == 64.
3063         (__WCHAR_MAX): Likewise.
3065         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3066         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3068         [BZ #14183]
3069         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3070         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3072         [BZ #14117]
3073         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3074         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3076         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3077         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3079         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3080         Defined to 1 if __x86_64__ isn't defined.
3081         (_STAT_VER_LINUX_OLD): New.
3082         (st_atime): Remove duplicate.
3083         (st_mtime): Likewise.
3084         (st_ctime): Likewise.
3086 2012-05-31  David S. Miller  <davem@davemloft.net>
3088         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3089         entries.
3091 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3093         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3094         gen-libm-test.pl.
3096         [BZ #14132]
3097         * elf/dl-reloc.c: Include <_itoa.h>.
3098         (_dl_reloc_bad_type): Remove use of INTUSE.
3099         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3100         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3101         * stdio-common/psiginfo.c (psiginfo): Likewise.
3102         * stdio-common/psignal.c (psignal): Likewise.
3103         * string/strsignal.c (strsignal): Likewise.
3104         * include/signal.h (_sys_siglist): Declare hidden proto.
3105         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3106         INTVARDEF with libc_hidden_data_def.
3107         * stdio-common/itoa-udigits.c: Likewise.
3108         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3109         (_itoa_lower_digits_internal): Remove declaration.
3110         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3111         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3112         (_sys_sigabbrev_internal): Remove aliases.
3113         (_sys_siglist): Define hidden alias.
3115 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3117         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3118         bits/sysctl.h.
3120 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3122         [BZ #14117]
3123         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3124         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3126         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3127         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3128         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3129         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3130         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3131         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3133         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3134         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3135         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3137         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3138         with __addr.
3139         (insw): Likewise.
3140         (insl): Likewise.
3141         (outsb): Likewise.
3142         (outsw): Likewise.
3143         (outsl): Likewise.
3145         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3146         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3147         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3149         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3150         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3151         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3152         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3153         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3154         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3156         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3157         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3159         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3160         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3162         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3163         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3164         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3166         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3167         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3168         to ...
3169         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3171         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3172         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3173         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3175         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3176         for x86-64.
3177         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3179 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3181         * math/math.h (M_El): Use two more decimal places.
3182         (M_LOG2El): Likewise.
3183         (M_LOG10El): Likewise.
3184         (M_LN2l): Likewise.
3185         (M_LN10l): Likewise.
3186         (M_PIl): Likewise.
3187         (M_PI_2l): Likewise.
3188         (M_PI_4l): Likewise.
3189         (M_1_PIl): Likewise.
3190         (M_2_PIl): Likewise.
3191         (M_2_SQRTPIl): Likewise.
3192         (M_SQRT2l): Likewise.
3193         (M_SQRT1_2l): Likewise.
3195 2012-05-31  David S. Miller  <davem@davemloft.net>
3197         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3198         values between float registers.
3199         * sysdeps/sparc/sparc64/memset.S: Likewise.
3200         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3202 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3204         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3205         -D_FORTIFY_SOURCE=1.
3206         (CPPFLAGS-tst-longjmp_chk.c): Define.
3207         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3208         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3209         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3210         CFLAGS-tst-wchar-h.c.
3212 2012-05-31  Marek Polacek  <polacek@redhat.com>
3214         [BZ #14132]
3215         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3216         __endmntent_internal): Remove declaration.
3217         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3218         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3219         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3221 2012-05-30  David S. Miller  <davem@davemloft.net>
3223         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3224         (___Q_simulate_exceptions): Use real FP ops rather than writing
3225         into the %fsr.
3226         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3227         Likewise.
3229 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3231         [BZ #14117]
3232         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3233         * sysdeps/x86/bits/xtitypes.h: This.
3235         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3236         * sysdeps/x86/bits/wordsize.h: This.
3238         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3239         * sysdeps/x86/bits/huge_vall.h: This.
3241         * sysdeps/i386/bits/select.h: Removed.
3242         * sysdeps/x86_64/bits/select.h: Renamed to ...
3243         * sysdeps/x86/bits/select.h: This.
3245         * sysdeps/i386/bits/setjmp.h: Removed.
3246         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3247         * sysdeps/x86/bits/setjmp.h: This.
3249         * sysdeps/i386/bits/mathdef.h: Removed.
3250         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3251         * sysdeps/x86/bits/mathdef.h: This.
3253 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3255         [BZ #14132]
3256         * include/sys/socket.h (__connect_internal)
3257         (__libc_sa_len_internal): Remove declaration.
3258         (__connect, __libc_sa_len): Declare hidden_proto.
3259         (SA_LEN): Remove use of INTUSE.
3260         * socket/connect.c: Add libc_hidden_def.
3261         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3262         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3263         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3264         alias.
3265         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3266         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3267         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3268         of adding _internal alias.
3270 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3272         [BZ #14117]
3273         * sysdeps/i386/bits/link.h: Removed.
3274         * sysdeps/i386/bits/linkmap.h: Likewise.
3275         * sysdeps/x86_64/bits/link.h: Renamed to ...
3276         * sysdeps/x86/bits/link.h: This.
3277         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3278         * sysdeps/x86/bits/linkmap.h: This.
3280         * sysdeps/i386/bits/endian.h: Removed.
3281         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3282         * sysdeps/x86/bits/endian.h: This.
3284         * sysdeps/i386/bits/byteswap.h: Removed.
3285         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3286         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3287         * sysdeps/x86/bits/byteswap.h: This.
3288         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3289         * sysdeps/x86/bits/byteswap-16.h: This.
3290         * sysdeps/i386/Implies: Add x86.
3291         * sysdeps/x86_64/Implies: Likewise.
3293 2012-05-30  David S. Miller  <davem@davemloft.net>
3295         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3296         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3297         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3298         (FP_TRAPPING_EXCEPTIONS): Define.
3299         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3300         (FP_TRAPPING_EXCEPTIONS): Define.
3301         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3302         subnormals only when inexact has been signalled or underflow
3303         exceptions are enabled.
3304         (_FP_PACK_CANONICAL): Likewise.
3306 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3308         [BZ #14183]
3309         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3310         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3312 2012-05-30  Richard Henderson  <rth@twiddle.net>
3314         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3315         with #ifndef NOT_IN_libc.
3317         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3318         marked to avoid plt entry.
3320 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3322         [BZ #14112]
3323         * Makeconfig (default-abi): New macro.
3324         (abi-includes): Likewise.
3325         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3326         $(abi-$(default-abi)-lib-soname) for soname if defined.
3327         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3328         abi-variants.
3329         * Makefile (installed-stubs): Likewise.
3330         * include/stubs-biarch.h: Removed.
3331         * scripts/lib-names.awk: Only handle one library at a time.
3332         * scripts/soversions.awk: Remove WORDSIZE support.
3333         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3334         entries.
3335         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3336         Removed.
3337         (syscall-list-default-condition): Likewise.
3338         (syscall-list-default-condition): Likewise.
3339         (syscall-list-includes): Likewise.
3340         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3341         syscall-list-* with abi-*.  Handle undefined abi-variants.
3342         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3343         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3344         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3345         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3346         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3347         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3348         Removed.
3349         (syscall-list-32-options): Likewise.
3350         (syscall-list-32-condition): Likewise.
3351         (syscall-list-64-options): Likewise.
3352         (syscall-list-64-condition): Likewise.
3353         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3354         macro.
3355         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3356         Renamed to ...
3357         (abi-*): This.
3358         (abi-64-ld-soname): New macro.
3359         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3360         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3361         Renamed to ...
3362         (abi-*): This.
3363         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3364         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3366 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3368         * sysdeps/unix/sysv/linux/kernel-features.h
3369         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3370         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3371         include <kernel-features.h>.
3372         [!__NR_ftruncate64]: Remove conditional code.
3373         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3374         [__NR_ftruncate64]: Make code unconditional.
3375         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3376         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3377         include <kernel-features.h>.
3378         [!__NR_ftruncate64]: Remove conditional code.
3379         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3380         [__NR_ftruncate64]: Make code unconditional.
3381         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3383         include <kernel-features.h>.
3384         [!__NR_ftruncate64]: Remove conditional code.
3385         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3386         [__NR_ftruncate64]: Make code unconditional.
3387         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3389         include <kernel-features.h>.
3390         [!__NR_ftruncate64]: Remove conditional code.
3391         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3392         [__NR_ftruncate64]: Make code unconditional.
3393         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3395         * configure.in (libc_cv_fpie): Weaken to a compile test using
3396         LIBC_TRY_CC_OPTION.
3397         * configure: Regenerated.
3399 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3401         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3402         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3403         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3405         Refreshed.
3406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3407         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3408         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3409         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3410         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3411         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3412         Refreshed.
3414 2012-05-27  David S. Miller  <davem@davemloft.net>
3416         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3417         (___Q_zero): New.
3418         (__Q_simulate_exceptions): Return void.  Change to simulate
3419         exceptions by writing into the %fsr.
3420         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3421         (__Qp_handle_exceptions): Likewise.
3422         (numbers): Delete.
3423         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3424         __Qp_handle_exceptions.
3425         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3426         __Qp_handle_exceptions.
3427         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3428         as unused and give dummy FP_RND_NEAREST initializer.
3429         (FP_INHIBIT_RESULTS): Define.
3430         (___Q_simulate_exceptions): Update declaration.
3431         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3432         formatting.
3433         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3434         as unused and give dummy FP_RND_NEAREST initializer.
3435         (__Qp_handle_exceptions): Update declaration.
3436         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3437         formatting.
3439 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3441         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3442         the temporary FPU control word.
3443         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3444         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3445         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3446         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3447         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3448         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3449         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3450         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3451         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3452         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3453         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3455 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3457         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3458         fields.
3460 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3462         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3463         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3464         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3465         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3466         Likewise.
3467         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3468         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3469         Likewise.
3471 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3473         * po/h.po: Update from translation team.
3475 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3477         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3479         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3480         handling of denormals.
3481         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3482         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3483         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3484         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3485         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3486         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3487         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3488         Likewise.
3490 2012-05-26  Marek Polacek  <polacek@redhat.com>
3492         [BZ #14152]
3493         * math/libm-test.inc (fma_test): Don't always expect underflow
3494         exception.
3496 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3498         [BZ #12416]
3499         * elf/tst-execstack.c: Include stackinfo.h.
3500         (do_test): Adjust test case to ensure that pthread_getattr_np
3501         behaviour remains the same after marking stack executable.
3503 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3505         * sysdeps/unix/sysv/linux/kernel-features.h
3506         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3507         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3508         kernel-features.h.
3509         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3510         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3511         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3512         kernel-features.h.
3513         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3514         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3516 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3518         * configure.in: Define the default includes to being none.
3519         * configure: Regenerated.
3521 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3523         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3524         * sysdeps/x86_64/setjmp.S: Likewise.
3525         * sysdeps/i386/bsd-setjmp.S: Likewise.
3526         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3527         * sysdeps/i386/setjmp.S: Likewise.
3528         * sysdeps/i386/__longjmp.S: Likewise.
3529         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3530         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3532         * include/stap-probe.h: New file.
3533         * configure.in: Handle --enable-systemtap.
3534         * configure: Regenerated.
3535         * config.h.in (USE_STAP_PROBE): New #undef.
3536         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3537         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3538         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3540 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3542         [BZ #13717]
3543         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3544         to 2.4.0 where earlier.
3545         * sysdeps/unix/sysv/linux/configure: Regenerated.
3546         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3547         <kernel-features.h>.
3548         [__ASSUME_32BITUIDS]: Make code unconditional.
3549         [!__ASSUME_32BITUIDS]: Remove conditional code.
3550         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3551         <kernel-features.h>.
3552         [__ASSUME_32BITUIDS]: Make code unconditional.
3553         [!__ASSUME_32BITUIDS]: Remove conditional code.
3554         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3555         [__ASSUME_32BITUIDS]: Make code unconditional.
3556         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3557         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3558         <kernel-features.h>.
3559         [__ASSUME_32BITUIDS]: Make code unconditional.
3560         [!__ASSUME_32BITUIDS]: Remove conditional code.
3561         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3562         <kernel-features.h>.
3563         [__ASSUME_32BITUIDS]: Make code unconditional.
3564         [!__ASSUME_32BITUIDS]: Remove conditional code.
3565         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3566         <kernel-features.h>.
3567         [__ASSUME_32BITUIDS]: Make code unconditional.
3568         [!__ASSUME_32BITUIDS]: Remove conditional code.
3569         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3570         <kernel-features.h>.
3571         [__ASSUME_32BITUIDS]: Make code unconditional.
3572         [!__ASSUME_32BITUIDS]: Remove conditional code.
3573         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3574         <kernel-features.h>.
3575         [__ASSUME_32BITUIDS]: Make code unconditional.
3576         [!__ASSUME_32BITUIDS]: Remove conditional code.
3577         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3578         <kernel-features.h>.
3579         [__ASSUME_32BITUIDS]: Make code unconditional.
3580         [!__ASSUME_32BITUIDS]: Remove conditional code.
3581         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3582         <kernel-features.h>.
3583         [__ASSUME_32BITUIDS]: Make code unconditional.
3584         [!__ASSUME_32BITUIDS]: Remove conditional code.
3585         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3586         <kernel-features.h>.
3587         [__ASSUME_32BITUIDS]: Make code unconditional.
3588         [!__ASSUME_32BITUIDS]: Remove conditional code.
3589         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3590         <kernel-features.h>.
3591         [__ASSUME_32BITUIDS]: Make code unconditional.
3592         [!__ASSUME_32BITUIDS]: Remove conditional code.
3593         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3594         <kernel-features.h>.
3595         [__ASSUME_32BITUIDS]: Make code unconditional.
3596         [!__ASSUME_32BITUIDS]: Remove conditional code.
3597         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3598         <kernel-features.h>.
3599         [__NR_setresgid] (__setresgid): Do not declare.
3600         [__ASSUME_32BITUIDS]: Make code unconditional.
3601         [!__ASSUME_32BITUIDS]: Remove conditional code.
3602         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3603         <kernel-features.h>.
3604         [__NR_setresuid] (__setresuid): Do not declare.
3605         [__ASSUME_32BITUIDS]: Make code unconditional.
3606         [!__ASSUME_32BITUIDS]: Remove conditional code.
3607         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3608         <kernel-features.h>.
3609         [__ASSUME_32BITUIDS]: Make code unconditional.
3610         [!__ASSUME_32BITUIDS]: Remove conditional code.
3611         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3612         <kernel-features.h>.
3613         [__ASSUME_32BITUIDS]: Make code unconditional.
3614         [!__ASSUME_32BITUIDS]: Remove conditional code.
3615         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3616         <kernel-features.h>.
3617         [__ASSUME_32BITUIDS]: Make code unconditional.
3618         [!__ASSUME_32BITUIDS]: Remove conditional code.
3619         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3620         <kernel-features.h>.
3621         [__ASSUME_32BITUIDS]: Make code unconditional.
3622         [!__ASSUME_32BITUIDS]: Remove conditional code.
3623         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3624         <kernel-features.h>.
3625         [__ASSUME_32BITUIDS]: Make code unconditional.
3626         [!__ASSUME_32BITUIDS]: Remove conditional code.
3627         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3628         <kernel-features.h>.
3629         [__ASSUME_32BITUIDS]: Make code unconditional.
3630         [!__ASSUME_32BITUIDS]: Remove conditional code.
3631         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3632         <kernel-features.h>.
3633         [__ASSUME_32BITUIDS]: Make code unconditional.
3634         [!__ASSUME_32BITUIDS]: Remove conditional code.
3635         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3636         <kernel-features.h>.
3637         [__ASSUME_32BITUIDS]: Make code unconditional.
3638         [!__ASSUME_32BITUIDS]: Remove conditional code.
3639         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3640         <kernel-features.h>.
3641         [__ASSUME_32BITUIDS]: Make code unconditional.
3642         [!__ASSUME_32BITUIDS]: Remove conditional code.
3643         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3644         <kernel-features.h>.
3645         [__ASSUME_32BITUIDS]: Make code unconditional.
3646         [!__ASSUME_32BITUIDS]: Remove conditional code.
3647         * sysdeps/unix/sysv/linux/kernel-features.h
3648         (__ASSUME_SETRESUID_SYSCALL): Remove.
3649         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3650         (__ASSUME_32BITUIDS): Likewise.
3651         (__ASSUME_LDT_WORKS): Likewise.
3652         (__ASSUME_O_DIRECTORY): Likewise.
3653         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3654         architecture but not kernel version.
3655         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3656         (__ASSUME_MMAP2_SYSCALL): Likewise.
3657         (__ASSUME_STAT64_SYSCALL): Likewise.
3658         (__ASSUME_IPC64): Likewise.
3659         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3660         <kernel-features.h>.
3661         [__ASSUME_32BITUIDS]: Make code unconditional.
3662         [!__ASSUME_32BITUIDS]: Remove conditional code.
3663         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3664         <kernel-features.h>.
3665         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3666         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3667         132096]: Remove conditional code.
3668         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3669         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3670         <kernel-features.h>.
3671         [__ASSUME_32BITUIDS]: Make code unconditional.
3672         [!__ASSUME_32BITUIDS]: Remove conditional code.
3673         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3674         <kernel-features.h>.
3675         [__ASSUME_32BITUIDS]: Make code unconditional.
3676         [!__ASSUME_32BITUIDS]: Remove conditional code.
3677         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3678         <kernel-features.h>.
3679         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3680         unconditional.
3681         (__setresgid): Do not declare.
3682         [__ASSUME_32BITUIDS]: Make code unconditional.
3683         [!__ASSUME_32BITUIDS]: Remove conditional code.
3684         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3685         <kernel-features.h>.
3686         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3687         unconditional.
3688         (__setresuid): Do not declare.
3689         [__ASSUME_32BITUIDS]: Make code unconditional.
3690         [!__ASSUME_32BITUIDS]: Remove conditional code.
3691         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3692         <kernel-features.h>.
3693         [__ASSUME_32BITUIDS]: Make code unconditional.
3694         [!__ASSUME_32BITUIDS]: Remove conditional code.
3695         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3696         <kernel-features.h>.
3697         [__ASSUME_32BITUIDS]: Make code unconditional.
3698         [!__ASSUME_32BITUIDS]: Remove conditional code.
3700 2012-05-25  Richard Henderson  <rth@twiddle.net>
3702         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3703         dl_hwcap to ifunc resolver.
3704         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3705         elf_ifunc_invoke.
3706         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3707         dl_hwcap to ifunc resolver.
3708         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3710 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3712         [BZ #14153]
3713         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3714         for |x| <= 2**-26, not 2**-57.
3715         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3716         exception.
3718 2012-05-24  Jeff Law  <law@redhat.com>
3720         * stdio-common/Makefile (tests): Add bug25.
3721         * stdio-common/bug25.c: New test.
3723 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3725         [BZ #13576]
3726         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3727         multiple of MALLOC_ALIGNMENT in size.
3728         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3730 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3732         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3733         Require >= 256.
3734         (FILENAME_MAX): Use macro-int-constant.
3735         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3736         (_IOFBF): Use macro-int-constant.
3737         (_IOLBF): Likewise.
3738         (_IONBF): Likewise.
3739         (SEEK_CUR): Likewise.
3740         (SEEK_END): Likewise.
3741         (SEEK_SET): Likewise.
3742         (TMP_MAX): Likewise.
3743         (EOF): Use macro-int-constant.  Require < 0.
3744         (NULL): Use macro-constant.  Require == 0.
3745         (stdin): Require type to be FILE *.
3746         (stdout): Likewise.
3747         (stderr): Likewise.
3748         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3749         macro-int-constant.
3750         (EXIT_SUCCESS): Likewise.
3751         (NULL): Use macro-constant.  Require == 0.
3752         (RAND_MAX): Use macro-int-constant.
3753         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3754         [C99-based standards] (strtof): Require function.
3755         [C99-based standards] (strtold): Likewise.
3756         [C99-based standards] (strtoll): Likewise.
3757         [C99-based standards] (strtoull): Likewise.
3758         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3759         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3760         [ISO || ISO99 || ISO11] (math.h): Likewise.
3761         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3762         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3763         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3765 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3767         [BZ #14132]
3768         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3769         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3770         * intl/dgettext.c (DCGETTEXT): Likewise.
3771         * intl/gettext.c (DCGETTEXT): Likewise.
3772         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3773         * posix/regex_internal.h (gettext): Likewise.
3774         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3775         Remove declaration.
3776         * include/argz.h (__argz_count_internal)
3777         (__argz_stringify_internal): Remove declaration.
3778         (__argz_count, __argz_stringify): Declare hidden proto.
3779         * intl/dcgettext.c: Remove use of INTDEF.
3780         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3781         * string/argz-stringify.c: Likewise.
3782         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3783         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3784         Declare hidden proto.
3785         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3786         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3787         Declare hidden proto.
3788         * include/stdio.h (__asprintf_internal): Don't declare.
3789         (__asprintf): Don't define as macro.  Declare hidden proto.
3790         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3791         (__fsetlocking): Declare hidden proto.
3792         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3793         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3794         hidden proto.
3795         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3796         (_IO_setlinebuf): Remove use of INTUSE.
3797         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3798         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3799         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3800         Remove declaration.
3801         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3802         (_IO_do_flush): Remove use of INTUSE.
3803         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3804         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3805         (_IO_adjust_column, _IO_least_wmarker)
3806         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3807         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3808         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3809         (_IO_default_doallocate, _IO_wdefault_doallocate)
3810         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3811         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3812         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3813         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3814         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3815         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3816         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3817         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3818         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3819         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3820         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3821         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3822         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3823         proto.
3824         (_IO_flush_all_internal, _IO_adjust_column_internal)
3825         (_IO_default_uflow_internal, _IO_default_finish_internal)
3826         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3827         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3828         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3829         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3830         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3831         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3832         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3833         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3834         (_IO_file_close_internal, _IO_file_close_it_internal)
3835         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3836         (_IO_file_init_internal, _IO_file_attach_internal)
3837         (_IO_file_fopen_internal, _IO_file_read_internal)
3838         (_IO_file_sync_internal, _IO_file_seek_internal)
3839         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3840         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3841         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3842         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3843         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3844         (_IO_list_all_internal, _IO_link_in_internal)
3845         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3846         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3847         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3848         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3849         (_IO_do_write_internal, _IO_padn_internal)
3850         (_IO_getline_info_internal, _IO_getline_internal)
3851         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3852         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3853         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3854         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3855         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3856         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3857         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3858         with libc_hidden_ver, remove use of INTUSE.
3859         * libio/genops.c: Likewise.
3860         * libio/freopen.c: Likewise.
3861         * libio/freopen64.c: Likewise.
3862         * libio/iofclose.c: Likewise.
3863         * libio/iofdopen.c: Likewise.
3864         * libio/iofflush.c: Likewise.
3865         * libio/iofflush_u.c: Likewise.
3866         * libio/iofgets.c: Likewise.
3867         * libio/iofgets_u.c: Likewise.
3868         * libio/iofopen.c: Likewise.
3869         * libio/iofopncook.c: Likewise.
3870         * libio/iofread.c: Likewise.
3871         * libio/iofread_u.c: Likewise.
3872         * libio/ioftell.c: Likewise.
3873         * libio/iofwrite.c: Likewise.
3874         * libio/iogetline.c: Likewise.
3875         * libio/iogets.c: Likewise.
3876         * libio/iogetwline.c: Likewise.
3877         * libio/iopadn.c: Likewise.
3878         * libio/iopopen.c: Likewise.
3879         * libio/ioseekoff.c: Likewise.
3880         * libio/ioseekpos.c: Likewise.
3881         * libio/iosetbuffer.c: Likewise.
3882         * libio/iosetvbuf.c: Likewise.
3883         * libio/ioungetc.c: Likewise.
3884         * libio/ioungetwc.c: Likewise.
3885         * libio/iovdprintf.c: Likewise.
3886         * libio/iovsprintf.c: Likewise.
3887         * libio/iovsscanf.c: Likewise.
3888         * libio/memstream.c: Likewise.
3889         * libio/obprintf.c: Likewise.
3890         * libio/oldfileops.c: Likewise.
3891         * libio/oldiofclose.c: Likewise.
3892         * libio/oldiofdopen.c: Likewise.
3893         * libio/oldiofopen.c: Likewise.
3894         * libio/oldiopopen.c: Likewise.
3895         * libio/oldstdfiles.c: Likewise.
3896         * libio/putc.c: Likewise.
3897         * libio/setbuf.c: Likewise.
3898         * libio/setlinebuf.c: Likewise.
3899         * libio/stdfiles.c: Likewise.
3900         * libio/strops.c: Likewise.
3901         * libio/vasprintf.c: Likewise.
3902         * libio/vscanf.c: Likewise.
3903         * libio/vsnprintf.c: Likewise.
3904         * libio/vswprintf.c: Likewise.
3905         * libio/wfiledoalloc.c: Likewise.
3906         * libio/wfileops.c: Likewise.
3907         * libio/wgenops.c: Likewise.
3908         * libio/wmemstream.c: Likewise.
3909         * libio/wstrops.c: Likewise.
3910         * libio/__fpurge.c: Likewise.
3911         * libio/__fsetlocking.c: Likewise.
3912         * assert/assert.c: Likewise.
3913         * debug/fgets_chk.c: Likewise.
3914         * debug/fgets_u_chk.c: Likewise.
3915         * debug/fread_chk.c: Likewise.
3916         * debug/fread_u_chk.c: Likewise.
3917         * debug/gets_chk.c: Likewise.
3918         * debug/obprintf_chk.c: Likewise.
3919         * debug/vasprintf_chk.c: Likewise.
3920         * debug/vdprintf_chk.c: Likewise.
3921         * debug/vsnprintf_chk.c: Likewise.
3922         * debug/vsprintf_chk.c: Likewise.
3923         * malloc/mtrace.c: Likewise.
3924         * misc/error.c: Likewise.
3925         * misc/syslog.c: Likewise.
3926         * stdio-common/asprintf.c: Likewise.
3927         * stdio-common/fxprintf.c: Likewise.
3928         * stdio-common/getw.c: Likewise.
3929         * stdio-common/isoc99_fscanf.c: Likewise.
3930         * stdio-common/isoc99_scanf.c: Likewise.
3931         * stdio-common/isoc99_vfscanf.c: Likewise.
3932         * stdio-common/isoc99_vscanf.c: Likewise.
3933         * stdio-common/isoc99_vsscanf.c: Likewise.
3934         * stdio-common/printf-prs.c: Likewise.
3935         * stdio-common/printf_fp.c: Likewise.
3936         * stdio-common/printf_fphex.c: Likewise.
3937         * stdio-common/printf_size.c: Likewise.
3938         * stdio-common/putw.c: Likewise.
3939         * stdio-common/scanf.c: Likewise.
3940         * stdio-common/sprintf.c: Likewise.
3941         * stdio-common/tmpfile.c: Likewise.
3942         * stdio-common/vfprintf.c: Likewise.
3943         * stdio-common/vfscanf.c: Likewise.
3944         * stdlib/strfmon_l.c: Likewise.
3945         * sunrpc/openchild.c: Likewise.
3946         * sunrpc/xdr_stdio.c: Likewise.
3947         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3948         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3950 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3952         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3954         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3955         in the third column, to generate for the shared library an IFUNC
3956         that uses _dl_vdso_vsym.
3957         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3958         * Makeconfig (object-suffixes-noshared): New variable.
3960         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3961         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3962         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3963         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3965         [BZ #14132]
3966         * include/sys/time.h (__gettimeofday): Remove macro.
3967         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3968         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3969         Remove INTDEF.
3970         (__gettimeofday): Add libc_hidden_def.
3971         (gettimeofday): Add libc_hidden_weak.
3972         * sysdeps/mach/gettimeofday.c: Likewise.
3973         * sysdeps/posix/gettimeofday.c: Likewise.
3974         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3975         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3976         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3977         (__gettimeofday_internal): Remove strong_alias.
3978         (__gettimeofday): Add libc_hidden_def.
3979         (gettimeofday): Add libc_hidden_weak.
3980         * sysdeps/unix/syscalls.list (gettimeofday):
3981         Remove __gettimeofday_internal alias.
3983 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3984             H.J. Lu  <hongjiu.lu@intel.com>
3986         [BZ #12495]
3987         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3988         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3989         (largebin_index_32_big): New.
3990         (largebin_index): Use it for 16-byte alignment.
3991         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3992         correction with front_misalign.
3994 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3997         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3998         Likewise.
3999         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4000         Likewise.
4001         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4002         Likewise.
4003         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4004         Likewise.
4005         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4006         Likewise.
4007         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4008         Likewise.
4009         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4010         Likewise.
4011         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4012         Likewise.
4013         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4014         Likewise.
4015         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4016         Likewise.
4017         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4018         Likewise.
4019         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4020         Likewise.
4022         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4023         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4025 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4027         [BZ #10846]
4028         [BZ #14036]
4029         * math/libm-test.inc (exp_test): Add test from bug 14036.
4030         (pow_test): Add test from bug 10846.
4032         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4033         and other flags.
4034         (special_function): Do not include flags in test name.
4035         (parse_args): Likewise.
4036         * sysdeps/i386/fpu/libm-test-ulps: Update.
4037         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4038         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4039         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4042         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4043         exceptions.
4044         * math/libm-test.inc ("Philosophy"): Update comment about
4045         exception testing.
4046         (UNDERFLOW_EXCEPTION): New macro.
4047         (UNDERFLOW_EXCEPTION_OK): Likewise.
4048         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4049         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4050         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4051         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4052         (INVALID_EXCEPTION_OK): Update value.
4053         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4054         (OVERFLOW_EXCEPTION_OK): Likewise.
4055         (IGNORE_ZERO_INF_SIGN): Likewise.
4056         (test_exceptions): Handle underflow exceptions.
4057         (acos_test): Update for underflow exception expectations.
4058         (cexp_test): Likewise.
4059         (clog_test): Likewise.
4060         (clog10_test): Likewise.
4061         (csqrt_test): Likewise.
4062         (ctan_test): Likewise.
4063         (ctanh_test): Likewise.
4064         (exp_test): Likewise.
4065         (exp10_test): Likewise.
4066         (exp2_test): Likewise.
4067         (expm1_test): Likewise.
4068         (fma_test): Likewise.
4069         (j0_test): Likewise.
4070         (jn_test): Likewise.
4071         (nexttoward_test): Likewise.
4072         (pow_test): Likewise.
4073         (scalbn_test): Likewise.
4074         (scalbln_test): Likewise.
4075         (tan_test): Likewise.
4076         (y1_test): Likewise.
4077         * sysdeps/i386/fpu/libm-test-ulps: Update.
4078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4080 2012-05-23  David S. Miller  <davem@davemloft.net>
4082         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4083         (__libc_sigaction): Remove unused local variables.
4085 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4087         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4089 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4091         mktime: avoid signed integer overflow
4092         * time/mktime.c (__mktime_internal): Do not mishandle the case
4093         where diff == INT_MIN.
4095         mktime: simplify computation of average
4096         * time/mktime.c (ranged_convert): Use new time_t_avg function
4097         instead of rolling our own (probably-slower) code.
4099         mktime: do not assume signed right shift propagates sign bit
4100         * time/mktime.c (isdst_differ): New static function.
4101         (__mktime_internal): No need to normalize tm_isdst now.
4102         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4103         tm_isdst values.
4105         mktime: merge another wrapv change from gnulib
4106         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4107         from some compilers.
4109         mktime: remove incorrect attempt at unusual arithmetics
4110         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4111         The code didn't really work on such machines anyway.
4112         (TYPE_MINIMUM): Assume two's complement.
4113         (twos_complement_arithmetic): Verify that long_int and time_t
4114         are two's complement (or unsigned, in the latter case).
4116         mktime: check signed shifts on long_int and time_t, too
4117         * time/mktime.c (SHR): Check that shifts work as desired
4118         on the types long_int and time_t too, as SHR is used on
4119         such types.
4121         mktime: do not assume 'long' is wide enough
4122         * time/mktime.c (verify): Move decl up.
4123         (long_int): New type.
4124         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4125         to remove assumption in the code that 'long' is wide enough to
4126         store year values.  This assumption is not true on x32 and on
4127         some non-glibc platforms.
4129         mktime: merge wrapv change from gnulib
4130         * time/mktime.c (WRAPV): New macro.
4131         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4132         (guess_time_tm, __mktime_internal): Do not assume that signed
4133         integer overflow wraps around; modern compilers generate code
4134         where this assumption is no longer valid.
4136 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4138         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4139         Replace "jmp L(pseudo_end)" with "ret".
4140         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4141         Likewise.
4143 2012-05-23  Andreas Jaeger  <aj@suse.de>
4145         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4146         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4148 2012-05-23  Andreas Jaeger  <aj@suse.de>
4149             Maximilian Attems  <max@stro.at>
4151         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4152         New macros.
4154 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4156         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4157         code so that pseudo_end is just ret and the stack pointer is
4158         correct also for static library in error case.
4160 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4162         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4163         move to syscalls.list.
4164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4169         * manual/install.texi (Running make install): Do not mention Linux
4170         kernel version for which pt_chown is not needed.
4171         (Linux): Do not mention problems with nscd with 2.0 kernels.
4172         * INSTALL: Regenerated.
4174 2012-05-23  Andreas Jaeger  <aj@suse.de>
4176         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4177         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4178         macro.
4179         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4180         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4181         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4182         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4183         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4184         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4185         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4186         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4187         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4188         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4189         * sysdeps/unix/sysv/linux/bits/in.h
4190         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4192 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4194         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4195         (PREPARE_VERSION): Just use assert instead, it will be elided
4196         under [NDEBUG] anyway.
4198 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4200         * sysdeps/unix/sysv/linux/Makefile: Include
4201         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4202         (sysdep_routines): Remove sysctl.
4203         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4204         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4205         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4206         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4207         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4209 2012-05-22  Andreas Jaeger  <aj@suse.de>
4211         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4212         that pseudo_end is just ret and the stack pointer is correct also
4213         for static library in error case.
4215 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4217         [BZ #14122]
4218         * nss/nsswitch.c (defconfig_entries): New variable.
4219         (__nss_database_lookup): Don't leak defconfig entries.
4220         (nss_parse_service_list): Don't leak on error paths.
4221         (free_database_entries): New function.
4222         (free_defconfig): New function.
4223         (free_mem): Move common code to free_database_entries.
4225 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4227         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4228         Add arch_prctl.
4229         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4231         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4232         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4233         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4234         New macro.
4235         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4236         (INTERNAL_SYSCALL_TYPES): Likewise.
4237         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4238         (LOAD_REGS_TYPES_[1-6]): Likewise.
4239         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4240         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4242 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4244         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4245         copysignl for GLIBC_2_0.
4246         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4247         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4248         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4249         logbl for GLIBC_2_0.
4250         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4251         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4253 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4255         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4256         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4258         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4259         Use "neg %eax".
4261         * time/mktime.c: Update copyright years.
4263 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4265         mktime: merge comment-quoting-style change from gnulib
4266         * time/mktime.c: Quote 'like this' in comments.
4267         The GNU coding standards suggest that we no longer quote `like this',
4268         as "`" and "'" are typically rendered asymmetrically nowadays.
4269         The typical gnulib style is to quote 'like this' when quoting
4270         code, and "like this" when quoting English.
4272         * time/mktime.c (compile-command): Add "-I.".
4274         mktime: merge mktime-internal.h change from gnulib
4275         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4277         mktime: merge time_r change from gnulib
4278         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4280         mktime: merge DEBUG change from gnulib
4281         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4282         case system <time.h> has a #define.
4284         mktime: merge <sys/types.h> change from gnulib
4285         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4286         since <time.t> is now guaranteed to define time_t.
4288         mktime: merge HAVE_CONFIG_H change from gnulib
4289         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4291 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4293         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4294         Use "neg %eax".
4296         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4297         __rlim_t cast.
4298         (struct rusage): Use anonymous union to pad each field to
4299         __syscall_slong_t.
4301 2012-05-21  David S. Miller  <davem@davemloft.net>
4303         * Makefules (o-iterator): Remove .s cases.
4304         (compile-command.s): Delete.
4305         (COMPILE.s): Delete.
4306         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4308 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4310         * configure.in (libc_cv_predef_stack_protector): Only consider
4311         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4312         * configure: Regenerated.
4314 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4316         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4317         New macro.  Use R*LP on int and pointer.
4318         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4319         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4320         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4321         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4323         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4324         [__WORDSIZE_TIME64_COMPAT32] instead of
4325         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4326         (struct utmp): Likewise.
4327         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4328         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4329         Renamed to ...
4330         (__WORDSIZE_TIME64_COMPAT32): This.
4331         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4332         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4333         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4334         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4335         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4336         (__WORDSIZE_TIME64_COMPAT32): New macro.
4338 2012-05-21  Andreas Jaeger  <aj@suse.de>
4340         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4341         only if [SHARED]. Add prototype for __wcschr_ia32.
4343 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4345         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4346         of %rbp unmolested in the jmp_buf while mangling the low bits.
4347         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4348         unmolested high bits of %rbp while demangling the low bits.
4349         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4351 2012-05-21  Andreas Jaeger  <aj@suse.de>
4353         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4354         * sunrpc/svc_simple.c: Use it for registerrpc.
4355         * sunrpc/xcrypt.c: Use it for passwd2des.
4357         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4359 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4361         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4362         Don't define if [__SYSCALL_WORDSIZE != 32].
4363         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4364         New macro.
4366 2012-05-21  Bruno Haible  <bruno@clisp.org>
4367             Andreas Jaeger  <aj@suse.de>
4369         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4370         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4371         inptr and inend for must_buffer_ch.
4372         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4373         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4374         * stdio-common/Makefile (tests): Remove bug15.
4375         (bug15-ENV): Remove macro.
4376         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4377         anymore.
4379 2012-05-19  Andreas Jaeger  <aj@suse.de>
4380             Roland McGrath  <roland@hack.frob.com>
4382         * manual/contrib.texi: Completely rewritten. It contains now an
4383         alphabetical list of contributors and their contributions.
4385 2012-05-21  Richard Henderson  <rth@twiddle.net>
4387         * misc/getauxval.c (__getauxval): Use unsigned long int.
4388         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4389         (getauxval): Use unsigned long int.
4391 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4393         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4395 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4397         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4398         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4399         __alignof__ (long double).
4401 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4403         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4405 2012-05-20  Richard Henderson  <rth@twiddle.net>
4407         * misc/getauxval.c: New file.
4408         * misc/sys/auxv.h: New file.
4409         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4410         (routines): Add getauxval.
4411         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4412         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4413         * elf/dl-sysdep.c (_dl_auxv): Remove.
4414         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4415         * elf/dl-support.c (_dl_auxv): New variable.
4416         (_dl_aux_init): Initialize it.
4417         * manual/startup.texi (Auxiliary Vector): New node.
4418         * sysdeps/generic/bits/hwcap.h: New file.
4419         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4420         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4421         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4422         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4423         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4424         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4426         Update.
4427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4428         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4429         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4430         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4431         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4432         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4433         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4434         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4436 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4438         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4440 2012-05-19  David S. Miller  <davem@davemloft.net>
4442         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4444 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4446         [BZ #14123]
4447         * math/s_ccosh.c: Include <float.h>
4448         (__ccosh): Avoid internal overflow calculating sinh and cosh
4449         values before multiplying by sin and cos values.
4450         * math/s_ccoshf.c: Likewise.
4451         * math/s_ccoshl.c: Likewise.
4452         * math/s_csin.c: Likewise.
4453         * math/s_csinf.c: Likewise.
4454         * math/s_csinl.c: Likewise.
4455         * math/s_csinh.c: Likewise.
4456         * math/s_csinhf.c: Likewise.
4457         * math/s_csinhl.c: Likewise.
4458         * math/libm-test.inc (ccos_test): Add more tests.
4459         (ccosh_test): Likewise.
4460         (csin_test): Likewise.
4461         (csinh_test): Likewise.
4462         * sysdeps/i386/fpu/libm-test-ulps: Update.
4463         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4465 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4467         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4468         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4470         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4472 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4474         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4475         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4476         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4477         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4478         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4479         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4480         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4481         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4482         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4483         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4484         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4485         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4486         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4487         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4488         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4489         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4490         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4491         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4492         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4493         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4494         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4495         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4496         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4497         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4498         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4499         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4500         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4501         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4502         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4503         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4504         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4506 2012-05-18  Andreas Jaeger  <aj@suse.de>
4508         * csu/.gitignore: Delete.
4510 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4512         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4513         (timex): Use __syscall_slong_t.
4515 2012-05-18  Andreas Jaeger  <aj@suse.de>
4516             Carlos O'Donell  <carlos_odonell@mentor.com>
4518         * manual/install.texi (Configuring and compiling): Update
4519         description about files modified in the source directory.
4520         * INSTALL: Regenerated.
4522 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4524         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4525         value.  Use "or" to set return value to -1.
4526         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4527         negate return value.
4529 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4531         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4532         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4533         failure if the compiler has Graphite support disabled.
4534         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4535         Likewise.
4536         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4537         CFLAGS-memmove.c): Likewise.
4538         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4539         Likewise.
4541 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4543         * sysdeps/x86_64/x32/_itoa.h: New file.
4545         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4546         getdents system call only if kernel and user dirents have the
4547         same d_ino and d_off.
4549         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4550         LLONG_MAX != LONG_MAX.
4551         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4552         (_fitoa_word): Likewise.
4554         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4555         years.
4556         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4557         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4558         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4560         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4561         include <bits/wordsize.h>.  Check __x86_64__ instead of
4562         __WORDSIZE.
4563         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4564         if __x86_64__ is defined.  Use anonymous union on fpstate.
4566         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4567         anonymous union.
4569 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4571         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4572         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4573         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4574         Refer to _rtld_local_ro instead of _rtld_global_ro.
4575         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4576         Likewise.
4577         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4578         Likewise.
4579         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4580         Likewise.
4581         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4582         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4583         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4585         * sysdeps/powerpc/powerpc32/dl-machine.c
4586         (__elf_machine_runtime_setup) [PROF]: Don't reference
4587         _dl_prof_resolve.
4589 2012-05-18  Andreas Jaeger  <aj@suse.de>
4591         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4592         function only available for GCCs before 3.4 since GCC 3.4
4593         introduced a builtin.
4594         (lrint): Likewise.
4595         (llrintf): Likewise.
4596         (llrint): Likewise.
4597         (fmaxf): Likewise.
4598         (fmax): Likewise.
4599         (fminf): Likewise.
4600         (fmin): Likewise.
4601         (rint): Likewise.
4602         (rintf): Likewise.
4603         (nearbyint): Likewise.
4604         (nearbyintf): Likewise.
4605         (ceil): Likewise.
4606         (ceilf): Likewise.
4607         (floor): Likewise.
4608         (floorf): Likewise.
4610 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4612         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4613         on both fields and cast pointer to __syscall_ulong_t.
4615         * bits/types.h (__fsword_t): New type.
4616         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4617         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4618         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4619         (__FSWORD_T_TYPE): Likewise.
4620         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4621         (__FSWORD_T_TYPE): Likewise.
4622         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4623         (__FSWORD_T_TYPE): Likewise.
4624         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4625         (__FSWORD_T_TYPE): Likewise.
4626         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4627         __SWORD_TYPE with __fsword_t.
4628         (statfs64): Likewise.
4630 2012-05-17  David S. Miller  <davem@davemloft.net>
4632         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4634 2012-05-17  Andreas Jaeger  <aj@suse.de>
4636         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4637         warning.
4639 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4641         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4643 2012-05-17  Andreas Jaeger  <aj@suse.de>
4645         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4646         when it is used.
4648 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4650         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4652 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4654         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4655         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4657 2012-05-17  Andreas Jaeger  <aj@suse.de>
4658             Carlos O'Donell  <carlos_odonell@mentor.com>
4660         [BZ #14059]
4661         * sysdeps/x86_64/multiarch/init-arch.h
4662         (bit_YMM_Usable): Rename to...
4663         (bit_AVX_Usable): ... this.
4664         (bit_FMA4_Usable): New macro.
4665         (bit_XMM_state): New macro.
4666         (bit_YMM_state): New macro.
4667         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4668         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4669         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4670         (CPUID_OSXSAVE): New macro.
4671         (CPUID_AVX): New macro.
4672         (CPUID_FMA4): New macro.
4673         (index_YMM_Usable): Rename to...
4674         (index_AVX_Usable): ... this.
4675         (HAS_AVX): Use HAS_ARCH_FEATURE.
4676         (HAS_FMA4): Likewise.
4677         (HAS_YMM_USABLE): Remove.
4678         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4679         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4680         are present.
4681         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4682         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4683         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4684         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4685         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4687 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4689         * math/libm-test.c: Support platforms without multiple rounding modes.
4690         * math/bug-nextafter.c: Support platforms without FP exceptions.
4691         * math/bug-nexttoward.c: Likewise.
4692         * math/test-fenv.c: Likewise.
4693         * math/test-misc.c: Likewise.
4694         * stdlib/bug-getcontext.c: Likewise.
4696 2012-05-17  Andreas Jaeger  <aj@suse.de>
4698         * manual/examples/search.c (critter_cmp): Change signature to
4699         avoid warnings.
4700         * manual/string.texi (Collation Functions): Likewise.
4702 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4704         * bits/types.h: Fold copyright years.
4705         * bits/typesizes.h: Likewise.
4706         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4707         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4708         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4709         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4710         * time/time.h: Likewise.
4712 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4714         [BZ #208]
4715         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4716         in instead of returning them.  Return void.
4717         (__libc_mallinfo): Accumulate over all arenas.
4718         (__malloc_stats): Adjust for change in int_mallinfo interface.
4720 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4722         [BZ #10375]
4723         * configure.in (NM): Add AC_CHECK_TOOL for it.
4724         (libc_extra_cflags): New substituted variable.
4725         Check for -fstack-protector being used implicitly.
4726         * configure: Regenerated.
4727         * config.make.in (config-extra-cflags): New variable,
4728         gets @libc_extra_cflags@.
4729         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4731         [BZ #10375]
4732         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4733         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4734         * configure: Regenerated.
4735         * config.make.in (CPPUNDEFS): New substituted variable.
4736         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4737         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4738         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4740 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4742         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4743         (mq_attr): Use __syscall_slong_t.
4745 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4747         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4748         Check __x86_64__ instead of __WORDSIZE.
4749         (_STAT_VER_LINUX): Likewise.
4750         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4751         __syscall_ulong_t and __syscall_slong_t.
4752         (stat64): Likewise.
4754 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4756         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4758 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4760         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4762 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4764         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4765         __syscall_ulong_t.
4767         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4768         include <bits/wordsize.h>.  Check __x86_64__ instead of
4769         __WORDSIZE.
4770         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4771         defined.
4772         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4774         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4775         include <bits/wordsize.h>.  Check __x86_64__ instead of
4776         __WORDSIZE.
4777         (user_regs_struct): Use "__extension__ unsigned long long"
4778         instead of "unsigned long" if __x86_64__ is defined.
4779         (user): Likewise.  Pad after pointer field if __ILP32__ is
4780         defined.
4782 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4784         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4785         versions 5 to 9.
4786         * configure: Regenerated.
4787         * manual/install.texi (texinfo): Increase version requirement to
4788         4.5 or later.
4789         * INSTALL: Regenerated.
4791         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4793 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4795         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4797         * sysdeps/x86_64/x32/ffs.c: New file.
4799         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4800         __syscall_ulong_t.
4801         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4802         defined.  Use __syscall_ulong_t.
4803         (shminfo): Use __syscall_ulong_t.
4804         (shm_info): Likewise.
4806         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4807         __syscall_ulong_t.
4809         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4810         <bits/wordsize.h>.
4811         (msgqnum_t): Use __syscall_ulong_t.
4812         (msglen_t): Likewise.
4813         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4814         __syscall_ulong_t.
4816         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4817         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4819         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4821         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4822         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4824         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4825         __syscall_slong_t.
4827         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4828         include <bits/wordsize.h>.  Check __x86_64__ instead of
4829         __WORDSIZE.
4831         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4832         "unsigned long long int" if __x86_64__ is defined.
4833         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4835         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4836         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4837         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4839         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4840         <stdint.h>.
4841         (GET_PC): Cast to uintptr_t first.
4842         (GET_FRAME): Likewise.
4843         (GET_STACK): Likewise.
4845         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4846         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4847         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4848         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4849         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4850         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4851         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4852         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4853         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4854         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4855         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4856         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4857         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4858         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4859         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4860         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4861         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4862         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4863         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4864         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4865         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4866         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4867         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4868         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4869         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4870         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4871         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4872         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4873         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4875 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4877         * Makerules (+depfiles): Also collect depfiles from .oS in
4878         $(extra-objs).
4879         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4880         .oS, $(libnldbl-routines)).
4882         * Makerules (native-compile-mkdep-flags): Define.
4883         * sunrpc/Makefile (extra-objs): Add $(addprefix
4884         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4885         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4886         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4887         calling $(make-target-directory).
4889 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4891         * bits/types.h (__snseconds_t): Removed.
4892         * time/time.h (struct timespec): Replace __snseconds_t with
4893         __syscall_slong_t.
4894         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4895         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4896         Likewise.
4897         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4898         (__SNSECONDS_T_TYPE): Likewise.
4899         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4900         (__SNSECONDS_T_TYPE): Likewise.
4901         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4902         (__SNSECONDS_T_TYPE): Likewise.
4904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4906         * sysdeps/mach/hurd/bits/typesizes.h
4907         (__SYSCALL_SLONG_TYPE): New macro.
4908         (__SYSCALL_ULONG_TYPE): Likewise.
4910 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4912         * bits/types.h (__syscall_slong_t): New type.
4913         (__syscall_ulong_t): Likewise.
4915         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4916         (__SYSCALL_ULONG_TYPE): Likewise.
4917         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4918         (__SYSCALL_SLONG_TYPE): Likewise.
4919         (__SYSCALL_ULONG_TYPE): Likewise.
4920         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4921         (__SYSCALL_SLONG_TYPE): Likewise.
4922         (__SYSCALL_ULONG_TYPE): Likewise.
4923         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4924         (__SYSCALL_SLONG_TYPE): Likewise.
4925         (__SYSCALL_ULONG_TYPE): Likewise.
4927 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4929         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4930         Add sigaltstack-offsets.sym.
4931         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4932         <sigaltstack-offsets.h>.
4933         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4934         longjmp_msg pointer.
4935         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4936         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4937         signal stack.
4938         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4940 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4942         * elf/stackguard-macros.h: Remove file.
4943         * sysdeps/generic/stackguard-macros.h: New file.
4944         * sysdeps/i386/stackguard-macros.h: Likewise.
4945         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4946         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4947         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4948         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4949         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4950         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4951         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4952         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4953         <elf/stackguard-macros.h>.
4955         [BZ #14109]
4956         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4957         __aligned__ in attribute.
4958         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4959         (gregset_t): Likewise.
4961 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4963         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4964         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4965         * sysdeps/x86_64/x32/Implies-after: New file.
4967 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4969         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4970         and access return value for _dl_profile_fixup.  Use R10_LP to
4971         load frame size.
4973 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4975         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4977 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4979         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4980         * sysdeps/x86_64/x32/sysdep.h: New file.
4982 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4984         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4985         * sysdeps/x86_64/setjmp.S: Likewise.
4987 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4989         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4990         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4991         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4992         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4993         remove unused global constant.
4995 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4997         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4998         include of <not-cancel.h>.
5000 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5002         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5004 2012-05-15  Jeff Law  <law@redhat.com>
5005             Andreas Jaeger  <aj@suse.de>
5007         [BZ #13594]
5008         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5009         out from...
5010         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5011         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5012         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5013         code changing __hst_map_handle.map.
5015 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5017         * configure.in (sysnames): Look for Implies-before and Implies-after
5018         files.
5019         * configure: Regenerated.
5021 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5023         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5024         8-byte data alignment with LP_SIZE alignment.
5026 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5028         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5029         into R10_LP.
5031 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5033         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5035 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5037         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5038         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5039         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5040         Likewise.
5041         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5043 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5045         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5046         (stackinfo_sub_sp): Likewise.
5048 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5050         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5051         RAX_LP.
5053 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5055         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5056         into R*_LP.
5058 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5060         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5061         sizes into R*_LP.
5063 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5065         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5067 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5069         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5070         into R11_LP and load __x86_64_shared_cache_size_half into
5071         R8_LP.
5073 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5075         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5076         R8_LP.
5078 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5080         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5081         logb for POWER7.
5082         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5083         logbf for POWER7.
5084         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5085         logbl for POWER7.
5086         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5087         powerpc32/power7/fpu/s_logb.c via #include.
5088         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5089         powerpc32/power7/fpu/s_logbf.c via #include.
5090         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5091         powerpc32/power7/fpu/s_logbl.c via #include.
5093 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5095         * README.libm: Remove file.
5097 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5099         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5100         count for x32.  Use R*_LP and omit operand-size suffix.
5102 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5104         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5105         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5106         * sysdeps/x86_64/x32/shlib-versions: New file.
5108 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5110         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5111         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5112         Use _dl_fatal_printf instead.
5114 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5116         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5117         set if not set by the user.  Do not allow for being unset.
5118         * sysdeps/unix/sysv/linux/configure: Regenerated.
5120 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5122         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5123         the `q' suffix from lea and replace .quad with ASM_ADDR.
5125 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5127         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5128         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5129         instead of $17.
5130         (PTR_DEMANGLE): Likewise.
5132 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5134         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5135         (LP_OP): Likewise.
5136         (ASM_ADDR): Likewise.
5137         (RAX_LP): Likewise.
5138         (RBP_LP): Likewise.
5139         (RBX_LP): Likewise.
5140         (RCX_LP): Likewise.
5141         (RDI_LP): Likewise.
5142         (RSI_LP): Likewise.
5143         (RSP_LP): Likewise.
5144         (R8_LP): Likewise.
5145         (R9_LP): Likewise.
5146         (R10_LP): Likewise.
5147         (R10_LP): Likewise.
5148         (R11_LP): Likewise.
5149         (R12_LP): Likewise.
5150         (R13_LP): Likewise.
5151         (R14_LP): Likewise.
5152         (R15_LP): Likewise.
5154 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5156         * sysdeps/x86_64/x32/dl-machine.h: New file.
5158 2012-05-14  Andreas Jaeger  <aj@suse.de>
5160         * manual/Makefile (subdir): Remove export of subdir.
5161         (all): Remove target.
5162         (.PHONY): Remove all from list.
5163         (mkinstalldirs): Remove.
5164         (.PHONY): Remove installdirs from list.
5165         ($(inst_infodir)/libc.info): Use make-target-directory.
5166         (installdirs): Remove.
5167         (subdir_%): Remove.
5168         (glibc-targets): Remove.
5169         (lib): Remove.
5170         (stubs): Remove.
5171         ($(objpfx)stubs ../po/manual.pot): Remove.
5172         ($(objpfx)stamp%): Remove.
5173         (make-target-directory): Remove.
5174         (subdir_install): Remove.
5175         (routines): Remove.
5176         (aux): Remove.
5177         (sources): Remove.
5178         (objects): Remove.
5179         (headers): Remove.
5181         [BZ #13750]
5182         * manual/.gitignore: Remove, it's not needed anymore.
5183         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5184         all files in it.
5185         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5186         directory.
5187         (texis): Renamed to $(objpfx)texis.
5188         (texis-path): New, contains path to generated files.
5189         (chapters.%): Use texis-path for complete path, add extra argument
5190         libc-texinfo.sh.
5191         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5192         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5193         (summary,texi, stamp-summary): Use complete path of
5194         files. Generate files in build dir.
5195         (dir-add.texi): Build in build dir.
5196         (libm-err.texi,stamp-libm-err): Likewise.
5197         (version.texi, stamp-version): Likewise.
5198         (.%c.texi): Likewise.
5199         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5200         (mostlyclean): Remove target.
5201         (realclean): Remove target.
5202         (generated): Add new variable with contents from mostlyclean and
5203         realclean, remove entries duplicated in common-mostlyclean, add
5204         stamp-libm-err and stamp-version.
5205         (generated-dirs): Add libc directory.
5206         ($(inst_infodir)/libc.info): Install files from build dir.
5208         * manual/install.texi (Configuring and compiling): Adjust since
5209         the info files are not part of the tar ball anymore.
5211 2012-05-14  Andreas Jaeger  <aj@suse.de>
5213         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5214         variable.
5216 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5218         [BZ #13717]
5219         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5220         to 2.2.0 where earlier.
5221         * sysdeps/unix/sysv/linux/configure: Regenerated.
5222         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5223         Remove conditional code.
5224         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5225         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5226         Remove conditional code.
5227         [!__NR_lchown]: Likewise.
5228         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5229         [__NR_lchown]: Likewise.
5230         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5231         comment referencing __ASSUME_LCHOWN_SYSCALL.
5232         * sysdeps/unix/sysv/linux/i386/sigaction.c
5233         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5234         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5235         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5236         Remove conditional code.
5237         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5238         (__protocol_available): Remove #if 0 code.
5239         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5240         conditional code.
5241         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5242         * sysdeps/unix/sysv/linux/kernel-features.h
5243         (__ASSUME_GETCWD_SYSCALL): Don't define.
5244         (__ASSUME_REALTIME_SIGNALS): Likewise.
5245         (__ASSUME_PREAD_SYSCALL): Likewise.
5246         (__ASSUME_PWRITE_SYSCALL): Likewise.
5247         (__ASSUME_POLL_SYSCALL): Likewise.
5248         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5249         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5250         non-SPARC.
5251         (__ASSUME_SIOCGIFNAME): Don't define.
5252         (__ASSUME_MSG_NOSIGNAL): Likewise.
5253         (__ASSUME_SENDFILE): Define unconditionally.
5254         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5255         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5256         conditional code.
5257         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5258         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5259         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5260         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5261         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5262         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5263         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5265         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5266         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5268         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5269         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5271         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5272         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5274         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5275         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5277         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5278         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5280         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5281         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5283         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5284         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5286         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5287         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5288         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5289         Remove conditional code.
5290         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5291         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5292         Remove conditional code.
5293         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5294         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5295         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5296         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5297         Remove conditional code.
5298         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5299         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5300         Remove conditional code.
5301         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5302         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5303         Remove conditional code.
5304         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5305         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5306         Remove conditional code.
5307         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5308         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5309         Remove conditional code.
5310         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5311         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5312         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5313         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5314         * sysdeps/unix/sysv/linux/sigaction.c
5315         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5316         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5317         * sysdeps/unix/sysv/linux/sigpending.c
5318         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5319         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5320         * sysdeps/unix/sysv/linux/sigprocmask.c
5321         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5322         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5323         * sysdeps/unix/sysv/linux/sigsuspend.c
5324         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5325         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5326         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5327         (__libc_missing_rt_sigs): Remove.
5328         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5329         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5330         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5331         Remove conditional code.
5332         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5333         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5334         return 1.
5335         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5336         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5337         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5338         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5340 2012-05-14  Andreas Jaeger  <aj@suse.de>
5342         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5343         it's not used in glibc.
5344         (__coshm1): Likewise.
5345         (__acosh1p): Likewise.
5346         (__sgn): Likewise.
5348         * manual/string.texi (Copying and Concatenation): Add missing
5349         variable in concat example.
5350         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5352 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5354         [BZ #14103]
5355         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5356         __builtin_clzl with __builtin_clzll.
5358 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5360         [BZ #14104]
5361         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5362         libc_freeres_ptr.
5364 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5366         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5367         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5368         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5369         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5371 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5373         * NEWS: Update ia64 info.
5375 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5377         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5378         used as bcopy.
5380 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5382         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5383         * sysdeps/unix/syscalls.list (dup3): Likewise.
5384         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5385         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5387 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5389         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5390         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5392 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5394         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5395         thread pointer.
5396         (TLS_IE): Use mov/add instead of movq/addq to load thread
5397         pointer.
5398         (TLS_GD_PREFIX): New.
5399         (TLS_GD): Use it.
5401 2012-05-11  David S. Miller  <davem@davemloft.net>
5403         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5404         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5405         (_FPU_SETCW): Likewise.
5407 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5409         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5410         is 32-byte aligned.
5412 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5414         [BZ #11837]
5415         * iconvdata/gb18030.c: Update tables.
5416         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5417         characters specially.
5418         (BODY for TO_LOOP): Add encoding of missing ranges.
5420 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5422         [BZ #13673]
5423         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5424         * sysdeps/mach/hurd/dup3.c: Likewise.
5425         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5426         * sysdeps/powerpc/memmove.c:: Likewise.
5428 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5430         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5431         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5433 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5435         * elf/elf.h (R_X86_64_RELATIVE64): New.
5436         (R_X86_64_NUM): Updated.
5437         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5438         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5439         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5440         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5441         tst-quad1pie tst-quad2pie
5442         (modules-names): Add tst-quadmod1 tst-quadmod2.
5443         ($(objpfx)tst-quad1): New dependency.
5444         ($(objpfx)tst-quad2): Likewise.
5445         ($(objpfx)tst-quad1pie): Likewise.
5446         ($(objpfx)tst-quad2pie): Likewise.
5447         * sysdeps/x86_64/tst-quad1.c: New file.
5448         * sysdeps/x86_64/tst-quad1pie.c: New file.
5449         * sysdeps/x86_64/tst-quad2.c: Likewise.
5450         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5451         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5452         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5453         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5454         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5456 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5458         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5459         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5460         * streams/stropts.h (t_scalar_t): Define type.
5462         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5463         (_PATH_PRESERVE): Set to "/var/lib".
5464         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5466         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5467         instead of int.
5469         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5470         if __dir_mkfile succeeded.
5472         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5473         checking for _hurd_dtablesize.  Unlock it right after having
5474         finished _hurd_dtable allocation.
5476 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5478         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5479         * sysdeps/mach/hurd/configure: Regenerated.
5480         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5481         special-casing to...
5482         * sysdeps/gnu/configure.in: ... this new file.
5483         * sysdeps/unix/sysv/linux/configure: Regenerated.
5484         * sysdeps/gnu/configure: New generated file.
5486         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5487         for Linux: use nsec instead of usec, as well as:
5488         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5489         members of type struct timespec.
5490         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5491         New macros.
5492         (struct stat64): Likewise.
5493         (_STATBUF_ST_NSEC): New macro.
5494         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5496         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5497         __strtoul_internal rather than strtoul.
5499 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5501         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5502         and reject them.
5504 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5506         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5507         which preserves existing values.
5508         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5510 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5512         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5513         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5514         greater than FD_SETSIZE.
5516 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5518         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5519         allocated, call __vm_protect to finish enabling the existing space, and
5520         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5521         allocate the remainder.
5523 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5525         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5526         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5528 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5530         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5531         sysdeps/mach/hurd/readlink.c.
5533         * posix/tst-sysconf.c (posix_options): Only use
5534         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5535         _POSIX_SYNCHRONIZED_IO when they are defined
5536         * sysdeps/mach/hurd/bits/posix_opt.h:
5537         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5538         (_XOPEN_REALTIME): Undefine macro.
5539         (_XOPEN_REALTIME_THREADS): Undefine macro.
5540         (_XOPEN_SHM): Undefine macro.
5541         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5542         macro to -1.
5543         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5544         macro to -1.
5545         (_POSIX_ASYNC_IO): Undefine macro.
5546         (_POSIX_PRIORITIZED_IO): Undefine macro.
5547         (_POSIX_SPIN_LOCKS): Define macro to -1.
5549         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5550         SA_NODEFER, SA_RESETHAND.
5551         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5552         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5553         F_DUPFD_CLOEXEC.
5555 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5557         * elf/Makefile (pldd-modules): Define unconditionally.
5559 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5561         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5563 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5565         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5566         Return ENOENT when name is empty.
5567         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5569 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5571         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5573         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5575 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5577         Fix mlock in all cases except non-readable pages.
5578         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5579         instead of VM_PROT_ALL as parameter to __vm_wire function.
5581         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5582         (__mkdir): When path is `/', just fail with EEXIST.
5583         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5585 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5587         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5588         <sys/uio.h> (for writev).
5589         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5590         and <sys/param.h> (for MIN).
5592 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5594         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5595         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5596         if interrupted.
5598 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5600         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5601         Depend on against $(link-rpcuserlibs).
5603 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5605         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5606         (__libc_stack_end): Do not use attribute_relro.
5607         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5608         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5609         to libthread-provided value.
5610         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5611         attribute_relro.
5613 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5615         [BZ #3748]
5616         * bits/libc-lock.h (__libc_once_get): New macro.
5617         * sysdeps/mach/bits/libc-lock.h: Likewise.
5618         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5619         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5620         instead of using implementation details.
5622         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5623         * libio/freopen.c: Likewise.
5624         * libio/freopen64.c: Likewise.
5625         * misc/syslog.c: Likewise.
5626         * nscd/connections.c: Likewise.
5627         * nscd/netgroupcache.c: Likewise.
5628         * sysdeps/posix/getcwd.c: Likewise.
5630 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5632         * math/w_ilogbf.c: Add #include <limits.h>.
5634 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5636         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5637         path instead of returning without unlocking.
5639         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5640         immediate-write ioctls.
5641         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5643 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5645         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5646         __builtin_frame_address instead of making assumptions about the
5647         location of the return address relative to DATA.  Force early load of
5648         the return address.
5649         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5650         __builtin_frame_address.
5652         dup3 for GNU Hurd.
5653         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5654         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5655         implement dup3 and do some further code clean-ups.
5656         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5657         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5659 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5661         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5663         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5664         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5665         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5666         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5667         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5668         d->port.lock.
5670         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5671         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5672         when handler == SIG_ERR, not when handler != SIG_ERR.
5674 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5676         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5677         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5678         definitions.
5680         accept4 for GNU Hurd.
5681         * include/sys/socket.h (__libc_accept4): New prototype.
5682         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5683         to implement __libc_accept4.
5684         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5685         __libc_accept4.
5686         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5688         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5689         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5690         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5691         signal-defines.sym.
5693 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5695         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5697 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5699         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5700         assertion on O_CLOEXEC flag.
5701         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5702         * hurd/intern-fd.c: Likewise.
5703         * hurd/port2fd.c: Likewise.
5705 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5707         [BZ #3906]
5708         * bits/in.h (IPV6_PKTINFO): Define new macro.
5709         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5711 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5713         [BZ #13954]
5714         [BZ #13955]
5715         [BZ #13956]
5716         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5717         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5718         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5719         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5720         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5721         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5722         * math/libm-test.inc (logb_test) : Additional logb tests.
5724 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5725             Andreas Jaeger  <aj@suse.de>
5727         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5728         * configure: Regenerated.
5729         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5730         * config.make.in (link-obsolete-rpc): New substituted variable.
5731         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5732         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5733         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5734         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5735         so that libc.a contains the symbols.
5736         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5737         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5738         * sunrpc/auth_none.c: Likewise.
5739         * sunrpc/auth_unix.c: Likewise.
5740         * sunrpc/authdes_prot.c: Likewise.
5741         * sunrpc/authuxprot.c: Likewise.
5742         * sunrpc/clnt_gen.c: Likewise.
5743         * sunrpc/clnt_perr.c: Likewise.
5744         * sunrpc/clnt_raw.c: Likewise.
5745         * sunrpc/clnt_simp.c: Likewise.
5746         * sunrpc/clnt_tcp.c: Likewise.
5747         * sunrpc/clnt_udp.c: Likewise.
5748         * sunrpc/clnt_unix.c: Likewise.
5749         * sunrpc/des_crypt.c: Likewise.
5750         * sunrpc/des_soft.c: Likewise.
5751         * sunrpc/get_myaddr.c: Likewise.
5752         * sunrpc/key_call.c: Likewise.
5753         * sunrpc/key_prot.c: Likewise.
5754         * sunrpc/netname.c: Likewise.
5755         * sunrpc/pm_getmaps.c: Likewise.
5756         * sunrpc/pm_getport.c: Likewise.
5757         * sunrpc/pmap_clnt.c: Likewise.
5758         * sunrpc/pmap_prot.c: Likewise.
5759         * sunrpc/pmap_prot2.c: Likewise.
5760         * sunrpc/pmap_rmt.c: Likewise.
5761         * sunrpc/publickey.c: Likewise.
5762         * sunrpc/rpc_cmsg.c: Likewise.
5763         * sunrpc/rpc_common.c: Likewise.
5764         * sunrpc/rpc_dtable.c: Likewise.
5765         * sunrpc/rpc_prot.c: Likewise.
5766         * sunrpc/rpc_thread.c: Likewise.
5767         * sunrpc/rtime.c: Likewise.
5768         * sunrpc/svc.c: Likewise.
5769         * sunrpc/svc_auth.c: Likewise.
5770         * sunrpc/svc_raw.c: Likewise.
5771         * sunrpc/svc_run.c: Likewise.
5772         * sunrpc/svc_tcp.c: Likewise.
5773         * sunrpc/svc_udp.c: Likewise.
5774         * sunrpc/svc_unix.c: Likewise.
5775         * sunrpc/svcauth_des.c: Likewise.
5776         * sunrpc/xcrypt.c: Likewise.
5777         * sunrpc/xdr.c: Likewise.
5778         * sunrpc/xdr_array.c: Likewise.
5779         * sunrpc/xdr_float.c: Likewise.
5780         * sunrpc/xdr_intXX_t.c: Likewise.
5781         * sunrpc/xdr_mem.c: Likewise.
5782         * sunrpc/xdr_rec.c: Likewise.
5783         * sunrpc/xdr_ref.c: Likewise.
5784         * sunrpc/xdr_sizeof.c: Likewise.
5785         * sunrpc/xdr_stdio.c: Likewise.
5787 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5789         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5790         change.  Update copyright years.
5792 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5794         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5796 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5797             Joseph Myers  <joseph@codesourcery.com>
5798             Paul Pluzhnikov  <ppluzhnikov@google.com>
5800         [BZ #14012]
5801         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5802         requiring rpcgen.
5803         [cross-compiling] (extra-libs): Likewise.
5804         [cross-compiling] (extra-libs-others): Likewise.
5805         [cross-compiling] (librpcsvc-routines): Likewise.
5806         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5807         [cross-compiling] (omit-deps): Likewise.
5808         (sunrpc-CPPFLAGS): New variable.
5809         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5810         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5811         (cross-rpcgen-objs): New variable.
5812         (extra-objs): Append $(cross-rpcgen-objs).
5813         ($(cross-rpcgen-objs)): New rule.
5814         ($(objpfx)cross-rpcgen): Likewise.
5815         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5816         comment.
5817         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5818         ($(objpfx)x%.stmp): Likewise.
5819         * sunrpc/proto.h [IS_IN_build] (_): Define.
5820         [IS_IN_build] (_libc_intl_domainname): Likewise.
5822 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5824         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5825         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5826         and R_X86_64_TPOFF64.
5828 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5830         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5831         sysdeps/unix/sysv/syscalls.list.
5832         (stime): Likewise.
5833         (utime): Likewise.
5834         * sysdeps/unix/sysv/syscalls.list: Remove file.
5836 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5838         [BZ #3440]
5839         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5840         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5841         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5842         (__LC_IDENTIFICATION): Make these macros useful in #if
5843         expressions, as required by C99.
5845 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5847         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5848         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5849         after this.
5851 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5853         * stdlib/longlong.h: Updated from GCC.
5855 2012-05-09  Andreas Jaeger  <aj@suse.de>
5857         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5858         default is first entry.
5859         (run_mode): Set type.
5860         (main): Remove informal message about syslog.
5861         (options): Fix typo.
5863         [BZ #14053]
5864         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5865         to asm.
5866         (lrint): Likewise.
5867         (llrintf): Likewise.
5868         (llrint): Likewise.
5869         (rint): Likewise.
5870         (rintf): Likewise.
5871         (nearbyint): Likewise.
5872         (nearbyintf): Likewise.
5874 2012-05-09  Andreas Jaeger  <aj@suse.de>
5875             Pedro Alves  <palves@redhat.com>
5877         * nscd/nscd.c (run_mode): Use enum.
5878         (main): Cleanup coding style issue.
5880 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5881             Andreas Jaeger  <aj@suse.de>
5883         * nscd/nscd.c (go_background): Replaced with...
5884         (run_mode): ... this.
5885         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5886         (options): Add -F --foreground.
5887         (main): Implement it.
5888         (parse_opt): Parse it.
5890 2012-05-09  Andreas Jaeger  <aj@suse.de>
5892         [BZ #14083]
5893         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5894         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5895         -Wconversion warning.
5896         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5897         Likewise.
5899 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5901         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5902         == 0.
5903         (LC_ALL): Use macro-int-constant.
5904         (LC_COLLATE): Likewise.
5905         (LC_CTYPE): Likewise.
5906         (LC_MESSAGES): Likewise.
5907         (LC_MONETARY): Likewise.
5908         (LC_NUMERIC): Likewise.
5909         (LC_TIME): Likewise.
5910         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5911         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5912         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5913         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5914         Specify type.
5915         [C99-based standards] (float_t): Expect type.
5916         [C99-based standards] (double_t): Expect type.
5917         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5918         type.
5919         [C99-based standards] (HUGE_VALL): Likewise.
5920         [C99-based standards] (INFINITY): Likewise.
5921         [C99-based standards] (NAN): Likewise.
5922         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5923         [C99-based standards] (FP_NAN): Likewise.
5924         [C99-based standards] (FP_NORMAL): Likewise.
5925         [C99-based standards] (FP_SUBNORMAL): Likewise.
5926         [C99-based standards] (FP_ZERO): Likewise.
5927         [C99-based standards] (FP_FAST_FMA): Use
5928         optional-macro-int-constant.  Specify type.  Require == 1.
5929         [C99-based standards] (FP_FAST_FMAF): Likewise.
5930         [C99-based standards] (FP_FAST_FMAL): Likewise.
5931         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5932         [C99-based standards] (FP_ILOGBNAN): Likewise.
5933         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5934         Specify type.
5935         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5936         [C99-based standards] (math_errhandling): Specify type.
5937         [ISO99 || ISO11] (signgam): Do not allow.
5938         [non-C99-based standards] (copysignf): Do not allow.
5939         [non-C99-based standards] (exp2f): Likewise.
5940         [non-C99-based standards] (log2f): Likewise.
5941         [non-C99-based standards] (modff): Allow.
5942         [non-C99-based standards] (erff): Do not allow.
5943         [non-C99-based standards] (erfcf): Likewise.
5944         [non-C99-based standards] (gammaf): Likewise.
5945         [non-C99-based standards] (hypotf): Likewise.
5946         [non-C99-based standards] (j0f): Likewise.
5947         [non-C99-based standards] (j1f): Likewise.
5948         [non-C99-based standards] (jnf): Likewise.
5949         [non-C99-based standards] (lgammaf): Likewise.
5950         [non-C99-based standards] (tgammaf): Likewise.
5951         [non-C99-based standards] (y0f): Likewise.
5952         [non-C99-based standards] (y1f): Likewise.
5953         [non-C99-based standards] (ynf): Likewise.
5954         [non-C99-based standards] (isnanf): Likewise.
5955         [non-C99-based standards] (acoshf): Likewise.
5956         [non-C99-based standards] (asinhf): Likewise.
5957         [non-C99-based standards] (atanhf): Likewise.
5958         [non-C99-based standards] (cbrtf): Likewise.
5959         [non-C99-based standards] (expm1f): Likewise.
5960         [non-C99-based standards] (ilogbf): Likewise.
5961         [non-C99-based standards] (log1pf): Likewise.
5962         [non-C99-based standards] (logbf): Likewise.
5963         [non-C99-based standards] (nextafterf): Likewise.
5964         [non-C99-based standards] (remainderf): Likewise.
5965         [non-C99-based standards] (rintf): Likewise.
5966         [non-C99-based standards] (scalbf): Likewise.
5967         [non-C99-based standards] (copysignl): Likewise.
5968         [non-C99-based standards] (exp2l): Likewise.
5969         [non-C99-based standards] (log2l): Likewise.
5970         [non-C99-based standards] (modfl): Allow.
5971         [non-C99-based standards] (erfl): Do not allow.
5972         [non-C99-based standards] (erfcl): Likewise.
5973         [non-C99-based standards] (gammal): Likewise.
5974         [non-C99-based standards] (hypotl): Likewise.
5975         [non-C99-based standards] (j0l): Likewise.
5976         [non-C99-based standards] (j1l): Likewise.
5977         [non-C99-based standards] (jnl): Likewise.
5978         [non-C99-based standards] (lgammal): Likewise.
5979         [non-C99-based standards] (tgammal): Likewise.
5980         [non-C99-based standards] (y0l): Likewise.
5981         [non-C99-based standards] (y1l): Likewise.
5982         [non-C99-based standards] (ynl): Likewise.
5983         [non-C99-based standards] (isnanl): Likewise.
5984         [non-C99-based standards] (acoshl): Likewise.
5985         [non-C99-based standards] (asinhl): Likewise.
5986         [non-C99-based standards] (atanhl): Likewise.
5987         [non-C99-based standards] (cbrtl): Likewise.
5988         [non-C99-based standards] (expm1l): Likewise.
5989         [non-C99-based standards] (ilogbl): Likewise.
5990         [non-C99-based standards] (log1pl): Likewise.
5991         [non-C99-based standards] (logbl): Likewise.
5992         [non-C99-based standards] (nextafterl): Likewise.
5993         [non-C99-based standards] (remainderl): Likewise.
5994         [non-C99-based standards] (rintl): Likewise.
5995         [non-C99-based standards] (scalbl): Likewise.
5996         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5997         [non-C99-based standards] (FP_*): Do not allow.
5998         [C99-based standards] (FP_*): Change to
5999         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6000         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6001         allow.
6002         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6003         (SIG_ERR): Likewise.
6004         [X/Open-based standards] (SIG_HOLD): Likewise.
6005         (SIG_IGN): Likewise.
6006         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6007         positive value.
6008         (SIGFPE): Likewise.
6009         (SIGILL): Likewise.
6010         (SIGINT): Likewise.
6011         (SIGSEGV): Likewise.
6012         (SIGTER): Likewise.
6013         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6014         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6015         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6016         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6017         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6018         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6019         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6020         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6021         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6022         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6023         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6024         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6025         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6026         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6027         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6028         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6029         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6030         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6031         [X/Open-based standards] (SIGTRAP): Likewise.
6032         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6033         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6034         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6035         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6036         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6037         allow.
6039 2012-05-08  Ian Wienand  <ianw@vmware.com>
6041         [BZ #14080]
6042         * time/tzset.c (__tzset_parse_tz): Update default rules for
6043         daylight time changes in the Energy Policy Act of 2005.
6045 2012-05-09  Andreas Jaeger  <aj@suse.de>
6047         [BZ #13983]
6048         * elf/ldconfig.c (parse_conf): Change string to make clear that
6049         ldconfig only issued a warning if ld.so.conf does not exist.
6051 2012-05-08  David S. Miller  <davem@davemloft.net>
6053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6054         movxtod instead of popping the value on the stack.
6056         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6058 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6060         * config.h.in: Add HAVE_ARM_PCS_VFP.
6062 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6064         [BZ #13979]
6065         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6066         checking but the checks are disabled for any reason.
6068 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6070         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6071         and ELF64_R_TYPE with ELFW(R_TYPE).
6073 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6075         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6076         (ulimit): Likewise.
6078         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6079         (settimeofday): Likewise.
6081 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6083         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6084         a struct th_u2 inside the union, and move tu_block/tu_code into
6085         a new th_u3 union of tu_block/tu_code inside of that.  Move
6086         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6087         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6088         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6089         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6090         (th_stuff): Change to th_u1.tu_stuff.
6091         (th_data): Define.
6092         (th_msg): Change to th_u1.th_u2.tu_data.
6094 2012-05-07  David S. Miller  <davem@davemloft.net>
6096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6098         [BZ #14074]
6099         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6100         (SETUP_PIC_REG): Use it.
6101         (SETUP_PIC_REG_LEAF): Use it.
6103 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6105         [BZ #13885]
6106         [BZ #13923]
6107         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6108         USE_AS_EXPM1L.
6109         (EXPL_FINITE): Likewise.
6110         (FLDLOG): Likewise.
6111         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6112         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6113         e_expl.S.
6114         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6115         USE_AS_EXPM1L.
6116         (EXPL_FINITE): Likewise.
6117         (FLDLOG): Likewise.
6118         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6119         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6120         e_expl.S.
6121         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6122         test of -max_value argument for long double.
6123         * sysdeps/i386/fpu/libm-test-ulps: Update.
6124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6126 2012-05-06  David S. Miller  <davem@davemloft.net>
6128         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6129         quad soft-float symbols whose references which are compiler
6130         generated.
6131         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6133 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6135         [BZ #13884]
6136         [BZ #13914]
6137         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6138         USE_AS_EXP10L.
6139         (EXPL_FINITE): Likewise.
6140         (FLDLOG): Likewise.
6141         (c0): Likewise.
6142         (c1): Likewise.
6143         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6144         Adjust comments for base varying.
6145         (__expl_finite): Change alias to EXPL_FINITE.
6146         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6147         e_expl.S.
6148         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6149         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6150         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6151         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6152         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6153         USE_AS_EXP10L.
6154         (EXPL_FINITE): Likewise.
6155         (FLDLOG): Likewise.
6156         (c0): Likewise.
6157         (c1): Likewise.
6158         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6159         Adjust comments for base varying.
6160         (__expl_finite): Change alias to EXPL_FINITE.
6161         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6162         tests for bugs.
6163         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6165         [BZ #14064]
6166         * math/libm-test.inc (check_float_internal): Correct ulp
6167         calculation for subnormal expected results.
6169 2012-05-06  Andreas Jaeger  <aj@suse.de>
6171         * Makeconfig (+math-flags): New, set to -frounding-math.
6172         (+cflags): Add +math-flags so that all of glibc gets compiled with
6173         it.
6175         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6177 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6179         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6180         Disable one test.
6182         [BZ #13787]
6183         [BZ #13922]
6184         [BZ #14036]
6185         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6186         (__ieee754_expl): Allow for and saturate large arguments.
6187         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6188         (u_threshold): Likewise.
6189         (__exp): Call __ieee754_exp before checking for overflow and
6190         underflow.
6191         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6192         (u_threshold): Likewise.
6193         (__expf): Call __ieee754_expf before checking for overflow and
6194         underflow.
6195         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6196         (u_threshold): Likewise.
6197         (__expl): Call __ieee754_expl before checking for overflow and
6198         underflow.
6199         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6200         (__ieee754_expl): Allow for and saturate large arguments.
6201         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6202         missing overflow exception on overflow.
6203         (expm1_test): Do not allow missing overflow exception on overflow.
6205         * sysdeps/i386/fpu/e_expl.c: Move to ...
6206         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6207         rather than using inline asm.
6208         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6209         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6210         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6212         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6213         (nice): Likewise.
6214         (poll): Likewise.
6215         (signal): Likewise.
6216         (time): Likewise.
6217         (times): Likewise.
6219 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6221         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6222         sysdeps/unix/common/syscalls.list.
6223         (fchmod): Likewise.
6224         (fchown): Likewise.
6225         (ftruncate): Likewise.
6226         (getrusage): Likewise.
6227         (gettimeofday): Likewise.
6228         (setpgid): Likewise.
6229         (setregid): Likewise.
6230         (setreuid): Likewise.
6231         (sigaction): Likewise.
6232         (truncate): Likewise.
6233         (vhangup): Likewise.
6234         * sysdeps/unix/common/syscalls.list: Remove file.
6235         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6236         * sysdeps/unix/sysv/linux/Implies: Likewise.
6238 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6240         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6241         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6242         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6243         Moved to ...
6244         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6245         Here.
6246         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6247         to ...
6248         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6249         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6250         to ...
6251         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6252         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6253         to ...
6254         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6255         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6256         to ...
6257         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6258         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6259         to ...
6260         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6261         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6262         to ...
6263         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6264         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6265         to ...
6266         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6267         Here.
6268         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6269         to ...
6270         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6271         Here.
6272         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6273         to ...
6274         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6275         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6276         Moved to ...
6277         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6278         Here.
6279         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6280         to ...
6281         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6283 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6285         * sysdeps/unix/common/bits/dirent.h: Remove file.
6286         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6288         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6289         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6290         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6291         * sysdeps/unix/bsd/isatty.c: Likewise.
6292         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6293         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6294         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6296 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6298         [BZ #13563]
6299         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6300         long double comparison inaccuracies.
6301         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6302         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6304 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6306         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6307         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6309 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6311         [BZ #14049]
6312         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6313         nonzero digits before rounding a hex value.
6314         * stdlib/tst-strtod.c (tests): Add another test.
6316 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6318         * sysdeps/s390/fpu/libm-test-ulps: Update.
6320 2012-05-03  Andreas Jaeger  <aj@suse.de>
6322         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6323         does not get optimized out.
6324         (malloc_opt_barrier): New.
6326 2012-05-03  Andreas Jaeger  <aj@suse.de>
6327             Roland McGrath  <roland@hack.frob.com>
6329         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6330         intermediate file deletion.
6331         (generated): Add .symlist files.
6333 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6335         [BZ #13775]
6336         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6337         Redirect under this condition.
6338         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6339         [__USE_GNU] (__dprintf_chk): Not under this condition.
6340         [__USE_GNU] (__vdprintf_chk): Likewise.
6341         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6342         under this condition.
6343         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6344         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6345         [__USE_XOPEN2K8] (vdprintf): Likewise.
6346         [__USE_GNU] (__dprintf_chk): Not under this condition.
6347         [__USE_GNU] (__vdprintf_chk): Likewise.
6348         [__USE_GNU] (dprintf): Likewise.
6349         [__USE_GNU] (vdprintf): Likewise.
6351 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6353         * elf/Makefile (common-generated): Set this instead of generated for
6354         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6355         $(all-built-dso)-derived lists.
6357 2012-05-03  Andreas Jaeger  <aj@suse.de>
6359         * sysdeps/i386/fpu/libm-test-ulps: Update.
6361         * FAQ: Removed.
6362         * FAQ.in: Likewise.
6363         * scripts/gen-FAQ.pl: Likewise.
6364         * manual/install.texi (Installation): Point to online location of
6365         FAQ.
6366         * Makefile (files-for-dist): Remove FAQ.
6367         (FAQ): Remove.
6369 2012-05-02  Allan McRae  <allan@archlinux.org>
6371         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6372         (LDFLAGS-reldepmod5.so): Likewise.
6373         (LDFLAGS-reldep6mod1.so): Likewise.
6374         (LDFLAGS-reldep6mod4.so): Likewise.
6375         (LDFLAGS-reldep8mod3.so): Likewise.
6376         (LDFLAGS-unload4mod1.so): Likewise.
6377         (LDFLAGS-unload4mod2.so): Likewise.
6378         (LDFLAGS-tst-initorder): Likewise.
6379         (LDFLAGS-tst-initordera2.so): Likewise.
6380         (LDFLAGS-tst-initordera3.so): Likewise.
6381         (LDFLAGS-tst-initordera4.so): Likewise.
6382         (LDFLAGS-tst-initorderb2.so): Likewise.
6383         (LDFLAGS-noload): Likewise.
6384         (LDFLAGS-next): Likewise.
6385         (LDFLAGS-order2mod1.so): Likewise.
6386         (LDFLAGS-order2mod2.so): Likewise.
6387         (LDFLAGS-tst-initorder2): Likewise.
6388         (LDFLAGS-tst-initorder2a.so): Likewise.
6389         (LDFLAGS-tst-initorder2b.so): Likewise.
6390         (LDFLAGS-tst-initorder2c.so): Likewise.
6391         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6393 2012-05-02  David S. Miller  <davem@davemloft.net>
6395         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6397 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6399         [BZ #14055]
6400         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6402 2012-05-02  Andreas Jaeger  <aj@suse.de>
6404         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6405         since we manipulate rounding mode.
6406         (CPPFLAGS-test-idouble.c): Likewise.
6407         (CPPFLAGS-test-ifloat.c): Likewise.
6408         (CFLAGS-test-ldouble.c): Likewise.
6409         (CFLAGS-test-double.c): Likewise.
6410         (CFLAGS-test-float.c): Likewise.
6411         (CFLAGS-test-misc.c): Likewise.
6412         (CFLAGS-test-test-fenv.c): Likewise.
6414 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6416         [BZ #2550]
6417         [BZ #2570]
6418         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6419         comparisons to determine direction to adjust input.
6421 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6423         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6424         output to the target.
6426         * scripts/localplt.awk: New file.
6427         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6428         (check-localplt-CFLAGS): Variable removed.
6429         ($(all-built-dso:=.jmprel)): New static pattern rule.
6430         (generated): Add those targets.
6431         (localplt-built-dso): New variable.
6432         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6434         * elf/check-localplt.c: File removed.
6436         * scripts/check-execstack.awk: New file.
6437         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6438         (check-execstack-CFLAGS): Variable removed.
6439         ($(objpfx)check-execstack.h): Target removed.
6440         ($(objpfx)execstack-default): New target.
6441         (generated): Add that instead of check-execstack.h.
6442         ($(all-built-dso:=.phdr)): New static pattern rule.
6443         (generated): Add those targets.
6444         * elf/check-execstack.c: File removed.
6446         * scripts/check-textrel.awk: New file.
6447         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6448         (check-textrel-CFLAGS): Variable removed.
6449         (all-built-dso): Use := to define.o
6450         ($(all-built-dso:=.dyn)): New static pattern rule.
6451         (generated): Add those targets.
6452         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6453         * config.make.in (READELF): New substituted variable.
6454         * elf/check-textrel.c: File removed.
6456 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6458         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6459         allow.
6460         * conform/data/ctype.h-data [C99-based standards] (isblank):
6461         Expect function.
6462         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6463         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6464         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6465         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6466         Specify type.  Require positive value.
6467         (EILSEQ): Likewise.
6468         (ERANGE): Likewise.
6469         [ISO || POSIX] (EILSEQ): Do not expect.
6470         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6471         Specify type.  Require positive value.
6472         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6474         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6475         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6476         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6477         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6478         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6479         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6480         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6482         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6483         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6484         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6485         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6486         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6487         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6488         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6489         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6490         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6491         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6492         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6493         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6494         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6495         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6496         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6497         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6498         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6499         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6500         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6501         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6502         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6503         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6504         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6505         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6506         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6507         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6508         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6509         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6510         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6511         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6512         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6513         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6514         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6515         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6516         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6517         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6518         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6519         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6520         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6521         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6522         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6523         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6524         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6525         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6526         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6527         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6528         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6529         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6530         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6531         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6532         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6533         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6534         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6535         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6536         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6537         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6538         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6539         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6540         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6541         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6542         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6543         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6544         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6545         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6546         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6547         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6548         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6549         Require >= 2.
6550         (FLT_ROUNDS): Expect as macro, not constant.
6551         (FLT_MANT_DIG): Use macro-int-constant.
6552         (DBL_MANT_DIG): Likewise.
6553         (LDBL_MANT_DIG): Likewise.
6554         (FLT_DIG): Likewise.
6555         (DBL_DIG): Likewise.
6556         (LDBL_DIG): Likewise.
6557         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6558         (DBL_MIN_EXP): Likewise.
6559         (LDBL_MIN_EXP): Likewise.
6560         (FLT_MAX_EXP): Use macro-int-constant.
6561         (DBL_MAX_EXP): Likewise.
6562         (LDBL_MAX_EXP): Likewise.
6563         (FLT_MAX_10_EXP): Likewise.
6564         (DBL_MAX_10_EXP): Likewise.
6565         (LDBL_MAX_10_EXP): Likewise.
6566         (FLT_MAX): Use macro-constant.
6567         (DBL_MAX): Likewise.
6568         (LDBL_MAX): Likewise.
6569         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6570         (DBL_EPSILON): Likewise.
6571         (LDBL_EPSILON): Likewise.
6572         (FLT_MIN): Likewise.
6573         (DBL_MIN): Likewise.
6574         (LDBL_MIN): Likewise.
6575         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6576         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6577         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6578         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6579         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6580         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6581         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6582         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6583         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6584         [ISO11] (FLT_TRUE_MIN): Likewise.
6585         [ISO11] (LDBL_TRUE_MIN): Likewise.
6586         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6587         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6588         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6589         (SCHAR_MAX): Likewise.
6590         (UCHAR_MAX): Likewise.
6591         (CHAR_MIN): Likewise.
6592         (CHAR_MAX): Likewise.
6593         (MB_LEN_MAX): Use macro-int-constant.
6594         (SHRT_MIN): Use macro-int-constant.  Specify type.
6595         (SHRT_MAX): Likewise.
6596         (USHRT_MAX): Likewise.
6597         (INT_MAX): Likewise.
6598         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6599         bound negative.
6600         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6601         bound with "U".
6602         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6603         bound with "L".
6604         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6605         bound negative.  Suffix upper bound with "L".
6606         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6607         bound with "UL".
6608         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6609         Specify type.
6610         [C99-based standards] (LLONG_MAX): Likewise.
6611         [C99-based standards] (ULLONG_MAX): Likewise.
6612         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6613         == 0.
6614         [ISO11] (max_align_t): Require type.
6615         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6617         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6618         from $CFLAGS, without defining away __attribute__ calls.
6619         (checknamespace): Use $CFLAGS_namespace.
6621         * conform/conformtest.pl (@keywords): Only include C99 keywords
6622         for standards based on C99 or C11.
6624         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6625         Disable tests.
6626         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6627         UNIX98]: Likewise.
6629         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6630         usability of symbols in #if.
6632         * conform/conformtest.pl: If macro or constant types start
6633         "promoted:", expect the symbol to be of the following type
6634         promoted by the integer promotions.
6636         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6637         in one place.  Also handle "macro-constant".
6639         * conform/conformtest.pl: Only accept expected macro values with
6640         "==".  Parse all "macro" lines in one place.
6641         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6643         * conform/conformtest.pl: Handle braced types on "constant" lines
6644         instead of handling "typed-constant".
6645         * conform/data/signal.h-data: Use "constant" instead of
6646         "typed-constant".
6648         * conform/conformtest.pl: Handle "optional-" at start of lines in
6649         one place rather than duplicating several cases.  Handle each
6650         format of "macro" line with initial "optional-".
6652         * conform/conformtest.pl: Only accept expected constant or
6653         optional-constant values with "==".  Parse all "constant" lines in
6654         one place.  Parse all "optional-constant" lines in one place.
6655         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6656         * conform/data/fmtmsg.h-data: Likewise.
6657         * conform/data/netinet/in.h-data: Likewise.
6658         * conform/data/tar.h-data: Likewise.
6659         * conform/data/limits.h-data: Use "==" form on "constant" and
6660         "optional-constant" lines.
6662         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6663         Use -std=c99 for XOPEN2K.
6664         (@knownproblems): Remove.
6665         (newtoken): Don't check %isknown.
6667         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6668         Do not expect macro.
6669         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6670         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6671         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6672         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6673         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6674         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6675         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6676         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6677         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6678         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6679         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6680         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6681         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6682         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6683         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6684         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6685         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6686         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6687         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6688         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6689         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6690         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6691         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6692         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6693         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6694         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6695         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6696         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6697         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6698         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6699         [XPG3] (acosh): Likewise.
6700         [XPG3] (asinh): Likewise.
6701         [XPG3] (atanh): Likewise.
6702         [XPG3] (cbrt): Likewise.
6703         [XPG3] (expm1): Likewise.
6704         [XPG3] (ilogb): Likewise.
6705         [XPG3] (log1p): Likewise.
6706         [XPG3] (logb): Likewise.
6707         [XPG3] (nextafter): Likewise.
6708         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6709         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6710         [XPG3] (remainder): Likewise.
6711         [XPG3] (rint): Likewise.
6712         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6713         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6714         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6715         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6716         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6717         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6718         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6719         [UNIX98 || XOPEN2K] (scalb): Expect.
6720         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6721         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6722         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6723         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6724         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6725         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6726         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6727         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6728         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6729         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6730         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6731         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6732         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6733         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6734         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6735         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6736         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6737         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6738         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6739         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6740         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6741         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6742         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6743         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6744         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6745         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6746         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6747         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6748         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6749         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6750         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6751         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6752         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6753         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6754         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6755         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6756         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6757         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6758         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6759         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6760         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6761         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6762         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6763         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6764         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6765         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6766         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6767         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6768         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6769         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6770         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6771         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6772         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6773         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6774         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6775         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6776         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6777         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6778         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6779         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6780         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6781         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6782         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6783         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6784         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6785         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6786         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6787         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6788         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6789         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6790         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6791         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6792         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6793         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6794         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6795         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6796         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6797         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6798         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6799         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6800         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6801         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6802         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6803         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6804         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6805         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6806         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6807         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6808         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6809         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6810         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6811         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6812         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6813         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6814         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6815         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6816         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6817         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6818         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6819         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6820         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6821         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6822         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6823         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6824         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6825         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6826         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6827         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6828         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6829         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6830         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6831         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6832         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6833         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6834         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6835         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6836         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6837         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6838         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6839         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6840         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6841         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6842         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6843         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6844         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6845         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6846         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6847         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6848         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6849         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6850         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6851         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6852         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6853         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6854         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6855         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6856         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6858         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6859         _XOPEN_SOURCE_EXTENDED for XPG4.
6861         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6863         * Makeconfig (localtime): Remove variable.
6864         (inst_localtime-file): Likewise.
6866 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6869         Update.
6870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6871         Update.
6872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6873         Update.
6874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6875         Update.
6876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6877         Update.
6878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6879         Update.
6880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6881         Update.
6882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6883         Update.
6884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6885         Update.
6887 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6889         [BZ #2550]
6890         [BZ #2570]
6891         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6892         comparisons to determine direction to adjust input.
6893         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6894         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6895         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6896         Likewise.
6897         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6898         Likewise.
6899         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6900         Likewise.
6901         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6902         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6903         Likewise.
6904         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6905         Likewise.
6906         * math/libm-test.inc (nexttoward_test): Add more tests.
6908 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6910         [BZ #14040]
6911         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6912         in version GLIBC_2.1, not GLIBC_2.0.
6913         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6914         Likewise.
6916 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6918         [BZ #13942]
6919         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6920         (1 - x) * (1 + x).
6921         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6922         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6923         * math/libm-test.inc (acos_test): Add more tests.
6924         (asin_test): Likewise.
6925         * sysdeps/i386/fpu/libm-test-ulps: Update.
6926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6928         [BZ #14034]
6929         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6930         of square root.
6931         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6932         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6933         * math/libm-test.inc (acos_test_tonearest): New function.
6934         (acos_test_towardzero): Likewise.
6935         (acos_test_downward): Likewise.
6936         (acos_test_upward): Likewise.
6937         (asin_test_tonearest): Likewise.
6938         (asin_test_towardzero): Likewise.
6939         (asin_test_downward): Likewise.
6940         (asin_test_upward): Likewise.
6941         (main): Call the new functions.
6942         * sysdeps/i386/fpu/libm-test-ulps: Update.
6943         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6945         [BZ #13884]
6946         [BZ #13924]
6947         * math/e_exp10.c: Include <float.h>.
6948         (__ieee754_exp10): Handle underflow here rather than multiplying
6949         large negative argument by M_LN10.
6950         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6951         of __ieee754_expf.
6952         * math/e_exp10l.c: Include <float.h>.
6953         (__ieee754_exp10l): Handle underflow here rather than multiplying
6954         large negative argument by M_LN10l.
6955         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6956         spurious overflow exception on underflow.
6958 2012-04-29  Marek Polacek  <polacek@redhat.com>
6960         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6961         (__fortify_function): New macro.
6962         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6963         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6964         __extern_always_inline.
6965         * libio/bits/stdio2.h: Likewise.
6966         * libio/bits/stdio.h: Likewise.
6967         * string/string.h: Likewise.
6968         * string/bits/string3.h: Likewise.
6969         * include/stdio.h: Likewise.
6970         * stdlib/bits/stdlib.h: Likewise.
6971         * stdlib/stdlib.h: Likewise.
6972         * rt/bits/mqueue2.h: Likewise.
6973         * rt/mqueue.h: Likewise.
6974         * posix/bits/unistd.h: Likewise.
6975         * posix/unistd.h: Likewise.
6976         * io/bits/poll2.h: Likewise.
6977         * io/bits/fcntl2.h: Likewise.
6978         * io/fcntl.h: Likewise.
6979         * io/sys/poll.h: Likewise.
6980         * misc/bits/syslog.h: Likewise.
6981         * misc/bits/syslog-ldbl.h: Likewise.
6982         * misc/sys/syslog.h: Likewise.
6983         * socket/bits/socket2.h: Likewise.
6984         * socket/sys/socket.h: Likewise.
6985         * debug/tst-chk1.c: Likewise.
6986         * wcsmbs/bits/wchar2.h: Likewise.
6987         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6988         * wcsmbs/wchar.h: Likewise.
6990 2012-04-29  Andreas Jaeger  <aj@suse.de>
6992         * Makerules (tests): Remove enable-check-abi protection.
6993         (check-abi-warn): Remove.
6994         (check-abi-%): Remove check-abi-warn usage.
6996         * configure.in: Remove check-abi configure option.
6997         * configure: Regenerated.
6998         * config.make.in (enable-check-abi): Remove.
7000 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7002         [BZ #14033]
7003         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7004         double functions to double *_finite functions.
7006         [BZ #13941]
7007         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7008         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7009         LDBL_MIN_EXP.
7010         * stdio-common/Makefile (tests): Add tst-sprintf3.
7011         * stdio-common/tst-sprintf3.c: New file.
7013         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7014         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7016 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7018         * conform/conformtest.pl: Remove duplicate typed-constant
7019         handling.
7021 2012-04-28  David S. Miller  <davem@davemloft.net>
7023         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7024         (check-abi-%): Remove AWK script prerequisite and explicit
7025         abilist directory.
7026         (check-abi): Rewrite to just diff the symlist with the abilist.
7027         (config-tls, config-abi-config): Delete, no longer used.
7028         (update-abi-%): Remove AWK script and explicit abilist directory.
7029         (update-abi): Rewrite to simply compare and conditionally copy the
7030         symlist and the sysdep abilist file.  Remove update-abi-config
7031         checks.
7032         * abilist/ld.abilist: Remove.
7033         * abilist/libBrokenLocale.abilist: Remove.
7034         * abilist/libanl.abilist: Remove.
7035         * abilist/libcrypt.abilist: Remove.
7036         * abilist/libdl.abilist: Remove.
7037         * abilist/librt.abilist: Remove.
7038         * abilist/libthread_db.abilist: Remove.
7039         * abilist/libutil.abilist: Remove.
7040         * scripts/extract-abilist.awk: Remove.
7041         * scripts/merge-abilist.awk: Remove.
7042         * sysdeps/generic/libcidn.abilist: New file.
7043         * sysdeps/generic/libnss_compat.abilist: New file.
7044         * sysdeps/generic/libnss_db.abilist: New file.
7045         * sysdeps/generic/libnss_dns.abilist: New file.
7046         * sysdeps/generic/libnss_files.abilist: New file.
7047         * sysdeps/generic/libnss_hesiod.abilist: New file.
7048         * sysdeps/generic/libnss_nis.abilist: New file.
7049         * sysdeps/generic/libnss_nisplus.abilist: New file.
7050         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7051         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7052         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7053         file.
7054         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7055         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7056         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7057         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7058         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7059         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7060         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7061         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7062         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7063         file.
7064         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7065         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7066         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7067         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7068         file.
7069         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7070         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7071         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7072         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7073         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7074         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7075         file.
7076         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7077         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7078         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7079         file.
7080         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7081         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7082         New file.
7083         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7084         New file.
7085         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7086         New file.
7087         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7088         New file.
7089         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7090         New file.
7091         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7092         New file.
7093         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7094         New file.
7095         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7096         New file.
7097         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7098         New file.
7099         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7100         New file.
7101         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7102         New file.
7103         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7104         New file.
7105         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7106         New file.
7107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7108         file.
7109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7110         New file.
7111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7112         New file.
7113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7114         file.
7115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7116         New file.
7117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7118         New file.
7119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7120         file.
7121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7122         New file.
7123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7124         New file.
7125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7126         New file.
7127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7128         New file.
7129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7130         New file.
7131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7132         New file.
7133         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7134         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7135         file.
7136         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7137         New file.
7138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7139         file.
7140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7141         file.
7142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7143         file.
7144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7145         file.
7146         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7147         file.
7148         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7149         New file.
7150         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7151         file.
7152         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7153         file.
7154         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7155         New file.
7156         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7157         file.
7158         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7159         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7160         file.
7161         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7162         New file.
7163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7164         file.
7165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7166         file.
7167         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7168         file.
7169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7170         file.
7171         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7172         file.
7173         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7174         New file.
7175         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7176         file.
7177         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7178         file.
7179         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7180         New file.
7181         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7182         file.
7183         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7184         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7185         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7186         file.
7187         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7188         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7189         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7190         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7191         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7192         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7193         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7194         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7195         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7196         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7197         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7198         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7199         file.
7200         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7201         New file.
7202         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7203         file.
7204         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7205         file.
7206         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7207         file.
7208         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7209         file.
7210         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7211         file.
7212         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7213         New file.
7214         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7215         New file.
7216         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7217         file.
7218         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7219         New file.
7220         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7221         file.
7222         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7223         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7224         file.
7225         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7226         New file.
7227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7228         file.
7229         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7230         file.
7231         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7232         file.
7233         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7234         file.
7235         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7236         file.
7237         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7238         New file.
7239         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7240         New file.
7241         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7242         file.
7243         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7244         New file.
7245         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7246         file.
7248 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7250         * conform/conformtest.pl: Fix typo in handling typed-constant from
7251         allow-header.
7253 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7255         * README: Cut down references to pre-2.6 Linux kernels and
7256         Linuxthreads.  Update lists of configurations in libc and ports
7257         and sort alphabetically.  Say "or newer" with Linux kernel version
7258         requirements.
7260         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7262 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7264         [BZ #887]
7265         * math/libm-test.inc (logb_test_downward): New test to expose
7266         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7267         rounding mode.
7269 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7271         [BZ #14027]
7272         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7273         to be done.
7274         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7275         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7277 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7279         * sysdeps/unix/i386/brk.S: Remove file.
7280         * sysdeps/unix/i386/dl-brk.S: Likewise.
7281         * sysdeps/unix/i386/pipe.S: Likewise.
7282         * sysdeps/unix/i386/sigreturn.S: Likewise.
7283         * sysdeps/unix/i386/syscall.S: Likewise.
7284         * sysdeps/unix/i386/vfork.S: Likewise.
7285         * sysdeps/unix/i386/wait.S: Likewise.
7287         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7288         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7290         * configure.in (arm*-none*): Do not allow without
7291         --enable-hacker-mode.
7292         (netbsd*): Remove case setting base_os.
7293         (386bsd*): Likewise.
7294         (freebsd*): Likewise.
7295         (bsdi*): Likewise.
7296         (osf*): Likewise.
7297         (sunos*): Likewise.
7298         (ultrix*): Likewise.
7299         (newsos*): Likewise.
7300         (dynix*): Likewise.
7301         (*bsd*): Likewise.
7302         (sysv*): Likewise.
7303         (isc*): Likewise.
7304         (esix*): Likewise.
7305         (sco*): Likewise.
7306         (minix*): Likewise.
7307         (irix4*): Likewise.
7308         (irix6*): Likewise.
7309         (solaris[2-9]*): Likewise.
7310         (none): Likewise.
7311         * configure: Regenerated.
7313 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7315         [BZ #11521]
7316         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7317         overflow or cancellation in calculating denominator.
7318         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7319         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7320         down expression to avoid unexpected rounding in newer GCCs.
7321         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7323 2012-04-26  David S. Miller  <davem@davemloft.net>
7325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7326         long-double compat symbols.
7327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7335         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7341 2012-04-25  David S. Miller  <davem@davemloft.net>
7343         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7344         HWCAP_* values only after the memory barriers have been defined.
7345         (atomic_full_barrier): Define.
7346         (atomic_read_barrier): Define.
7347         (atomic_write_barrier): Define.
7349 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7351         * shlib-versions: Add libgcc_s version information.
7352         * sysdeps/generic/libgcc_s.h: Remove.
7353         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7354         libgcc_s.h.
7355         * sysdeps/gnu/unwind-resume.c: Likewise.
7356         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7358 2012-04-25  David S. Miller  <davem@davemloft.net>
7360         * sysdeps/unix/sparc/brk.S: Delete.
7361         * sysdeps/unix/sparc/dl-brk.S: Delete.
7362         * sysdeps/unix/sparc/pipe.S: Delete.
7363         * sysdeps/unix/sparc/sysdep.S: Delete.
7364         * sysdeps/unix/sparc/sysdep.h: Delete.
7365         * sysdeps/unix/sparc/vfork.S: Delete.
7366         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7367         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7368         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7369         ret_ERRVAL, r0, r1, MOVE): Define.
7370         (JUMPTARGET): Remove.
7371         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7372         sysdeps/unix/sparc/sysdep.h
7373         (ENTRY, END): Remove.
7374         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7376 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7378         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7379         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7380         -DIS_IN_build.
7382         * timezone/README: Update upstream location and email address for
7383         tzcode and tzdata.
7384         * timezone/zdump.c: Update from tzcode 2012b.
7385         * timezone/zic.c: Likewise.
7387         * configure.in (libc_cv_as_needed): Remove test.
7388         * configure: Regenerated.
7389         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7390         conditional definition.
7391         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7392         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7393         * config.make.in (have-as-needed): Remove variable.
7395 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7396             Paul Pluzhnikov  <ppluzhnikov@google.com>
7398         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7399         strings correctly.
7401 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7403         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7404         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7405         * sysdeps/sh/strlen.S: Likewise.
7407 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7409         * sysdeps/unix/fork.S: Remove file.
7410         * sysdeps/unix/i386/fork.S: Likewise.
7411         * sysdeps/unix/sparc/fork.S: Likewise.
7413         * sysdeps/unix/system.c: Remove file.
7414         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7416         * sysdeps/unix/getegid.S: Remove file.
7417         * sysdeps/unix/geteuid.S: Likewise.
7419 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7421         * scripts/check-localplt.awk: New file.
7422         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7423         of diff.
7424         * scripts/data/localplt-generic.data: Add a comment.
7426         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7427         NODE when __dir_mkfile failed.
7428         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7429         Reported by Ludovic Courtès <ludo@gnu.org>.
7431 2012-04-24  Andreas Jaeger  <aj@suse.de>
7433         * Makerules (common-clean): Also remove gen-as-const-headers
7434         files.
7436 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7438         * Makerules (native-compile): Do not change working directory for
7439         build.  Use $(OUTPUT_OPTION) in command.
7440         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7442 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7444         [BZ #13886]
7445         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7446         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7447         * math/libm-test.inc (floor_test): Add more tests.
7448         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7450 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7452         * sysdeps/unix/getdents.c: Remove file.
7453         * sysdeps/unix/sysv/getdents.c: Likewise.
7454         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7456         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7457         sysdeps/unix/mman/syscalls.list.
7458         (mmap): Likewise.
7459         (mprotect): Likewise.
7460         (msync): Likewise.
7461         (munmap): Likewise.
7462         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7463         * sysdeps/unix/mman/syscalls.list: Remove.
7464         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7466         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7467         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7468         * configure: Regenerated.
7469         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7470         $(libgcc_s_suffix).
7471         * config.make.in (libgcc_s_suffix): Remove variable.
7473 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7475         * sysdeps/unix/sysv/gethostname.c: Move to ...
7476         * sysdeps/posix/gethostname.c: ... here.
7478         * sysdeps/unix/execve.S: Remove file.
7480         * sysdeps/unix/_exit.S: Remove file.
7482 2012-04-23  Andreas Jaeger  <aj@suse.de>
7484         [BZ #13739]
7485         * manual/Makefile: Remove make dist support, there's no
7486         need for a stand-alone documentation tar ball.
7487         (TEXI2DVI): Define always, it's not in Makeconfig.
7488         (dist): Removed.
7489         (tar-it): Removed.
7490         (edition): Removed.
7491         (glibc-doc-$(edition).tar): Removed
7492         (%.Z): Removed.
7493         (%.gz): Removed.
7494         (%.uu): Removed.
7495         (ETAGS): Remove, it's in Makeconfig.
7496         (move-if-change): Remove, it's in Makeconfig.
7498 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7500         [BZ #13970]
7501         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7502         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7503         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7504         (strtod_l, strtof_l, strtold_l): Remove __wur.
7505         It is not necessarily an error to ignore strtol's return value.
7506         One can reliably look at the stored endptr to decide whether
7507         the number had valid syntax.
7509 2012-04-21  Andreas Jaeger  <aj@suse.de>
7511         [BZ #13739]
7512         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7514 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7516         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7517         * sysdeps/unix/sysv/Versions: Remove file.
7519 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7521         [BZ #13927]
7522         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7524 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7526         [BZ #7064]
7527         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7528         version from __vm86.
7530 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7532         * sysdeps/unix/common/lxstat.c: Remove file.
7533         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7535         * sysdeps/unix/sysv/Makefile: Remove file.
7537         * sysdeps/unix/sysv/direct.h: Remove file.
7539         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7540         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7541         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7542         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7543         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7544         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7545         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7547         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7549         * sysdeps/unix/xmknod.c: Remove file.
7550         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7552         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7554         * sysdeps/unix/sysv/i386/time.S: Remove file.
7556         * sysdeps/unix/fxstat.c: Remove file.
7557         * sysdeps/unix/xstat.c: Likewise.
7558         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7560         * sysdeps/unix/sysv/sigaction.c: Remove file.
7562         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7563         (sysdep_headers): Remove variable.
7564         [termio.h not in sysdep_headers] (generated): Likewise.
7565         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7566         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7567         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7568         * sysdeps/unix/sysv/tcflow.c: Likewise.
7569         * sysdeps/unix/sysv/tcflush.c: Likewise.
7570         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7571         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7572         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7573         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7574         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7576         * sysdeps/unix/siglist.c: Remove file.
7578         * sysdeps/unix/getppid.S: Remove file.
7580         * sysdeps/unix/mkdir.c: Remove file.
7581         * sysdeps/unix/rmdir.c: Likewise.
7583 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7585         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7586         ERR_MAX value.
7587         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7588         errlist-compat value.
7590 2012-04-18  David S. Miller  <davem@davemloft.net>
7592         * sysdeps/generic/memcopy.h (reg_char): Delete.
7593         * debug/strcat_chk.c: Use char, not reg_char.
7594         * debug/strcpy_chk.c: Likewise.
7595         * debug/strncat_chk.c: Likewise.
7596         * debug/strncpy_chk.c: Likewise.
7597         * string/memchr.c: Likewise.
7598         * string/memrchr.c: Likewise.
7599         * string/rawmemchr.c: Likewise.
7600         * string/strcat.c: Likewise.
7601         * string/strchr.c: Likewise.
7602         * string/strchrnul.c: Likewise.
7603         * string/strcmp.c: Likewise.
7604         * string/strcpy.c: Likewise.
7605         * string/strncat.c: Likewise.
7606         * string/strncmp.c: Likewise.
7607         * string/strncpy.c: Likewise.
7609 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7611         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7612         __builtin_memcopy is called when src and dest ranges are known to not
7613         overlap.
7615 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7617         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7618         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7619         fwd_align_merge macro call.
7620         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7621         bwd_align_merge macro call.
7622         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7624 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7626         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7627         bwd_align_merge macros.
7628         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7629         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7630         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7632 2012-04-18  David S. Miller  <davem@davemloft.net>
7634         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7636 2012-04-18  Andreas Jaeger  <aj@suse.de>
7638         [BZ# 6794]
7639         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7640         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7641         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7643         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7644         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7645         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7647         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7648         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7649         Adjust for changed ldbl-128 files.
7651         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7652         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7653         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7655 2012-04-17  David S. Miller  <davem@davemloft.net>
7657         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7659 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7661         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7662         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7663         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7664         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7665         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7666         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7668 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7670         [BZ #6794]
7671         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7672         * math/libm-test.inc: Add ilogb errno and exception tests.
7673         * math/w_ilogb.c: New file: ilogb wrapper.
7674         * math/w_ilogbf.c: New file: ilogbf wrapper.
7675         * math/w_ilogbl.c: New file: ilogbl wrapper.
7676         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7677         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7678         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7679         exception being thrown with 0.0 as argument.
7680         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7681         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7682         exception being thrown with 0.0 as argument.
7683         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7684         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7685         exception being thrown with 0.0 as argument.
7686         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7687         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7688         exception being thrown with 0.0 as argument.
7689         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7690         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7691         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7692         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7693         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7694         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7695         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7696         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7697         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7699 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7701         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7702         with altivec.
7704 2012-04-16  Marek Polacek  <polacek@redhat.com>
7706         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7708 2012-04-16  Marek Polacek  <polacek@redhat.com>
7710         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7711         operands of fdivp instruction.
7713 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7715         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7716         * elf/tst-auditmod3b.c: Likewise.
7717         * elf/tst-auditmod4b.c: Likewise.
7718         * elf/tst-auditmod5b.c: Likewise.
7719         * elf/tst-auditmod6b.c: Likewise.
7720         * elf/tst-auditmod6c.c: Likewise.
7721         * elf/tst-auditmod7b.c: Likewise.
7722         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7723         * sysdeps/x86_64/preconfigure.in: Likewise.
7724         * sysdeps/x86_64/preconfigure: Regenerated.
7726 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7728         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7729         __ILP32__.
7731 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7733         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7734         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7736 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7738         [BZ #13973]
7739         * locale/iso-639.def: Fix gl language name. Spotted by
7740         Yaron Shahrabani.
7742 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7744         [BZ #2074]
7745         * libio/libio.h (__io_write_fn): Update comment.
7747 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7749         [BZ #2074]
7750         * stdio.texi (Hook Functions): The user provided writer function
7751         is not allowed to return -1.
7753 2012-04-11  David S. Miller  <davem@davemloft.net>
7755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7757 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7759         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7760         Add a leading slash to rtkaio.
7762 2012-04-11  Jim Meyering  <meyering@redhat.com>
7764         [BZ #11959]
7765         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7766         It is not necessarily an error to ignore fwrite's return
7767         value.  One can reliably use ferror to test for errors after
7768         the fact.
7770 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7772         * bits/types.h (__snseconds_t): New type.
7773         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7775         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7776         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7777         (__SNSECONDS_T_TYPE): Likewise.
7778         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7779         (__SNSECONDS_T_TYPE): Likewise.
7780         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7781         (__SNSECONDS_T_TYPE): Likewise.
7783 2012-04-10  Andreas Jaeger  <aj@suse.de>
7785         [BZ #2636]
7786         * manual/time.texi (Processor Time): Return type of times is
7787         elapsed real time since an arbitrary point in the past.
7788         (CPU Time): Move CLK_TCK from here...
7789         (Processor Time): ...to here.  Correct description.
7790         * manual/conf.texi (Constants for Sysconf): Correct description of
7791         _SC_CLK_TCK.
7793 2012-04-10  David S. Miller  <davem@davemloft.net>
7795         [BZ #13967]
7796         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7797         where the is a gap between DT_REL(A) and DT_JMPREL.
7799 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7801         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7802         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7803         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7805 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7807         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7808         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7809         (dl_main): Handle --inhibit-cache.
7810         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7811         _dl_inhibit_cache.
7812         * elf/dl-load.c (_dl_map_object): Use it.
7813         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7815 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7817         [BZ #13872]
7818         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7819         (__ieee754_powl): Saturate large exponents rather than testing for
7820         overflow of y*log2(x).
7821         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7822         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7823         exceptions.
7825         [BZ #11521]
7826         * math/s_ctan.c: Include <float.h>.
7827         (__ctan): Avoid internal overflow or cancellation in calculating
7828         denominator.
7829         * math/s_ctanf.c: Likewise.
7830         * math/s_ctanl.c: Likewise.
7831         * math/s_ctanh.c: Likewise.
7832         * math/s_ctanhf.c: Likewise.
7833         * math/s_ctanhl.c: Likewise.
7834         * math/libm-test.inc (ctan_test): Add more tests.
7835         (ctanh_test): Likewise.
7836         * sysdeps/i386/fpu/libm-test-ulps: Update.
7837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7839 2012-04-09  Andreas Jaeger  <aj@suse.de>
7841         [BZ #6894]
7842         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7843         is an optional BSD extension.
7845         [BZ #10254]
7846         * manual/stdio.texi (Opening Streams): Document additional fopen
7847         parameters.
7849 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7851         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7852         %eax without telling the compiler.
7854 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7856         [BZ # 13963]
7857         * manual/install.texi: Use sourceware.org.
7859 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7861         [BZ #13873]
7862         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7863         (__ieee754_pow): Generate overflow and underflow using huge*huge
7864         and tiny*tiny rather than just returning constant infinity or zero
7865         for large exponents.
7866         * math/libm-test.inc (pow_test): Require overflow exceptions for
7867         applicable cases of large exponents.
7869         [BZ #706]
7870         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7871         (__ieee754_pow): Use iterative multiplication algorithm only for
7872         integer exponents with absolute value below 1024.  Check for odd
7873         integer exponents when using algorithm for real exponents.
7874         * math/libm-test.inc (pow_test): Add more tests.
7875         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7877 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7879         [BZ #13705]
7880         * math/libm-test.inc (exp_test): Do not allow overflow exception
7881         on underflow test.
7883 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7885         [BZ #13705]
7886         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7887         instead of __kernel_standard_f.
7889 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7891         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7892         * sysdeps/x86_64/memset_chk.S: Likewise.
7894 2012-04-08  Andreas Jaeger  <aj@suse.de>
7896         [BZ #10153]
7897         * manual/startup.texi (Environment Access): Describe return value
7898         for putenv and setenv.
7900         [BZ #6895]
7901         * manual/filesys.texi (Directory Entries): Add description for
7902         DT_LNK.
7904         [BZ #6890]
7905         * manual/filesys.texi (Directory Entries): Clarify that it's file
7906         system not operating system in the description of DT_UNKNOWN.
7908         [BZ #6578]
7909         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7911 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7913         [BZ #6649]
7914         * manual/llio.texi (Opening and Closing Files): Add cross
7915         reference to explain mode argument.
7917 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7919         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7920         * sysdeps/x86_64/memset_chk.S: Likewise.
7922 2012-04-07  David S. Miller  <davem@davemloft.net>
7924         * elf/elf.h (R_SPARC_WDISP10): Define.
7925         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7926         R_SPARC_SIZE32.
7927         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7928         R_SPARC_SIZE64 and R_SPARC_H34.
7930 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7932         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7933         conditions and remove no longer applicable assertion.
7935 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7937         * bits/byteswap.h: Include <features.h>.
7938         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7939         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7941 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7943         * bits/byteswap.h (__bswap_16): Removed.
7944         Include <bits/byteswap-16.h> to get __bswap_16.
7945         * sysdeps/i386/bits/byteswap.h: Likewise.
7946         * sysdeps/s390/bits/byteswap.h: Likewise.
7947         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7948         * bits/byteswap-16.h: New file.
7949         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7950         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7951         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7952         * string/Makefile (headers): Add bits/byteswap-16.h.
7954 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7956         [BZ #13895]
7957         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7958         extra indirection.
7959         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7960         * nss/tst-nss-static.c: New.
7962 2012-04-06  Robert Millan  <rmh@gnu.org>
7964         [BZ #6486]
7965         * manual/llio.texi (File Position Primitive): lseek
7966         refers to WHENCE when it really means OFFSET.
7968 2012-04-06  Andreas Jaeger  <aj@suse.de>
7970         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7971         strncmp declarations.
7973         * abilist/libc.abilist: Add __poll and __ppoll.
7975 2012-04-05  David S. Miller  <davem@davemloft.net>
7977         * scripts/check-local-headers.sh: Accept a host triplet in the
7978         path matched by the exclude regexp.
7980         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7981         definition.
7982         * sysdeps/powerpc/powerpc32/dl-machine.h
7983         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7984         * sysdeps/s390/s390-32/dl-machine.h
7985         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7986         * sysdeps/sparc/sparc32/dl-machine.h
7987         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7988         * sysdeps/sparc/sparc64/dl-machine.h
7989         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7991         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7992         lazy binding.
7993         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7994         undefined symbol errors.
7996         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7997         DT_NEEDED entries.
7999 2012-04-05  Michael Matz  <matz@suse.de>
8001         [BZ #13592]
8002         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8004 2012-04-05  Andreas Jaeger  <aj@suse.de>
8006         [BZ #13908]
8007         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8008         comment.
8010 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8012         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8013         which ROUND is no valid rounding mode.
8015 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8017         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8018         read again.
8019         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8021 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8023         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8024         an exception using FPU order intentionally.
8026 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8028         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8029         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8030         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8031         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8033 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8035         [BZ #12340]
8036         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8037         EINVAL when BUFLEN is too smal.
8039 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8041         [BZ #13553]
8042         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8043         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8045 2012-04-03  Andreas Jaeger  <aj@suse.de>
8047         [BZ #13938]
8048         * manual/setjmp.texi (System V contexts): Fix sentence.
8050         [BZ #13926]
8051         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8052         New macro for this case.
8053         [!__GNUC__] (__bswap_64): New inline function for this case.
8054         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8055         * bits/byteswap.h: Likewise.
8056         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8057         ull, guard with __GLIBC_HAVE_LONG_LONG.
8059         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8060         __GLIBC_HAVE_LONG_LONG.
8062         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8063         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8065 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8067         [BZ #13691]
8068         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8069         inptr and inend, rather than using last_ch.
8071 2012-04-02  David S. Miller  <davem@davemloft.net>
8073         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8074         * stdio-common/printf-parse.h (read_int): Change return type to
8075         'int', return -1 on INT_MAX overflow.
8076         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8077         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8078         overflows INT_MAX.  Check for overflow of in-format-string precision
8079         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8080         SIZE_MAX not INT_MAX for integer overflow test.
8081         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8082         skip the construct in the format string but do not record anything.
8083         * stdio-common/bug22.c: Adjust to test both width/prevision
8084         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8085         explicitly for proper errno values.
8087 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8089         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8090         CHAR_MAX.
8091         * string/test-strcmp.c [! WIDE]: Likewise.
8092         * time/tst-mktime2.c: Likewise for INT_MAX.
8093         * string/test-string.h: #include <sys/param.h> for MIN.
8095         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8096         * sysdeps/i386/init-first.c (init): Likewise.
8097         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8098         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8099         * sysdeps/sh/init-first.c (init): Likewise.
8101 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8103         * po/ru.po: Update from translation team.
8104         * po/vi.po: Likewise.
8106 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8108         * resolv/nss_dns/dns-host.c: Merge copyright years.
8110 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8112         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8113         Optimize memcpy with prefetch if
8114         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8115         src, dst pointers have unequal 16 byte alignments.
8117 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8119         [BZ #13928]
8120         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8121         from a CNAME entry and return the minimum ttl for the query.
8122         (gaih_getanswer_slice): Likewise.
8124 2012-03-30  Jeff Law  <law@redhat.com>
8126         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8127         due to long keys.
8128         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8129         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8131         * resolv/nss_dns/dns-host.c: Update copyright year.
8133 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8135         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8136         requests to save a system call.  Fix check that all bytes are sent.
8138         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8139         comments for sendmmsg.
8141 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8143         [BZ #13691]
8144         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8145         with only 1 character between 0x0041 and 0x01b0.
8146         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8147         * wcsmbs/tst-mbsnrtowcs.c: New file.
8149 2012-03-29  David S. Miller  <davem@davemloft.net>
8151         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8152         small copies by hand.
8154 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8156         [BZ #13761]
8157         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8158         _nss_compat_initgroups_dyn): Fall back to malloc/free
8159         for large group memberships.
8161 2012-03-28  David S. Miller  <davem@davemloft.net>
8163         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8164         that branches into memcpy.
8165         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8166         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8167         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8168         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8169         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8170         bits.
8171         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8172         implementation too.
8173         * sysdeps/sparc/mempcpy.S: New file.
8175         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8176         the IFUNC routine in the libc case.
8177         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8179         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8180         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8181         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8182         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8183         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8184         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8185         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8186         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8188         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8189         loop to 256 bytes instead of 64 bytes and fix test signedness.
8191         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8192         * sysdeps/sparc/sparc32/Makefile: rather than here...
8193         * sysdeps/sparc/sparc64/Makefile: and here.
8195 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8197         * malloc/mallocbug.c: Avoid warnings about unused variables.
8199 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8201         [BZ #13760]
8202         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8203         in the right place. Discard and retry query if response is
8204         larger than input buffer size.
8206 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8208         [BZ #369]
8209         [BZ #2678]
8210         [BZ #3866]
8211         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8212         x for large integer exponent.
8213         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8214         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8215         sign of result as needed afterwards.
8216         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8217         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8218         result for underflowing pow the same as for overflow.
8219         (__kernel_standard_l): Handle powl overflow and underflow here
8220         rather than calling __kernel_standard.
8221         * math/libm-test.inc (pow_test): Add more tests.
8223         [BZ #3868]
8224         [BZ #13879]
8225         [BZ #13910]
8226         [BZ #13911]
8227         [BZ #13912]
8228         [BZ #13913]
8229         [BZ #13915]
8230         [BZ #13916]
8231         [BZ #13917]
8232         [BZ #13918]
8233         [BZ #13919]
8234         [BZ #13920]
8235         [BZ #13921]
8236         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8237         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8238         (__kernel_standard_l): New function.
8239         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8240         __kernel_standard.
8241         * math/w_acosl.c (__acosl): Likewise.
8242         * math/w_asinl.c (__asinl): Likewise.
8243         * math/w_atan2l.c (__atan2l): Likewise.
8244         * math/w_atanhl.c (__atanhl): Likewise.
8245         * math/w_coshl.c (__coshl): Likewise.
8246         * math/w_exp10l.c (__exp10l): Likewise.
8247         * math/w_exp2l.c (__exp2l): Likewise.
8248         * math/w_fmodl.c (__fmodl): Likewise.
8249         * math/w_hypotl.c (__hypotl): Likewise.
8250         * math/w_j0l.c (__j0l, __y0l): Likewise.
8251         * math/w_j1l.c (__j1l, __y1l): Likewise.
8252         * math/w_jnl.c (__jnl, __ynl): Likewise.
8253         * math/w_lgammal.c (__lgammal): Likewise.
8254         * math/w_log10l.c (__log10l): Likewise.
8255         * math/w_log2l.c (__log2l): Likewise.
8256         * math/w_logl.c (__logl): Likewise.
8257         * math/w_powl.c (__powl): Likewise.
8258         * math/w_remainderl.c (__remainderl): Likewise.
8259         * math/w_scalbl.c (sysv_scalbl): Likewise.
8260         * math/w_sinhl.c (__sinhl): Likewise.
8261         * math/w_sqrtl.c (__sqrtl): Likewise.
8262         * math/w_tgammal.c (__tgammal): Likewise.
8263         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8264         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8265         * math/libm-test.inc (acos_test): Add more tests.
8266         (acosh_test): Likewise.
8267         (asin_test): Likewise.
8268         (atanh_test): Likewise.
8269         (exp_test): Likewise.
8270         (exp10_test): Likewise.
8271         (exp2_test): Likewise.
8272         (expm1_test): Likewise.
8273         (lgamma_test): Likewise.
8274         (log_test): Likewise.
8275         (log10_test): Likewise.
8276         (log1p_test): Likewise.
8277         (log2_test): Likewise.
8278         (pow_test): Do not allow some spurious overflow exceptions.
8279         (sqrt_test): Add more tests.
8280         (tgamma_test): Likewise.
8281         (y0_test): Likewise.
8282         (y1_test): Likewise.
8283         (yn_test): Likewise.
8285 2012-03-27  Anton Blanchard  <anton@samba.org>
8287         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8288         MAP_HUGETLB.
8289         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8290         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8291         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8293 2012-03-27  David S. Miller  <davem@davemloft.net>
8295         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8297         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8298         have-as-vis3 check.
8300 2012-03-27  Andreas Jaeger  <aj@suse.de>
8302         * sysdeps/x86_64/elf/configure.in: Moved to ...
8303         * sysdeps/x86_64/configure.in: ... here.
8304         * sysdeps/x86_64/elf/start.S: Moved to ...
8305         * sysdeps/x86_64/start.S: ... here.
8306         * sysdeps/x86_64/elf/configure: Delete.
8308         * sysdeps/x86_64/configure.in: Merge contents from
8309         sysdeps/i386/configure.in (without i686 check).
8311         * sysdeps/i386/elf/Versions: Merge into ...
8312         * sysdeps/i386/Versions: ... this.
8313         * sysdeps/i386/elf/Versions: Delete file.
8314         * sysdeps/i386/elf/start.S: Moved to ...
8315         * sysdeps/i386/start.S: ...here.
8316         * sysdeps/i386/elf/configure.in: Merge into...
8317         * sysdeps/i386/configure.in: ...here.
8318         * sysdeps/i386/elf/configure.in: Delete file.
8319         * sysdeps/i386/elf/configure: Delete file.
8321         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8322         * debug/backtracesyms.c: ... here.
8323         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8324         * debug/backtracesymsfd.c: ... here.
8325         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8326         * sysdeps/generic/ifunc-sel.h: ... here.
8328         * sysdeps/unix/i386/start.c: Delete file.
8329         * sysdeps/unix/sparc/start.c: Delete file.
8330         * sysdeps/unix/start.c: Delete file.
8332         * sysdeps/sh/elf/configure.in: Moved to ...
8333         * sysdeps/sh/configure.in: ... here.
8334         * sysdeps/sh/elf/start.S: Moved to ...
8335         * sysdeps/sh/start.S: ... here.
8336         * sysdeps/sh/elf/configure: Delete file.
8338         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8339         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8340         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8341         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8342         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8343         * sysdeps/powerpc/powerpc64/start.S: here.
8344         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8345         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8346         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8347         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8348         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8350         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8351         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8352         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8353         * sysdeps/powerpc/powerpc32/start.S: ... here.
8354         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8355         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8356         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8358         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8359         * sysdeps/powerpc/ifunc-sel.h: ... here.
8360         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8361         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8363         * sysdeps/sparc/elf/configure.in: Moved to ...
8364         * sysdeps/sparc/configure.in: ... here.
8365         * sysdeps/sparc/elf/configure: Delete file.
8366         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8367         * sysdeps/sparc/sparc32/start.S: ... here.
8368         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8369         * sysdeps/sparc/sparc64/start.S: ... here.
8370         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8371         * sysdeps/sparc/sparc32/Makefile: ... this.
8372         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8373         * sysdeps/sparc/sparc64/Makefile: ... this.
8375         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8376         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8377         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8378         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8379         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8380         * sysdeps/s390/s390-32/setjmp.S: ... here.
8381         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8382         * sysdeps/s390/s390-32/configure.in: ... here.
8383         * sysdeps/s390/s390-32/elf/configure: Delete file.
8384         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8385         * sysdeps/s390/s390-32/start.S: ... here.
8387         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8388         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8389         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8390         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8391         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8392         * sysdeps/s390/s390-64/setjmp.S: ... here.
8393         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8394         * sysdeps/s390/s390-64/configure.in: ... here
8395         * sysdeps/s390/s390-64/elf/configure: Delete file.
8396         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8397         * sysdeps/s390/s390-64/start.S: ... here.
8398         * sysdeps/s390/s390-64/elf/configure: Delete.
8400         * configure.in: Remove support for elf directories in sysdeps.
8402         * configure: Regenerated.
8403         * sysdeps/i386/configure: Regenerated.
8404         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8405         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8406         * sysdeps/s390/s390-32/configure: Regenerated.
8407         * sysdeps/s390/s390-64/configure: Regenerated.
8408         * sysdeps/sh/configure: Regenerated.
8409         * sysdeps/sparc/configure: Regenerated.
8410         * sysdeps/x86_64/configure: Regenerated.
8412 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8414         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8416         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8417         denormal result into account.
8419 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8421         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8422         Reported by Allan McRae <allan@archlinux.org>.
8424 2012-03-23  Jeff Law  <law@redhat.com>
8426         * nss/getnssent.c (__nss_getent): Fix typo.
8428 2012-03-23  David S. Miller  <davem@davemloft.net>
8430         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8432 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8434         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8435         to pad to uint64_t for each field.
8436         (dl_tls_index): Replace unsigned long with uint64_t.
8438 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8439         Paul Pluzhnikov  <ppluzhnikov@google.com>
8441         [BZ #6528]
8442         * grp/Makefile (otherlibs): Don't set it.
8443         * inet/Makefile (otherlibs): Likewise.
8444         * login/Makefile (otherlibs): Likewise.
8445         * nscd/Makefile (otherlibs): Likewise.
8446         * posix/Makefile (otherlibs): Likewise.
8447         * pwd/Makefile (otherlibs): Likewise.
8448         * rt/Makefile (otherlibs): Likewise.
8449         * sunrpc/Makefile (otherlibs): Likewise.
8450         * nss/Makefile (otherlibs): Likewise.
8451         Add libnss_files to routines and static-only-routines.
8452         ($(objpfx)getent): Remove rule.
8453         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8454         static-only-routines.
8456 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8458         [BZ #13892]
8459         * math/s_cexp.c: Include <float.h>.
8460         (__cexp): Handle exp result overflowing not necessarily
8461         overflowing both real and imaginary parts of result.
8462         * math/s_cexpf.c: Likewise.
8463         * math/s_cexpl.c: Likewise.
8464         * math/libm-test.inc (cexp_test): Add more tests.
8465         * sysdeps/i386/fpu/libm-test-ulps: Update.
8466         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8468 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8470         * include/link.h (ELFW): New macro.
8471         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8472         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8474 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8476         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8477         with uint64_t.
8479 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8481         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8482         declaration.
8483         (struct La_x32_retval): Likewise.
8485 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8487         * sysdeps/x86_64/preconfigure.in: New file.
8488         * sysdeps/x86_64/preconfigure: New generated file.
8490 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8492         [BZ #13824]
8493         * math/e_exp2l.c: Include <float.h>.
8494         (__ieee754_exp2l): Handle overflow and underflow cases
8495         separately.  Only pass fractional part of argument to
8496         __ieee754_expl.
8497         * math/libm-test.inc (exp2_test): Add more tests.
8499         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8500         negating x to take absolute value.
8501         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8502         Likewise.
8503         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8504         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8505         Likewise.
8506         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8507         computing low part if x was negated.
8508         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8510 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8512         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8513         la_x32_gnu_pltexit.
8514         (pltexit): Cast int_retval to ptrdiff_t.
8515         * elf/tst-auditmod3b.c: Likewise.
8516         * elf/tst-auditmod4b.c: Likewise.
8517         * elf/tst-auditmod5b.c: Likewise.
8518         * elf/tst-auditmod6b.c: Likewise.
8519         * elf/tst-auditmod6c.c: Likewise.
8520         * elf/tst-auditmod7b.c: Likewise.
8522         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8523         and x32_gnu_pltexit.
8525         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8526         __ELF_NATIVE_CLASS.
8527         (La_x32_regs): New macro.
8528         (La_x32_retval): Likewise.
8529         (la_x32_gnu_pltenter): New function prototype.
8530         (la_x32_gnu_pltexit): Likewise.
8532 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8534         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8535         exponent.
8537         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8539         * configure.in (libc_cv_cc_nofma): Check for option to disable
8540         generation of FMA instructions.
8541         * configure: Regenerate.
8542         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8543         * sysdeps/ieee754/dbl-64/Makefile: New file.
8544         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8545         Remove brandred-fma4.
8546         (CFLAGS-brandred-fma4.c): Remove.
8547         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8548         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8549         define.
8550         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8551         define.
8553 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8555         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8556         LLONG_MAX != LONG_MAX.
8557         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8558         (_fitoa_word): Likewise.
8559         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8560         LLONG_MAX != LONG_MAX.
8561         * stdio-common/_itowa.h: Include <_itoa.h>.
8562         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8563         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8564         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8565         only if not defined.
8566         (_ITOA_WORD_TYPE): Likewise.
8567         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8568         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8570 2012-03-21  David S. Miller  <davem@davemloft.net>
8572         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8574 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8576         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8577         of x86_64 when setting libc_cv_slibdir, libdir and
8578         libc_cv_localedir.
8579         * sysdeps/unix/sysv/linux/configure: Regenerated.
8581 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8583         * manual/lang.texi (Old Varargs): Remove section.
8584         (How Variadic): Update menu.
8585         (va_start): Do not mention varargs.h.
8587 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8588             Joseph Myers  <joseph@codesourcery.com>
8590         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8591         link test.
8592         * configure: Regenerated.
8594 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8596         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8597         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8598         conformtest.pl
8600 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8602         * NOTES: Remove.
8603         * Makefile (files-for-dist): Remove NOTES.
8604         (NOTES): Remove rule.
8605         * README: Don't refer to NOTES.
8606         * manual/creature.texi: Don't include macros.texi.
8607         * manual/intro.texi (creature.texi): Remove comment referring to
8608         NOTES.
8610         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8611         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8612         * configure: Regenerated.
8613         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8614         LIBC_TRY_CC_OPTION.
8615         (libc_cv_as_i686): Likewise.
8616         (libc_cv_cc_avx): Likewise.
8617         (libc_cv_cc_sse2avx): Likewise.
8618         (libc_cv_cc_fma4): Likewise.
8619         (libc_cv_cc_novzeroupper): Likewise.
8620         * sysdeps/i386/configure: Regenerated.
8622         [BZ #13883]
8623         * sysdeps/i386/fpu/s_cexp.S: Remove.
8624         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8625         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8626         * math/libm-test.inc (cexp_test): Add more tests.
8627         * sysdeps/i386/fpu/libm-test-ulps: Update.
8628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8630 2012-03-21  Allan McRae  <allan@archlinux.org>
8632         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8634 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8636         [BZ #13871]
8637         * math/w_exp2.c: Do not include <float.h>.
8638         (o_threshold, u_threshold): Remove.
8639         (__exp2): Calculate result before checking finiteness and calling
8640         __kernel_standard.
8641         * math/w_exp2f.c: Likewise.
8642         * math/w_exp2l.c: Likewise.
8643         * math/libm-test.inc (exp2_test): Require overflow exception for
8644         1e6 input.
8646         [BZ #3866]
8647         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8648         range of signed 64-bit integers before using fistpll.  Remove
8649         checks for whether integers fit in mantissa bits.
8650         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8651         the range of signed 32-bit integers before using fistpl.  Remove
8652         checks for whether integers fit in mantissa bits.
8653         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8654         (__ieee754_powl): Test for y outside the range of signed 64-bit
8655         integers before using fistpll.  Reduce 64-bit values to 63-bit
8656         ones as needed.
8657         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8658         divide-by-zero is raised for zero to large negative powers.
8659         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8660         (__ieee754_powl): Test for y outside the range of signed 64-bit
8661         integers before using fistpll.  Reduce 64-bit values to 63-bit
8662         ones as needed.
8663         * math/libm-test.inc (pow_test): Add more tests.
8665 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8667         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8668         <stdio-common/_itoa.h>.
8669         * debug/segfault.c: Likewise.
8670         * elf/dl-cache.c: Likewise.
8671         * elf/dl-minimal.c: Likewise.
8672         * elf/dl-misc.c: Likewise.
8673         * elf/dl-sysdep.c: Likewise.
8674         * elf/dl-version.c: Likewise.
8675         * elf/rtld.c: Likewise.
8676         * hurd/hurdsock.c: Likewise.
8677         * hurd/lookup-retry.c: Likewise.
8678         * malloc/malloc.c: Likewise.
8679         * malloc/mtrace.c: Likewise.
8680         * nscd/nscd_getgr_r.c: Likewise.
8681         * nscd/nscd_getpw_r.c: Likewise.
8682         * nscd/nscd_getserv_r.c: Likewise.
8683         * posix/getopt_init.c: Likewise.
8684         * posix/wordexp.c: Likewise.
8685         * stdio-common/_itoa.c: Likewise.
8686         * stdio-common/printf_fphex.c: Likewise.
8687         * stdio-common/vfprintf.c: Likewise.
8688         * string/_strerror.c: Likewise.
8689         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8690         * sysdeps/i386/i686/hp-timing.h: Likewise.
8691         * sysdeps/mach/_strerror.c: Likewise.
8692         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8693         * sysdeps/mach/hurd/sethostid.c: Likewise.
8694         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8695         * sysdeps/mach/xpg-strerror.c: Likewise.
8696         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8697         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8698         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8699         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8700         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8701         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8702         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8703         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8704         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8705         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8706         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8707         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8708         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8709         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8710         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8711         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8712         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8713         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8714         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8715         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8716         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8718         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8720         * stdio-common/_itoa.h: Moved to ...
8721         * sysdeps/generic/_itoa.h: Here.
8723         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8725         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8726         instead of "_itoa.h" and "_itowa.h".
8727         * stdio-common/vfprintf.: Likewise.
8729 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8731         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8732         <bits/wordsize.h>.
8733         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8734         (__signbit): Likwise.
8735         (llrintf): Likwise.
8736         (llrint): Likwise.
8738 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8740         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8741         __WORDSIZE != 64.
8743 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8745         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8746         OVERFLOW_EXCEPTION_OK.
8747         * math/libm-test.inc ("Philosophy"): Update comment about
8748         exception testing.
8749         (OVERFLOW_EXCEPTION): Define.
8750         (OVERFLOW_EXCEPTION_OK): Likewise.
8751         (INVALID_EXCEPTION_OK): Renumber.
8752         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8753         (IGNORE_ZERO_INF_SIGN): Likewise.
8754         (test_exceptions): Handle FE_OVERFLOW.
8755         (exp10_test): Expect overflow exceptions.
8756         (exp2_test): Likewise.
8757         (expm1_test): Likewise.
8758         (nextafter_test): Likewise.
8759         (pow_test): Likewise.
8760         (scalbn_test): Likewise.
8761         (scalbln_test): Likewise.
8763 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8765         * sysdeps/x86_64/bits/atomic.h
8766         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8767         64bit integer.
8768         (atomic_exchange_acq): Likewise.
8769         (__arch_exchange_and_add_body): Likewise.
8770         (__arch_add_body): Likewise.
8771         (atomic_add_negative): Likewise.
8772         (atomic_add_zero): Likewise.
8774 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8776         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8777         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8779 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8781         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8782         Check __x86_64__ instead of __WORDSIZE.
8784 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8786         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8788 2012-03-19  David S. Miller  <davem@davemloft.net>
8790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8792         * sysdeps/sparc/fpu/fenv_private.h: New file.
8793         * sysdeps/sparc/fpu/math_private.h: Use it.
8794         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8795         Remove.
8796         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8797         (libc_feholdexcept_setroundl): Remove.
8798         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8799         Remove.
8800         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8801         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8803 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8805         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8806         int64_t instead of long int.
8807         (INSERT_WORDS64): Likwise.
8809 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8811         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8812         _Unwind_GetCFA return to _Unwind_Ptr first.
8814 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8816         [BZ #13629]
8817         * math/s_clog.c: Include <float.h>.
8818         (__clog): Scale large or subnormal inputs.
8819         * math/s_clogf.c: Likewise.
8820         * math/s_clogl.c: Likewise.
8821         * math/s_clog10.c: Include <float.h>.
8822         (M_LOG10_2): Define.
8823         (__clog10): Scale large or subnormal inputs.
8824         * math/s_clog10f.c: Likewise.
8825         * math/s_clog10l.c: Likewise.
8826         * math/libm-test.inc (clog_test): Add more tests.
8827         (clog10_test): Likewise.
8828         * sysdeps/i386/fpu/libm-test-ulps: Update.
8829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8831         [BZ #11451]
8832         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8833         x and y.
8834         * math/libm-test.inc (atan2_test): Add another test.
8836         * Makerules (common-objdir-compile): Remove.
8837         * sysdeps/unix/Makefile (config-generated): Do not add
8838         $(unix-generated) to variable.
8839         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8840         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8841         Remove rule.
8842         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8843         Likewise.
8844         [generic bits/local_lim.h] (before-compile): Do not append to
8845         variable.
8846         [generic bits/local_lim.h] (common-generated): Likewise.
8847         [generic sys/param.h] (before-compile): Do not append to variable.
8848         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8849         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8850         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8851         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8852         include.
8853         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8854         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8855         [generic sys/param.h] ($(addprefix
8856         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8857         [generic sys/param.h] (common-generated): Do not append to
8858         variable.
8859         [generic sys/param.h] (sysdep_headers): Likewise.
8860         [generic bits/errno.h] (before-compile): Do not append to
8861         variable.
8862         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8863         rule.
8864         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8865         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8866         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8867         [generic bits/errno.h] (common-generated): Do not append to
8868         variable.
8869         [generic bits/ioctls.h] (before-compile): Do not append to
8870         variable.
8871         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8872         rule.
8873         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8874         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8875         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8876         rule.
8877         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8878         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8879         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8880         [generic bits/ioctls.h] (common-generated): Do not append to
8881         variable.
8882         [generic sys/syscall.h] (syscall.h): Remove variable.
8883         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8884         rule.
8885         [generic sys/syscall.h] (before-compile): Do not append to
8886         variable.
8887         [generic sys/syscall.h] (common-generated): Likewise.
8888         * sysdeps/unix/errnos-tmpl.c: Remove file.
8889         * sysdeps/unix/errnos.awk: Likewise.
8890         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8891         * sysdeps/unix/ioctls.awk: Likewise.
8892         * sysdeps/unix/mk-local_lim.c: Likewise.
8893         * sysdeps/unix/snarf-ioctls: Likewise.
8895 2012-03-19  Richard Henderson  <rth@twiddle.net>
8897         * sysdeps/i386/fpu/fenv_private.h: New file.
8898         * sysdeps/i386/fpu/math_private.h: Use it.
8899         (math_opt_barrier, math_force_eval): Remove.
8900         (libc_feholdexcept_setround_53bit): Remove.
8901         (libc_feupdateenv_53bit): Remove.
8902         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8903         (math_opt_barrier, math_force_eval): Remove.
8904         (libc_feholdexcept): Remove.
8905         (libc_feholdexcept_setround): Remove.
8906         (libc_fetestexcept, libc_fesetenv): Remove.
8907         (libc_feupdateenv_test): Remove.
8908         (libc_feupdateenv, libc_feholdsetround): Remove.
8909         (libc_feresetround): Remove.
8911         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8912         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8914         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8915         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8916         (libc_feupdateenv_testl): New.
8917         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8918         (libc_feupdateenv_testf): New.
8919         (libc_feupdateenv): Use libc_feupdateenv_test.
8920         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8921         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8923         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8924         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8925         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8926         (libc_feresetround_noex): New.
8927         (libc_feresetround_noexf): New.
8928         (libc_feresetround_noexl): New.
8929         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8930         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8931         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8932         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8933         SET_RESTORE_ROUND.
8934         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8935         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8936         (__cos): Likewise.
8937         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8938         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8939         SET_RESTORE_ROUND_NOEX.
8940         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8941         SET_RESTORE_ROUND_NOEXF.
8942         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8943         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8944         (libc_feholdsetroundf): New.
8945         (libc_feresetround, libc_feresetroundf): New.
8947         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8948         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8949         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8951         * sysdeps/generic/math_private.h: Include <fenv.h>.
8952         (default_libc_feholdexcept): New.
8953         (default_libc_feholdexcept_setround): New.
8954         (default_libc_fesetenv, default_libc_feupdateenv): New.
8955         (libc_feholdexcept): Only define if undefined.
8956         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8957         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8958         (libc_feholdexcept_setroundl): Likewise.
8959         (libc_feholdexcept_setround_53bit): Likewise.
8960         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8961         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8962         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8963         (libc_feupdateenv_53bit): Likewise.
8964         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8965         (libc_feholdexcept): Convert from macro to inline function.
8966         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8967         (libc_fesetenv, libc_feupdateenv): Likewise.
8969         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8970         not previously defined.
8971         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8972         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8973         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8974         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8975         * sysdeps/ieee754/flt-32/math_private.h: New file.
8976         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8977         math_private.h below SET_FLOAT_WORD.
8978         (__isnan, __isinf_ns, __finite): Remove.
8979         (__isnanf, __isinf_nsf, __finitef): Remove.
8981 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8983         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8985 2012-03-17  David S. Miller  <davem@davemloft.net>
8987         [BZ #6471]
8988         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8989         for 2.16.
8991 2012-03-16  David S. Miller  <davem@davemloft.net>
8993         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8994         warnings.
8996         [BZ #6471]
8997         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8998         properly.
8999         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9000         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9001         sysdep_routines when subdir is sysvipc.
9002         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9003         __getshmlba helper.
9005         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9007 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9009         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9010         [__LP64__].
9012 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9014         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9015         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9016         (__lround): Renamed to ...
9017         (__llround): This.  Replace long int with long long int.
9018         Define lround functions as aliases of llround functions.
9019         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9021 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9023         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9024         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9025         adresses to uintptr_t.  Replace "long int" and "unsigned long
9026         int" with "greg_t" on va_arg.
9028 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9030         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9031         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9033         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9034         Move e_machine check before EI_CLASS check.  Handle x32
9035         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9036         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9037         SKIP_EM_IA_64 and include
9038         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9040         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9041         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9042         (add_system_dir): New macro.
9044         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9045         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9047 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9049         [BZ #2551]
9050         [BZ #2552]
9051         [BZ #2553]
9052         [BZ #2554]
9053         [BZ #2562]
9054         [BZ #2563]
9055         [BZ #2565]
9056         [BZ #2566]
9057         [BZ #2576]
9058         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9059         (y0): Likewise.
9060         * math/w_j0f.c (j0f): Likewise.
9061         (y0f): Likewise.
9062         * math/w_j0l.c (__j0l): Likewise.
9063         (__y0l): Likewise.
9064         * math/w_j1.c (j1): Likewise.
9065         (y1): Likewise.
9066         * math/w_j1f.c (j1f): Likewise.
9067         (y1f): Likewise.
9068         * math/w_j1l.c (__j1l): Likewise.
9069         (__y1l): Likewise.
9070         * math/w_jn.c (jn): Likewise.
9071         (yn): Likewise.
9072         * math/w_jnf.c (jnf): Likewise.
9073         (ynf): Likewise.
9074         * math/w_jnl.c (__jnl): Likewise.
9075         (__ynl): Likewise.
9076         * math/libm-test.inc (j0_test): Add more tests.
9077         (j1_test): Likewise.
9078         (jn_test): Likewise.  Add trailing semicolon to existing test.
9079         (y0_test): Likewise.
9080         (y1_test): Likewise.
9081         * sysdeps/i386/fpu/libm-test-ulps: Update.
9082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9084         [BZ #13851]
9085         [BZ #13854]
9086         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9087         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9088         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9089         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9090         (__tanl): Set errno for infinite argument.
9091         * sysdeps/i386/fpu/mptan.c: Remove.
9092         * sysdeps/i386/fpu/s_tan.S: Likewise.
9093         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9094         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9095         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9096         * math/libm-test.inc (tan_test): Add more tests and enable more
9097         tests for double and long double.
9098         * sysdeps/i386/fpu/libm-test-ulps: Update.
9099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9101 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9103         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9104         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9106 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9108         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9109         * configure.in: Use it for both main tree and add-ons.
9110         * configure: Regenerated.
9112 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9114         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9116 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9118         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9119         in comment.
9121         [BZ #13851]
9122         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9123         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9124         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9125         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9126         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9127         infinite argument.
9128         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9129         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9130         != 0 for prec == 2.
9131         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9132         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9133         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9134         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9135         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9136         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9137         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9138         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9139         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9140         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9141         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9142         * math/libm-test.inc (cos_test): Add more tests and enable more
9143         tests for long double.
9144         (sin_test): Likewise.
9145         (sincos_test): Likewise.
9146         * sysdeps/i386/fpu/libm-test-ulps: Update.
9147         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9149 2012-03-16  David S. Miller  <davem@davemloft.net>
9151         * sysdeps/sparc/fpu/math_private.h: New file.
9153 2012-03-15  David S. Miller  <davem@davemloft.net>
9155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9156         file.
9157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9159         file.
9160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9161         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9162         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9163         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9164         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9165         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9166         sysdep routines.
9167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9169         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9170         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9172         * sysdeps/sparc/sparc-ifunc.h: New file.
9173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9174         sparc-ifunc.h
9175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9177         Likewise.
9178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9179         Likewise.
9180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9184         Likewise.
9185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9190         Likewise.
9191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9192         Likewise.
9193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9197         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9198         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9199         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9200         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9201         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9202         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9203         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9204         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9205         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9206         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9207         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9208         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9209         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9210         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9211         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9212         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9213         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9214         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9215         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9216         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9218 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9220         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9221         scaling.
9222         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9224 2012-03-15  Andreas Jaeger  <aj@suse.de>
9226         [BZ #13852]
9227         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9228         ieee754/flt-32 implementation for sin, cos and sincos.
9229         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9230         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9231         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9232         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9233         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9234         ieee754/flt-32 implementation for tan.
9236         * math/libm-test.inc (cos_test): Enable some large input tests for
9237         float as well
9238         (sin_test): Likewise.
9239         (sincos_test): Likewise.
9240         (tan_test): Add tests for large input.
9242         * sysdeps/i386/fpu/libm-test-ulps: Update.
9244 2012-03-15  Andreas Jaeger  <aj@suse.de>
9246         [BZ #13658]
9247         * math/libm-test.inc (cos_test): Add more test cases.
9248         (sin_test): Likewise.
9249         (sincos_test): Likewise.
9251 2012-03-15  Andreas Jaeger  <aj@suse.de>
9253         [BZ #13837]
9254         * math/libm-test.inc (cos_test): Add a test case for large input
9255         value.
9256         (sin_test): Likewise.
9257         (sincos_test): Likewise.
9259 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9260         Joseph Myers  <joseph@codesourcery.com>
9262         [BZ #13658]
9263         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9264         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9265         * sysdeps/i386/fpu/branred.c: Likewise.
9266         * sysdeps/i386/fpu/dosincos.c: Likewise.
9267         * sysdeps/i386/fpu/mpa.c: Likewise.
9268         * sysdeps/i386/fpu/s_cos.S: Likewise.
9269         * sysdeps/i386/fpu/s_sin.S: Likewise.
9270         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9271         * sysdeps/i386/fpu/sincos32.c: Likewise.
9273         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9274         Define.
9275         (libc_feupdateenv_53bit): Define.
9276         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9277         Define.
9278         (libc_feupdateenv_53bit): Define.
9280         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9281         53 bit (without extend i386 double precision).
9283         * math/libm-test.inc (sincos_test): Add tests for large input.
9284         (sin): Likewise.
9285         (cos): Likewise.
9287         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9289 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9291         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9293 2012-03-15  David S. Miller  <davem@davemloft.net>
9295         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9296         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9297         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9298         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9303         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9304         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9305         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9306         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9307         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9308         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9309         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9311         file.
9312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9314         file.
9315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9317         file.
9318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9320         file.
9321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9322         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9323         fmin/fmax sysdep routines.
9324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9326 2012-03-14  David S. Miller  <davem@davemloft.net>
9328         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9329         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9330         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9331         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9332         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9333         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9334         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9335         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9336         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9337         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9338         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9339         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9340         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9341         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9342         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9343         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9344         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9345         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9346         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9347         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9348         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9349         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9350         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9351         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9352         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9353         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9354         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9355         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9356         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9357         routines.
9358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9359         file.
9360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9362         file.
9363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9365         file.
9366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9368         file.
9369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9371         file.
9372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9374         file.
9375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9376         file.
9377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9378         file.
9379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9380         file.
9381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9382         New file.
9383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9384         file.
9385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9386         file.
9387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9389         file.
9390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9392         file.
9393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9395         file.
9396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9398         VIS3 routines.
9400         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9401         New file.
9403         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9405         * sysdeps/sparc/configure.in: New file.
9406         * sysdeps/sparc/configure: Generate.
9407         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9408         * configure: Regenerate.
9409         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9410         * config.make.in (have-as-vis3): New.
9411         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9412         available use -Av9d instead of -Av9a.
9413         * sysdeps/sparc/sparc64/Makefile: Likewise.
9414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9416         New file.
9417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9418         file.
9419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9420         New file.
9421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9422         file.
9423         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9424         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9425         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9426         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9427         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9429         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9430         fzeros/fnegs to load 0x80000000 into a float register instead of
9431         using the stack.
9432         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9434 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9436         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9437         bits/syscall.h.
9438         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9439         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9440         ($(inst_includedir)/bits/syscall.h): Remove rule.
9441         ($(objpfx)bits/syscall.d): Include instead of
9442         $(objpfx)syscall-list.d.
9443         (generated): Change syscall-list.h and syscall-list.d to
9444         bits/syscall.h and bits/syscall.d.
9446 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9448         [BZ #13846]
9449         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9451 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9453         [BZ #13841]
9454         * math/s_csqrt.c: Include <float.h>.
9455         (__csqrt): Scale large or subnormal inputs.
9456         * math/s_csqrtf.c: Likewise.
9457         * math/s_csqrtl.c: Likewise.
9458         * math/libm-test.inc (csqrt_test): Add more tests.
9459         * sysdeps/i386/fpu/libm-test-ulps: Update.
9460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9462         [BZ #13840]
9463         * math/libm-test.inc (hypot_test): Add more tests.
9465 2012-03-13  David S. Miller  <davem@davemloft.net>
9467         [BZ #13840]
9468         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9469         double-precision for the calculation instead of scaling.
9471 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9473         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9474         manipulate bits before adding and subtracting TWO52[sx].
9475         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9476         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9477         Likewise.
9478         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9480 2012-03-13  David S. Miller  <davem@davemloft.net>
9482         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9483         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9484         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9485         rtld-global-offsets.h
9486         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9488         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9489         large parameters.
9491         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9493         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9494         'err' in the ifdef scope in which it is actually used.
9496         * nss/nss_db/db-init.c: Include string.h
9498 2012-03-12  David S. Miller  <davem@davemloft.net>
9500         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9501         masking out of the most significant byte of random value used.
9502         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9503         Fix coding style in previous change.
9505         * sysdeps/unix/sysv/linux/kernel-features.h
9506         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9507         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9508         expression.
9509         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9510         later.
9512 2012-03-11  David S. Miller  <davem@davemloft.net>
9514         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9515         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9516         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9517         for 'resultvar' otherwise things get truncated on 64-bit.
9519         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9520         Fix masking out of the most significant byte of random value used.
9522         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9524 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9526         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9528 2012-03-09  David S. Miller  <davem@davemloft.net>
9530         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9531         variables with appropriate CPP guards.
9532         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9533         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9534         on resulting framesize and the management of the outregs buffer for pltexit.
9535         Preserve floating point return values across _dl_call_pltexit call.
9536         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9537         framesize and the management of the outregs buffer for pltexit.
9538         Preserve floating point return values across _dl_call_pltexit
9539         call.
9540         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9541         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9542         (print_exit): Fix format string for return register value.
9544 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9546         * sunrpc/Makefile (others): Add rpcgen.
9547         ($(objpfx)rpcgen): Remove special build rule and dependency on
9548         libc.
9549         * sunrpc/rpcgen.c: New file.
9551 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9553         [BZ #13673]
9554         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9555         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9556         * sysdeps/i386/crti.S: Likewise.
9557         * sysdeps/i386/crtn.S: Likewise.
9558         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9559         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9560         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9561         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9562         * sysdeps/sh/crti.S: Likewise.
9563         * sysdeps/sh/crtn.S: Likewise.
9564         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9566         [BZ #13673]
9567         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9568         with URL.
9569         * locale/programs/locfile-kw.gperf: Likewise.
9570         * locale/programs/charmap-kw.h: Regenerated.
9571         * locale/programs/locfile-kw.h: Likewise.
9573         [BZ #13673]
9574         * intl/plural.y: Replace FSF snail mail address with URL.
9575         * intl/plural.c: Regenerated.
9577 2012-03-09  Richard Henderson  <rth@twiddle.net>
9579         * include/math_private.h: Remove file.
9580         * math/math_private.h: Move file ...
9581         * sysdeps/generic/math_private.h: ... here.
9583         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9584         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9585         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9587         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9588         and <math_private.h>.
9589         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9590         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9591         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9592         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9593         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9594         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9595         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9596         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9597         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9598         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9599         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9600         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9601         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9602         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9603         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9604         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9605         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9606         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9607         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9608         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9609         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9610         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9611         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9612         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9613         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9614         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9615         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9616         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9617         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9618         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9619         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9620         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9621         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9622         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9623         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9624         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9625         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9626         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9627         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9628         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9629         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9630         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9631         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9632         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9633         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9634         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9635         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9636         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9637         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9638         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9639         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9640         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9641         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9642         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9643         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9644         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9645         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9646         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9647         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9648         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9649         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9650         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9651         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9652         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9653         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9654         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9655         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9656         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9657         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9658         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9659         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9660         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9661         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9662         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9663         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9664         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9665         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9666         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9667         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9668         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9669         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9670         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9671         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9672         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9673         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9674         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9675         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9676         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9677         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9678         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9679         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9680         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9681         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9682         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9683         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9684         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9685         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9686         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9687         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9688         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9689         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9690         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9691         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9692         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9693         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9694         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9695         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9696         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9697         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9698         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9699         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9700         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9701         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9702         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9703         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9704         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9705         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9706         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9707         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9708         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9709         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9710         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9711         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9712         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9713         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9714         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9715         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9716         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9717         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9718         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9719         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9720         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9721         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9722         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9723         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9724         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9725         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9726         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9727         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9728         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9729         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9730         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9731         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9732         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9733         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9734         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9735         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9736         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9737         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9738         * sysdeps/ieee754/k_standard.c: Likewise.
9739         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9740         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9741         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9742         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9743         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9744         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9745         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9746         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9747         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9748         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9749         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9750         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9751         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9752         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9753         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9754         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9755         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9756         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9757         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9758         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9759         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9760         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9761         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9762         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9763         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9764         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9765         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9766         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9767         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9768         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9769         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9770         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9771         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9772         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9773         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9774         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9775         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9776         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9777         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9778         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9779         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9780         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9781         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9782         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9783         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9784         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9785         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9786         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9787         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9788         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9789         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9790         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9791         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9792         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9793         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9794         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9795         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9796         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9797         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9798         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9799         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9800         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9801         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9802         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9803         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9804         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9805         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9806         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9807         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9808         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9809         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9810         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9811         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9812         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9813         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9814         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9815         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9816         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9817         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9818         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9820         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9821         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9822         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9823         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9824         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9825         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9826         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9827         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9828         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9829         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9830         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9831         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9832         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9833         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9834         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9835         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9836         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9837         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9838         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9839         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9840         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9841         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9842         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9843         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9844         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9845         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9846         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9847         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9848         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9849         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9850         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9851         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9852         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9853         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9854         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9855         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9856         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9857         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9858         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9859         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9860         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9861         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9862         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9863         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9864         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9865         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9866         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9867         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9868         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9869         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9870         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9871         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9872         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9873         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9874         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9875         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9876         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9877         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9878         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9879         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9880         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9881         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9882         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9883         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9884         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9885         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9886         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9887         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9888         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9889         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9890         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9891         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9892         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9893         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9894         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9895         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9896         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9897         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9898         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9899         * sysdeps/ieee754/s_lib_version.c: Likewise.
9900         * sysdeps/ieee754/s_matherr.c: Likewise.
9901         * sysdeps/ieee754/s_signgam.c: Likewise.
9902         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9903         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9904         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9905         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9906         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9907         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9908         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9909         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9910         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9911         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9912         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9913         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9914         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9915         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9916         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9917         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9918         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9919         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9920         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9921         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9922         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9924 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9926         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9927         * sunrpc/rpc_main.c: Likewise.
9928         * sunrpc/rpc_svcout.c: Likewise.
9930 2012-03-09  David S. Miller  <davem@davemloft.net>
9932         * include/math_private.h: New file.
9934 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9936         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9937         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9938         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9939         from <bits/socket_type.h>.
9940         (enum __socket_type): Don't define here.
9941         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9942         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9943         bits/socket_type.h.
9945         [BZ #13566]
9946         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9947         checking __USE_GNU.
9949         * Makerules ($(inst_includedir)/%.h): New rule.
9950         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9951         (install-others): Remove variable setting.
9952         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9954 2012-03-08  Richard Henderson  <rth@twiddle.net>
9956         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9957         from macro to inline function; merge with the
9958         !__LIBC_INTERNAL_MATH_INLINES version.
9959         (__ieee754_sqrtf): Likewise.
9961         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9962         to inline function.
9963         (__rintf, __floor, __floorf): Likewise.
9965         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9966         macro to inline function.
9967         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9969         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9970         not <math/math_private.h>.
9972 2012-03-08  David S. Miller  <davem@davemloft.net>
9974         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9975         copyright year.
9976         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9978 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9980         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9981         normalization.
9982         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9983         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9985 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9987         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9988         be defined individually, they must be defined as a block.  Define
9989         S for printing a string instead of hidint the different by using a
9990         macro for adding the 'l'.
9991         * stdio-common/tst-fphex-wide.c: Adjust.
9993 2012-03-07  Marek Polacek  <polacek@redhat.com>
9995         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9997 2012-03-08  Marek Polacek  <polacek@redhat.com>
9999         [BZ #13806]
10000         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10001         * stdio-common/tst-fphex.c: Define a few macros to make the
10002         test reusable.  Use them.
10003         * stdio-common/tst-fphex-wide.c: New file.
10005 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10007         [BZ #6911]
10008         * manual/macros.texi (gnusystems): New macro.
10009         (nongnusystems): Likewise.
10010         (gnulinuxhurdsystems): Likewise.
10011         (gnuhurdsystems): Likewise..
10012         (gnulinuxsystems): Likewise.
10013         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10014         variants of the GNU system, not "GNU system".
10015         * manual/conf.texi: Likewise.
10016         * manual/errno.texi: Likewise.  Update example of errno macro
10017         expansion.
10018         * manual/filesys.texi: Likewise.
10019         (getumask): Document as specific to GNU/Hurd.
10020         * manual/install.texi: Likewise.  Reword some references to
10021         GNU/Linux.
10022         * manual/intro.texi: Likewise.
10023         * manual/io.texi: Likewise.
10024         (File Name Portability): Detail which constraints are inapplicable
10025         to all GNU systems and which are only inapplicable to GNU/Hurd.
10026         * manual/job.texi: Likewise.
10027         * manual/llio.texi: Likewise.
10028         (O_NOCTTY): Document as present on GNU/Linux.
10029         * manual/maint.texi: Likewise.
10030         * manual/memory.texi: Likewise.
10031         * manual/pattern.texi: Likewise.
10032         * manual/pipe.texi: Likewise.
10033         * manual/process.texi: Likewise.
10034         * manual/resource.texi: Likewise.
10035         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10036         child on GNU/Hurd.
10037         * manual/setjmp.texi: Likewise.
10038         * manual/signal.texi: Likewise.
10039         * manual/startup.texi: Likewise.
10040         * manual/stdio.texi: Likewise.
10041         * manual/terminal.texi: Likewise.
10042         (ONLCR): Document as POSIX.
10043         (OXTABS): Document availability on GNU/Linux as XTABS.
10044         (ONOEOT): Document availability separately from other bits.
10045         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10046         * manual/time.texi: Likewise.
10047         * manual/users.texi: Likewise.
10048         * INSTALL: Regenerated.
10049         * sysdeps/gnu/errlist.c: Regenerated.
10051         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10052         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10053         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10054         puts.
10055         * configure: Regenerated.
10057 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10059         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10060         default includes instead of AC_HEADER_CHECK.
10061         * sysdeps/i386/configure: Regenerated.
10063         [BZ #10716]
10064         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10065         * math/s_cacoshf.c (__cacoshf): Likewise.
10066         * math/s_cacoshl.c (__cacoshl): Likewise.
10067         * math/s_casinh.c (__casinh): Set signs of result from argument.
10068         * math/s_casinhf.c (__casinhf): Likewise.
10069         * math/s_casinhl.c (__casinhl): Likewise.
10070         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10071         (casinh_test): Add more tests.
10072         * sysdeps/i386/fpu/libm-test-ulps: Update.
10073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10075 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10077         * po/zh_TW.po: Update from translation team.
10079         * login/Makefile (distribute): Remove variable.
10080         * catgets/Makefile: Likewise.
10081         * mach/Makefile: Likewise.
10082         * malloc/Makefile: Likewise.
10083         * misc/Makefile: Likewise.
10084         * iconv/Makefile: Likewise.
10085         * nscd/Makefile: Likewise.
10086         * hurd/Makefile: Likewise.
10087         * manual/Makefile: Likewise.
10088         * locale/Makefile: Likewise.
10089         * intl/Makefile: Likewise.
10090         * conform/Makefile: Likewise.
10091         * nss/Makefile: Likewise.
10092         * time/Makefile: Likewise.
10093         * soft-fp/Makefile: Likewise.
10094         * dirent/Makefile: Likewise.
10095         * gmon/Makefile: Likewise.
10096         * po/Makefile: Likewise.
10097         * rt/Makefile: Likewise.
10098         * socket/Makefile: Likewise.
10099         * math/Makefile: Likewise.
10100         * signal/Makefile: Likewise.
10101         * debug/Makefile: Likewise.
10102         * elf/Makefile: Likewise.
10103         * timezone/Makefile: Likewise.
10104         * stdlib/Makefile: Likewise.
10105         * iconvdata/Makefile: Likewise.
10106         * sunrpc/Makefile: Likewise.
10107         * io/Makefile: Likewise.
10108         * argp/Makefile: Likewise.
10109         * inet/Makefile: Likewise.
10110         * hesiod/Makefile: Likewise.
10111         * grp/Makefile: Likewise.
10112         * csu/Makefile: Likewise.
10113         * wctype/Makefile: Likewise.
10114         * crypt/Makefile: Likewise.
10115         * libio/Makefile: Likewise.
10116         * string/Makefile: Likewise.
10117         * nis/Makefile: Likewise.
10118         * resolv/Makefile: Likewise.
10119         * stdio-common/Makefile: Likewise.
10120         * wcsmbs/Makefile: Likewise.
10121         * dlfcn/Makefile: Likewise.
10122         * posix/Makefile: Likewise.
10124         [BZ #6959]
10125         * timezone/Makefile: Don't install timezone files, just the programs
10126         and scripts.
10128 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10130         * nss/databases.def: Add missing gshadow entry.
10132         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10134 2012-03-06  Marek Polacek  <polacek@redhat.com>
10136         [BZ #13726]
10137         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10138         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10139         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10140         * stdio-common/tst-long-dbl-fphex.c: New file.
10142 2012-03-06  David S. Miller  <davem@davemloft.net>
10144         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10145         (set_obp_int): New function.
10146         (get_obp_int): New function.
10147         (__get_clockfreq_via_dev_openprom): Likewise.
10148         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10149         Avoid unused variable warnings on 'val' and use builtin_expect.
10150         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10151         __builtin_expect.
10152         (INLINE_CLONE_SYSCALL): Likewise.
10154 2012-03-05  David S. Miller  <davem@davemloft.net>
10156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10158 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10160         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10162         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10163         only for |x| >= 40.
10164         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10166 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10168         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10169         Replace gettimeofday with __vdso_gettimeofday.
10171         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10172         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10173         __vdso_clock_gettime and __vdso_getcpu.
10175         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10176         time with __vdso_time.
10178 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10180         * manual/lang.texi (size_t): Note types to which size_t may be
10181         equivalent with the GNU C Library, but do not describe when
10182         differences between them are significant.
10184 2012-03-05  Andreas Jaeger  <aj@suse.de>
10186         * sysdeps/i386/fpu/libm-test-ulps: Update.
10188 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10190         [BZ #3976]
10191         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10192         (__ieee754_pow): Save and restore rounding mode and use
10193         round-to-nearest for main computations.
10194         * math/libm-test.inc (pow_test_tonearest): New function.
10195         (pow_test_towardzero): Likewise.
10196         (pow_test_downward): Likewise.
10197         (pow_test_upward): Likewise.
10198         (main): Call the new functions.
10199         * sysdeps/i386/fpu/libm-test-ulps: Update.
10200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10202         [BZ #3976]
10203         * math/libm-test.inc (cosh_test_tonearest): New function.
10204         (cosh_test_towardzero): Likewise.
10205         (cosh_test_downward): Likewise.
10206         (cosh_test_upward): Likewise.
10207         (sinh_test_tonearest): Likewise.
10208         (sinh_test_towardzero): Likewise.
10209         (sinh_test_downward): Likewise.
10210         (sinh_test_upward): Likewise.
10211         (main): Call the new functions.
10212         * sysdeps/i386/fpu/libm-test-ulps: Update.
10213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10215 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10217         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10218         default stack guard is set in last bytes.
10219         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10221 2012-03-05  Kees Cook  <keescook@chromium.org>
10223         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10225         [BZ #13656]
10226         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10227         possibly allocate from heap instead of stack.
10228         * stdio-common/bug-vfprintf-nargs.c: New file.
10229         * stdio-common/Makefile (tests): Add nargs overflow test.
10231 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10233         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10235 2012-03-03  Marek Polacek  <polacek@redhat.com>
10237         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10238         * math/math_private.h: Likewise.
10239         * stdlib/tst-strtod.c: Likewise.
10240         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10241         * sysdeps/x86_64/bits/atomic.h: Likewise.
10243 2012-03-02  David S. Miller  <davem@davemloft.net>
10245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10246         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10247         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10248         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10249         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10250         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10251         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10252         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10254 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10256         [BZ #13792]
10257         * manual/examples/README: New file, says the example source files
10258         can be used under GPL>=2.
10259         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10260         line containing just "*/".
10261         * manual/examples/add.c: Add copyright header (GPL>=2).
10262         * manual/examples/argp-ex1.c: Likewise.
10263         * manual/examples/argp-ex2.c: Likewise.
10264         * manual/examples/argp-ex3.c: Likewise.
10265         * manual/examples/argp-ex4.c: Likewise.
10266         * manual/examples/atexit.c: Likewise.
10267         * manual/examples/db.c: Likewise.
10268         * manual/examples/dir.c: Likewise.
10269         * manual/examples/dir2.c: Likewise.
10270         * manual/examples/execinfo.c: Likewise.
10271         * manual/examples/filecli.c: Likewise.
10272         * manual/examples/filesrv.c: Likewise.
10273         * manual/examples/fmtmsgexpl.c: Likewise.
10274         * manual/examples/genpass.c: Likewise.
10275         * manual/examples/inetcli.c: Likewise.
10276         * manual/examples/inetsrv.c: Likewise.
10277         * manual/examples/isockad.c: Likewise.
10278         * manual/examples/longopt.c: Likewise.
10279         * manual/examples/memopen.c: Likewise.
10280         * manual/examples/memstrm.c: Likewise.
10281         * manual/examples/mkfsock.c: Likewise.
10282         * manual/examples/mkisock.c: Likewise.
10283         * manual/examples/mygetpass.c: Likewise.
10284         * manual/examples/pipe.c: Likewise.
10285         * manual/examples/popen.c: Likewise.
10286         * manual/examples/rprintf.c: Likewise.
10287         * manual/examples/search.c: Likewise.
10288         * manual/examples/select.c: Likewise.
10289         * manual/examples/setjmp.c: Likewise.
10290         * manual/examples/sigh1.c: Likewise.
10291         * manual/examples/sigusr.c: Likewise.
10292         * manual/examples/stpcpy.c: Likewise.
10293         * manual/examples/strdupa.c: Likewise.
10294         * manual/examples/strftim.c: Likewise.
10295         * manual/examples/strncat.c: Likewise.
10296         * manual/examples/subopt.c: Likewise.
10297         * manual/examples/swapcontext.c: Likewise.
10298         * manual/examples/termios.c: Likewise.
10299         * manual/examples/testopt.c: Likewise.
10300         * manual/examples/testpass.c: Likewise.
10301         * manual/examples/timeval_subtract.c: Likewise.
10303         [BZ #13792]
10304         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10305         function to ...
10306         * manual/timeval_subtract.c.texi: ... here, new file.
10308 2012-03-02  David S. Miller  <davem@davemloft.net>
10310         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10312 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10314         [BZ #3976]
10315         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10316         (__sin): Save and restore rounding mode and use round-to-nearest
10317         for all computations.
10318         (__cos): Save and restore rounding mode and use round-to-nearest
10319         for all computations.
10320         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10321         <fenv.h>.
10322         (tan): Save and restore rounding mode and use round-to-nearest for
10323         all computations.
10324         * math/libm-test.inc (cos_test_tonearest): New function.
10325         (cos_test_towardzero): Likewise.
10326         (cos_test_downward): Likewise.
10327         (cos_test_upward): Likewise.
10328         (sin_test_tonearest): Likewise.
10329         (sin_test_towardzero): Likewise.
10330         (sin_test_downward): Likewise.
10331         (sin_test_upward): Likewise.
10332         (tan_test_tonearest): Likewise.
10333         (tan_test_towardzero): Likewise.
10334         (tan_test_downward): Likewise.
10335         (tan_test_upward): Likewise.
10336         (main): Call the new functions.
10337         * sysdeps/i386/fpu/libm-test-ulps: Update.
10338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10340         [BZ #10135]
10341         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10342         small n, then large n, before computing and testing k+n.
10343         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10344         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10345         Likewise.
10346         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10347         Likewise.
10348         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10349         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10350         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10351         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10352         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10353         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10354         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10355         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10356         * math/libm-test.inc (scalbn_test): Add more tests.
10357         (scalbln_test): Likewise.
10359         * manual/filesys.texi (mode_t): Describe constraints on size and
10360         signedness, not exact equivalence to a particular type.
10361         (ino_t): Likewise.
10362         (ino64_t): Likewise.
10363         (dev_t): Likewise.
10364         (nlink_t): Likewise.
10365         (blkcnt_t): Likewise.
10366         (blkcnt64_t): Likewise.
10367         * manual/llio.texi (off_t): Likewise.
10369         [BZ #3976]
10370         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10371         (__ieee754_exp): Save and restore rounding mode and use
10372         round-to-nearest for all computations.
10373         * math/libm-test.inc (exp_test_tonearest): New function.
10374         (exp_test_towardzero): Likewise.
10375         (exp_test_downward): Likewise.
10376         (exp_test_upward): Likewise.
10377         (main): Call the new functions.
10378         * sysdeps/i386/fpu/libm-test-ulps: Update.
10379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10381 2012-03-01  Chris Demetriou  <cgd@google.com>
10383         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10384         have predictable order.
10386 2012-03-01  David S. Miller  <davem@davemloft.net>
10388         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10390         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10391         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10392         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10393         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10395         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10396         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10397         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10398         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10399         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10400         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10401         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10402         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10403         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10407         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10408         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10409         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10411         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10412         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10413         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10414         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10415         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10416         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10417         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10418         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10419         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10420         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10421         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10422         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10423         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10424         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10425         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10426         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10427         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10428         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10429         * sysdeps/sparc/elf/configure: Regenerated.
10431 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10433         * configure.in (AS, LD): Require binutils 2.20 or later.
10434         * configure: Regenerated.
10435         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10436         as required minimum version.
10437         * INSTALL: Regenerated.
10439         [BZ #2541]
10440         [BZ #4108]
10441         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10442         before squaring exponent.
10443         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10444         bottom long double and 27 bits of top long double before squaring
10445         exponent.
10446         * math/libm-test.inc (erfc_test): Add more tests.
10447         * sysdeps/i386/fpu/libm-test-ulps: Update.
10448         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10451 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10453         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10454         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10455         containing bit-fields.
10456         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10457         * soft-fp/single.h (_FP_UNION_S): Likewise.
10458         * soft-fp/double.h (_FP_UNION_D): Likewise.
10460 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10462         [BZ #13786]
10463         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10464         not include ../strcmp.S.
10465         [USE_AS_STRNCASECMP_L]: Likewise.
10466         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10467         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10468         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10469         (__strncasecmp_l_ia32): Define as alias to
10470         __strncasecmp_l_nonascii.
10472         [BZ #5794]
10473         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10474         * sysdeps/i386/fpu/libm-test-ulps: Update.
10475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10477         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10480 2012-02-29  Jeff Law  <law@redhat.com>
10482         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10483         out of bounds read.
10485 2012-02-29  Marek Polacek  <polacek@redhat.com>
10487         [BZ #13706]
10488         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10489         * elf/Makefile: Add rules to run tst-unused-dep.out.
10491 2012-02-28  David S. Miller  <davem@davemloft.net>
10493         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10494         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10495         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10496         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10497         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10498         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10500 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10502         * math/libm-test.inc (llround_test): Move one test from
10503         lround_test.  Use TEST_f_L in moved test.
10504         (lround_test): Move misplaced test to llround_test.  Add testcase
10505         from bug 2561.
10507 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10509         * sysdeps/x86_64/fpu/e_expf.S: New file.
10510         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10512 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10514         [BZ #13637]
10515         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10516         of remain_len that may cause incomplete multi-byte character and
10517         false match.
10518         * posix/bug-regex33.c: New file.
10519         * posix/Makefile (tests): Add bug-regex33.
10521 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10523         * manual/macros.texi: New file.
10524         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10525         * manual/libc.texinfo: Include macros.texi.
10526         * manual/creatute.texi: Likewise.
10527         * manual/install.texi: Likewise.
10528         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10529         @glibcadj{} in references to the GNU C Library.
10530         * manual/charset.texi: Likewise.
10531         * manual/conf.texi: Likewise.
10532         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10533         when not using those macros.
10534         * manual/creature.texi: Likewise.
10535         * manual/crypt.texi: Likewise.
10536         * manual/errno.texi: Likewise.
10537         * manual/filesys.texi: Likewise.
10538         * manual/header.texi: Likewise.
10539         * manual/install.texi: Likewise.
10540         * manual/intro.texi: Likewise.
10541         * manual/io.texi: Likewise.
10542         * manual/job.texi: Likewise.
10543         * manual/lang.texi: Likewise.
10544         * manual/libc.texiinfo: Likewise.
10545         * manual/llio.texi: Likewise.
10546         * manual/locale.texi: Likewise.
10547         * manual/maint.texi: Likewise.
10548         * manual/math.texi: Likewise.
10549         * manual/memory.texi: Likewise.
10550         * manual/message.texi: Likewise.
10551         * manual/nss.texi: Likewise.
10552         * manual/pattern.texi: Likewise.
10553         * manual/process.texi: Likewise.
10554         * manual/resource.texi: Likewise.
10555         * manual/search.texi: Likewise.
10556         * manual/setjmp.texi: Likewise.
10557         * manual/signal.texi: Likewise.
10558         * manual/socket.texi: Likewise.
10559         * manual/startup.texi: Likewise.
10560         * manual/stdio.texi: Likewise.
10561         * manual/string.texi: Likewise.
10562         * manual/sysinfo.texi: Likewise.
10563         * manual/syslog.texi: Likewise.
10564         * manual/terminal.texi: Likewise.
10565         * manual/time.texi: Likewise.
10566         * manual/users.texi: Likewise.
10567         * INSTALL: Regenerated.
10568         * NOTES: Regenerated.
10569         * sysdeps/gnu/errlist.c: Regenerated.
10571 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10573         * include/dirent.h: Include <dirstream.h> before
10574         <dirent/dirent.h>.
10576 2012-02-28  David S. Miller  <davem@davemloft.net>
10578         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10579         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10580         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10581         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10583 2012-02-27  David S. Miller  <davem@davemloft.net>
10585         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10586         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10587         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10588         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10591         frame pointer instead of stack pointer relative arg slot.
10592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10593         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10594         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10596 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10598         [BZ #3992]
10599         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10601 2012-02-27  David S. Miller  <davem@davemloft.net>
10603         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10607         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10608         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10609         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10610         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10612 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10614         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10615         later.  Allow versions 5-9.
10616         * configure: Regenerated.
10617         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10618         required minimum version and 4.6 as recommended version.  Do not
10619         mention bugs in GCC 2.7 and 2.8.
10620         * INSTALL: Regenerated.
10622 2012-02-27  David S. Miller  <davem@davemloft.net>
10624         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10625         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10628         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10629         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10630         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10631         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10633         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10634         manipulate bits before adding and subtracting TWO112[sx].
10635         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10637 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10639         [BZ #13775]
10640         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10641         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10642         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10643         being in POSIX, because they are in 1003.1-2008.
10645         * rt/tst-aio.c: Include <fcntl.h>.
10646         * rt/tst-aio7.c: Likewise.
10647         * rt/tst-aio64.c: Likewise.
10649         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10651 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10653         * manual/install.texi (--with-headers): Describe headers as
10654         interface headers, not private headers.
10655         (Specific advice for GNU/Linux systems): Describe use of headers
10656         from "make headers_install", not private headers from older
10657         kernels.
10658         * INSTALL: Regenerated.
10659         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10660         Change to 2.6.19.
10661         * sysdeps/unix/sysv/linux/configure: Regenerated.
10663         * manual/llio.texi (fclean): Remove documentation.
10665         * manual/Makefile (libc-texi-generated): New variable.  Include
10666         version.texi.
10667         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10668         $(libc-texi-generated), not duplicated list of files.
10669         (version.texi, stamp-version): New rules.
10670         (realclean): Remove $(libc-texi-generated), not individual files
10671         from that list.  Do not remove dir-add.texinfo.
10672         * manual/libc.texinfo: Comment out uses of edition numbers and
10673         references to printed manual.  Remove last-updated dates.
10674         (EDITION): Comment out.
10675         (ISBN): Likewise.
10676         (VERSION, UPDATED): Remove.
10677         (version.texi): Include.
10679 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10681         * sysdeps/posix/spawni.c: Include <signal.h>.
10682         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10683         * sysdeps/pthread/aio_fsync.c: Likewise.
10685 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10687         * conform/Makefile (tests): Run only when not cross-compiling and
10688         when fast-check is not defined.
10690         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10691         * conform/data/limits.h-data: Fixes for POSIX2008.
10692         * conform/run-conformtest.sh: Run all tests.
10693         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10694         headers.
10695         * include/bits/dlfcn.h: Likewise.
10696         * include/langinfo.h: Likewise.
10697         * include/monetary.h: Likewise.
10698         * include/sys/poll.h: Likewise.
10700         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10701         for __USE_GNU.
10702         * posix/spawn.h: Define __need_sigset_t.
10703         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10704         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10705         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10706         to get sigevent_t only.
10707         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10708         only for __USE_GNU.
10709         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10710         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10711         process_vm_writev only for __USE_GNU.
10712         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10714         * conform/Makefile: For now ignore errors from run-conformtest.
10715         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10716         POSIX to avoid namespace pollution.  Don't prepend headers.
10717         * conform/data/aio.h-data: Fixes for POSIX testing.
10718         * conform/data/fcntl.h-data: Likewise.
10719         * conform/data/glob.h-data: Likewise.
10720         * conform/data/grp.h-data: Likewise.
10721         * conform/data/pthread.h-data: Likewise.
10722         * conform/data/pwd.h-data: Likewise.
10723         * conform/data/signal.h-data: Likewise.
10724         * conform/data/spawn.h-data: Likewise.
10725         * conform/data/stdio.h-data: Likewise.
10726         * conform/data/stdlib.h-data: Likewise.
10727         * conform/data/stropts.h-data: Likewise.
10728         * conform/data/sys/mman.h-data: Likewise.
10729         * conform/data/sys/stat.h-data: Likewise.
10730         * conform/data/sys/types.h-data: Likewise.
10731         * conform/data/sys/wait.h-data: Likewise.
10732         * conform/data/time.h-data: Likewise.
10733         * conform/data/unistd.h-data: Likewise.
10734         * conform/data/utime.h-data: Likewise.
10736         * io/sys/stat.h: fchmod was always in POSIX.
10737         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10738         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10739         * rt/aio.h: Define __need_timespec before including <time.h>.
10740         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10741         struct.  Add forward declaration of pthread_attr_t and use it in
10742         sigevent.
10743         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10744         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10745         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10746         always remove CLK_TCK definition.
10748 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10750         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10752 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10754         * conform/run-conformtest.sh: New file.
10755         * conform/Makefile: Run run-conformtest for tests.
10756         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10757         support.
10759         * conform/data/uchar.h-data: New file.
10760         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10761         * conform/data/arpa/inet.h-data: Likewise.
10762         * conform/data/assert.h-data: Likewise.
10763         * conform/data/complex.h-data: Likewise.
10764         * conform/data/cpio.h-data: Likewise.
10765         * conform/data/ctype.h-data: Likewise.
10766         * conform/data/dirent.h-data: Likewise.
10767         * conform/data/dlfcn.h-data: Likewise.
10768         * conform/data/errno.h-data: Likewise.
10769         * conform/data/fcntl.h-data: Likewise.
10770         * conform/data/float.h-data: Likewise.
10771         * conform/data/fmtmsg.h-data: Likewise.
10772         * conform/data/fnmatch.h-data: Likewise.
10773         * conform/data/ftw.h-data: Likewise.
10774         * conform/data/glob.h-data: Likewise.
10775         * conform/data/grp.h-data: Likewise.
10776         * conform/data/iconv.h-data: Likewise.
10777         * conform/data/inttypes.h-data: Likewise.
10778         * conform/data/langinfo.h-data: Likewise.
10779         * conform/data/libgen.h-data: Likewise.
10780         * conform/data/limits.h-data: Likewise.
10781         * conform/data/locale.h-data: Likewise.
10782         * conform/data/math.h-data: Likewise.
10783         * conform/data/monetary.h-data: Likewise.
10784         * conform/data/mqueue.h-data: Likewise.
10785         * conform/data/ndbm.h-data: Likewise.
10786         * conform/data/net/if.h-data: Likewise.
10787         * conform/data/netdb.h-data: Likewise.
10788         * conform/data/netinet/in.h-data: Likewise.
10789         * conform/data/nl_types.h-data: Likewise.
10790         * conform/data/poll.h-data: Likewise.
10791         * conform/data/pthread.h-data: Likewise.
10792         * conform/data/pwd.h-data: Likewise.
10793         * conform/data/regex.h-data: Likewise.
10794         * conform/data/sched.h-data: Likewise.
10795         * conform/data/search.h-data: Likewise.
10796         * conform/data/semaphore.h-data: Likewise.
10797         * conform/data/setjmp.h-data: Likewise.
10798         * conform/data/signal.h-data: Likewise.
10799         * conform/data/spawn.h-data: Likewise.
10800         * conform/data/stdarg.h-data: Likewise.
10801         * conform/data/stdio.h-data: Likewise.
10802         * conform/data/stdlib.h-data: Likewise.
10803         * conform/data/string.h-data: Likewise.
10804         * conform/data/strings.h-data: Likewise.
10805         * conform/data/stropts.h-data: Likewise.
10806         * conform/data/sys/ipc.h-data: Likewise.
10807         * conform/data/sys/mman.h-data: Likewise.
10808         * conform/data/sys/msg.h-data: Likewise.
10809         * conform/data/sys/resource.h-data: Likewise.
10810         * conform/data/sys/select.h-data: Likewise.
10811         * conform/data/sys/sem.h-data: Likewise.
10812         * conform/data/sys/shm.h-data: Likewise.
10813         * conform/data/sys/socket.h-data: Likewise.
10814         * conform/data/sys/stat.h-data: Likewise.
10815         * conform/data/sys/statvfs.h-data: Likewise.
10816         * conform/data/sys/time.h-data: Likewise.
10817         * conform/data/sys/timeb.h-data: Likewise.
10818         * conform/data/sys/times.h-data: Likewise.
10819         * conform/data/sys/types.h-data: Likewise.
10820         * conform/data/sys/uio.h-data: Likewise.
10821         * conform/data/sys/un.h-data: Likewise.
10822         * conform/data/sys/utsname.h-data: Likewise.
10823         * conform/data/sys/wait.h-data: Likewise.
10824         * conform/data/syslog.h-data: Likewise.
10825         * conform/data/tar.h-data: Likewise.
10826         * conform/data/termios.h-data: Likewise.
10827         * conform/data/utime.h-data: Likewise.
10828         * conform/data/utmpx.h-data: Likewise.
10829         * conform/data/varargs.h-data: Likewise.
10830         * conform/data/wchar.h-data: Likewise.
10831         * conform/data/wctype.h-data: Likewise.
10832         * conform/data/wordexp.h-data: Likewise.
10834         * include/stropts.h: New file.
10835         * include/uchar.h: New file.
10836         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10837         * include/assert.h: Likewise.
10838         * include/ctype.h: Likewise.
10839         * include/dirent.h: Likewise.
10840         * include/dlfcn.h: Likewise.
10841         * include/fcntl.h: Likewise.
10842         * include/fnmatch.h: Likewise.
10843         * include/glob.h: Likewise.
10844         * include/grp.h: Likewise.
10845         * include/libio.h: Likewise.
10846         * include/locale.h: Likewise.
10847         * include/math.h: Likewise.
10848         * include/net/if.h: Likewise.
10849         * include/netdb.h: Likewise.
10850         * include/netinet/in.h: Likewise.
10851         * include/pthread.h: Likewise.
10852         * include/pwd.h: Likewise.
10853         * include/regex.h: Likewise.
10854         * include/sched.h: Likewise.
10855         * include/search.h: Likewise.
10856         * include/setjmp.h: Likewise.
10857         * include/signal.h: Likewise.
10858         * include/stdio.h: Likewise.
10859         * include/stdlib.h: Likewise.
10860         * include/string.h: Likewise.
10861         * include/sys/cdefs.h: Likewise.
10862         * include/sys/mman.h: Likewise.
10863         * include/sys/msg.h: Likewise.
10864         * include/sys/resource.h: Likewise.
10865         * include/sys/select.h: Likewise.
10866         * include/sys/socket.h: Likewise.
10867         * include/sys/stat.h: Likewise.
10868         * include/sys/statvfs.h: Likewise.
10869         * include/sys/time.h: Likewise.
10870         * include/sys/times.h: Likewise.
10871         * include/sys/uio.h: Likewise.
10872         * include/sys/utsname.h: Likewise.
10873         * include/sys/wait.h: Likewise.
10874         * include/termios.h: Likewise.
10875         * include/time.h: Likewise.
10876         * include/ulimit.h: Likewise.
10877         * include/unistd.h: Likewise.
10878         * include/utime.h: Likewise.
10879         * include/wchar.h: Likewise.
10880         * include/wctype.h: Likewise.
10881         * include/wordexp.h: Likewise.
10883         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10885         * time/time.h: TIME_UTC must be a macro.
10886         Make timespec_get available for ISO C11 only as well.
10888 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10890         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10891         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10893 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10895         * configure.in: Use -o not -a in test for unsupported multi-arch.
10897 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10899         * manual/texinfo.tex: Update to version 2012-01-19.16.
10901 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10903         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10905 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10907         [BZ #13738]
10908         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10909         * manual/fdl-1.3.texi: New file.
10910         * manual/fdl-1.1.texi: File removed.
10912         [BZ #13738]
10913         * manual/libc.texinfo (FDL_VERSION): New @set.
10914         Use it for mention of FDL in cover text.
10915         (Documentation License): Use it in @include file name.
10917 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10918             Roland McGrath  <roland@hack.frob.com>
10920         [BZ #5461]
10921         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10922         not LONG_LONG_MAX and LONG_LONG_MIN.
10923         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10924         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10925         name.
10926         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10928 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10930         [BZ #2547]
10931         [BZ #11365]
10932         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10933         manipulate bits before adding and subtracting TWO23[sx].
10934         * math/libm-test.inc (nearbyint_test): Add more tests.
10936 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10938         [BZ #2548]
10939         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10940         bits before adding and subtracting TWO23[sx].
10941         * math/libm-test.inc (rint_test): Add more tests.
10942         (rint_test_tonearest): Likewise.
10943         (rint_test_towardzero): Likewise.
10944         (rint_test_downward): Likewise.
10945         (rint_test_upward: Likewise.
10947 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10949         [BZ #10110]
10950         * include/stdc-predef.h: New file.  Extracted from features.h.
10951         * include/features.h: Include stdc-predef.h.
10952         * Makefile (headers): Add stdc-predef.h.
10953         * CONFORMANCE (Compiler limitations): Update.
10955 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10957         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10959 2012-02-21  David S. Miller  <davem@davemloft.net>
10961         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10962         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10964 2012-02-20  David S. Miller  <davem@davemloft.net>
10966         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10967         using a normal save/restore sequence, rather than allocating a
10968         dummy stack frame just to store a frame pointer and restore.
10969         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10971 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10973         * manual/install.texi: Fix stray word in line-wrapped comment.
10975 2012-02-20  David S. Miller  <davem@davemloft.net>
10977         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10978         both binutils and gcc support GOTDATA.
10980         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10981         "rd %pc" in the PIC register setup sequences.
10983         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10984         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10985         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10986         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10987         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10988         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10989         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10990         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10991         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10992         (SYSCALL_ERROR_HANDLER): Likewise.
10993         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10994         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10995         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10996         (SYSCALL_ERROR_HANDLER): Likewise.
10998         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10999         (HAVE_GCC_GOTDATA): New.
11000         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11001         relocation support in both binutils and gcc.
11002         * sysdeps/sparc/elf/configure: Regenerate.
11004         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11005         * sysdeps/sparc/sparc32/elf/configure: Delete.
11006         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11007         * sysdeps/sparc/sparc64/elf/configure: Delete.
11008         * sysdeps/sparc/elf/configure.in: New file.
11009         * sysdeps/sparc/elf/configure: Generate.
11011         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11012         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11013         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11014         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11015         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11017 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11019         * manual/install.texi: Do not mention specific glibc version
11020         numbers.
11021         * manual/libc.texinfo (VERSION, UPDATED): Update.
11022         (@copying): Use @copyright{} and range of years.
11024 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11026         [BZ #13695]
11027         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11028         [crti.S not in sysdirs] (generated): Do not append.
11029         [crti.S not in sysdirs] (omit-deps): Likewise.
11030         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11031         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11032         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11033         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11034         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11035         Likewise.
11036         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11037         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11038         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11039         * csu/defs.awk: Remove file.
11040         * sysdeps/generic/initfini.c: Likewise.
11041         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11042         variable.
11043         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11044         Likewise.
11046 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11048         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11049         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11050         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11051         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11052         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11053         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11054         <bits/epoll.h>.
11055         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11056         (__EPOLL_PACKED): Define to empty if not defined by
11057         <bits/epoll.h>.
11058         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11059         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11060         bits/epoll.h.
11062 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11064         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11065         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11066         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11067         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11068         <bits/timerfd.h>.
11069         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11070         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11071         bits/timerfd.h.
11073 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11075         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11076         in C locale.
11077         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11078         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11079         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11082 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11084         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11085         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11087 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11089         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11090         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11091         defined.
11092         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11093         Likewise.
11094         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11095         entry for 2.16.
11097 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11099         * math/w_acos.c: Use non-signaling floating-point comparisons.
11100         * math/w_acosf.c: Likewise.
11101         * math/w_acosh.c: Likewise.
11102         * math/w_acoshf.c: Likewise.
11103         * math/w_acoshl.c: Likewise.
11104         * math/w_acosl.c: Likewise.
11105         * math/w_asin.c: Likewise.
11106         * math/w_asinf.c: Likewise.
11107         * math/w_asinl.c: Likewise.
11108         * math/w_atanh.c: Likewise.
11109         * math/w_atanhf.c: Likewise.
11110         * math/w_atanhl.c: Likewise.
11111         * math/w_exp2.c: Likewise.
11112         * math/w_exp2f.c: Likewise.
11113         * math/w_exp2l.c: Likewise.
11114         * math/w_j0.c: Likewise.
11115         * math/w_j0f.c: Likewise.
11116         * math/w_j0l.c: Likewise.
11117         * math/w_j1.c: Likewise.
11118         * math/w_j1f.c: Likewise.
11119         * math/w_j1l.c: Likewise.
11120         * math/w_jn.c: Likewise.
11121         * math/w_jnf.c: Likewise.
11122         * math/w_log.c: Likewise.
11123         * math/w_log10.c: Likewise.
11124         * math/w_log10f.c: Likewise.
11125         * math/w_log10l.c: Likewise.
11126         * math/w_log2.c: Likewise.
11127         * math/w_log2f.c: Likewise.
11128         * math/w_log2l.c: Likewise.
11129         * math/w_logf.c: Likewise.
11130         * math/w_logl.c: Likewise.
11131         * math/w_sqrt.c: Likewise.
11132         * math/w_sqrtf.c: Likewise.
11133         * math/w_sqrtl.c: Likewise.
11134         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11135         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11136         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11137         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11138         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11140 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11142         [BZ #9739]
11143         * manual/string.texi (strnlen): Use correct parameter name in
11144         equivalent expression.
11146 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11148         [BZ #11174]
11149         * manual/users.texi (seteuid): Consistently use neweuid for
11150         argument name.
11152 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11154         [BZ #13704]
11155         * manual/nss.texi (Services in the NSS configuration): Correct
11156         list of services in example configuration file.
11158 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11160         [BZ #11322]
11161         * manual/arith.texi: Remove statements about negative zero
11162         behaving identically to zero.
11164 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11166         [BZ #5993]
11167         * manual/install.texi: Do not document upgrading from libc5.
11169 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11171         [BZ #4596]
11172         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11174 2012-02-18  David S. Miller  <davem@davemloft.net>
11176         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11177         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11178         %o7 across the call.
11179         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11180         instead.
11181         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11182         SETUP_PIC_REG_LEAF.
11183         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11184         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11185         * sysdeps/sparc/crtn.S: Likewise.
11187 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11189         * aout/Makefile: Remove.
11191 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11193         [BZ #13058]
11194         * manual/examples/argp-ex1.c (main): Format definition in GNU
11195         style.
11196         * manual/examples/argp-ex2.c (main): Likewise.
11197         * manual/examples/argp-ex3.c (main): Likewise.
11198         * manual/examples/argp-ex4.c (main): Likewise.
11199         * manual/examples/longopt.c (main): Use new-style prototype
11200         definition.
11201         * manual/examples/strncat.c (main): Specify return type and use
11202         (void) for arguments.
11203         * manual/examples/subopt.c (main): Use char **argv argument.
11205 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11207         [BZ #5077]
11208         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11209         rounding modes.
11211 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11213         [BZ #6907]
11214         * manual/string.texi (strchr): Change when strchrnul is
11215         recommended.
11217 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11219         [BZ #174]
11220         * manual/locale.texi (setlocale): Document LOCPATH.
11222 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11224         [BZ #10210]
11225         * manual/process.texi (execle): Move @dots{} before last argument.
11227 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11229         [BZ #12047]
11230         * manual/charset.texi (Generic Charset Conversion): Fix typo
11231         (LC_TYPE -> LC_CTYPE).
11233 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11235         [BZ #5805]
11236         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11237         (scalbnf): Likewise.
11238         (scalbnl): Likewise.
11239         (scalbln): Likewise.
11240         (scalblnf): Likewise.
11241         (scalblnl): Likewise.
11242         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11243         (vwarnx): Likewise.
11244         (verr): Likewise.
11245         (verrx): Likewise.
11246         * manual/filesys.texi (telldir): Use braces around return type.
11247         * manual/llio.texi (mmap): Add space after comma.
11248         (mmap64): Likewise.
11249         * manual/math.texi (jn): Use @var{} on parameter names.
11250         (jnf): Likewise.
11251         (jnl): Likewise.
11252         (yn): Likewise.
11253         (ynf): Likewise.
11254         (ynl): Likewise.
11255         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11256         line.
11257         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11258         "...".
11259         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11260         (sched_get_priority_max): Likewise.
11261         * manual/signal.texi (sigvec): Add space after comma.
11262         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11263         names.
11264         (if_indextoname): Likewise.
11265         (if_freenameindex): Likewise.
11266         (sendto): Use ',' instead of '.' in prototype.
11267         * manual/startup.texi (syscall): Use @dots{} instead of literal
11268         "...".
11269         * manual/stdio.texi (__fpending): Separate initial words of
11270         paragraph from @deftypefun line.
11271         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11272         "...".
11273         (vsyslog): Use @var{} on parameter names.
11274         * manual/terminal.texi (stty): Use @var{} on parameter names.
11275         * manual/users.texi (getutmp): Use @var{} on parameter names.
11276         (getutmpx): Likewise.
11278 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11280         [BZ #6884]
11281         * manual/stdio.texi (fopen): Fix typos in description of
11282         ",ccs=STRING".
11284 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11286         [BZ #4026]
11287         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11288         get clock_id definition.
11290 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11292         [BZ #4822]
11293         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11294         (madvise): Cast every argument to void on its own.
11296 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11298         [BZ #9902]
11299         * manual/startup.texi (Exit Status): Fix typo.
11301 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11303         [BZ #10140]
11304         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11305         * manual/examples/argp-ex2.c: Likewise.
11306         * manual/examples/argp-ex3.c: Likewise.
11308 2012-02-16  Richard Henderson  <rth@redhat.com>
11310         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11311         * sysdeps/s390/s390-32/initfini.c: Remove.
11312         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11313         * sysdeps/s390/s390-64/initfini.c: Remove.
11315 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11317         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11318         compiler output for sysdeps/generic/initfini.c.
11319         * sysdeps/sh/elf/initfini.c: Remove file.
11321 2012-02-16  David S. Miller  <davem@davemloft.net>
11323         [BZ #11494]
11324         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11326         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11327         * sysdeps/sparc/crti.S: New file.
11328         * sysdeps/sparc/crtn.S: New file.
11329         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11330         * sysdeps/sparc/sparc64/Makefile: Likewise.
11332 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11334         [BZ #3335]
11335         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11337 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11339         [BZ #4822]
11340         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11342         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11343         (write, read, close): Likewise.
11344         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11346 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11348         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11349         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11350         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11351         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11352         <bits/signalfd.h>.
11353         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11354         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11355         bits/signalfd.h.
11357 2012-02-14  Marek Polacek  <polacek@redhat.com>
11359         * sysdeps/x86_64/crti.S: New file.
11360         * sysdeps/x86_64/crtn.S: New file.
11361         * sysdeps/x86_64/elf/initfini.c: Remove file.
11363 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11365         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11366         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11367         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11368         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11369         <bits/inotify.h>.
11370         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11371         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11372         bits/inotify.h.
11374 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11376         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11377         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11378         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11379         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11380         <bits/eventfd.h>.
11381         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11382         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11383         bits/eventfd.h.
11385 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11387         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11388         __feraiseexcept instead of feraiseexcept.
11390         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11391         nanosleep invocations.
11392         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11393         strings, and add error checking for a nanosleep invocations.
11395 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11397         Replace FSF snail mail address with URLs, as per GNU coding standards.
11398         Most of the snail mail addresses were wrong anyway, and omitting
11399         them makes the source code easier to maintain.  Almost all of the
11400         changes are to license notices and to locale LC_IDENTIFICATION
11401         addresses, except for this one:
11402         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11403         not its snail mail address.
11405 2012-02-09  Richard Henderson  <rth@twiddle.net>
11407         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11408         of kernel-features.h.
11410         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11412 2012-02-08  Marek Polacek  <polacek@redhat.com>
11414         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11415         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11416         * sysdeps/gnu/_G_config.h: Likewise.
11417         * sysdeps/generic/_G_config.h: Likewise.
11419 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11421         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11422         tests.
11423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11425         * sysdeps/powerpc/powerpc32/crti.S: New file.
11426         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11427         * sysdeps/powerpc/powerpc64/crti.S: New file.
11428         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11430         * Makeconfig (have-initfini): Don't set.
11431         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11432         * configure.in (nopic_initfini): Don't substitute.
11433         * config.h.in (HAVE_INITFINI): Don't #undef.
11434         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11435         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11437 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11439         Support crti.S and crtn.S provided directly by architectures.
11440         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11441         [crti.S in sysdirs] (omit-deps): Likewise.
11442         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11443         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11444         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11445         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11446         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11447         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11448         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11449         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11450         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11451         compiler output for sysdeps/generic/initfini.c.
11452         * sysdeps/i386/elf/Makefile: Remove file.
11453         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11455 2012-02-07  Marek Polacek  <polacek@redhat.com>
11457         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11458         * sysdeps/gnu/_G_config.h: Likewise.
11459         * sysdeps/mach/hurd/_G_config.h: Likewise.
11461 2012-02-07  Marek Polacek  <polacek@redhat.com>
11463         * math/Makefile (tests): Add tst-CMPLX2.
11464         * math/tst-CMPLX2.c: New file.
11466 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11468         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11470         * math/libm-test.inc (jn_test): Add missing L suffix.
11472 2012-02-06  Marek Polacek  <polacek@redhat.com>
11474         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11475         * sysdeps/i386/fpu/e_powf.S: Likewise.
11476         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11477         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11478         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11479         * sysdeps/i386/fpu/e_pow.S: Likewise.
11480         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11481         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11482         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11483         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11484         * sysdeps/i386/fpu/e_log2.S: Likewise.
11485         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11486         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11487         * sysdeps/i386/fpu/e_powl.S: Likewise.
11488         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11489         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11490         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11491         * sysdeps/i386/fpu/e_logl.S: Likewise.
11492         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11493         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11494         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11495         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11496         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11497         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11498         * sysdeps/i386/fpu/e_log.S: Likewise.
11499         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11500         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11501         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11502         * sysdeps/i386/fpu/e_logf.S: Likewise.
11503         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11504         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11505         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11506         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11507         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11508         * sysdeps/i386/fpu/e_log10.S: Likewise.
11509         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11510         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11511         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11512         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11513         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11514         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11515         * sysdeps/i386/asm-syntax.h: Likewise.
11516         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11517         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11518         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11519         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11520         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11521         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11522         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11523         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11524         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11525         * sysdeps/powerpc/sysdep.h: Likewise.
11526         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11527         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11529 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11531         [BZ #411]
11532         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11534 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11536         * sysdeps/i386/sysdep.h: Include <features.h>.
11537         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11538         version.
11540 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11542         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11543         Define.
11544         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11545         LOAD_PIC_REG_STR.
11547 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11549         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11550         (SETUP_PIC_REG): Use GET_PC_THUNK.
11551         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11552         macro.
11554 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11556         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11557         for non-PIC compilation.
11558         (SETUP_PIC_REG): Add .p2align directive.
11559         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11560         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11561         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11562         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11563         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11564         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11565         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11566         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11567         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11568         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11569         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11570         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11571         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11572         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11573         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11574         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11575         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11576         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11577         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11578         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11579         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11580         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11581         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11582         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11583         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11584         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11585         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11586         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11587         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11588         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11589         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11590         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11591         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11592         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11593         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11594         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11595         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11596         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11597         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11598         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11599         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11601 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11603         * math/tst-CMPLX.c: Include <stdio.h>.
11605 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11607         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11608         float.
11609         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11610         * sysdeps/sparc/bits/mathdef.h: Likewise.
11612 2012-01-31  Marek Polacek  <polacek@redhat.com>
11614         * libio/libio.h: Don't define _PARAMS.
11615         * locale/programs/config.h: Don't define PARAMS.
11616         * stdlib/strtol_l.c: Likewise.
11617         (__strtol_l): Remove PARAMS from the prototype.
11619 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11621         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11622         names.  Just use the correct names.  Remove unnecessary wrapper
11623         functions.
11624         * malloc/arena.c: Likewise.
11625         * malloc/hooks.c: Likewise.
11627         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11628         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11629         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11631 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11633         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11634         into tail calls.
11635         (update_get_addr): New function.
11636         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11637         GET_ADDR_MODULE parameter.
11639 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11641         * crypt/cert.c: Remove __STDC__ conditionals.
11642         * crypt/crypt-entry.c: Likewise.
11643         * crypt/crypt_util.c: Likewise.
11644         * libio/filedoalloc.c: Likewise.
11645         * libio/fileops.c: Likewise.
11646         * libio/genops.c: Likewise.
11647         * libio/iofclose.c: Likewise.
11648         * libio/iofdopen.c: Likewise.
11649         * libio/iofopen.c: Likewise.
11650         * libio/iofopen64.c: Likewise.
11651         * libio/iogetdelim.c: Likewise.
11652         * libio/iopopen.c: Likewise.
11653         * libio/obprintf.c: Likewise.
11654         * libio/oldfileops.c: Likewise.
11655         * libio/oldiofclose.c: Likewise.
11656         * libio/oldiofdopen.c: Likewise.
11657         * libio/oldiofopen.c: Likewise.
11658         * libio/oldiopopen.c: Likewise.
11659         * libio/wfiledoalloc.c: Likewise.
11660         * libio/wgenops.c: Likewise.
11661         * locale/programs/xmalloc.c: Likewise.
11662         * misc/syslog.c: Likewise.
11663         * stdio-common/xbug.c: Likewise.
11664         * string/memchr.c: Likewise.
11665         * string/memcmp.c: Likewise.
11666         * string/memrchr.c: Likewise.
11667         * string/rawmemchr.c: Likewise.
11668         * sysdeps/posix/getcwd.c: Likewise.
11669         * time/strftime_l.c: Likewise.
11671 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11673         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11674         * config.make.in (config-cflags-sse2avx): Define.
11675         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11676         Fix typo.
11678 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11680         * scripts/config.guess: Update from upstream config git repository.
11681         * scripts/config.sub: Likewise.
11683 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11685         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11686         (EM_NUM): Update.
11687         (R_TILEPRO_*, R_TILEGX_*): New macros.
11689         * scripts/firstversions.awk: Fix bug in version range handling.
11691         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11693         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11695         * include/sys/epoll.h: New file.
11696         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11697         libc_hidden_def.
11699 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11701         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11702         Avoid unnecessary __WORDSIZE == 64 test.
11703         (fmaxf): Use VEX format if possible.
11704         (fmax): Likewise.
11705         (fminf): Likewise.
11706         (fmin): Likewise.
11708         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11709         * math/math_private.h: Remove libc_fegetround* and
11710         libc_fesetround*.
11711         * sysdeps/i386/configure.in: Check for -msse2avx.
11712         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11713         also if SSE2AVX is defined.
11714         Remove libc_fegetround* and libc_fesetround*.
11715         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11716         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11717         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11718         of HAS_YMM_USABLE.
11719         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11720         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11721         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11722         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11723         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11725         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11727 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11729         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11730         size is not set.
11731         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11733 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11735         [BZ #13618]
11736         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11737         relocation.
11738         * Makeconfig (libm): Define.
11739         * elf/Makefile: Add rules to build and run tst-relsort1.
11740         * elf/tst-relsort1.c: New file.
11741         * elf/tst-relsort1mod1.c: New file.
11742         * elf/tst-relsort1mod2.c: New file.
11744 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11746         * math/s_ldexp.c: Remove __STDC__ conditionals.
11747         * math/s_ldexpf.c: Likewise.
11748         * math/s_ldexpl.c: Likewise.
11749         * math/s_nextafter.c: Likewise.
11750         * math/s_nexttowardf.c: Likewise.
11751         * math/s_significand.c: Likewise.
11752         * math/s_significandf.c: Likewise.
11753         * math/s_significandl.c: Likewise.
11754         * math/w_jnl.c: Likewise.
11755         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11756         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11757         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11758         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11759         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11760         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11761         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11762         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11763         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11764         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11765         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11766         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11767         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11768         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11769         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11770         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11771         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11772         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11773         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11774         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11775         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11776         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11777         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11778         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11779         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11780         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11781         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11782         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11783         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11784         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11785         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11786         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11787         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11788         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11789         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11790         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11791         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11792         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11793         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11794         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11795         * sysdeps/ieee754/k_standard.c: Likewise.
11796         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11797         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11798         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11799         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11800         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11801         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11802         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11803         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11804         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11805         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11806         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11807         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11808         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11809         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11810         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11811         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11812         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11813         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11814         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11815         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11816         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11817         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11818         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11819         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11820         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11821         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11822         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11823         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11824         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11825         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11826         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11827         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11828         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11829         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11830         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11831         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11832         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11833         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11834         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11835         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11836         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11837         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11838         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11839         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11840         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11841         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11842         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11843         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11844         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11845         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11846         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11847         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11848         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11849         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11850         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11851         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11852         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11853         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11854         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11855         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11856         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11857         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11858         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11859         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11860         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11861         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11862         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11863         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11864         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11865         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11866         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11867         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11868         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11869         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11870         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11871         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11872         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11873         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11874         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11875         * sysdeps/ieee754/s_matherr.c: Likewise.
11876         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11877         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11878         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11879         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11881 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11883         * crypt/md5.h: Remove __STDC__ conditionals.
11884         * libio/libioP.h: Likewise.
11885         * locale/programs/config.h: Likewise.
11886         * sysdeps/generic/sysdep.h: Likewise.
11887         * sysdeps/i386/asm-syntax.h: Likewise.
11888         * sysdeps/s390/asm-syntax.h: Likewise.
11889         * sysdeps/unix/sysdep.h: Likewise.
11890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11893 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11895         * libio/libio.h: Remove __STDC__ conditionals.
11896         * malloc/obstack.h: Likewise.
11897         * math/complex.h: Likewise.
11898         * math/math.h: Likewise.
11899         * sysdeps/generic/_G_config.h: Likewise.
11900         * sysdeps/gnu/_G_config.h: Likewise.
11901         * sysdeps/mach/hurd/_G_config.h: Likewise.
11902         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11903         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11904         * sysdeps/sparc/bits/mathdef.h: Likewise.
11906 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11908         [BZ #13583]
11909         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11910         Clean up HAS_* macros.
11911         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11912         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11913         possible.
11914         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11915         HAS_AVX.
11916         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11917         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11918         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11919         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11920         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11922 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11924         * elf/tst-unique3.cc (gets): Remove declaration.
11925         * elf/tst-unique3lib.cc (gets): Likewise.
11926         * elf/tst-unique3lib2.cc (gets): Likewise.
11927         * elf/tst-unique4.cc (gets): Likewise.
11929 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11931         * include/stdio.h: Add C++ protection.  Add gets declarations and
11932         definitions.
11933         * debug/tst-chk1.c: Don't declare gets here.
11934         * stdio-common/tst-gets.c: Likewise.
11936 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11938         * posix/glob: Remove directory.
11940 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11942         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11944 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11946         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11947         of the non-standard EPFNOSUPPORT.
11949 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11951         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11952         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11953         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11955 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11957         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11959 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11961         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11962         transient errors.
11963         * nscd/grpcache.c (cache_addgr): Likewise.
11964         * nscd/hstcache.c (cache_addhst): Likewise.
11965         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11966         * nscd/pwdcache.c (cache_addpw): Likewise.
11967         * nscd/servicescache.c (cache_addserv): Likewise.
11969 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11971         * malloc/malloc.c: Various cleanups.
11972         * malloc/hooks.c: Likewise.
11974         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11975         * stdlib/bug-fmtmsg1.c: New file.
11977         * stdlib/fmtmsg.c (init): Add missing unlock.
11978         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11980 2012-01-12  Marek Polacek  <polacek@redhat.com>
11982         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11983         and _GNU_SOURCE.
11985 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11987         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11988         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11989         macro to ensure uniqueness of label name.
11990         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11991         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11993 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11995         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11997         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11998         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11999         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12000         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12002 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12004         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12006         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12007         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12008         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12010         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12012         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12013         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12014         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12015         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12017         * math/bits/math-finite.h: Add ldexp support.
12019 2012-01-10  Marek Polacek  <polacek@redhat.com>
12021         * locale/programs/localedef.h (show_archive_content): Add noreturn
12022         attribute.
12024 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12026         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12028 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12030         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12032         * io/Makefile (headers): Add bits/poll2.h.
12034 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12037         typo #include statement.
12039 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12041         * include/sys/cdefs.h: Define __attribute_alloc_size.
12042         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12043         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12044         * elf/pldd.c: Likewise.
12045         * iconv/iconv_charmap.c: Likewise.
12046         * iconv/iconvconfig.c: Likewise.
12047         * iconv/strtab.c: Likewise.
12048         * locale/programs/locale.c: Likewise.
12049         * locale/programs/localedef.h: Likewise.
12050         * locale/programs/simple-hash.c: Likewise.
12051         * nscd/nscd.h: Likewise.
12052         * nss/makedb.c: Likewise.
12053         * sysdeps/generic/ldconfig.h: Likewise.
12054         * locale/programs/localedef.c: Remove xmalloc prototype.
12055         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12057 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12059         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12060         appropriate.
12062 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12064         * math/Makefile (tests): Add tst-CMPLX.
12065         * math/tst-CMPLX.c: New file.
12067         * math/complex.h (CMPLXL): Fix typo.
12069         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12070         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12071         GLIBC_2.16.
12072         * debug/tst-chk1.c: Add poll and ppoll tests.
12073         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12074         * include/sys/poll.h: Add hidden proto for ppoll.
12075         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12076         * sysdeps/mach/hurd/ppoll.c: Likewise.
12077         * io/ppoll.c: Likewise.
12078         * debug/poll_chk.c: New file.
12079         * debug/ppoll_chk.c: New file.
12080         * include/bits/poll2.h: New file.
12081         * io/bits/poll2.h: New file.
12083         [BZ #1350]
12084         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12086         * configure.in: static is always set to yes.  Remove.
12087         * config.make.in: Don't set build-static.
12088         * Makeconfig: Remove use of build-static.
12089         * dlfcn/Makefile: Likewise.
12090         * elf/Makefile: Likewise.
12091         * math/Makefile: Likewise.
12092         * misc/Makefile: Likewise.
12093         * nptl/Makefile: Likewise.
12094         * sysdeps/mach/hurd/Makefile: Likewise.
12096         * configure.in: PWD_P is not used anymore.
12097         * config.make.in: Remove PWD_P entry.
12099         * configure.in: Remove last remnants of RANLIB.
12100         No need to check for signed size_t anymore.
12101         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12102         and IA-64.
12103         Remove __builtin_expect test because we require at least gcc 3.4.
12104         * aclocal.m4: Likewise.
12106         * wcsmbs/mbrtoc16.c: Implement using towc function.
12107         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12108         * wcsmbs/wcsmbsload.c: Likewise.
12109         * iconv/gconv_simple.c: Likewise.
12110         * iconv/gconv_int.h: Likewise.
12111         * iconv/gconv_builtin.h: Likewise.
12112         * iconv/iconv_prog.c: Remove CHAR16 handling.
12114         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12116         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12118         * configure.in: Remove --with-elf and --enable-bounded options.
12119         Dont set base_machine for ia64.  More non-ELF conditions removed.
12120         Remove testing and setting of leading underscore information.
12121         * config.make.in (build-bounded): Set to no.
12122         * config.h.in: Remove NO_UNDERSCORES entry.
12123         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12124         them.
12125         * csu/start.c: Remove !NO_UNDERSCORE code.
12126         * locale/localeinfo.h: Likewise.
12127         * sysdeps/generic/machine-gmon.h: Likewise.
12128         * sysdeps/generic/sysdep.h: Likewise.
12129         * sysdeps/i386/sysdep.h: Likewise.
12130         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12131         * sysdeps/mach/sysdep.h: Likewise.
12132         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12133         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12134         * sysdeps/sh/sysdep.h: Likewise.
12135         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12136         * sysdeps/unix/i386/sysdep.S: Likewise.
12137         * sysdeps/unix/sparc/start.c: Likewise.
12138         * sysdeps/unix/sparc/sysdep.S: Likewise.
12139         * sysdeps/unix/sparc/sysdep.h: Likewise.
12140         * sysdeps/unix/start.c: Likewise.
12141         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12142         * sysdeps/x86_64/sysdep.h: Likewise.
12144 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12146         [BZ #13553]
12147         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12148         for non-gcc.
12149         * argp/argp-fmtstream.h: Use const instead __const.
12150         * argp/argp.h: Likewise.
12151         * assert/assert.h: Likewise.
12152         * bits/fenv.h: Likewise.
12153         * bits/sched.h: Likewise.
12154         * bits/sigset.h: Likewise.
12155         * bits/sigthread.h: Likewise.
12156         * catgets/nl_types.h: Likewise.
12157         * conform/data/pthread.h-data: Likewise.
12158         * crypt/crypt-private.h: Likewise.
12159         * crypt/crypt.h: Likewise.
12160         * crypt/crypt_util.c: Likewise.
12161         * ctype/ctype.h: Likewise.
12162         * debug/execinfo.h: Likewise.
12163         * debug/mbsnrtowcs_chk.c: Likewise.
12164         * debug/mbsrtowcs_chk.c: Likewise.
12165         * debug/wcsnrtombs_chk.c: Likewise.
12166         * debug/wcsrtombs_chk.c: Likewise.
12167         * debug/wcstombs_chk.c: Likewise.
12168         * dirent/dirent.h: Likewise.
12169         * dlfcn/dlfcn.h: Likewise.
12170         * elf/neededtest4.c: Likewise.
12171         * grp/grp.h: Likewise.
12172         * gshadow/gshadow.h: Likewise.
12173         * iconv/gconv.h: Likewise.
12174         * iconv/gconv_int.h: Likewise.
12175         * iconv/gconv_simple.c: Likewise.
12176         * iconv/iconv.h: Likewise.
12177         * iconv/loop.c: Likewise.
12178         * iconv/skeleton.c: Likewise.
12179         * include/aio.h: Likewise.
12180         * include/aliases.h: Likewise.
12181         * include/argz.h: Likewise.
12182         * include/arpa/inet.h: Likewise.
12183         * include/assert.h: Likewise.
12184         * include/dirent.h: Likewise.
12185         * include/dlfcn.h: Likewise.
12186         * include/execinfo.h: Likewise.
12187         * include/fcntl.h: Likewise.
12188         * include/fenv.h: Likewise.
12189         * include/glob.h: Likewise.
12190         * include/grp.h: Likewise.
12191         * include/libintl.h: Likewise.
12192         * include/mntent.h: Likewise.
12193         * include/netdb.h: Likewise.
12194         * include/pwd.h: Likewise.
12195         * include/rpc/netdb.h: Likewise.
12196         * include/sched.h: Likewise.
12197         * include/search.h: Likewise.
12198         * include/shadow.h: Likewise.
12199         * include/signal.h: Likewise.
12200         * include/stdio.h: Likewise.
12201         * include/stdlib.h: Likewise.
12202         * include/string.h: Likewise.
12203         * include/sys/socket.h: Likewise.
12204         * include/sys/stat.h: Likewise.
12205         * include/sys/statfs.h: Likewise.
12206         * include/sys/statvfs.h: Likewise.
12207         * include/sys/syslog.h: Likewise.
12208         * include/sys/time.h: Likewise.
12209         * include/sys/uio.h: Likewise.
12210         * include/time.h: Likewise.
12211         * include/unistd.h: Likewise.
12212         * include/utmp.h: Likewise.
12213         * include/wchar.h: Likewise.
12214         * include/wctype.h: Likewise.
12215         * inet/aliases.h: Likewise.
12216         * inet/arpa/inet.h: Likewise.
12217         * inet/netinet/ether.h: Likewise.
12218         * inet/netinet/in.h: Likewise.
12219         * intl/libintl.h: Likewise.
12220         * io/bits/fcntl2.h: Likewise.
12221         * io/fcntl.h: Likewise.
12222         * io/ftw.h: Likewise.
12223         * io/sys/poll.h: Likewise.
12224         * io/sys/stat.h: Likewise.
12225         * io/sys/statfs.h: Likewise.
12226         * io/sys/statvfs.h: Likewise.
12227         * io/utime.h: Likewise.
12228         * libio/bits/stdio.h: Likewise.
12229         * libio/bits/stdio2.h: Likewise.
12230         * libio/libio.h: Likewise.
12231         * libio/libioP.h: Likewise.
12232         * libio/stdio.h: Likewise.
12233         * locale/lc-ctype.c: Likewise.
12234         * locale/locale.h: Likewise.
12235         * login/utmp.h: Likewise.
12236         * malloc/arena.c: Likewise.
12237         * malloc/malloc.c: Likewise.
12238         * malloc/malloc.h: Likewise.
12239         * malloc/mcheck.c: Likewise.
12240         * malloc/mtrace.c: Likewise.
12241         * math/bits/mathcalls.h: Likewise.
12242         * math/fenv.h: Likewise.
12243         * math/math_private.h: Likewise.
12244         * misc/bits/error.h: Likewise.
12245         * misc/bits/syslog.h: Likewise.
12246         * misc/err.h: Likewise.
12247         * misc/error.h: Likewise.
12248         * misc/fstab.h: Likewise.
12249         * misc/mntent.h: Likewise.
12250         * misc/regexp.h: Likewise.
12251         * misc/search.h: Likewise.
12252         * misc/sgtty.h: Likewise.
12253         * misc/sys/mman.h: Likewise.
12254         * misc/sys/syslog.h: Likewise.
12255         * misc/sys/uio.h: Likewise.
12256         * misc/sys/xattr.h: Likewise.
12257         * misc/ttyent.h: Likewise.
12258         * nis/rpcsvc/ypclnt.h: Likewise.
12259         * nss/nss.h: Likewise.
12260         * posix/bits/unistd.h: Likewise.
12261         * posix/fnmatch.h: Likewise.
12262         * posix/glob.h: Likewise.
12263         * posix/sched.h: Likewise.
12264         * posix/spawn.h: Likewise.
12265         * posix/sys/wait.h: Likewise.
12266         * posix/unistd.h: Likewise.
12267         * posix/wordexp.h: Likewise.
12268         * pwd/pwd.h: Likewise.
12269         * resolv/netdb.h: Likewise.
12270         * resource/sys/resource.h: Likewise.
12271         * rt/aio.h: Likewise.
12272         * rt/bits/mqueue2.h: Likewise.
12273         * rt/mqueue.h: Likewise.
12274         * shadow/shadow.h: Likewise.
12275         * signal/signal.h: Likewise.
12276         * socket/send.c: Likewise.
12277         * socket/sendto.c: Likewise.
12278         * socket/sys/socket.h: Likewise.
12279         * stdio-common/printf.h: Likewise.
12280         * stdlib/bits/stdlib.h: Likewise.
12281         * stdlib/fmtmsg.h: Likewise.
12282         * stdlib/monetary.h: Likewise.
12283         * stdlib/stdlib.h: Likewise.
12284         * stdlib/ucontext.h: Likewise.
12285         * streams/stropts.h: Likewise.
12286         * string/argz.h: Likewise.
12287         * string/bits/string2.h: Likewise.
12288         * string/string.h: Likewise.
12289         * string/strings.h: Likewise.
12290         * sunrpc/rpc/auth.h: Likewise.
12291         * sunrpc/rpc/auth_des.h: Likewise.
12292         * sunrpc/rpc/clnt.h: Likewise.
12293         * sunrpc/rpc/netdb.h: Likewise.
12294         * sunrpc/rpc/pmap_clnt.h: Likewise.
12295         * sunrpc/rpc/xdr.h: Likewise.
12296         * sysdeps/generic/inttypes.h: Likewise.
12297         * sysdeps/generic/net/if.h: Likewise.
12298         * sysdeps/generic/sys/swap.h: Likewise.
12299         * sysdeps/gnu/net/if.h: Likewise.
12300         * sysdeps/gnu/utmpx.h: Likewise.
12301         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12302         * sysdeps/i386/i486/bits/string.h: Likewise.
12303         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12304         * sysdeps/s390/bits/string.h: Likewise.
12305         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12306         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12307         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12308         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12309         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12310         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12311         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12312         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12313         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12314         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12315         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12316         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12317         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12318         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12319         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12320         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12321         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12322         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12323         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12324         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12325         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12326         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12327         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12328         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12329         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12330         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12331         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12332         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12333         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12334         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12335         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12336         * sysvipc/sys/ipc.h: Likewise.
12337         * sysvipc/sys/msg.h: Likewise.
12338         * sysvipc/sys/sem.h: Likewise.
12339         * sysvipc/sys/shm.h: Likewise.
12340         * termios/termios.h: Likewise.
12341         * time/sys/time.h: Likewise.
12342         * time/time.h: Likewise.
12343         * wcsmbs/bits/wchar2.h: Likewise.
12344         * wcsmbs/uchar.h: Likewise.
12345         * wcsmbs/wchar.h: Likewise.
12346         * wctype/wctype.h: Likewise.
12348         [BZ #13551]
12349         * Makeconfig: Remove all but ELF support including AIX support.
12350         * Makerules: Likewise.
12351         * config.h.in: Likewise.
12352         * config.make.in: Likewise.
12353         * configure: Likewise.
12354         * configure.in: Likewise.
12355         * csu/Makefile: Likewise.
12356         * csu/version.c: Likewise.
12357         * debug/Makefile: Likewise.
12358         * dlfcn/Makefile: Likewise.
12359         * elf/Makefile: Likewise.
12360         * extra-lib.mk: Likewise.
12361         * iconv/Makefile: Likewise.
12362         * include/libc-symbols.h: Likewise.
12363         * include/shlib-compat.h: Likewise.
12364         * resolv/Makefile: Likewise.
12365         * resolv/res_libc.c: Likewise.
12366         * rt/Makefile: Likewise.
12367         * sysdeps/i386/asm-syntax.h: Likewise.
12368         * sysdeps/i386/sysdep.h: Likewise.
12369         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12370         * sysdeps/mach/sysdep.h: Likewise.
12371         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12372         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12373         * sysdeps/s390/asm-syntax.h: Likewise.
12374         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12375         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12376         * sysdeps/sh/sysdep.h: Likewise.
12377         * sysdeps/unix/sparc/sysdep.h: Likewise.
12378         * sysdeps/wordsize-32/divdi3.c: Likewise.
12379         * sysdeps/x86_64/sysdep.h: Likewise.
12381         * argp/Versions: Remove _argp_unlock_xxx.
12383         [BZ #13559]
12384         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12385         * abilist/libBrokenLocale.abilist: Likewise.
12386         * abilist/libanl.abilist: Likewise.
12387         * abilist/libc.abilist: Likewise.
12388         * abilist/libcrypt.abilist: Likewise.
12389         * abilist/libdl.abilist: Likewise.
12390         * abilist/libm.abilist: Likewise.
12391         * abilist/libnsl.abilist: Likewise.
12392         * abilist/libpthread.abilist: Likewise.
12393         * abilist/libresolv.abilist: Likewise.
12394         * abilist/librt.abilist: Likewise.
12395         * abilist/libthread_db.abilist: Likewise.
12396         * abilist/libutil.abilist: Likewise.
12397         * abilist/libnss_db.abilist: New file.
12399         * scripts/abilist.awk: Add support for indirect functions.
12401         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12403         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12405         * shlib-versions: Remove entries for ports architectures.
12407         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12408         files in ports.
12409         * elf/stackguard-macros.h: Remove support for IA-64.
12410         * elf/tst-auditmod1.c: Likewise.
12411         * sysdeps/generic/ldsodefs.h: Likewise.
12413         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12414         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12415         configure files.
12417         [BZ #13552]
12418         * configure.in: Remove --enable-omitfp support.
12419         * FAQ.in: Adjust.
12420         * config.make.in: Likewise.
12421         * Makeconfig: Likewise.
12422         * manual/install.texi: Likewise.
12424         In case anyone cares, the IA-64 architecture could move to ports.
12425         * sysdeps/ia64/*: Removed.
12426         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12427         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12429         [BZ #13555]
12430         * configure.in: Remove entries for unsupported architectures.
12432         [BZ #13533]
12433         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12434         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12435         routines.
12436         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12437         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12438         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12439         fall back to using wcrtomb.
12440         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12441         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12442         renaming.
12443         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12444         * wcsmbs/tst-c16c32-1.c: New file.
12446         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12447         local variable.
12449         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12451         * elf/tst-unique3.cc: Add explicit declaration of gets.
12452         * elf/tst-unique3lib.cc: Likewise.
12453         * elf/tst-unique3lib2.cc: Likewise.
12454         * elf/tst-unique4.cc: Likewise.
12456         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12458 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12460         [BZ #13566]
12461         * assert/assert.h (static_assert): Don't define for C++.
12462         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12463         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12465 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12467         * iconv/loop.c (single loop): Fix assertion in storing of
12468         remaining bytes.
12470         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12472 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12474         * posix/getconf.c: Update copyright year.
12475         * nss/getent.c: Likewise.
12476         * nss/makedb.c: Likewise.
12477         * iconv/iconvconfig.c: Likewise.
12478         * iconv/iconv_prog.c: Likewise.
12479         * elf/ldconfig.c: Likewise.
12480         * elf/pldd.c: Likewise.
12481         * elf/sotruss.ksh: Likewise.
12482         * catgets/gencat.c: Likewise.
12483         * csu/version.c: Likewise.
12484         * elf/ldd.bash.in: Likewise.
12485         * elf/sprof.c (print_version): Likewise.
12486         * locale/programs/locale.c: Likewise.
12487         * locale/programs/localedef.c: Likewise.
12488         * login/programs/pt_chown.c: Likewise.
12489         * nscd/nscd.c (print_version): Likewise.
12490         * debug/xtrace.sh: Likewise.
12491         * malloc/memusage.sh: Likewise.
12492         * malloc/mtrace.pl: Likewise.
12493         * debug/catchsegv.sh: Likewise.
12495 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12497         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12498         pure attribute.
12500 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12502         [BZ #13533]
12503         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12504         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12505         transformations.
12506         * iconv/gconv_int.h: Likewise.
12507         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12508         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12509         from libc for GLIBC_2.16.
12510         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12511         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12512         * wcsmbs/uchar.h: Really define mbstate_t.
12513         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12514         * wcsmbs/c16rtomb.c: New file.
12515         * wcsmbs/mbrtoc16.c: New file.
12516         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12517         for C/POSIX locale.
12518         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12519         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12521         * wcsmbs/wchar.h: Add missing __restrict.
12523 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12525         [BZ #13532]
12526         * time/Makefile (routines): Add timespec_get.
12527         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12528         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12529         timespec for ISO C11.
12530         * time/timespec_get.c: New file.
12531         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12532         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12534         [BZ #13531]
12535         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12536         * stdlib/stdlib.h: Declare aligned_alloc.
12537         * Versions.def: Add GLIBC_2.16 for libc.
12538         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12540         [BZ 13527]
12541         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12542         ISO C11.
12544         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12545         code.
12547         [BZ #13528]
12548         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12550         [BZ #13529]
12551         * assert/assert.h (static_assert): Define.
12553         * version.h: Update for 2.16 development version.
12555         [BZ #13526]
12556         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12557         _ISOC11_SOURCE.
12559         * version.h (RELEASE): Bump for 2.15 release.
12560         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12562         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12563         Patch by Marek Polacek <mpolacek@redhat.com>.
12565         * bits/byteswap.h: Protect long long constants with __extension__.
12566         * sysdeps/i386/bits/byteswap.h: Likewise.
12567         * sysdeps/ia64/bits/byteswap.h: Likewise.
12568         * sysdeps/s390/bits/byteswap.h: Likewise.
12569         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12571 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12573         [BZ #13540]
12574         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12575         destination buffer.
12576         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12578 2011-12-23  Marek Polacek  <polacek@redhat.com>
12580         * elf/dl-addr.c (determine_info): Add inline keyword.
12581         * elf/tst-auditmod4b.c (check_avx): Likewise.
12582         * elf/tst-auditmod6b.c (check_avx): Likewise.
12583         * elf/tst-auditmod6c.c (check_avx): Likewise.
12584         * elf/tst-auditmod7b.c (check_avx): Likewise.
12586 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12588         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12589         !__SSE_MATH__.
12591 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12593         [BZ #13540]
12594         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12595         processing for last bytes.
12597 2011-08-06  Bruno Haible  <bruno@clisp.org>
12599         [BZ #13061]
12600         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12601         U+0385, not to U+1FEE.
12603         [BZ #13062]
12604         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12605         entry for U+00A5 U+0301.
12607 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12609         [BZ #13166]
12610         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12611         buffer for the output is too small.
12613         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12614         optimization.
12616         [BZ #13185]
12617         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12618         SSE flags if possible.
12620 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12622         [BZ #13540]
12623         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12624         processing for last bytes.
12626 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12628         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12629         (syscall-list-default-options, syscall-list-default-condition)
12630         (syscall-list-includes): Define.
12631         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12632         list of ABIs and options and #if conditions for each ABI.  Do not
12633         handle common syscalls between ABIs specially.
12634         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12635         Remove.
12636         (syscall-list-variants, syscall-list-32bit-options)
12637         (syscall-list-32bit-condition, syscall-list-64bit-options)
12638         (syscall-list-64bit-condition): Define.
12639         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12640         (syscall-list-variants, syscall-list-32bit-options)
12641         (syscall-list-32bit-condition, syscall-list-64bit-options)
12642         (syscall-list-64bit-condition): Define.
12643         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12644         Remove.
12645         (syscall-list-variants, syscall-list-32bit-options)
12646         (syscall-list-32bit-condition, syscall-list-64bit-options)
12647         (syscall-list-64bit-condition): Define.
12648         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12649         Remove.
12650         (syscall-list-variants, syscall-list-32bit-options)
12651         (syscall-list-32bit-condition, syscall-list-64bit-options)
12652         (syscall-list-64bit-condition): Define.
12654 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12656         * locale/iso-639.def: Add brx entry.
12658         [BZ #13328]
12659         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12660         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12662         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12663         __feraiseexcept_renamed.
12665 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12667         [BZ #13538]
12668         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12669         EPOLLET with unsigned values.
12670         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12671         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12673         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12674         to large cancellation.
12675         * math/s_cacoshf.c: Likewise.
12676         * math/s_cacoshl.c: Likewise.
12678 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12680         [BZ #13305]
12681         [BZ #12786]
12682         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12683         * math/s_cacoshf.c: Likewise.
12684         * math/s_cacoshl.c: Likewise.
12686 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12688         [BZ #13439]
12689         * iconv/gconv.h: Define __GCONV_SWAP.
12690         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12691         * iconvdata/utf-16.c: Likewise.
12692         * iconvdata/utf-32.c: Likewise.
12694 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12696         [BZ #13524]
12697         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12698         numerator after shifting it by one limb.
12700 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12702         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12703         under [__USE_EXTERN_INLINES].
12705 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12707         [BZ #13446]
12708         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12710 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12712         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12713         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12714         optimized code.
12715         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12716         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12717         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12718         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12719         for strncasecmp/strncasecmp_l compilation.
12720         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12721         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12723 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12725         [BZ #13484]
12726         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12727         of __asm__.
12729 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12731         [BZ #13506]
12732         * time/tzfile.c (__tzfile_read): Check values from file header.
12734 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12736         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12737         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12738         * powerpc/powerpc32/dl-start.S: Likewise.
12739         * powerpc/powerpc32/elf/start.S: Likewise.
12740         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12741         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12742         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12743         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12744         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12745         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12746         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12747         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12748         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12749         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12750         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12751         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12752         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12753         * powerpc/powerpc32/memset.S: Likewise.
12754         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12755         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12756         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12757         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12758         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12759         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12760         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12761         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12762         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12763         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12764         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12765         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12766         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12768 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12770         * math/libm-test.inc: Added more nearbyint tests.
12771         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12772         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12773         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12774         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12776 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12778         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12779         FD_CLOEXEC.
12781 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12783         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12784         Add wcscpy-ssse3 wcscpy-c.
12785         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12786         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12787         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12788         * sysdeps/x86_64/wcschr.S: New file.
12789         * sysdeps/x86_64/wcsrchr.S: New file.
12790         * string/test-strcmp.c: Remove checking of wcscmp function for
12791         wrong alignments.
12792         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12793         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12794         wcsrchr-sse2 wcsrchr-c.
12795         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12796         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12797         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12798         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12799         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12800         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12801         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12802         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12803         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12804         * wcsmbc/wcschr.c (WCSCHR): New macro.
12806 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12808         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12809         * wcsmbs/test-wcsrchr.c: New file.
12810         * string/test-strrchr.c: Add wcsrchr support.
12811         (WIDE): New macro.
12812         * wcsmbs/test-wcscpy.c: New file.
12813         * string/test-strcpy.c: Add wcscpy support.
12814         (WIDE): New macro.
12816 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12818         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12819         the inner loop.
12821 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12823         [BZ #13472]
12824         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12826 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12828         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12829         Minor optimizations.
12831         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12832         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12833         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12835 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12837         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12838         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12839         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12840         for gcc to avoid warnings.
12841         * inet/Makefile (tests): Add tst-checks.
12842         * inet/tst-checks.c: New file.
12844         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12845         warning.
12847         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12848         __wmemcmp_sse2.
12850         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12851         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12853         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12855 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12857         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12858         problem.
12860         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12862 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12864         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12865         conditional on GCC version.
12866         (__arch_compare_and_exchange_val_8_acq)
12867         (__arch_compare_and_exchange_val_16_acq)
12868         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12869         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12870         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12872 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12874         * sysdeps/sh/backtrace.c: New file.
12876 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12878         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12879         parenthesis.
12881 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12883         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12884         falling back to utime.
12886 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12888         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12889         expectations for float.
12891 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12893         * locale/weight.h (findidx): Add parameter len.
12894         * locale/weightwc.h (findidx): Likewise.
12895         * posix/fnmatch_loop.c (FCT): Adjust caller.
12896         * posix/regcomp.c (build_equiv_class): Likewise.
12897         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12898         * posix/regexec.c (check_node_accept_bytes): Likewise.
12899         * string/strcoll_l.c (STRCOLL): Likewise.
12900         * string/strxfrm_l.c (STRXFRM): Likewise.
12902 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12904         * Makefile.in: Remove CVSOPT handling.
12905         * configure.in: Remove use of AC_REVISION.
12906         * iconvdata/Makefile (distribute): No need to filter out CVS.
12907         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12908         handling.
12910 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12912         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12913         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12914         [USE_AS_STRNCASECMP_L]: Likewise.
12915         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12916         NO_TLS_DIRECT_SEG_REFS.
12917         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12918         Fix argument offsets for non-PIC.
12919         [USE_AS_STRNCASECMP_L]: Likewise.
12920         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12921         NO_TLS_DIRECT_SEG_REFS.
12923 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12925         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12926         O_CLOEXEC.
12927         * locale/loadlocale.c (_nl_load_locale): Likewise.
12929 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12931         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12932         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12933         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12934         (SYSCALL_GETTIME): Set errno on error.
12936         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12937         count references to noai6ai_cached.
12939 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12941         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12943         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12944         FD_CLOEXEC for /proc/self/maps.
12946         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12947         FD_CLOEXEC for /proc/meminfo.
12949         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12950         gai.conf.
12952         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12953         FD_CLOEXEC for given file.
12955         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12957         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12958         FD_CLOEXEC for /etc/hosts.
12959         (_gethtent): Likewise.
12961         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12963         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12964         cancellation and set FD_CLOEXEC for /etc/netgroup.
12966         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12967         reading /etc/publickey.
12969         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12970         allow cancellation when reading /etc/group.
12972         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12973         cancellation.
12974         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12976         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12977         when using data file.
12979         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12981         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12982         (write_nis_obj): Use "c" and "e" in fopen.
12984         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12986         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12988         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12990         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12992         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12993         locale.alias.
12995         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12997         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12999         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13001         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13002         file parsing and set FD_CLOEXEC.
13004 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13006         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13008 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13010         * malloc/arena.c (arena_get2): Don't call reused_arena when
13011         _int_new_arena failed.
13013 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13015         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13016         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13017         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13018         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13019         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13020         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13021         to compile strcasecmp and strncasecmp.
13022         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13023         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13025         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13027 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13029         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13030         locale-defines.sym to gen-as-const-headers.
13031         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13032         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13033         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13034         to compile strcasecmp and strncasecmp.
13035         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13036         strcasecmp_l and strncasecmp_l.
13037         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13038         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13039         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13040         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13041         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13042         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13043         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13044         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13045         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13046         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13047         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13049 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13051         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13052         result of SYSDEP_GETTIME_CPU to retval.
13053         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13054         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13056         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13057         variable.
13059         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13060         mantissa words.
13061         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13063         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13064         from unused variable.
13066         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13067         DWARF definitions.
13068         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13069         for assembling.
13071         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13072         over namespaces.
13074         * sunrpc/rpc_prot.c (rejected): Fix case value.
13076         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13077         unsigned long long int to avoid warnings in shift.
13079         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13080         of use of trans.
13081         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13082         variable tmp.
13084         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13085         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13086         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13088         * nis/nis_table.c (nis_list): Use variable of correct type for
13089         result of __follow_path call.
13091 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13093         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13094         of math functions ceil, trunc, floor, round, and sqrt, when
13095         avaliable on the platform.
13096         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13097         name clash.
13098         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13099         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13100         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13102 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13104         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13105         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13107 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13109         * include/unistd.h: Fix __readlink return type.
13110         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13112 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13114         * stdlib/ucontext.h: Undo last change for makecontext.
13116 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13118         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13120         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13121         * setjmp/setjmp.h: Mark functions as non-leaf.
13122         * setjmp/bits/setjmp2.h: Likewise.
13123         * stdlib/ucontext.h: Likewise.
13125 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13127         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13128         (reused_arena): Don't check arena limit.
13129         (arena_get2): Atomically check arena limit.
13131 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13133         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13134         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13136         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13137         instructions.
13139 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13141         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13142         handler when locking.
13144         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13145         Fix size of allocated buffer.
13147 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13149         [BZ #10103]
13150         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13151         declarations for long double functions.
13152         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13154         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13156 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13158         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13159         installed.
13161         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13162         is disabled.
13164 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13166         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13168 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13170         * include/alloca.h (stackinfo_alloca_round): Define.
13171         (extend_alloca): Use it.
13172         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13173         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13174         here.
13176         * scripts/check-local-headers.sh: Ignore libaudit.h.
13178         * nscd/Makefile (extra-objs): Make recursively expanded.
13180 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13182         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13183         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13185         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13186         * posix/tst-rfc3484-2.c: Likewise.
13187         * posix/tst-rfc3484-3.c: Likewise.
13189         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13190         process_vm_writev.
13191         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13192         process_vm_writev.
13193         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13194         process_vm_writev from libc using GLIBC_2.15 version.
13196         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13198 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13200         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13201         stack usage.
13203 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13205         [BZ #13367]
13206         * nss/getent.c (initgroups_keys): Show error message in case no group
13207         names are given.
13209         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13210         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13211         __bump_nl_timestamp.
13212         * nscd/connections (nscd_init): When host database is served open
13213         netlink socket and request notification about configuration changes.
13214         (main_loop_poll): Track netlink file descriptor and bump timestamp
13215         in case data becomes available.
13216         (main_loop_epoll): Likewise.
13217         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13218         (database_pers_head): Add extra_data fileds.
13219         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13220         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13221         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13222         Adjust caller.
13223         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13224         in6ai data, call __free_in6ai.
13225         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13226         Add -DHAVE_NETLINK.
13227         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13228         interface information.  Reuse previous data if netlink timestamp
13229         is not changed.
13230         (__bump_nl_timestamp): New function.
13231         (__free_in6ai): New function.
13233 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13235         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13236         close_not_cancel_no_status here.
13237         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13239 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13241         [BZ #13276]
13242         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13243         return value.
13245         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13246         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13247         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13249 2011-07-03  Andreas Jaeger  <aj@suse.de>
13251         [BZ #10709]
13252         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13253         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13254         * math/libm-test.inc (sin_test): Add test case.
13256 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13258         [BZ #13337]
13259         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13260         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13262         * elf/chroot_canon.c (chroot_canon): Cleanups.
13264         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13266         [BZ #13335]
13267         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13268         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13270         * string/test-strchr.c: Make usable for strchrnul testing.
13271         * string/test-strchrnul.c: New file.
13272         * string/Makefile (strop-tests): Add strchrnul.
13274         * po/it.po: Update from translation team.
13275         * po/es.po: Likewise.
13277 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13279         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13280         the three constants needed as parameters.  Drop the others.
13281         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13282         __m128i_strloadu_tolower.
13283         Create and initialize variable zero and use it in all the places
13284         where _mm_setzero_si128 was used.
13286         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13287         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13288         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13289         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13290         anymore.
13291         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13292         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13293         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13294         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13295         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13296         __mpranred, __mptan.
13297         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13298         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13299         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13300         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13301         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13302         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13303         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13304         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13305         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13307 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13309         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13310         redefine if SHARED.
13311         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13313         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13314         wide char related routines to wcsmbs subdir.
13316 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13318         [BZ #13344]
13319         * misc/sys/cdefs.h (__THROWNL): Define.
13320         * posix/unistd.h: Use __THREADNL instead of __THREAD
13321         for memory synchronization functions.
13323 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13325         [BZ #13349]
13326         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13327         doesn't exist.
13328         * manual/stdio.texi (Obstack Streams): Node removed.
13330 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13332         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13333         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13334         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13336         * math/math_private.h (math_force_eval): Allow non-addressable
13337         arguments.
13338         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13340 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13342         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13343         file is not needed.
13345         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13346         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13347         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13348         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13349         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13350         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13351         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13352         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13353         Add AVX variants.
13354         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13355         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13356         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13357         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13358         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13359         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13360         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13361         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13362         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13363         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13364         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13365         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13366         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13367         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13368         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13369         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13370         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13371         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13372         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13374         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13375         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13377         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13378         place.  Use VEX encoding when compiling for AVX.
13380 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13382         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13383         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13385         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13387 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13389         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13390         useless if() expression.
13391         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13392         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13393         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13394         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13395         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13396         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13397         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13398         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13399         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13400         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13401         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13402         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13403         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13404         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13405         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13406         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13407         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13408         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13409         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13411         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13413 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13415         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13416         condition.
13417         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13419 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13421         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13422         .text section.  Avoid duplicate constants.
13423         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13424         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13425         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13426         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13427         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13428         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13429         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13430         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13431         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13432         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13433         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13434         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13435         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13436         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13437         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13438         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13439         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13440         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13441         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13442         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13443         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13444         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13445         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13446         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13447         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13448         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13449         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13450         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13451         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13452         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13453         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13454         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13455         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13456         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13457         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13458         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13459         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13460         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13461         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13462         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13463         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13464         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13465         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13466         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13467         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13469 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13471         * sysdeps/x86_64/dla.h: Move to ...
13472         * sysdeps/x86_64/fpu/dla.h: ...here.
13473         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13474         situations.  Use __builtin_fma only for gcc 4.6 and up.
13476         * config.make.in: Add have-mfma4 entry.
13477         * configure.in: Substitute libc_cv_cc_fma4.
13478         * math/Makefile (dbl-only-routines): Add sincostab.
13479         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13480         Use __sincostab not sincos.
13481         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13482         name is a macro.
13483         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13484         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13485         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13486         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13487         using __copysign.
13488         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13489         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13490         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13491         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13492         and __inv.
13493         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13494         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13495         __copysign.
13496         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13497         define aliases when function name is a macro.
13498         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13499         sysdeps/ieee754/dbl-64/sincos.tbl.
13500         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13501         fma4-enabled routines.
13502         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13503         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13504         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13505         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13506         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13507         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13508         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13509         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13510         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13511         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13512         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13513         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13514         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13515         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13516         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13517         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13518         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13519         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13520         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13521         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13522         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13523         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13524         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13525         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13526         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13527         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13528         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13529         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13530         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13531         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13533         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13534         rename.
13535         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13536         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13537         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13538         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13539         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13540         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13541         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13542         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13544 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13546         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13548 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13550         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13552         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13553         prediction.
13554         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13556         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13557         Remove unused variable magic_bits.
13558         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13560         * string/strnlen.c: Define and use STRNLEN macro.
13561         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13562         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13563         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13564         * wcsmbs/wcslen.c: Define and use WCSLEN.
13565         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13566         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13567         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13568         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13569         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13570         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13571         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13573 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13575         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13576         strnlen-sse2-no-bsf.
13577         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13578         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13579         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13580         Add strnlen support.
13581         (USE_AS_STRNLEN): New macro.
13582         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13583         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13584         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13585         * sysdeps/x86_64/wcslen.S: New file.
13587 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13589         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13590         XMM-moves are used for copying on small sizes.
13592 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13594         * wcsmbs/Makefile (strop-tests): Add wcschr.
13595         * wcsmbs/test-wcschr.c: New file.
13596         * string/test-strchr.c: Update.
13597         Add wcschr support.
13598         (WIDE): New macro.
13600 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13602         * wcsmbs/Makefile (strop-tests): Add wcslen.
13603         * wcsmbs/test-wcslen.c: New file.
13604         * string/test-strlen.c: Update.
13605         Add wcslen support.
13606         (WIDE): New macro.
13608 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13610         * po/it.po: Update from translation team.
13612 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13614         * sysdeps/x86_64/wcscmp.S: Update.
13615         Fix wrong comparison semantics.
13616         wcscmp shall use signed comparison not unsigned.
13617         Don't use substraction to avoid overflow bug.
13618         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13619         * wcsmbc/wcscmp.c: Likewise.
13620         * string/test-strcmp.c: Likewise.
13621         Add new tests to check cases with negative values.
13623 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13625         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13626         * sysdeps/x86_64/dla.h: ...here.  New file.
13627         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13628         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13629         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13630         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13631         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13632         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13633         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13634         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13635         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13637 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13639         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13640         __ynl_finite aliases.
13642 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13644         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13646         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13647         define DLA_FMA.
13648         [DLA_FMA] (EMULV): Use DLA_FMA.
13649         [DLA_FMA] (MUL12): Use EMULV.
13650         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13651         that are not needed.
13652         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13653         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13654         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13655         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13656         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13657         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13658         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13660 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13662         * math/s_nan.c: Undef __nan.
13663         * math/s_nanf.c: Undef __nanf.
13664         * math/s_nanl.c: Undef __nanl.
13665         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13666         "math_private.h".
13668 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13670         * math/s_catan.c: Add branch predictions.
13671         * math/s_catanf.c: Likewise.
13672         * math/s_catanh.c: Likewise.
13673         * math/s_catanhf.c: Likewise.
13674         * math/s_catanhl.c: Likewise.
13675         * math/s_catanl.c: Likewise.
13676         * math/s_cexp.c: Likewise.
13677         * math/s_cexpf.c: Likewise.
13678         * math/s_cexpl.c: Likewise.
13679         * math/s_clog.c: Likewise.
13680         * math/s_clog10.c: Likewise.
13681         * math/s_clog10f.c: Likewise.
13682         * math/s_clog10l.c: Likewise.
13683         * math/s_clogf.c: Likewise.
13684         * math/s_clogl.c: Likewise.
13685         * math/s_csqrt.c: Likewise.
13686         * math/s_csqrtf.c: Likewise.
13687         * math/s_csqrtl.c: Likewise.
13688         * math/s_ctanf.c: Likewise.
13689         * math/s_ctanh.c: Likewise.
13690         * math/s_ctanhf.c: Likewise.
13691         * math/s_ctanhl.c: Likewise.
13692         * math/s_ctanl.c: Likewise.
13694         * math/math_private.h: Define __nan, __nanf, __nanl.
13695         * math/s_cacosh.c: Include <math_private.h>.
13696         * math/s_cacoshl.c: Likewise.
13697         * math/s_casinh.c: Likewise.
13698         * math/s_casinhf.c: Likewise.
13699         * math/s_casinhl.c: Likewise.
13700         * math/s_ccos.c: Rely entire on ccosh.
13701         * math/s_ccosf.c: Rely entire on ccoshf.
13702         * math/s_ccosl.c: Rely entirely on ccoshl.
13703         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13704         Remove tests for FE_INVALID.
13705         * math/s_ccoshf.c: Likewise.
13706         * math/s_ccoshl.c: Likewise.
13707         * math/s_csin.c: Likewise.
13708         * math/s_csinf.c: Likewise.
13709         * math/s_csinh.c Likewise.
13710         * math/s_csinhf.c: Likewise.
13711         * math/s_csinhl.c: Likewise.
13712         * math/s_csinl.c: Likewise.
13713         * math/s_ctan.c: Likewise.
13714         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13715         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13716         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13718 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13720         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13721         compilation problems.
13723         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13724         __builtin_expect.
13726 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13728         * sysdeps/i386/configure.in: Test for -mfma4 option.
13729         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13730         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13731         COMMON_CPUID_INDEX_80000001.
13732         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13733         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13734         use it if FMA3 is not supported.
13735         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13737         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13738         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13740 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13742         [BZ #12892]
13743         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13744         it would create a cycle with a link time dependency.
13746 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13748         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13749         instruction.
13750         * string/Makefile (strop-tests): Add rawmemchr.
13751         * string/test-rawmemchr.c: New file.
13753         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13754         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13755         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13756         when compiling str{,n}casecmp and when AVX is available.  Hook up
13757         new optimized code in initializers.
13759 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13761         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13762         __feraiseexcept instead of feraiseexcept.
13764 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13766         * math/math_private.h: Define defaults for libc_fetestexcept and
13767         libc_feupdateenv.
13768         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13769         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13770         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13771         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13772         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13773         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13774         libc_fetestexcept and libc_feupdateenv.
13776         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13777         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13778         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13779         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13780         libc_feholdexcept_setround.
13782         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13783         Add s_nearbyint-c and s_nearbyintf-c.
13784         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13785         nearbyintf inlines.
13786         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13787         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13788         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13789         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13791         * math/math_private.h: Define defaults for libc_fegetround,
13792         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13793         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13794         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13795         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13796         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13797         standard functions.
13798         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13799         Remove comments and hacks for old compiler versions.
13800         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13801         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13802         libc_feholdexceptl.
13804 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13806         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13807         (__feraiseexcept_renamed): Add __NTH.
13808         (feraiseexcept): Add __NTH.  Rename local variables to fix
13809         namespace violations.
13811 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13813         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13815         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13817         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13818         recently added interfaces.
13819         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13821         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13822         about macro parameter expansion.
13824         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13825         __NO_MATH_INLINES is defined.  Cleanups.
13827         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13828         and __floorf is target has SSE4.1.
13829         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13830         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13831         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13832         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13834         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13835         name.
13836         (floorf): Likewise.
13838         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13840 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13842         * misc/sys/cdefs.h: Fix last change.
13844         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13845         database lookup.
13847 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13849         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13851         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13852         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13853         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13854         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13855         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13856         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13857         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13858         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13859         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13860         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13861         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13862         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13863         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13864         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13865         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13866         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13867         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13868         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13869         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13870         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13871         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13872         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13874         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13875         ceil, ceilf, floor, floorf.
13877         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13878         Perform IRELATIVE relocations last.
13880         * elf/do-rel.h: Add another parameter nrelative, replacing the
13881         local variable with the same name.  Change name of the function
13882         to end in Rel or Rela (uppercase).
13883         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13884         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13885         elf_dynamic_do_##reloc function.
13887 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13889         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13890         is sufficient, at least on modern CPUs.
13892         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13894         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13895         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13897         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13898         __expl_finite.
13899         * math/bits/math-finite.h: Add entries for exp.
13900         * math/e_expl.c: Add __*_finite alias.
13901         * sysdeps/i386/fpu/e_exp.S: Likewise.
13902         * sysdeps/i386/fpu/e_expf.S: Likewise.
13903         * sysdeps/i386/fpu/e_expl.c: Likewise.
13904         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13905         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13906         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13907         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13908         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13909         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13910         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13912         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13913         is sufficient, at least on modern CPUs.
13915         * ctype/ctype-info.c (__ctype_init): Define.
13916         * include/ctype.h (__ctype_init): Declare.
13917         (__ctype_b_loc): The variable is always initialized.
13918         (__ctype_toupper_loc): Likewise.
13919         (__ctype_tolower_loc): Likewise.
13920         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13921         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13923 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13925         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13927         * configure.in: Also look in $cxxmachine/include for C++ system
13928         headers.
13930 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13932         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13933         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13934         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13935         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13936         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13937         (USE_AS_WMEMCMP): New macro.
13938         Fixing indents.
13939         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13940         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13941         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13942         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13943         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13944         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13945         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13946         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13947         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13948         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13949         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13950         (USE_AS_WMEMCMP): New macro.
13951         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13952         * sysdeps/string/test-memcmp.c: Update.
13953         Fix simple_wmemcmp.
13954         Add new tests.
13955         * wcsmbs/wmemcmp.c: Update.
13956         (WMEMCMP): New macro.
13957         Fix overflow bug.
13959 2011-10-12  Andreas Jaeger  <aj@suse.de>
13961         [BZ #13268]
13962         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13964 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13966         * libio/iofwide.c (do_length): Avoid warning.
13968         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13970 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13972         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13974         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13975         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13976         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13977         * sysdeps/i386/i686/fpu/e_log.S: New file.
13978         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13979         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13981         * ctype/ctype.h: Add support for inlined isXXX functions when
13982         compiling C++ code.
13984 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13986         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13988         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13990 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13992         [BZ #13291]
13993         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13995 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13997         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13998         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13999         feraiseexcept.
14001         * sysdeps/x86_64/memrchr.S: Check for zero size.
14003         * string/stratcliff.c: Add memrchr tests.
14005 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14007         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14008         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14009         rawmemchr-sse2 rawmemchr-sse2-bsf.
14010         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14011         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14012         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14013         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14014         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14015         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14016         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14017         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14018         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14019         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14020         * string/memrchr.c (MEMRCHR): New macro.
14022 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14024         Add integration with gcc's -ffinite-math-only and optimize wrapper
14025         functions in libm.
14026         * Versions.def: Define GLIBC_2.15 version for libm.
14027         * math/Makefile (headers): Add bits/math-finite.h.
14028         * math/bits/math-finite.h: New file.
14029         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14030         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14031         * math/e_acoshl.c: Add __*_finite alias.
14032         * math/e_acosl.c: Likewise.
14033         * math/e_asinl.c: Likewise.
14034         * math/e_atan2l.c: Likewise.
14035         * math/e_atanhl.c: Likewise.
14036         * math/e_coshl.c: Likewise.
14037         * math/e_exp10.c: Likewise.
14038         * math/e_exp10f.c: Likewise.
14039         * math/e_exp10l.c: Likewise.
14040         * math/e_exp2l.c: Likewise.
14041         * math/e_fmodl.c: Likewise.
14042         * math/e_gammal_r.c: Likewise.
14043         * math/e_hypotl.c: Likewise.
14044         * math/e_j0l.c: Likewise.
14045         * math/e_j1l.c: Likewise.
14046         * math/e_jnl.c: Likewise.
14047         * math/e_lgammal_r.c: Likewise.
14048         * math/e_log10l.c: Likewise.
14049         * math/e_log2l.c: Likewise.
14050         * math/e_logl.c: Likewise.
14051         * math/e_powl.c: Likewise.
14052         * math/e_sinhl.c: Likewise.
14053         * math/e_sqrtl.c: Likewise.
14054         * math/e_scalb.c: Completely rewritten and optimized.
14055         * math/e_scalbf.c: Likewise.
14056         * math/e_scalbl.c: Likewise.
14057         * math/w_acos.c: Likewise.
14058         * math/w_acosf.c: Likewise.
14059         * math/w_acosl.c: Likewise.
14060         * math/w_acosh.c: Likewise.
14061         * math/w_acoshf.c: Likewise.
14062         * math/w_acoshl.c: Likewise.
14063         * math/w_asin.c: Likewise.
14064         * math/w_asinf.c: Likewise.
14065         * math/w_asinl.c: Likewise.
14066         * math/w_atan2.c: Likewise.
14067         * math/w_atan2f.c: Likewise.
14068         * math/w_atan2l.c: Likewise.
14069         * math/w_atanh.c: Likewise.
14070         * math/w_atanhf.c: Likewise.
14071         * math/w_atanhl.c: Likewise.
14072         * math/w_exp10.c: Likewise.
14073         * math/w_exp10f.c: Likewise.
14074         * math/w_exp10l.c: Likewise.
14075         * math/w_fmod.c: Likewise.
14076         * math/w_fmodf.c: Likewise.
14077         * math/w_fmodl.c: Likewise.
14078         * math/w_j0.c: Likewise.
14079         * math/w_j0f.c: Likewise.
14080         * math/w_j0l.c: Likewise.
14081         * math/w_j1.c: Likewise.
14082         * math/w_j1f.c: Likewise.
14083         * math/w_j1l.c: Likewise.
14084         * math/w_jn.c: Likewise.
14085         * math/w_jnf.c: Likewise.
14086         * math/w_log.c: Likewise.
14087         * math/w_logf.c: Likewise.
14088         * math/w_logl.c: Likewise.
14089         * math/w_log10.c: Likewise.
14090         * math/w_log10f.c: Likewise.
14091         * math/w_log10l.c: Likewise.
14092         * math/w_log2.c: Likewise.
14093         * math/w_log2f.c: Likewise.
14094         * math/w_log2l.c: Likewise.
14095         * math/w_pow.c: Likewise.
14096         * math/w_powf.c: Likewise.
14097         * math/w_powl.c: Likewise.
14098         * math/w_remainder.c: Likewise.
14099         * math/w_remainderf.c: Likewise.
14100         * math/w_remainderl.c: Likewise.
14101         * math/w_scalb.c: Likewise.
14102         * math/w_scalbf.c: Likewise.
14103         * math/w_scalbl.c: Likewise.
14104         * math/w_sqrt.c: Likewise.
14105         * math/w_sqrtf.c: Likewise.
14106         * math/w_sqrtl.c: Likewise.
14107         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14108         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14109         used.
14110         * math/math_private.h: Declare __kernel_standard_f.
14111         * math/w_cosh.c: Remove cruft and optimize a bit.
14112         * math/w_coshf.c: Likewise.
14113         * math/w_coshl.c: Likewise.
14114         * math/w_exp2.c: Likewise.
14115         * math/w_exp2f.c: Likewise.
14116         * math/w_exp2l.c: Likewise.
14117         * math/w_hypot.c: Likewise.
14118         * math/w_hypotf.c: Likewise.
14119         * math/w_hypotl.c: Likewise.
14120         * math/w_lgamma.c: Likewise.
14121         * math/w_lgamma_r.c: Likewise.
14122         * math/w_lgammaf.c: Likewise.
14123         * math/w_lgammaf_r.c: Likewise.
14124         * math/w_lgammal.c: Likewise.
14125         * math/w_lgammal_r.c: Likewise.
14126         * math/w_sinh.c: Likewise.
14127         * math/w_sinhf.c: Likewise.
14128         * math/w_sinhl.c: Likewise.
14129         * math/w_tgamma.c: Likewise.
14130         * math/w_tgammaf.c: Likewise.
14131         * math/w_tgammal.c: Likewise.
14132         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14133         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14134         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14135         Minor optimizations.  Pretty printing.  Remove cruft.
14136         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14137         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14138         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14139         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14140         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14141         * sysdeps/i386/fpu/e_asin.S: Likewise.
14142         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14143         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14144         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14145         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14146         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14147         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14148         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14149         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14150         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14151         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14152         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14153         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14154         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14155         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14156         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14157         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14158         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14159         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14160         * sysdeps/i386/fpu/e_log.S: Likewise.
14161         * sysdeps/i386/fpu/e_log10.S: Likewise.
14162         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14163         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14164         * sysdeps/i386/fpu/e_log2.S: Likewise.
14165         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14166         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14167         * sysdeps/i386/fpu/e_logf.S: Likewise.
14168         * sysdeps/i386/fpu/e_logl.S: Likewise.
14169         * sysdeps/i386/fpu/e_pow.S: Likewise.
14170         * sysdeps/i386/fpu/e_powf.S: Likewise.
14171         * sysdeps/i386/fpu/e_powl.S: Likewise.
14172         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14173         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14174         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14175         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14176         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14177         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14178         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14179         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14180         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14181         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14182         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14183         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14184         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14185         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14186         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14187         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14188         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14189         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14190         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14191         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14192         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14193         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14194         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14195         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14196         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14197         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14198         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14199         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14200         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14201         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14202         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14203         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14204         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14205         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14206         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14207         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14208         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14209         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14210         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14211         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14212         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14213         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14214         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14215         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14216         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14217         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14218         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14219         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14220         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14221         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14222         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14223         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14224         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14225         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14226         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14227         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14228         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14229         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14230         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14231         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14232         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14233         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14234         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14235         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14236         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14237         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14238         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14239         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14240         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14241         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14242         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14243         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14244         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14245         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14246         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14247         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14248         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14249         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14250         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14251         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14252         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14253         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14254         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14255         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14256         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14257         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14258         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14259         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14260         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14261         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14262         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14263         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14264         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14265         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14266         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14267         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14268         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14269         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14270         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14271         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14272         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14273         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14274         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14275         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14276         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14277         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14278         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14279         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14280         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14281         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14282         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14283         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14284         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14285         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14286         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14287         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14288         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14289         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14290         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14291         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14292         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14293         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14294         (__isnanf): Likewise.
14295         (__isinf_ns): Likewise.
14296         (__isinf_nsf): Likewise.
14297         (__finite): Likewise.
14298         (__finitef): Likewise.
14299         (__ieee754_sqrt): Define as macro.
14300         (__ieee754_sqrtf): Define as macro.
14301         (__ieee754_sqrtl): Define as macro.
14302         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14303         inlined copy.
14304         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14305         __FINITE_MATH_ONLY__ consistent.
14306         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14308 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14310         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14311         of rawmemchr.
14313         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14315 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14317         * po/ja.po: Update from translation team.
14319 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14321         * locale/programs/locarchive.c (prepare_address_space): New function.
14322         (create_archive, enlarge_archive, open_archive): Use it.
14324         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14325         inside [SHARED], where it is used.
14327         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14329         * nss/getent.c (netgroup_keys): Remove unused variable.
14330         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14332 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14334         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14335         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14336         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14337         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14338         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14339         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14340         * math/Makefile (libm-calls): Add s_isinf_ns.
14341         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14342         * math/multc3.c: Likewise.
14343         * math/s_casin.c: Likewise.
14344         * math/s_casinf.c: Likewise.
14345         * math/s_casinl.c: Likewise.
14346         * math/s_ccos.c: Likewise.
14347         * math/s_ccosf.c: Likewise.
14348         * math/s_ccosl.c: Likewise.
14349         * math/s_ctan.c: Likewise.
14350         * math/s_ctanf.c: Likewise.
14351         * math/s_ctanh.c: Likewise.
14352         * math/s_ctanhf.c: Likewise.
14353         * math/s_ctanhl.c: Likewise.
14354         * math/s_ctanl.c: Likewise.
14355         * math/w_fmod.c: Likewise.
14356         * math/w_fmodf.c: Likewise.
14357         * math/w_fmodl.c: Likewise.
14358         * math/w_remainder.c: Likewise.
14359         * math/w_remainderf.c: Likewise.
14360         * math/w_remainderl.c: Likewise.
14361         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14362         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14363         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14364         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14365         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14366         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14367         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14368         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14370         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14371         of the number.
14372         * stdio-common/printf_fphex.c: Likewise.
14373         * stdio-common/printf_size.c: Likewise.
14375         * math/e_exp10.c: Include math_private.h using <...> not "...".
14376         * math/e_exp10f.c: Likewise.
14377         * math/e_exp10l.c: Likewise.
14378         * math/e_exp2l.c: Likewise.
14379         * math/e_j0l.c: Likewise.
14380         * math/e_j1l.c: Likewise.
14381         * math/e_jnl.c: Likewise.
14382         * math/e_lgammal_r.c: Likewise.
14383         * math/e_rem_pio2l.c: Likewise.
14384         * math/e_scalb.c: Likewise.
14385         * math/e_scalbf.c: Likewise.
14386         * math/e_scalbl.c: Likewise.
14387         * math/k_cosl.c: Likewise.
14388         * math/k_sinl.c: Likewise.
14389         * math/k_tanl.c: Likewise.
14390         * math/s_cacoshf.c: Likewise.
14391         * math/s_catan.c: Likewise.
14392         * math/s_catanf.c: Likewise.
14393         * math/s_catanh.c: Likewise.
14394         * math/s_catanhf.c: Likewise.
14395         * math/s_catanhl.c: Likewise.
14396         * math/s_catanl.c: Likewise.
14397         * math/s_ccosh.c: Likewise.
14398         * math/s_ccoshf.c: Likewise.
14399         * math/s_ccoshl.c: Likewise.
14400         * math/s_cexp.c: Likewise.
14401         * math/s_cexpf.c: Likewise.
14402         * math/s_cexpl.c: Likewise.
14403         * math/s_clog.c: Likewise.
14404         * math/s_clog10.c: Likewise.
14405         * math/s_clog10f.c: Likewise.
14406         * math/s_clog10l.c: Likewise.
14407         * math/s_clogf.c: Likewise.
14408         * math/s_clogl.c: Likewise.
14409         * math/s_csin.c: Likewise.
14410         * math/s_csinf.c: Likewise.
14411         * math/s_csinh.c: Likewise.
14412         * math/s_csinhf.c: Likewise.
14413         * math/s_csinhl.c: Likewise.
14414         * math/s_csinl.c: Likewise.
14415         * math/s_csqrt.c: Likewise.
14416         * math/s_csqrtf.c: Likewise.
14417         * math/s_csqrtl.c: Likewise.
14418         * math/s_ctan.c: Likewise.
14419         * math/s_ctanf.c: Likewise.
14420         * math/s_ctanh.c: Likewise.
14421         * math/s_ctanhf.c: Likewise.
14422         * math/s_ctanhl.c: Likewise.
14423         * math/s_ctanl.c: Likewise.
14424         * math/s_ldexp.c: Likewise.
14425         * math/s_ldexpf.c: Likewise.
14426         * math/s_ldexpl.c: Likewise.
14427         * math/s_significand.c: Likewise.
14428         * math/s_significandf.c: Likewise.
14429         * math/s_significandl.c: Likewise.
14430         * math/w_acos.c: Likewise.
14431         * math/w_acosf.c: Likewise.
14432         * math/w_acosh.c: Likewise.
14433         * math/w_acoshf.c: Likewise.
14434         * math/w_acoshl.c: Likewise.
14435         * math/w_acosl.c: Likewise.
14436         * math/w_asin.c: Likewise.
14437         * math/w_asinf.c: Likewise.
14438         * math/w_asinl.c: Likewise.
14439         * math/w_atan2.c: Likewise.
14440         * math/w_atan2f.c: Likewise.
14441         * math/w_atan2l.c: Likewise.
14442         * math/w_atanh.c: Likewise.
14443         * math/w_atanhf.c: Likewise.
14444         * math/w_atanhl.c: Likewise.
14445         * math/w_cosh.c: Likewise.
14446         * math/w_coshf.c: Likewise.
14447         * math/w_coshl.c: Likewise.
14448         * math/w_dremf.c: Likewise.
14449         * math/w_exp10.c: Likewise.
14450         * math/w_exp10f.c: Likewise.
14451         * math/w_exp10l.c: Likewise.
14452         * math/w_exp2.c: Likewise.
14453         * math/w_exp2f.c: Likewise.
14454         * math/w_fmod.c: Likewise.
14455         * math/w_fmodf.c: Likewise.
14456         * math/w_fmodl.c: Likewise.
14457         * math/w_hypot.c: Likewise.
14458         * math/w_hypotf.c: Likewise.
14459         * math/w_hypotl.c: Likewise.
14460         * math/w_j0.c: Likewise.
14461         * math/w_j0f.c: Likewise.
14462         * math/w_j0l.c: Likewise.
14463         * math/w_j1.c: Likewise.
14464         * math/w_j1f.c: Likewise.
14465         * math/w_j1l.c: Likewise.
14466         * math/w_jn.c: Likewise.
14467         * math/w_jnf.c: Likewise.
14468         * math/w_jnl.c: Likewise.
14469         * math/w_lgamma.c: Likewise.
14470         * math/w_lgamma_r.c: Likewise.
14471         * math/w_lgammaf.c: Likewise.
14472         * math/w_lgammaf_r.c: Likewise.
14473         * math/w_lgammal.c: Likewise.
14474         * math/w_lgammal_r.c: Likewise.
14475         * math/w_log.c: Likewise.
14476         * math/w_log10.c: Likewise.
14477         * math/w_log10f.c: Likewise.
14478         * math/w_log10l.c: Likewise.
14479         * math/w_log2.c: Likewise.
14480         * math/w_log2f.c: Likewise.
14481         * math/w_log2l.c: Likewise.
14482         * math/w_logf.c: Likewise.
14483         * math/w_logl.c: Likewise.
14484         * math/w_pow.c: Likewise.
14485         * math/w_powf.c: Likewise.
14486         * math/w_powl.c: Likewise.
14487         * math/w_remainder.c: Likewise.
14488         * math/w_remainderf.c: Likewise.
14489         * math/w_remainderl.c: Likewise.
14490         * math/w_scalb.c: Likewise.
14491         * math/w_scalbf.c: Likewise.
14492         * math/w_scalbl.c: Likewise.
14493         * math/w_sinh.c: Likewise.
14494         * math/w_sinhf.c: Likewise.
14495         * math/w_sinhl.c: Likewise.
14496         * math/w_sqrt.c: Likewise.
14497         * math/w_sqrtf.c: Likewise.
14498         * math/w_sqrtl.c: Likewise.
14499         * math/w_tgamma.c: Likewise.
14500         * math/w_tgammaf.c: Likewise.
14501         * math/w_tgammal.c: Likewise.
14503         * po/ja.po: Update from translation team.
14505 2011-09-29  Andreas Jaeger  <aj@suse.de>
14507         [BZ #13179]
14508         * sunrpc/netname.c (netname2host): Fix logic.
14510         [BZ #6779]
14511         [BZ #6783]
14512         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14513         correctly.
14514         * math/w_remainder.c (__remainder): Likewise.
14515         * math/w_remainderf.c (__remainderf): Likewise.
14516         * math/libm-test.inc (remainder_test): Add test cases.
14518 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14520         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14521         sdiv_qrnnd.
14523 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14525         * string/test-memcmp.c: Avoid unncessary #defines.
14526         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14528 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14530         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14531         Use new sse2 version for core i3 - i7 as it's faster
14532         than sse42 version.
14533         (bit_Prefer_PMINUB_for_stringop): New.
14534         * sysdeps/x86_64/rawmemchr.S: Update.
14535         Replace with faster SSE2 version.
14536         * sysdeps/x86_64/memrchr.S: New file.
14537         * sysdeps/x86_64/memchr.S: Update.
14538         Replace with faster SSE2 version.
14540 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14542         * elf/dl-load.c (lose): Add cast to avoid warning.
14544 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14546         * po/ca.po: Update from translation team.
14548         * inet/getnetgrent_r.c: Hook up nscd.
14549         * nscd/Makefile (routines): Add nscd_netgroup.
14550         (nscd-modules): Add netgroupcache.
14551         (CFLAGS-netgroupcache.c): Define.
14552         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14553         (cache_search): Add const to second parameter.
14554         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14555         INNETGR.
14556         (dbs): Add netgrdb entry.
14557         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14558         (verify_persistent_db): Handle netgrdb.
14559         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14560         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14561         GETFDNETGR.
14562         (netgroup_response_header): Define.
14563         (innetgroup_response_header): Define.
14564         (datahead): Add netgroup_response_header and innetgroup_response_header
14565         elements.
14566         * nscd/nscd.conf: Add entries for netgroup cache.
14567         * nscd/nscd.h (dbtype): Add netgrdb.
14568         (_PATH_NSCD_NETGROUP_DB): Define.
14569         (netgroup_iov_disabled): Declare.
14570         (xmalloc, xcalloc, xrealloc): Move declarations here.
14571         (cache_search): Adjust prototype.
14572         Add netgroup-related prototypes.
14573         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14574         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14575         (__nscd_innetgr): Declare.
14576         * nscd/selinux.c (perms): Use access_vector_t as element type and
14577         add netgroup-related initializers.
14578         * nscd/netgroupcache.c: New file.
14579         * nscd/nscd_netgroup.c: New file.
14580         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14581         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14582         For four parameters use innetgr.
14583         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14584         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14585         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14586         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14588         * nscd/connections.c (register_traced_file): Don't register file
14589         for disabled databases.
14591 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14593         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14595         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14596         from tree and freeing node.
14598 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14600         * nss/nsswitch.c (__nss_database_lookup): Handle
14601         nss_parse_service_list out of memory case.
14603 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14605         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14606         out of memory case.
14608 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14610         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14611         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14612         pass it down.
14613         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14614         elf_machine_rela, elf_machine_lazy_rel.
14615         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14616         (ELF_DYNAMIC_DO_REL): Likewise.
14617         (ELF_DYNAMIC_DO_RELA): Likewise.
14618         (ELF_DYNAMIC_RELOCATE): Likewise.
14619         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14620         to ELF_DYNAMIC_DO_REL.
14621         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14622         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14623         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14624         elf_machine_rela.
14625         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14626         skip_ifunc, don't call ifunc function if non-zero.
14627         (elf_machine_rela): Likewise.
14628         (elf_machine_lazy_rel): Likewise.
14629         (elf_machine_lazy_rela): Likewise.
14630         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14631         (elf_machine_lazy_rel): Likewise.
14632         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14633         Likewise.
14634         (elf_machine_lazy_rel): Likewise.
14635         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14636         Likewise.
14637         (elf_machine_lazy_rel): Likewise.
14638         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14639         (elf_machine_lazy_rel): Likewise.
14640         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14641         (elf_machine_lazy_rel): Likewise.
14642         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14643         (elf_machine_lazy_rel): Likewise.
14644         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14645         (elf_machine_lazy_rel): Likewise.
14646         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14647         (elf_machine_lazy_rel): Likewise.
14648         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14649         (elf_machine_lazy_rel): Likewise.
14651 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14653         * nss/nss_files/files-init.c (_nss_files_init): Use static
14654         initialization for all the *_traced_file variables.
14656 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14658         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14660 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14662         [BZ #13226]
14663         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14665 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14667         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14668         Reread the line before reparsing it.
14670 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14672         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14674 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14675             Maxim Kuvyrkov  <maxim@codesourcery.com>
14676             Joseph Myers  <joseph@codesourcery.com>
14678         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14679         if needed for __stack_chk_guard.
14681 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14683         * sysdeps/posix/spawni.c (script_execute): Always define it.
14684         It will be optimized away if unused.
14685         (maybe_script_execute): New function.
14686         (__spawni): Call it.
14688         * Makerules: Don't include tls.make.
14689         (config-tls): Always set to thread.
14690         * tls.make.c: File removed.
14692 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14694         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14695         * config.make.in (CPPFLAGS-config): New substituted variable.
14697 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14699         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14701         [BZ #13192]
14702         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14703         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14705 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14707         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14708         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14709         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14710         (CALL_FAIL): Likewise.
14711         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14712         (CALL_FAIL): Macro removed.
14713         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14715 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14717         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14718         for __FINITE_MATH_ONLY__ == 1.
14720 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14722         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14723         __ieee754_sqrt instead of sqrt.
14724         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14725         __ieee754_sqrtf instead of sqrtf.
14726         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14727         __floorf instead of floorf.
14728         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14729         __floorf, __truncf instead of floorf, truncf.
14731 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14733         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14735         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14736         __extern_always_inline.
14737         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14738         32-bit.
14740 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14742         * elf/rtld.c (dl_main): Also relocate in dependency order when
14743         doing symbol dependency testing.
14745 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14747         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14748         Always define `refsym'.
14750 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14752         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14753         (__FD_ELT): Renamed from __FDELT.
14754         * misc/bits/select2.h (__FD_ELT): Likewise.
14755         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14756         __FD_MASK instead of __FDELT, __FDMASK.
14757         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14758         Likewise.
14759         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14760         Likewise.
14762         * elf/Makefile (gen-ldd): Fix pattern.
14764         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14765         (init_tls): Likewise.
14767 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14769         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14771 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14773         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14774         `struct cmsghdr *' instead of `void *'.
14775         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14776         Likewise.
14778 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14780         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14781         if non-absolute.
14782         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14783         ldd_rewrite_script.
14785 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14787         * configure.in: Remove --with-tls option.
14788         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14789         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14790         out in case it is missing.
14791         * sysdeps/ia64/elf/configure.in: Likewise.
14792         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14793         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14794         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14795         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14796         * sysdeps/sh/elf/configure.in: Likewise.
14797         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14798         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14799         * sysdeps/x86_64/elf/configure.in: Likewise.
14800         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14801         * sysdeps/mach/hurd/tls.h: Likewise.
14803         [BZ #13067]
14804         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14806         [BZ #13090]
14807         * configure.in: Fix use of AC_INIT.
14809         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14811 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14813         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14814         __set_errno.
14815         * malloc/hooks.c: Likewise.
14817         [BZ #11929]
14818         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14819         variables statically.
14820         (narenas): Initialize.
14821         (list_lock): Initialize.
14822         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14823         initializtion of main_arena and list_lock.  Small cleanups.
14824         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14825         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14826         Add initializers to main_arena and mp_.
14827         (malloc_state): Remove pagesize member.  Change all users to use
14828         GLRO(dl_pagesize).
14830         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14831         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14832         is always initialized.
14834         * malloc/malloc.c: Removed unused configurations and dead code.
14835         * malloc/arena.c: Likewise.
14836         * malloc/hooks.c: Likewise.
14837         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14839         * include/tls.h: Removed.  USE___THREAD must always be defined.
14840         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14841         * elf/dl-libc.c: Likewise.
14842         * elf/dl-tsd.c: Likewise.
14843         * include/errno.h: Likewise.
14844         * include/netdb.h: Likewise.
14845         * include/resolv.h: Likewise.
14846         * inet/herrno-loc.c: Likewise.
14847         * inet/herrno.c: Likewise.
14848         * malloc/arena.c: Likewise.
14849         * malloc/hooks.c: Likewise.
14850         * malloc/malloc.c: Likewise.
14851         * resolv/res-state.c: Likewise.
14852         * resolv/res_libc.c: Likewise.
14853         * sysdeps/i386/dl-machine.h: Likewise.
14854         * sysdeps/ia64/dl-machine.h: Likewise.
14855         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14856         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14857         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14858         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14859         * sysdeps/sh/dl-machine.h: Likewise.
14860         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14861         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14862         * sysdeps/unix/i386/sysdep.S: Likewise.
14863         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14864         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14865         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14866         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14867         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14868         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14869         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14870         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14871         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14872         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14873         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14874         * sysdeps/x86_64/dl-machine.h: Likewise.
14875         * tls.make.c: Likewise.
14877         * configure.in: Remove --with-__thread option.  Make tests for
14878         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14879         tls_model attribute fail if no support is available.  Remove
14880         USE_IN_LIBIO.
14881         * Makeconfig: Adjust for dropped configure option.  All features are
14882         now mandatory.
14883         * Makerules: Likewise.
14884         * Versions.def: Likewise.
14885         * argp/argp-fmtstream.c: Likewise.
14886         * argp/argp-fmtstream.h: Likewise.
14887         * argp/argp-help.c: Likewise.
14888         * assert/assert.c: Likewise.
14889         * config.h.in: Likewise.
14890         * config.make.in: Likewise.
14891         * configure: Likewise.
14892         * configure.in: Likewise.
14893         * csu/Versions: Likewise.
14894         * csu/init.c: Likewise.
14895         * elf/tst-audit2.c: Likewise.
14896         * elf/tst-tls10.c: Likewise.
14897         * elf/tst-tls10.h: Likewise.
14898         * elf/tst-tls11.c: Likewise.
14899         * elf/tst-tls12.c: Likewise.
14900         * elf/tst-tls14.c: Likewise.
14901         * elf/tst-tlsmod11.c: Likewise.
14902         * elf/tst-tlsmod12.c: Likewise.
14903         * elf/tst-tlsmod13.c: Likewise.
14904         * elf/tst-tlsmod13a.c: Likewise.
14905         * elf/tst-tlsmod14a.c: Likewise.
14906         * elf/tst-tlsmod15b.c: Likewise.
14907         * elf/tst-tlsmod16a.c: Likewise.
14908         * elf/tst-tlsmod16b.c: Likewise.
14909         * elf/tst-tlsmod7.c: Likewise.
14910         * elf/tst-tlsmod8.c: Likewise.
14911         * elf/tst-tlsmod9.c: Likewise.
14912         * gmon/gmon.c: Likewise.
14913         * grp/fgetgrent_r.c: Likewise.
14914         * grp/putgrent.c: Likewise.
14915         * hurd/fopenport.c: Likewise.
14916         * include/libc-symbols.h: Likewise.
14917         * include/tls.h: Likewise.
14918         * intl/gettextP.h: Likewise.
14919         * intl/loadinfo.h: Likewise.
14920         * locale/global-locale.c: Likewise.
14921         * locale/localeinfo.h: Likewise.
14922         * mach/devstream.c: Likewise.
14923         * malloc/arena.c: Likewise.
14924         * malloc/set-freeres.c: Likewise.
14925         * misc/err.c: Likewise.
14926         * misc/getttyent.c: Likewise.
14927         * misc/mntent_r.c: Likewise.
14928         * posix/getopt.c: Likewise.
14929         * posix/wordexp.c: Likewise.
14930         * pwd/fgetpwent_r.c: Likewise.
14931         * resolv/Versions: Likewise.
14932         * resolv/res_hconf.c: Likewise.
14933         * shadow/fgetspent_r.c: Likewise.
14934         * shadow/putspent.c: Likewise.
14935         * stdio-common/printf_fphex.c: Likewise.
14936         * stdio-common/tmpfile.c: Likewise.
14937         * stdlib/abort.c: Likewise.
14938         * stdlib/fmtmsg.c: Likewise.
14939         * sunrpc/auth_unix.c: Likewise.
14940         * sunrpc/clnt_perr.c: Likewise.
14941         * sunrpc/clnt_tcp.c: Likewise.
14942         * sunrpc/clnt_udp.c: Likewise.
14943         * sunrpc/clnt_unix.c: Likewise.
14944         * sunrpc/openchild.c: Likewise.
14945         * sunrpc/svc_simple.c: Likewise.
14946         * sunrpc/svc_tcp.c: Likewise.
14947         * sunrpc/svc_udp.c: Likewise.
14948         * sunrpc/svc_unix.c: Likewise.
14949         * sunrpc/xdr.c: Likewise.
14950         * sunrpc/xdr_array.c: Likewise.
14951         * sunrpc/xdr_rec.c: Likewise.
14952         * sunrpc/xdr_ref.c: Likewise.
14953         * sunrpc/xdr_stdio.c: Likewise.
14955 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14957         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14959 2011-07-03  Andreas Jaeger  <aj@suse.de>
14961         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14962         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14963         regenerate with gen-libm-tests.pl.
14965 2010-05-12  Petr Baudis  <pasky@suse.cz>
14967         [BZ #11589]
14968         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14969         around j0() zero points by switching to j1().
14970         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14971         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14972         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14973         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14975 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14977         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14978         instead of 0.
14979         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14980         instead of 0.                              .
14981         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14982         Patch in part by Pavel Roskin <proski@gnu.org>.
14984         [BZ #13138]
14985         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14986         realloc.
14987         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14988         Free memory block if necessary.
14990         [BZ #12847]
14991         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14992         be NULL.  Don't lock in this case.
14994 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14996         * elf/elf.h (ELFOSABI_GNU): New macro.
14997         (ELFOSABI_LINUX): Define to that.
14999 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15001         * string/strncat.c (strncat): Undef the symbol in case it has been
15002         defined in bits/string.h.
15004 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15006         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15008         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15009         link map.
15011 2011-08-17  Andreas Jaeger  <aj@suse.de>
15013         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15015 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15016             Ian Lance Taylor  <iant@google.com>
15018         * math/libm-test.inc (lround_test): New testcase.
15019         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15021 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15023         * Makefile: Remove support for automatic cvs check-ins.
15024         * Makerules: Likewise.
15025         * config.make.in: Likewise.
15026         * configure.in: Likewise.
15027         * intl/Makefile: Likewise.
15028         * locale/Makefile: Likewise.
15029         * po/Makefile: Likewise.
15030         * posix/Makefile: Likewise.
15031         * sysdeps/gnu/Makefile: Likewise.
15032         * sysdeps/mach/hurd/Makefile: Likewise.
15033         * sysdeps/sparc/sparc32/Makefile: Likewise.
15035         [BZ #13118]
15036         * posix/Makefile (bug-regex32-ENV): Define.
15037         Patch by John Stanley <jpsinthemix@verizon.net>.
15039         * misc/Makefile (headers): Add bits/select2.h.
15040         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15041         * misc/bits/select2.h: New file.
15042         * include/bits/select2.h: New file.
15043         * debug/Makefile (routines): Add fdelt_chk.
15044         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15045         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15046         FD_ISSET.
15047         * debug/fdelt_chk.c: New file.
15049         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15050         * wcsmbs/test-wmemcmp.c: Likewise.
15051         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15052         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15054 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15056         * string/Makefile (strop-tests): Add memcmp.
15057         * string/test-wmemcmp.c: New file.
15058         * string/test-memcmp.c: Add wmemcmp support.
15060 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15062         [BZ #13153]
15063         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15064         2011-07-19 change.
15066         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15067         garbage value in a __mach_port_mod_refs call in the cases of the
15068         task-self and thread-self ports.
15070 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15072         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15074 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15076         * elf/dl-load.c (lose): Check for non-null L.
15078 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15080         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15082         * elf/dl-libc.c (dlerror_run): Pass back error code from
15083         dl_catch_error.
15085         [BZ #13123]
15086         * elf/dl-load.c (lose): Free l_origin if it is valid.
15088         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15089         names.
15090         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15091         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15092         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15093         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15094         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15095         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15097 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15099         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15100         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15101         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15102         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15103         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15104         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15105         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15106         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15107         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15108         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15110 2011-08-15  Alan Modra  <amodra@gmail.com>
15112         [BZ #13092]
15113         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15114         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15115         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15116         ppc_mcount to static-only-routines.
15117         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15118         __mcount_internal.
15119         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15120         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15122 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15124         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15125         for finite and infinity parameters.
15127 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15129         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15130         and add nop instructions for throughput optimization.
15131         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15133 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15135         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15136         aligned copy for power7 with vector-scalar instructions.
15137         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15139 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15141         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15142         AVX check.
15144 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15146         [BZ #13144]
15147         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15148         last change.
15150 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15152         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15153         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15154         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15155         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15156         clock_gettime.
15158 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15160         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15161         Forgot to demangle the pointer.
15163         * sysdeps/i386/sysdep.h: Define atom_text_section.
15164         * sysdeps/x86_64/sysdep.h: Likewise.
15165         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15166         section with atom_text_section.
15167         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15168         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15169         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15170         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15171         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15173         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15174         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15175         already be defined.  Change to take two parameters and don't assign
15176         result to variable.  Adjust all users.
15177         Define INTERNAL_GETTIME if not already defined.
15178         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15179         call.
15180         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15181         HAVE_CLOCK_GETTIME_VSYSCALL.
15182         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15184         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15185         gettimeofday vsyscall, just use time.
15187 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15189         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15190         <errno.h>.
15192 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15194         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15195         syscall on x86-64.
15196         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15197         syscall.
15198         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15199         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15200         syscall if possible.
15202 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15204         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15205         e_ident.  Don't pass to find_mapsXX.
15206         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15208 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15210         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15211         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15212         * sysdeps/x86_64/multiarch/strchr.S: Update.
15213         Check bit_slow_BSF bit.
15214         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15215         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15216         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15218 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15220         [BZ #13134]
15221         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15222         before glibc 2.15.
15223         (tryshell): Define.
15224         (__spawni): Change last parameter to be flag.  Test
15225         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15226         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15227         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15228         * posix/spawni.c: Likewise.
15229         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15230         * posix/spawnp.c: Likewise.  Change normal version to use
15231         SPAWN_XFLAGS_USE_PATH.
15232         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15233         SPAWN_XFLAGS_TRY_SHELL.
15235         [BZ #13150]
15236         * posix/glob.h: Remove gcc 1.x support.
15238         [BZ #13068]
15239         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15241 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15243         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15244         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15245         strrchr-sse2-bsf
15246         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15247         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15248         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15249         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15250         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15251         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15253 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15255         * sysdeps/x86_64/wcscmp.S: New file.
15257         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15258         wcscmp-c wcscmp-sse2
15259         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15260         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15261         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15262         * wcsmbs/wcscmp.c: Allow renaming.
15264 2011-09-05  David S. Miller  <davem@davemloft.net>
15266         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15267         stack slot, rather than the struct return pointer slot.
15268         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15269         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15271         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15273 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15275         * po/ja.po: Update from translation team.
15277         [BZ #13144]
15278         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15279         kernel in 64-bit binaries.
15281 2011-09-01  David S. Miller  <davem@davemloft.net>
15283         * elf/elf.h (HWCAP_SPARC_*): Move to..
15284         * sysdeps/sparc/sysdep.h: this new file and add new values.
15285         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15286         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15287         _DL_HWCAP_COUNT to 24.
15288         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15289         entries.
15290         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15291         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15292         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15293         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15294         instead of magic constants.
15295         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15297 2011-08-31  David S. Miller  <davem@davemloft.net>
15299         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15300         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15301         Reimplement to do errno handling inline.
15302         (SYSCALL_ERROR_HANDLER): New macro.
15303         (__SYSCALL_STRING): Do not do errno handling in asm.
15304         (__CLONE_SYSCALL_STRING): Delete.
15305         (__INTERNAL_SYSCALL_STRING): Delete.
15306         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15307         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15308         (PSEUDO): Reimplement to do errno handling inline.
15309         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15310         (SYSCALL_ERROR_HANDLER): New macro.
15311         (__SYSCALL_STRING): Do not do errno handling in asm.
15312         (__CLONE_SYSCALL_STRING): Delete.
15313         (__INTERNAL_SYSCALL_STRING): Delete.
15314         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15315         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15316         i386.
15317         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15318         (inline_syscall*): Add 'err' argument.
15319         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15320         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15321         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15322         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15324         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15325         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15327 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15329         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15331 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15333         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15334         directive.
15336 2011-08-24  David S. Miller  <davem@davemloft.net>
15338         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15340 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15342         * elf/Makefile: Add rules to build and run unload8 test.
15343         * elf/unload8.c: New file.
15344         * elf/unload8mod1.c: New file.
15345         * elf/unload8mod1x.c: New file.
15346         * elf/unload8mod2.c: New file.
15347         * elf/unload8mod3.c: New file.
15349         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15350         it wasn't used.
15352 2011-08-23  David S. Miller  <davem@davemloft.net>
15354         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15355         subtract stack bias.
15356         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15357         %sp not %fp in calculations.
15358         (_JMPBUF_UNWINDS_ADJ): Likewise.
15360         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15361         (aio_suspend): Call it to force an exception region around the
15362         AIO_MISC_WAIT() invocation.
15364 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15366         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15367         backslash.
15369 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15371         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15372         protection macro.
15373         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15374         and <dl-machine.h>.
15375         (Elf64_FuncDesc): Remove.
15377 2011-08-22  David S. Miller  <davem@davemloft.net>
15379         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15380         sigaltstack check, add missing cfi directives.
15381         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15382         missing cfi directives, and sigaltstack handling.
15384 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15386         [BZ #11724]
15387         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15388         object is seen twice.
15389         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15391         * elf/Makefile (distribute): Add tst-initorder2.c.
15392         (tests): Add tst-initorder2.
15393         (modules-names): Add tst-initorder2a tst-initorder2b
15394         tst-initorder2c tst-initorder2d.  Add rules to build them.
15395         ($(objpfx)tst-initorder2.out): New rule.
15396         * elf/tst-initorder2.c: New file.
15397         * elf/tst-initorder2.exp: New file.
15399 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15401         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15403         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15404         dependencies back to end of function.
15406         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15407         $(elfobjdir)/ld.so.
15409 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15411         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15412         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15413         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15414         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15415         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15416         of __vdso_gettimeofday.
15417         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15418         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15419         attribute_hidden.
15420         (_libc_vdso_platform_setup): Remove initialization of
15421         __vdso_gettimeofday and __vdso_time.
15423 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15425         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15426         and fgetc_unlocked.
15427         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15428         getc_unlocked.
15430         * elf/dl-open.c (add_to_global): Report additions to the global scope
15431         for LD_DEBUG=scopes.
15432         (dl_open_worker): Also print scope of newly loaded dependencies.
15433         (_dl_show_scope): Indicate if there is no scope.
15435         [BZ #13114]
15436         * stdio-common/Makefile (tests): Add bug24.
15437         * stdio-common/bug24.c: New file.
15439 2011-08-19  Andreas Jaeger  <aj@suse.de>
15441         [BZ #13114]
15442         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15443         non-existant file when using close-on-exec mode.
15445 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15447         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15448         the very first instruction.
15450         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15451         the CFI state in the end.
15452         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15453         inclusion of dl-trampoline.h.
15454         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15456 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15458         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15459         expectations for long double.
15461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15462         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15464 2011-08-14  David S. Miller  <davem@davemloft.net>
15466         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15467         artificual limit depends upon the system page size.
15469 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15471         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15472         * resolv/Makefile: Define CFLAGS-libresolv.
15474 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15476         * nss/makedb.c (compute_tables): Make variables used in nested
15477         function static.
15479 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15481         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15482         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15483         if buffer was too small.
15485         * elf/pldd.c (main): Attach to all threads in the process.
15486         Rewrite /proc handling to use *at functions.
15488 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15490         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15491         specifies first scope to show.
15492         (dl_open_worker): Update callers.  Move printing scope of new
15493         object to before the relocation.
15494         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15495         * sysdeps/generic/ldsodefs.h: Update declaration.
15497         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15498         string for the scope number.
15500 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15502         * nscd/servicescache.c (cache_addserv): Make sure written is always
15503         initialized.
15505 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15507         * sysdeps/i386/i486/bits/atomic.h
15508         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15509         statement expression, so as to suppress "set but not used" warning.
15510         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15512         * string/strncat.c (STRNCAT): Use prototype definition.
15514         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15515         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15516         -Iprograms here.
15517         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15518         (localedef-modules): Add localedef.
15519         (locale-modules): Add locale.
15521         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15522         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15523         to avoid a warning.
15525 2011-08-14  David S. Miller  <davem@davemloft.net>
15527         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15528         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15530 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15532         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15533         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15534         * elf/rtld.c (dl_main): Set l_name of vDSO.
15535         Call _dl_show_scope when DL_DEBUG_SCOPES.
15536         (process_dl_debug): Recognize scopes flag and also set it for all.
15537         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15538         Declare _dl_show_scope.
15540         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15541         (do_dlopen): Pass caller_dlopen to dl_open.
15542         (__libc_dlopen_mode): Initialize caller_dlopen.
15544         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15545         of libc.  Make tolower call locale-independent.  Optimize a bit by
15546         using isdigit instead of isalnum.
15547         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15549 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15551         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15552         was a dependency or dynamically loaded.
15554 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15556         * intl/l10nflist.c: Allow architecture-specific pop function.
15557         * sysdeps/x86_64/l10nflist.c: New file.
15559         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15560         classification.
15562 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15564         * include/dirent.h: Add libc_hidden_proto for scandirat and
15565         scandirat64.  Don't declare __scandirat64.
15566         * dirent/scandirat.c: Add libc_hidden_def.
15567         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15568         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15570 2011-08-10  David S. Miller  <davem@davemloft.net>
15572         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15573         enum.
15574         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15575         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15576         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15578 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15580         * Versions.def [libc]: Add GLIBC_2.15.
15581         * dirent/Makefile (routines): Add scandirat and scandirat64.
15582         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15583         GLIBC_2.15.
15584         * dirent/dirent.h: Declare scandirat and scandirat64.
15585         * dirent/scandirat.c: New file.
15586         * dirent/scandirat64.c: New file.
15587         * sysdeps/wordsize-64/scandirat.c: New file.
15588         * sysdeps/wordsize-64/scandirat64.c: New file.
15589         * dirent/opendir.c: Define opendirat.
15590         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15591         using scandirat.
15592         * dirent/scandir64.c: Adjust for scandir.c change.
15593         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15594         __scandirat64, and __scandir_cancel_handler.
15595         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15596         additional parameter and use openat instead of open (outside of ld.so).
15597         Add new __opendir as wrapper around __opendirat.
15598         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15599         here without requiring old scandirat implementation.
15601 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15603         * dirent/scandir.c (cancel_handler): Renamed to
15604         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15605         defined.  Adjust users.
15606         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15607         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15609 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15611         * string/test-string.h (IMPL): Use __STRING to expand name and then
15612         stringify it.
15614         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15615         of cleanups.
15617 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15619         * string/Makefile: Update.
15620         (strop-tests): Append strncat.
15621         * string/test-wcscmp.c: New file.
15622         New comprehensive test for wcscmp.
15623         * string/test-strcmp.c: Update.
15624         (WIDE): New define.
15626 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15628         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15629         line.
15631 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15633         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15634         encoding to ACE if AI_IDN.
15636 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15638         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15639         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15641 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15643         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15644         Fix overflow bug in strncat.
15645         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15647         * string/test-strncat.c: Update.
15648         Add new tests for checking overflow bugs.
15650 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15652         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15653         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15654         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15655         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15656         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15657         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15658         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15659         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15660         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15662         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15663         (USE_AS_STRCAT): Define.
15664         Add strcat and strncat support.
15665         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15667 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15669         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15670         __n bigger than INT_MAX+1.
15671         (__strncmp_g): Likewise.
15673 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15675         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15676         * libio/stido.h: Likewise.
15678         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15679         (AF_NFC): Define.
15680         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15681         (AF_NFC): Define.
15683         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15684         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15685         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15686         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15687         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15689         [BZ #13021]
15690         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15691         installed.
15693         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15694         typo.
15695         (_dl_x86_64_save_sse): Likewise.
15697 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15699         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15700         OSXSAVE.
15701         (_dl_x86_64_save_sse): Likewise.
15703         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15705         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15707 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15709         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15710         change.
15711         (_dl_x86_64_save_sse): Use correct AVX check.
15713 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15715         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15716         bug in strncpy/strncat.
15717         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15719 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15721         * string/tester.c (test_strcat): Add tests for different alignments
15722         of source and destination.
15723         (test_strncat): Likewise.
15725 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15727         [BZ #12852]
15728         * posix/glob.c (glob): Check passed in values before using them in
15729         expressions to avoid some overflows.
15730         (glob_in_dir): Likewise.
15732         [BZ #13007]
15733         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15734         check for AVX enablement so that we don't crash with old kernels and
15735         new hardware.
15736         * elf/tst-audit4.c: Add same checks here.
15737         * elf/tst-audit6.c: Likewise.
15739         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15741 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15743         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15745 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15747         * po/cs.po: Update from translation team.
15748         * po/bg.po: Likewise.
15750 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15752         * misc/sys/cdefs.h: Add support for const attribute.
15753         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15754         to gnu_dev_{major,minor,makedev} functions.
15756 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15758         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15760 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15762         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15763         strlen results.
15765 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15767         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15768         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15769         register in order to avoid conflicts with the soft frame pointer
15770         being held in r11 when necessary.
15771         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15772         (INTERNAL_VSYSCALL_NCS): Likewise.
15774 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15776         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15777         * elf/dl-fini.c (_dl_fini): Adjust caller.
15778         * elf/dl-close.c (_dl_close_worker): Likewise.
15779         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15781 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15783         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15784         "aux_cache->nlibs < 0".
15786         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15787         in the reload-count case.
15789 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15791         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15792         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15793         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15794         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15795         * sysdeps/x86_64/multiarch/strcat.S: New file.
15796         * sysdeps/x86_64/multiarch/strncat.S: New file.
15797         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15798         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15799         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15800         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15801         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15802         (USE_AS_STRCAT): Define.
15803         Add strcat and strncat support.
15804         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15805         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15806         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15807         * string/strncat.c: Update.
15808         (USE_AS_STRNCAT): Define.
15809         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15810         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15811         and i7.
15812         * sysdeps/x86_64/multiarch/init-arch.h
15813         (bit_Prefer_PMINUB_for_stringop): New.
15814         (index_Prefer_PMINUB_for_stringop): Likewise.
15815         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15816         bit_Prefer_PMINUB_for_stringop.
15818 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15820         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15821         buffer64.
15822         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15823         of casting of buffer.
15824         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15825         buffer32 and buffer64.
15826         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15827         writes instead of casting of buffer.
15828         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15829         buffer32.
15830         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15831         casting of buffer.
15833 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15835         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15837 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15839         * nscd/nscd.c (termination_handler): Don't do anything for a database
15840         if it has not yet been initialized.
15842 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15844         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15846 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15848         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15850 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15852         * po/nl.po: Update from translation team.
15853         * po/sv.po: Likewise.
15855 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15857         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15858         now disallowed by GCC.
15860         * configure.in (use-default-link): Default to yes if a test -shared
15861         link meets our qualifications.
15862         * configure: Regenerated.
15864         * config.make.in (output-format): New variable.
15865         * configure.in: Check for ld --print-output-format support.
15866         * configure: Regenerated.
15867         * Makerules ($(common-objpfx)format.lds)
15868         [$(output-format) != unknown]: Just use $(output-format),
15869         instead of the linker-script munging.
15871 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15873         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15874         of $(common-objpfx)shlib.lds.
15875         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15877         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15878         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15880         * configure.in (-z relro check): Adjust test code to add a large
15881         writable data section after it.
15882         * configure: Regenerated.
15884 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15886         * configure.in (-z relro check): Fix test code to make the variable
15887         truly const.
15888         * configure: Regenerated.
15890 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15892         * nscd/nscd.h (struct traced_file): Define.
15893         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15894         elements.  Add traced_files.
15895         (inotify_fd): Declare.
15896         (register_traced_file): Declare.
15897         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15898         (inotify_fd): Export.
15899         (resolv_conf_descr): Remove.
15900         (nscd_init): Move inotify descriptor creation to main.
15901         Don't register files for notification here.
15902         (register_traced_file): New function.
15903         (invalidate_cache): Don't use reset_res to determine whether to call
15904         res_init, go through the list of registered files.
15905         (main_loop_poll): The inotify descriptors are now stored in the
15906         structures for the traced files.
15907         (main_loop_epoll): Likewise
15908         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15909         to __nss_disable_nscd.
15910         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15911         for a database anymore.  Check the records for all the registered
15912         files instead.
15913         * nss/Makefile (libnss_files-routines): Add files-init.
15914         (libnss_db-routines): Add db-init.
15915         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15916         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15917         * nss/nss_db/db-init.c: New file.
15918         * nss/nss_files/files-init.c: New file.
15919         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15920         __nss_lookup_function.
15921         (__nss_lookup_function): Call nss_load_library.
15922         (nss_load_all_libraries): New function.
15923         (__nss_disable_nscd): Take parameter with callback function for files
15924         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15925         used for the cached services.
15926         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15927         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15928         options for features to all the files in nscd.
15930         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15932 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15934         * csu/elf-init.c (__libc_csu_init): Comment typo.
15936 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15938         * po/pl.po: Update from translation team.
15939         * po/ja.po: Likewise.
15940         * po/ru.po: Likewise.
15941         * po/ko.po: Likewise.
15942         * po/fr.po: Likewise.
15944 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15946         * configure.in (.ctors/.dtors header and trailer check):
15947         Use an empirical test on a built program.
15948         * configure: Regenerated.
15950         * configure.in (-z relro check): Use an empirical test on a built DSO.
15951         Detect, but do not require, on ia64.
15952         * configure: Regenerated.
15954         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15955         Update tests that use readelf to use $READELF instead.
15956         * configure: Regenerated.
15958 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15960         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15961         if the result is not used.
15963 2011-07-05  Andreas Jaeger  <aj@suse.de>
15965         [BZ#9696]
15966         * stdlib/tst-strtod.c: Add testcase.
15968 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15970         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15971         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15972         The latter has a higher limit.  Take additional parameter to pass to
15973         the new function.
15974         (__pathconf): Pass file to __statfs_link_max.
15975         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15976         __statfs_link_max.
15977         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15978         __statfs_link_max.
15980         [BZ #12868]
15981         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15982         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15983         Handle Lustre.
15984         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15985         (__statfs_filesize_max): Likewise.
15986         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15988 2011-07-05  Andreas Jaeger  <aj@suse.de>
15990         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15992 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15994         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15995         `status' variable.
15996         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15997         Likewise.
15999 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16001         * Makefile (strop-tests): Add strncat.
16002         * string/test-strncat.c: New file.
16004 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16006         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16008 2011-06-21  Andreas Jaeger  <aj@suse.de>
16010         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16011         Copy rule from iconvdata/Makefile.
16013 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16015         [BZ #12922]
16016         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16017         but no long options are defined, just return 'W'.
16019 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16021         [BZ #9696]
16022         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16024 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16026         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16027         netgroups to read.
16028         (innetgr): Likewise.
16030 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16032         * config.make.in (install_root): Default to $(DESTDIR).
16034 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16036         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16038 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16040         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16042         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16043         containing directory rather than embedding absolute directory names.
16045         * scripts/check-local-headers.sh: Rewritten using awk.
16046         Match by word, not by line.  Print error messages for matches.
16047         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16049         * Makerules [shlib-lds-flags empty]:
16050         ($(common-objpfx)libc_pic.opts): New target.
16051         ($(common-objpfx)libc_pic.os.clean): New target.
16052         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16054         * config.make.in (OBJCOPY): New variable.
16055         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16056         * configure: Regenerated.
16058         * config.make.in (use-default-link): New variable.
16059         * configure.in (use_default_link): Grok --with-default-link to set it.
16060         * configure: Regenerated.
16061         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16062         (shlib-lds, shlib-lds-flags): Define to empty.
16064         * Makerules (shlib-lds): New variable.
16065         (shlib-lds-flags): New variable.
16066         (build-shlib, build-moduile, build-module-asneeded): Use it.
16067         ($(common-objpfx)libc.so): Use $(shlib-lds).
16068         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16069         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16071         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16072         DT_FLAGS/DT_FLAGS_1 with zero flags.
16074         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16075         linker script munging.
16077 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16079         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16080         as 128-bit value.
16081         * crypt/sha512.c (sha512_process_block): Perform total addition using
16082         128-bit if possible.
16083         (__sha512_finish_ctx): Likewise.
16084         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16085         as 64-bit value.
16086         * crypt/sha256.c (SWAP64): Define.
16087         (sha256_process_block): Perform total addition using 64-bit if
16088         possible.
16089         (__sha256_finish_ctx): Likewise.
16091 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16093         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16094         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16095         * nscd/hstcache.c (cache_addhst): Likewise.
16096         * nscd/grpcache.c (cache_addgr): Likewise.
16097         * nscd/aicache.c (addhstaiX): Likewise
16098         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16100 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16102         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16103         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16104         * nscd/hstcache.c (cache_addhst): Likewise.
16105         * nscd/grpcache.c (cache_addgr): Likewise.
16106         * nscd/aicache.c (addhstaiX): Likewise
16108 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16110         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16111         domain only when needed.
16113 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16115         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16116         is always restored.
16118 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16120         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16121         are re-adding the entry.
16122         * nscd/servicescache.c (cache_addserv): Likewise.
16124 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16126         * sysdeps/generic/dl-irel.h: fix protection against multiple
16127         inclusions.
16128         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16130 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16132         [BZ #12935]
16133         * malloc/memusage.sh: Fix quoting in message.
16134         * debug/xtrace.sh: Likewise.
16136         * configure.in: Remove support for --experimental-malloc option, make
16137         it the default.
16138         * config.make.in: Likewise.
16139         * malloc/Makefile: Likewise.
16141 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16143         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16144         two-byte characters.
16146 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16148         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16149         AC_CACHE_CHECK invocation.
16150         * configure: Regenerated.
16152         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16154 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16156         [BZ #12350]
16157         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16158         bit from old_res_options.
16160         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16162         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16163         value type for setfct.
16165 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16167         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16168         __gettimeofday instead of gettimeofday.
16170 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16172         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16174 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16176         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16178         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16179         info.
16181 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16183         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16184         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16185         strcpy-sse2-unaligned strncpy-sse2-unaligned
16186         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16187         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16188         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16189         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16190         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16191         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16192         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16193         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16194         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16195         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16196         (STRCPY): Support SSE2 and SSSE3 versions.
16198 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16200         [BZ #12874]
16201         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16202         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16203         kernels which artificially limit size of requests.
16205 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16207         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16208         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16209         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16210         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16211         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16212         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16213         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16214         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16215         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16216         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16217         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16218         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16219         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16220         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16221         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16222         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16223         Enable unaligned load optimization for Intel Core i3, i5 and i7
16224         processors.
16225         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16226         Define.
16227         (index_Fast_Unaligned_Load): Define.
16228         (HAS_FAST_UNALIGNED_LOAD): Define.
16230 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16232         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16234 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16236         [BZ #12907]
16237         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16238         until it is clear that the information is realy needed.
16239         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16241 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16243         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16245 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16247         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16248         /sys/devices/system/cpu/online if it is usable.
16250         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16251         reading the information from the /proc filesystem to once a second.
16253 2011-06-21  Andreas Jaeger  <aj@suse.de>
16255         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16256         NULL after inclusion of kernel headers.
16258 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16260         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16261         calls to internal_setent.
16263         [BZ #12885]
16264         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16265         addresses using gethostbyname4_r ignore IPv4 addresses.
16267         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16268         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16270         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16272 2011-06-20  David S. Miller  <davem@davemloft.net>
16274         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16275         inclusions.
16276         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16278         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16279         (elf_irel): Use it.
16280         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16281         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16282         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16283         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16284         * sysdeps/x86_64/dl-irel.h: Likewise.
16286         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16287         * elf/dl-sym.c: Likewise.
16289 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16291         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16292         need to dereference resplen2.
16294 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16296         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16298 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16300         * Makeconfig: Define vardbdir and inst_vardbdir.
16301         * nss/Makefile: Add rules to install db-Makefile.
16303         * nss/nss_db/db-XXX.c: Cleanup.
16305         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16306         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16307         GLIBC_PRIVATE.
16308         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16309         * nss/makedb.c: Implement -g option to specify that value strings
16310         are generated and should not be added to table iterated over for
16311         get*ent calls.
16312         * nss/nss_db/db-initgroups.c: New file.
16314         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16315         interface.
16317         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16318         (internal_getgrouplist): Adjust to name change.
16319         Update use_initgroups_entry if this is not the first call.
16320         * nss/databases.def: Add initgroups entry.
16322         * nss/makedb.c (compute_tables): Check result of multiple hash table
16323         sizes to minimize maximum chain length.
16325 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16327         * Versions.def: Add entry for libnss_db.
16328         * shlib-versions: Likewise.
16329         * nss/Makefile: Add rules to build libnss_db.
16330         * nss/Versions: Add libnss_db information.  Organize libnss_files
16331         entries better.
16332         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16333         makedb progra.  Some minor improvements to generate smaller files.
16334         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16335         here from...
16336         * nss/makedb.c: ...here.
16337         Improve database format to be smaller and require less memory at
16338         runtime.
16339         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16340         db anymore.
16341         * nss/nss_db/db-netgrp.c: Likewise.
16342         * nss/nss_db/db-open.c: Likewise.
16343         * nss/nss_files/flies-XXX.x: Adjust comments.
16344         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16345         * nss/nss_files/files-grp.c: Likewise.
16346         * nss/nss_files/files-hosts.c: Likewise.
16347         * nss/nss_files/files-network.c: Likewise.
16348         * nss/nss_files/files-proto.c: Likewise.
16349         * nss/nss_files/files-pwd.c: Likewise.
16350         * nss/nss_files/files-rpc.c: Likewise.
16351         * nss/nss_files/files-service.c: Likewise.
16352         * nss/nss_files/files-sgrp.c: Likewise.
16353         * nss/nss_files/files-spwd.c: Likewise.
16354         * nss/nss_db/db-alias.c: Removed.
16355         * nss/nss_db/dummy-db.h: Removed.
16357 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16359         * nss/makedb.c: Rewritten to not use database library.
16360         * nss/Makefile: Update to build new makedb program.
16362 2011-06-14  Andreas Jaeger  <aj@suse.de>
16364         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16365         memset declaration.
16367 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16369         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16370         tmpbuf.
16372 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16374         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16375         * elf/Makefile ($(objpfx)ld.so): Likewise.
16377         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16378         Don't list ld.so twice in dependencies.
16380         * posix/bug-regex31.c: Include <stdlib.h>.
16382         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16384         * nis/nss_compat/compat-spwd.c
16385         (getspent_next_nss_netgr): Remove unused variable.
16386         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16388         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16389         nonmembers" output to use the right array.
16391         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16393         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16395         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16396         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16397         * catgets/gencat.c (read_input_file): Likewise.
16398         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16400         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16401         variable definition inside #if's controlling its use.
16403         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16405         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16407         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16409         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16410         unreachable code.
16412         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16414         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16415         * configure: Regenerated.
16417         * Makerules: Revert last change.
16418         * elf/Makefile: Likewise.
16420 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16422         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16423         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16424         (reloc-link): Likewise.
16426 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16428         * elf/Makefile: Add rules to build pldd.
16429         * elf/pldd.c: New file.
16430         * elf/pldd-xx.c: New file.
16432 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16434         * version.h: Update for 2.15 development version.
16436 2011-06-07  David S. Miller  <davem@davemloft.net>
16438         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16439         ifuncs.
16440         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16441         elf_machine_lazy_rel): Likewise.
16442         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16443         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16444         elf_machine_lazy_rel): Likewise.
16445         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16446         dl_hwcap via passed in argument.
16447         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16448         Likewise.
16450 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16452         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16454 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16456         [BZ #12849]
16457         * manual/fdl-1.1.texi: New file, verbatim from:
16458         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16459         * manual/lgpl-2.1.texi: New file, verbatim from:
16460         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16461         * manual/Makefile (licenses): New variable, list those new file names.
16462         (texis): Use it.
16463         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16465         * manual/fdl.texi: File removed.
16466         * manual/lesser.texi: File removed.
16467         * manual/libc.texinfo (Copying, Documentation License):
16468         Use new @include file names, put @appendix directive before @include.
16470 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16472         [BZ #12841]
16473         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16474         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16475         (mq_open): Add __NTH.
16477 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16479         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16480         Assume Intel Core i3/i5/i7 processor if AVX is available.
16482 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16484         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16485         typo.
16487 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16489         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16490         memory.  Use alloca_account.  Fix memory leak when retrying.
16492 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16494         * version.h (RELEASE): Bump for 2.14 release.
16495         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16497         * config.make.in (RANLIB): Remove entry.
16499 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16501         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16502         (libc.pot): Work around missing support for .ksh extension in xgettext.
16504         [BZ #12684]
16505         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16506         if both request failed.
16507         (send_dg): In case of server errors clear resplen or *resplen2.
16509         [BZ #12454]
16510         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16511         when there are multiple maps.
16512         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16513         (_dl_fini): Remove test here.
16515         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16517 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16519         [BZ #12350]
16520         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16521         bit from old_res_options.
16522         (gaih_inet): Likewise.
16524         [BZ #11099]
16525         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16526         as signed.
16528         * resolv/res_init.c (res_setoptions): Make the code more compact.
16530         [BZ #11558]
16531         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16532         set RES_USEVC.
16534         [BZ #11634]
16535         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16537         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16539         [BZ #11781]
16540         * malloc/malloc.h: Declare malloc hook variables as volatile.
16542         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16543         in last patch.
16545         [BZ #11799]
16546         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16547         raise in the comment.
16548         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16549         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16550         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16552 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16554         [BZ #12811]
16555         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16556         grow the buffers more if it already has to be sufficient.
16557         (build_wcs_upper_buffer): Likewise.
16558         * posix/regexec.c (check_matching): Likewise.
16559         (clean_state_log_if_needed): Likewise.
16560         (extend_buffers): Don't enlarge buffers beyond size of the input
16561         buffer.
16562         Patches mostly by Emil Wojak <emil@wojak.eu>.
16563         * posix/bug-regex32.c: New file.
16564         * posix/Makefile (tests): Add bug-regex32.
16566         * locale/findlocale.c (_nl_find_locale): Return right away if
16567         _nl_explode_name failed.
16568         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16570         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16572         * debug/xtrace.sh: Unify messages.
16573         * malloc/memusage.sh: Likewise.
16575         [BZ #12813]
16576         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16577         time symbol from vDSO.  Substitute with vsyscall if not available.
16578         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16579         __vdso_time.
16581         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16582         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16583         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16584         Add sendmmsg and internal_sendmmsg.
16585         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16586         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16587         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16589         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16590         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16591         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16593 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16595         [BZ #12813]
16596         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16597         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16598         available.
16599         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16600         __vdso_getcpu.
16602         [BZ #12814]
16603         * iconvdata/Makefile (tests): Add bug-iconv9.
16604         * iconvdata/bug-iconv9.c: New file.
16606 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16608         [BZ #12814]
16609         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16611 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16613         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16614         (struct user_regs_struct): Change intcs field back to cs.
16616 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16618         * po/ja.po: Update from translation team.
16620 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16622         [BZ #12795]
16623         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16624         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16626 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16628         * stdlib/longlong.h: Update from GCC.
16630 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16632         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16633         parameter name.
16634         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16635         Add parameter name.
16636         (__sysconf): Pass it down.
16638 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16640         [BZ #12671]
16641         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16642         some situations.
16643         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16644         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16645         add in in __libc_use_alloca calls.  Adjust callers.
16646         (glob): Use malloc in some situations.
16648         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16649         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16650         pltexit.
16652 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16654         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16655         and CLOCK_BOOTTIME_ALARM.
16657         [BZ #12782]
16658         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16659         is returned.
16661         * string/_strerror.c (__strerror_r): Print negative errors as signed
16662         numbers.
16664         [BZ #12777]
16665         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16666         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16667         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16669         * configure.in: Fix typo in redirection and correct removal of test
16670         files in two cases.
16672         [BZ #12788]
16673         * locale/setlocale.c (new_composite_name): Fix test to check for
16674         identical name of all categories.
16676         [BZ #12792]
16677         * libio/filedoalloc.c (local_isatty): New function.
16678         (_IO_file_doallocate): Use local_isatty.
16679         * stdio-common/perror.c (perror): In case a new stream is used
16680         forward the stream error.
16681         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16682         error flag.
16684 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16686         [BZ #11869]
16687         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16688         alloca.
16689         * include/alloca.h (extend_alloca_account): Define.
16691         [BZ #11857]
16692         * posix/regex.h: Fix comments with documentation of user-accessible
16693         fields after compilation and describe correct free'ing of pattern
16694         after re_compile_pattern.
16695         Patch by Reuben Thomas <rrt@sc3d.org>.
16697 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16699         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16700         and -mno-altivec to prevent the compiler from using Altivec and/or
16701         VSX instructions when the corresponding registers are not available.
16703 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16705         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16707 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16709         * libio/freopen.c (freopen): Use __dup2, not dup2.
16710         * libio/freopen64.c (freopen64): Likewise.
16712 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16714         [BZ #12775]
16715         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16716         * math/Makefile (tests): Add test-powl.
16717         (CFLAGS-test-powl.c): Define.
16718         * math/test-powl.c: New file.
16720 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16722         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16724 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16726         [BZ #11837]
16727         * iconvdata/gb18030.c: Update to GB18020-2005.
16729 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16731         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16732         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16733         Patch by Aharon Robbins <arnold@skeeve.com>.
16735         [BZ #11892]
16736         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16737         on the stack.
16739         [BZ #11895]
16740         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16741         through underflows.
16743         [BZ #12766]
16744         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16745         point to strings before performing equality test for error_one_per_line
16746         mode.
16748         [BZ #11697]
16749         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16751         [BZ #11820]
16752         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16753         (struct user_fpregs_struct): Avoid __uint*_t types.
16755         [BZ #6420]
16756         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16757         symbol info.  Use it instead of calling _dl_addr locally.
16758         (lock_and_info): New function.
16759         (tr_freehook): Call lock_and_info and pass symbol info as additional
16760         parameter to tr_where.
16761         (tr_mallochook): Likewise.
16762         (tr_reallochook): Likewise.
16763         (tr_memalignhook): Likewise.
16765         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16766         used and couldn't be at all thread-safe.
16768 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16770         * libio/freopen.c (freopen): Don't close old file descriptor
16771         before the new one is opened.  Instead dup the new file descriptor
16772         to the old one after the new stream is created.
16773         * libio/freopen64.c (freopen64): Likewise.
16774         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16775         * libio/fileops.c (_IO_new_file_close_it): Handle new
16776         _IO_FLAGS2_NOCLOSE flag.
16777         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16778         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16779         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16780         _IO_FLAGS2_NOCLOSE flag.
16781         * include/unistd.h: Add hidden_proto for dup3.
16782         Define __have_dup3.
16783         * io/dup3.c: Define hidden symbol.
16784         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16786         [BZ #7101]
16787         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16788         when an incomplete long option is used.
16789         * posix/tst-getopt_long1.c: New file.
16790         * posix/Makefile (tests): Add tst-getopt_long1.
16792         [BZ #10138]
16793         * scripts/config.guess: Update from autoconf-2.68.
16794         * scripts/config.sub: Likewise.
16796         [BZ #10157]
16797         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16798         tests into ...
16799         (has_cpuclock): ...this.  New function.
16800         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16801         macro here based on has_cpuclock code.
16803         [BZ #10149]
16804         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16805         First byte (not low byte) is now always NUL.
16806         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16808         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16809         Use non-cancelable interfaces.
16811         [BZ #9809]
16812         * locale/iso-639.def: Add entry for Sorani.
16814         [BZ #11901]
16815         * include/stdlib.h: Move include protection to the right place.
16816         Define abort_msg_s.  Declare __abort_msg with it.
16817         * stdlib/abort.c (__abort_msg): Adjust type.
16818         * assert/assert.c (__assert_fail_base): New function.  Majority
16819         of code from __assert_fail.  Allocate memory for __abort_msg with
16820         mmap.
16821         (__assert_fail): Now call __assert_fail_base.
16822         * assert/assert-perr.c: Remove bulk of implementation.  Use
16823         __assert_fail_base.
16824         * include/assert.hL Declare __assert_fail_base.
16825         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16826         mmap.
16827         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16829 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16831         [BZ #11952]
16832         [BZ #12453]
16833         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16834         until all modules are registered in the DTV.
16835         * elf/Makefile: Add rules to build and run tst-tls19.
16836         * elf/tst-tls19.c: New file.
16837         * elf/tst-tls19mod1.c: New file.
16838         * elf/tst-tls19mod2.c: New file.
16839         * elf/tst-tls19mod3.c: New file.
16840         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16842         [BZ #12083]
16843         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16844         correctly.
16846         [BZ #12601]
16847         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16848         two-byte sequence errors.
16849         * iconvdata/Makefile (tests): Add bug-iconv8.
16850         * iconvdata/bug-iconv8.c: New file.
16852         [BZ #12626]
16853         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16854         buf2 definition.
16856         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16858         [BZ #12432]
16859         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16860         (dummy_getcfa): New function.
16861         (init): Get _Unwind_GetCFA address, use dummy if not found.
16862         (backtrace_helper): In recursion check, also check whether CFA changes.
16863         (__backtrace): Completely initialize arg.
16865         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16866         storing incomplete byte sequence in state object.  Avoid testing for
16867         guaranteed too small input if we know there is enough data available.
16869 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16871         * Makeconfig (+link-pie): Indent.
16872         * Rules (binaries-pie): Define if $(have-fpie) and
16873         $(build-shared).
16874         (binaries-shared): Also filter out $(binaries-pie).
16875         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16876         * nscd/Makefile (others-pie): Add nscd.
16877         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16878         ($(objpfx)nscd): Remove command override.
16879         * login/Makefile (others-pie): Add pt_chown.
16880         ($(objpfx)pt_chown): Remove command override.
16881         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16882         remove command overrides.
16884 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16886         * libio/tst_putwc.c: Fix error messages.
16888         [BZ #12724]
16889         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16890         currently writing and seek to current position when not.
16891         * libio/Makefile (tests): Add bug-fclose1.
16892         * libio/bug-fclose1.c: New file.
16894 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16896         [BZ #12511]
16897         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16898         don't set DF_1_NODELETE here.
16899         (do_lookup_x): When entering new entry test for copy relocation
16900         and if necessary set DF_1_NODELETE flag.
16901         * elf/tst-unique4.cc: New file.
16902         * elf/tst-unique4.h: New file.
16903         * elf/tst-unique4lib.cc: New file.
16904         * elf/Makefile: Add rules to build and run tst-unique4.
16905         Patch by Piotr Bury <pbury@goahead.com>.
16907 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16909         [BZ #12052]
16910         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16912         [BZ #12625]
16913         * misc/mntent_r.c (addmntent): Flush the stream after the output
16915         [BZ #12393]
16916         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16917         (is_trusted_path_normalize): Skip initial colon.  Append slash
16918         to empty buffer.  Duplicate is_trusted_path code but allow
16919         constructed patch to be prefix.
16920         (is_dst): Allow $ORIGIN followed by /.
16921         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16922         Correct testing of result of is_trusted_path_normalize
16923         (decompose_rpath): Fix warning.
16925 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16927         [BZ #11257]
16928         * grp/initgroups.c (internal_getgrouplist): When we found the service
16929         list through the initgroups entry in nsswitch.conf do not always
16930         continue on a successful lookup.  Don't always use the
16931         __nss_group_database value if it is set.
16932         * nss/nsswitch.conf (initgroups): Change action for successful db
16933         lookup to continue for compatibility.
16935 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16937         [BZ #11532]
16938         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16939         and CP774 modules.
16940         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16941         and CP774 modules.
16942         * iconvdata/tst-tables.sh: Likewise.
16943         * iconvdata/cp770.c: New file.
16944         * iconvdata/cp771.c: New file.
16945         * iconvdata/cp772.c: New file.
16946         * iconvdata/cp773.c: New file.
16947         * iconvdata/cp774.c: New file.
16948         * iconvdata/testdata/CP770: New file.
16949         * iconvdata/testdata/CP770..UTF8: New file.
16950         * iconvdata/testdata/CP771: New file.
16951         * iconvdata/testdata/CP771..UTF8: New file.
16952         * iconvdata/testdata/CP772: New file.
16953         * iconvdata/testdata/CP772..UTF8: New file.
16954         * iconvdata/testdata/CP773: New file.
16955         * iconvdata/testdata/CP773..UTF8: New file.
16956         * iconvdata/testdata/CP774: New file.
16957         * iconvdata/testdata/CP774..UTF8: New file.
16959         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16960         END CHARMAP line.
16961         * iconvdata/gen-8bit-gap.sh: Likewise.
16962         * iconvdata/gen-8bit.sh: Likewise.
16964         * locale/iso-639.def: Add ary entry.
16966         [BZ #11258]
16967         * locale/C-translit.h.in: Add U20A1 transliteration.
16969         [BZ #12178]
16970         * locale/iso-639.def: Add wae entry.
16971         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16973         [BZ #12545]
16974         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16975         for n.
16977         [BZ #12711]
16978         * locale/C-translit.h.in: Add entry for U20B9.
16979         Patch by pravin.d.s@gmail.com.
16981 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16983         [BZ #12713]
16984         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16985         ENAMETOOLONG use generic getcwd.
16986         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16987         in rtld.  Use *stat64.
16988         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16989         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16990         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16991         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16992         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16993         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16994         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16995         __fstatat64 macros.
16996         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16997         * dirent/rewinddir.c: Add libc_hidden_def.
16998         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16999         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17001         * include/dirent.h (__alloc_dir): Add flags parameter.
17002         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17003         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17004         __alloc_dir.
17005         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17006         from fdopendir if O_CLOEXEC is already set.
17008 2011-03-15  Alan Modra  <amodra@gmail.com>
17010         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17011         l_tls_firstbyte_offset non-zero.  Save padding offset in
17012         l_tls_firstbyte_offset for later use.
17013         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17014         freeing static tls block.
17016 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17018         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17019         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17020         being defined by the kernel headers.
17022 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17024         [BZ #12734]
17025         * resolv/resolv.h: Define RES_NOTLDQUERY.
17026         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17027         no-tld-query and set RES_NOTLDQUERY.
17028         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17029         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17030         modern BIND to search name as TLD unless forbidden.
17032 2011-05-07  Petr Baudis  <pasky@suse.cz>
17033             Ulrich Drepper  <drepper@gmail.com>
17035         [BZ #12393]
17036         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17037         (is_trusted_path): ...to here.
17038         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17039         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17040         using is_trusted_path_normalize() in setuid scripts.
17042 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17044         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17045         __BEGIN/__END_DECLS.
17047 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17049         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17050         NSS_STATUS_NOTFOUND if no record was found.
17052 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17054         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17055         (headers-not-in-tirpc): Remove rpc/netdb.h
17056         * resolv/netdb.h: Revert last change.
17058 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17060         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17061         circular dependency between libgcc.a and libc.a.
17063 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17065         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17066         * nis/Makefile: Don't install rpcsvc/*.
17067         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17068         instead of <rpc/types.h>.
17069         (MAXHOSTNAMELEN): Define.
17071 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17073         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17075 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17077         [BZ #12714]
17078         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17079         gethostbyname4_r when IPv6 results are possible.
17081 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17083         [BZ #12723]
17084         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17085         _PC_PIPE_BUF handling.
17087 2011-04-30  Bruno Haible  <bruno@clisp.org>
17089         [BZ #12717]
17090         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17091         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17092         to 'int'.
17093         * inet/getnameinfo.c (getnameinfo): Likewise.
17095 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17097         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17098         to groups setting in database lookup.
17099         * nss/nsswitch.conf: Add initgroups entry.
17101 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17103         [BZ #12685]
17104         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17105         mode string.
17106         Patch by Eric Blake <eblake@redhat.com>.
17108 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17110         * sunrpc/Makefile (need-export-routines): Add svc_run.
17111         (routines): Remove svc_run.
17112         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17113         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17114         * sunrpc/svc_run.c (svc_run): Likewise.
17115         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17117 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17119         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17120         problem in reallocation in last patch.
17122 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17124         * sunrpc/Makefile: Move inclusion of Rules.
17126 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17128         * nss/nss_files/files-initgroups.c: New file.
17129         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17130         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17131         _nss_files_initgroups_dyn.
17133 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17135         * elf/elf.h (R_ARM_IRELATIVE): Define.
17137 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17139         * po/ru.po: Update from translation team.
17141 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17143         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17144         dependencies.
17146 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17148         [BZ #12653]
17149         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17150         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17151         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17152         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17153         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17155 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17157         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17158         differing bytes.
17159         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17160         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17161         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17163 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17165         [BZ #12420]
17166         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17167         storing it.
17168         * stdlib/bug-getcontext.c: New file.
17169         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17171 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17173         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17174         instructions into .machine "z9-109".
17175         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17176         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17178 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17180         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17181         between environment variables and auxiliary vector.
17183 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17185         * Makefile: Add rules to build linkobj/libc.so.
17186         * include/libc-symbols.h: Define libc_hidden_nolink.
17187         * include/rpc/auth.h: Mark functions which are to be hidden.
17188         * include/rpc/auth_des.h: Likewise.
17189         * include/rpc/auth_unix.h: Likewise.
17190         * include/rpc/clnt.h: Likewise.
17191         * include/rpc/des_crypt.h: Likewise.
17192         * include/rpc/key_prot.h: Likewise.
17193         * include/rpc/pmap_clnt.h: Likewise.
17194         * include/rpc/pmap_prot.h: Likewise.
17195         * include/rpc/pmap_rmt.h: Likewise.
17196         * include/rpc/rpc_msg.h: Likewise.
17197         * include/rpc/svc.h: Likewise.
17198         * include/rpc/svc_auth.h: Likewise.
17199         * include/rpc/xdr.h: Likewise.
17200         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17201         * nss/Makefile: Likewise.
17202         * sunrpc/Makefile: Don't install headers.  Build library with normal
17203         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17204         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17205         for the compat linking library.  Remove use of INTDEF/INTUSE.
17206         * sunrpc/auth_none.c: Likewise.
17207         * sunrpc/auth_unix.c: Likewise.
17208         * sunrpc/authdes_prot.c: Likewise.
17209         * sunrpc/authuxprot.c: Likewise.
17210         * sunrpc/clnt_gen.c: Likewise.
17211         * sunrpc/clnt_perr.c: Likewise.
17212         * sunrpc/clnt_raw.c: Likewise.
17213         * sunrpc/clnt_simp.c: Likewise.
17214         * sunrpc/clnt_tcp.c: Likewise.
17215         * sunrpc/clnt_udp.c: Likewise.
17216         * sunrpc/clnt_unix.c: Likewise.
17217         * sunrpc/des_crypt.c: Likewise.
17218         * sunrpc/des_soft.c: Likewise.
17219         * sunrpc/get_myaddr.c: Likewise.
17220         * sunrpc/key_call.c: Likewise.
17221         * sunrpc/key_prot.c: Likewise.
17222         * sunrpc/netname.c: Likewise.
17223         * sunrpc/pm_getmaps.c: Likewise.
17224         * sunrpc/pm_getport.c: Likewise.
17225         * sunrpc/pmap_clnt.c: Likewise.
17226         * sunrpc/pmap_prot.c: Likewise.
17227         * sunrpc/pmap_prot2.c: Likewise.
17228         * sunrpc/pmap_rmt.c: Likewise.
17229         * sunrpc/publickey.c: Likewise.
17230         * sunrpc/rpc_cmsg.c: Likewise.
17231         * sunrpc/rpc_common.c: Likewise.
17232         * sunrpc/rpc_dtable.c: Likewise.
17233         * sunrpc/rpc_prot.c: Likewise.
17234         * sunrpc/rpc_thread.c: Likewise.
17235         * sunrpc/rtime.c: Likewise.
17236         * sunrpc/svc.c: Likewise.
17237         * sunrpc/svc_auth.c: Likewise.
17238         * sunrpc/svc_authux.c: Likewise.
17239         * sunrpc/svc_raw.c: Likewise.
17240         * sunrpc/svc_run.c: Likewise.
17241         * sunrpc/svc_simple.c: Likewise.
17242         * sunrpc/svc_tcp.c: Likewise.
17243         * sunrpc/svc_udp.c: Likewise.
17244         * sunrpc/svc_unix.c: Likewise.
17245         * sunrpc/svcauth_des.c: Likewise.
17246         * sunrpc/xcrypt.c: Likewise.
17247         * sunrpc/xdr.c: Likewise.
17248         * sunrpc/xdr_array.c: Likewise.
17249         * sunrpc/xdr_float.c: Likewise.
17250         * sunrpc/xdr_intXX_t.c: Likewise.
17251         * sunrpc/xdr_mem.c: Likewise.
17252         * sunrpc/xdr_rec.c: Likewise.
17253         * sunrpc/xdr_ref.c: Likewise.
17254         * sunrpc/xdr_sizeof.c: Likewise.
17255         * sunrpc/xdr_stdio.c: Likewise.
17257 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17259         [BZ #12650]
17260         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17261         * sysdeps/ia64/dl-tls.h: Likewise.
17262         * sysdeps/powerpc/dl-tls.h: Likewise.
17263         * sysdeps/s390/dl-tls.h: Likewise.
17264         * sysdeps/sh/dl-tls.h: Likewise.
17265         * sysdeps/sparc/dl-tls.h: Likewise.
17266         * sysdeps/x86_64/dl-tls.h: Likewise.
17267         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17269 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17271         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17272         rpath element also skip the following colon.
17273         (expand_dynamic_string_token): Add is_path parameter and pass
17274         down to DL_DST_REQUIRED and _dl_dst_substitute.
17275         (decompose_rpath): Call expand_dynamic_string_token with
17276         non-zero is_path.  Ignore empty rpaths.
17277         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17278         with zero is_path.
17280 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17283         Make cancelable.
17285 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17287         [BZ #12655]
17288         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17289         Patch by Filipe David Manana <fdmanana@apache.org>.
17291 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17293         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17294         Maintain aligned stack.
17295         (CHECK_RSP): Remove unused macro.
17297 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17299         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17300         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17302 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17304         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17306         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17308 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17310         [BZ #12518]
17311         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17312         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17313         * sysdeps/x86_64/memmove.c: New file.
17314         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17315         (memcpy): Renamed to ...
17316         (__new_memcpy): This.
17317         (memcpy): Provide GLIBC_2_14 memcpy.
17318         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17319         (memcpy): Provide GLIBC_2_2_5 memcpy.
17321 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17323         [BZ #12631]
17324         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17326 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17328         * misc/syncfs.c: New file.
17329         * misc/Makefile (routines): Add syncfs.
17330         * posix/unistd.h: Declare syncfs.
17331         * sysdeps/unix/syscalls.list: Add syncfs.
17333 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17335         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17336         open_by_handle_at.
17337         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17338         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17339         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17340         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17341         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17342         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17343         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17345 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17347         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17348         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17349         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17350         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17351         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17352         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17353         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17355         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17356         sync_file_range.c with -fexceptions.
17357         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17358         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17359         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17360         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17361         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17362         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17363         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17364         sync_file_range as cancellation point
17365         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17366         now a wrapper around __call_sync_file_range with cancellation handling.
17367         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17368         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17369         function name to __call_sync_file_range.
17370         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17371         Add call_sync_file_range.
17373 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17375         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17376         bits/timex.h.
17378 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17380         * iconv/iconv.h: Fix typo in comment.
17381         * io/fcntl.h: Likewise.
17382         * libio/stdio.h: Likewise.
17383         * posix/spawn.h: Likewise.
17384         * posix/unistd.h: Likewise.
17385         * stdlib/stdlib.h: Likewise.
17386         * time/time.h: Likewise.
17387         * wcsmbs/wchar.h: Likewise.
17389         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17390         open_by_handle): Add.
17391         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17392         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17393         Augment a few comments.
17394         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17395         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17396         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17397         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17398         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17399         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17400         open_by_handle.
17402         * io/fcntl.h (AT_EMPTY_PATH): Define.
17404 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17406         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17407         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17408         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17409         to...
17410         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17411         * Versions.def: Add GLIBC_2.14.
17412         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17413         Export.
17415 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17417         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17418         round counter.
17419         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17421 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17423         [BZ #12597]
17424         * string/test-strncmp.c (do_page_test): New function.
17425         (check2): Likewise.
17426         (test_main): Call check2.
17427         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17429 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17431         [BZ #12587]
17432         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17433         Handle cache information in CPU leaf 4.
17434         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17436 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17438         [BZ #12583]
17439         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17440         character representation.
17441         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17443 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17445         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17446         END(__isnan) to END(__isnanf) to match function entry point/label
17447         EALIGN(__isnanf,...).
17449 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17451         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17453 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17455         [BZ #12510]
17456         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17457         copy from the symbol referenced in the relocation to initialize the
17458         used variable.
17459         Patch by Piotr Bury <pbury@goahead.com>.
17460         * elf/Makefile: Add rules to build and tst-unique3.
17461         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17462         * elf/tst-unique3.cc: New file.
17463         * elf/tst-unique3.h: New file.
17464         * elf/tst-unique3lib.cc: New file.
17465         * elf/tst-unique3lib2.cc: New file.
17467         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17469 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17471         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17472         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17473         to _start.
17475 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17477         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17478         to-be-loaded object along a path to loader is ld.so.
17480 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17481             Ulrich Drepper  <drepper@gmail.com>
17483         * sysdeps/x86_64/memset.S: After aligning destination, code
17484         branches to different locations depending on the value of
17485         misalignment, when multiarch is enabled. Fix this.
17487 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17489         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17490         Set _x86_64_preferred_memory_instruction for AMD processsors.
17491         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17492         Set bit_Prefer_SSE_for_memop for AMD processors.
17494 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17496         * libio/fmemopen.c (fmemopen): Optimize a bit.
17498 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17500         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17502 2011-03-03  Roland McGrath  <roland@redhat.com>
17504         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17506 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17508         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17509         __bzero_ultra1 instead of __memset_ultra1.
17511 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17512             Ulrich Drepper  <drepper@gmail.com>
17514         [BZ #12509]
17515         * include/link.h (struct link_map): Add l_orig_initfini.
17516         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17517         returning unsuccessfully.
17518         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17519         close of a file loaded at startup, restore the original l_initfini
17520         list.
17521         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17522         list, store the pointer.
17523         * elf/Makefile ($(objpfx)noload-mem): New rule.
17524         (noload-ENV): Define.
17525         (tests): Add $(objpfx)noload-mem.
17526         * elf/noload.c: Include <memcheck.h>.
17527         (main): Call mtrace.  Close all opened handles.
17529 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17531         [BZ #12454]
17532         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17533         dependencies are missing.
17535 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17537         Fix __if_freereq crash: Unlike the generic version which uses free,
17538         Hurd needs munmap.
17539         * sysdeps/mach/hurd/ifreq.h: New file.
17541 2011-01-27  Petr Baudis  <pasky@suse.cz>
17542             Ulrich Drepper  <drepper@gmail.com>
17544         [BZ 12445]#
17545         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17546         to extend_alloca().
17547         * stdio-common/bug23.c: New file.
17548         * stdio-common/Makefile (tests): Add bug23.
17550 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17551             Ulrich Drepper  <drepper@gmail.com>
17553         [BZ #12489]
17554         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17555         before performing relro protection.  At old place add assertion
17556         to make sure nothing changed.
17558 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17559             Glauber de Oliveira Costa  <glommer@gmail.com>
17561         * elf/elf.h: Add new ARM TLS relocs.
17563 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17566         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17567         cast from r3.
17568         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17569         'tests' variable.
17570         * sysdeps/wordsize-64/tst-writev.c: New file.
17572 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17574         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17575         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17576         insns in _dl_start to prevent a TOC reference before relocs are
17577         resolved.
17579 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17581         [BZ #12469]
17582         * Makeconfig: Remove RANLIB definition.
17583         * Makerules: Don't use RANLIB.
17584         * aclocal.m4: Remove ranlib test.
17585         * configure.in: No need to check for ranlib.
17586         * elf/rtld-Rules: Don't use RANLIB.
17588 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17590         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17591         protection macro.
17592         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17593         inclusion protection macro.
17595         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17596         SIGRTMIN and SIGRTMAX and print information in that case only when
17597         SIGRTMIN is defined.
17599 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17601         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17602         arginfo fn returning -1.
17604         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17605         and thousands string is zero terminated.
17607 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17609         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17610         sysdeps/unix/sysv/linux/bits/socket.h.
17612 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17614         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17615         (__CPU_COUNT): Remove old macros.
17616         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17617         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17618         (__CPU_ALLOC, __CPU_FREE): Add macros.
17619         (__sched_cpualloc, __sched_cpufree): Add declarations.
17621 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17623         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17624         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17625         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17626         (readdhstai): Return value of addhstaiX call.
17627         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17628         (addgrbyX): Return value returned by cache_addgr.
17629         (readdgrbyname): Return value returned by addgrbyX.
17630         (readdgrbygid): Likewise.
17631         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17632         (addpwbyX): Return value returned by cache_addpw.
17633         (readdpwbyname): Return value returned by addhstbyX.
17634         (readdpwbyuid): Likewise.
17635         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17636         (addservbyX): Return value returned by cache_addserv.
17637         (readdservbyname): Return value returned by addservbyX:
17638         (readdservbyport): Likewise.
17639         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17640         (addhstbyX): Return value returned by cache_addhst.
17641         (readdhstbyname): Return value returned by addhstbyX.
17642         (readdhstbyaddr): Likewise.
17643         (readdhstbynamev6): Likewise.
17644         (readdhstbyaddrv6): Likewise.
17645         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17646         (readdinitgroups): Return value returned by addinitgroupsX.
17647         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17648         (prune_cache): Keep track of timeout value of re-added entries.
17649         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17650         * nscd/nscd.h: Adjust prototypes of readd* functions.
17652 2011-02-04  Roland McGrath  <roland@redhat.com>
17654         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17655         (nis_stats): Likewise.
17656         * nis/nis_modify.c (nis_modify): Likewise.
17657         * nis/nis_remove.c (nis_remove): Likewise.
17658         * nis/nis_add.c (nis_add): Likewise.
17660         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17662         * posix/fnmatch_loop.c: Add some consts.
17664         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17666 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17668         [BZ #12460]
17669         * config.make.in (config-cflags-novzeroupper): Define.
17670         * configure.in: Substitute libc_cv_cc_novzeroupper.
17671         * elf/Makefile (AVX-CFLAGS): Define.
17672         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17673         (CFLAGS-tst-auditmod4a.c): Likewise.
17674         (CFLAGS-tst-auditmod4b.c): Likewise.
17675         (CFLAGS-tst-auditmod6b.c): Likewise.
17676         (CFLAGS-tst-auditmod6c.c): Likewise.
17677         (CFLAGS-tst-auditmod7b.c): Likewise.
17678         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17680 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17682         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17683         function to the callback.
17684         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17686 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17688         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17689         of errno.
17691 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17693         [BZ #11724]
17694         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17695         of constructors.
17696         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17697         of destructors.
17698         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17700         [BZ #11724]
17701         * elf/Makefile: Add rules to build and run new test.
17702         * elf/tst-initorder.c: New file.
17703         * elf/tst-initorder.exp: New file.
17704         * elf/tst-initordera1.c: New file.
17705         * elf/tst-initordera2.c: New file.
17706         * elf/tst-initordera3.c: New file.
17707         * elf/tst-initordera4.c: New file.
17708         * elf/tst-initorderb1.c: New file.
17709         * elf/tst-initorderb2.c: New file.
17710         * elf/tst-order-a1.c: New file.
17711         * elf/tst-order-a2.c: New file.
17712         * elf/tst-order-a3.c: New file.
17713         * elf/tst-order-a4.c: New file.
17714         * elf/tst-order-b1.c: New file.
17715         * elf/tst-order-b2.c: New file.
17716         * elf/tst-order-main.c: New file.
17717         New test case by George Gensure <werkt0@gmail.com>.
17719 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17721         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17722         decoding ACE if AI_CANONIDN.
17724 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17726         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17728 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17730         * version.h (RELEASE): Bump for 2.13 release.
17731         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17733         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17735         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17736         MADV_NOHUGEPAGE.
17737         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17738         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17739         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17740         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17741         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17742         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17744         * posix/getconf.c: Update copyright year.
17745         * catgets/gencat.c: Likewise.
17746         * csu/version.c: Likewise.
17747         * debug/catchsegv.sh: Likewise.
17748         * debug/xtrace.sh: Likewise.
17749         * elf/ldconfig.c: Likewise.
17750         * elf/ldd.bash.in: Likewise.
17751         * elf/sprof.c (print_version): Likewise.
17752         * iconv/iconv_prog.c: Likewise.
17753         * iconv/iconvconfig.c: Likewise.
17754         * locale/programs/locale.c: Likewise.
17755         * locale/programs/localedef.c: Likewise.
17756         * malloc/memusage.sh: Likewise.
17757         * malloc/mtrace.pl: Likewise.
17758         * nscd/nscd.c (print_version): Likewise.
17759         * nss/getent.c: Likewise.
17761         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17762         PF_CAIF, and PF_ALG.
17763         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17765 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17767         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17768         (modules-names): Use them.
17769         (ifunc-test-modules, ifunc-pie-tests): Define.
17770         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17771         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17772         (test-extras): Likewise.
17773         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17774         $(compile-command.c).
17775         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17776         (all-built-dso): Define.
17777         (check-textrel.out, check-execstack.out): Depend on it.
17779         * configure.in: Don't override --enable-multi-arch.
17781 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17783         [BZ #6812]
17784         * nscd/hstcache.c (tryagain): Define.
17785         (cache_addhst): Return tryagain not notfound for temporary errors.
17786         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17787         failed.
17789 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17791         [BZ #10563]
17792         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17793         to make the syscall.
17794         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17796         [BZ #12378]
17797         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17798         and fall back to matching as normal character if the string ends before
17799         the matching ']' is found.  This is what POSIX requires.
17800         * posix/testfnm.c: Adjust test result.
17801         * posix/globtest.sh: Adjust test result.  Add new test.
17802         * posix/tst-fnmatch.input: Likewise.
17803         * posix/tst-fnmatch2.c: Add new test.
17805 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17807         * elf/Makefile (check-execstack): Revert last change.  Depend on
17808         check-execstack.h.
17809         (check-execstack.h): New target.
17810         (generated): Add check-execstack.h.
17811         * elf/check-execstack.c: Include "check-execstack.h".
17812         (main): Revert last change.
17813         (handle_file): Return zero if GNU_STACK is absent and
17814         DEFAULT_STACK_PERMS doesn't include PF_X.
17816 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17818         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17819         in child fails because the descriptor is already closed.
17820         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17821         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17822         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17824         [BZ #12397]
17825         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17826         syscall.
17828         [BZ #10484]
17829         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17830         temporary buffer used to handle multi lookups locally.
17831         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17833 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17835         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17836         loader is ld.so.
17838 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17840         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17841         alignment for SSE2.
17843 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17845         [BZ #12394]
17846         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17847         characters.  When rounding increased number of integer digits recompute
17848         number of groups.
17849         * stdio-common/tst-grouping.c: New file.
17850         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17852 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17854         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17855         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17857         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17858         void.
17859         * bits/select.h: Likewise.
17861 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17863         * po/ja.po: Update from translation team.
17865 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17867         [BZ #11155]
17868         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17869         implementation just like for lxstat, fxstatat, et al.
17871 2010-12-27  Jim Meyering  <meyering@redhat.com>
17873         [BZ #12348]
17874         * posix/regexec.c (build_trtable): Return failure indication upon
17875         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17877 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17879         [BZ #12201]
17880         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17881         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17882         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17883         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17885         [BZ #12207]
17886         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17888         [BZ #12204]
17889         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17890         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17892 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17894         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17895         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17896         script has SORT_BY_INIT_PRIORITY.
17897         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17898         NO_CTORS_DTORS_SECTIONS is defined.
17899         * elf/soinit.c: Likewise.
17900         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17901         NO_CTORS_DTORS_SECTIONS is defined.
17902         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17903         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17904         * sysdeps/sh/init-first.c: Likewise.
17905         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17907 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17909         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17910         always use the slow path.
17912 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17914         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17915         similar rule which adds the sysdep directories to the header search in
17916         order to pick up the correct platform stackinfo.h.
17917         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17918         perform test if it is, otherwise return successfully without testing.
17919         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17920         DEFAULT_STACK_PERMS define in stackinfo.h.
17921         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17922         defined in stackinfo.h.
17923         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17924         DEFAULT_STACK_PERMS defined in stackinfo.h.
17925         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17926         * sysdeps/ia64/stackinfo.h: Likewise.
17927         * sysdeps/s390/stackinfo.h: Likewise.
17928         * sysdeps/sh/stackinfo.h: Likewise.
17929         * sysdeps/sparc/stackinfo.h: Likewise.
17930         * sysdeps/x86_64/stackinfo.h: Likewise.
17931         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17932         PF_X for powerpc64.  Retain PF_X for powerpc32.
17934 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17936         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17937         accurately.
17938         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17939         GETDENTS_64BIT_ALIGNED.
17941 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17943         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17945 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17947         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17948         _GNU_SOURCE.
17950         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17951         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17952         Remove __restrict.
17953         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17954         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17956 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17958         [BZ #11655]
17959         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17960         are initialized.
17962 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17964         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17966 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17968         * po/it.po: Update from translation team.
17970 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17972         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17973         unused codes.
17975 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17977         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17979 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17981         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17982         specially.
17983         (gaih_getanswer_slice): Likewise.
17985 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17987         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17989 2010-05-31  Petr Baudis  <pasky@suse.cz>
17991         [BZ #11149]
17992         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17993         silently even in the chroot mode.
17995 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17997         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17998         last patch a bit.  Pretty printing
18000 2010-05-31  Petr Baudis <pasky@suse.cz>
18002         [BZ #10085]
18003         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18004         initialization of skip_initgroups_dyn.
18006 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18008         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18009         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18011 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18013         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18015 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18017         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18018         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18019         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18020         ($(objpfx)tst-fnmatch-mem): New rule.
18021         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18022         * posix/tst-fnmatch.c (main): Call mtrace.
18024 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18026         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18027         Support Intel processor model 6 and model 0x2c.
18029 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18031         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18032           signed comparison.
18034 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18036         [BZ #12205]
18037         * string/test-strncasecmp.c (check_result): New function.
18038         (do_one_test): Use it.
18039         (check1): New function.
18040         (test_main): Use it.
18041         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18042         Support strcasecmp and strncasecmp.
18044 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18046         [BZ #12194]
18047         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18048         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18050 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18052         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18053         IFUNC support.
18054         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18055         memset-x86-64.
18056         * sysdeps/x86_64/multiarch/bzero.S: New file.
18057         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18058         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18059         * sysdeps/x86_64/multiarch/memset.S: New file.
18060         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18061         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18062         Set bit_Prefer_SSE_for_memop for Intel processors.
18063         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18064         Define.
18065         (index_Prefer_SSE_for_memop): Define.
18066         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18068 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18070         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18071         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18073 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18075         [BZ #12191]
18076         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18077         (__x86_64_raw_data_cache_size_half): Likewise.
18078         (__x86_64_raw_shared_cache_size): Likewise.
18079         (__x86_64_raw_shared_cache_size_half): Likewise.
18081         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18082         (__x86_64_raw_data_cache_size_half): Likewise.
18083         (__x86_64_raw_shared_cache_size): Likewise.
18084         (__x86_64_raw_shared_cache_size_half): Likewise.
18085         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18086         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18087         and __x86_64_raw_shared_cache_size_half.  Round
18088         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18089         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18090         to multiple of 256 bytes.
18092 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18094         [BZ #12167]
18095         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18096         of inacessible symlinks.  Verify result of symlink before returning it.
18097         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18098         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18100 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18102         * math/math.h (isinf): Fix typo in comment.
18104 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18106         * po/da.po: Update from translation team.
18108 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18110         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18111         is added to the list.
18113 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18114             Ulrich Drepper  <drepper@gmail.com>
18116         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18117         the global list here.  Move code to...
18118         (_dl_add_to_namespace_list): ...here.  New function.
18119         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18120         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18121         * elf/dl-load.c (lose): Don't remove the element from the list.
18122         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18123         (_dl_map_object): Likewise.
18125 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18127         [BZ #12159]
18128         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18129         into all bytes of SSE register.
18130         Patch by Richard Li <richardpku@gmail.com>.
18132 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18134         [BZ #12140]
18135         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18136         perturbing.
18138 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18140         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18141         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18142         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18143         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18145         submachine.
18146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18148 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18150         * include/dlfcn.h (__RTLD_SECURE): Define.
18151         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18152         mode & __RTLD_SECURE instead.
18153         (open_path): Rename preloaded parameter to secure.
18154         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18155         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18156         * elf/dl-deps.c (openaux): Likewise.
18157         * elf/rtld.c (struct map_args): Remove is_preloaded.
18158         (map_doit): Don't use it.
18159         (dl_main): Likewise.
18160         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18161         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18163 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18165         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18166         (sysd-rules-targets): Remove duplicates.
18167         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18168         rtld-%.$o dependency.
18170 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18172         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18173         _dl_map_object do it.
18175 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18177         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18178         fast fma builtins, define the macros in the C99 standard.
18179         (FP_FAST_FMAF): Likewise.
18180         (FP_FAST_FMAL): Likewise.
18181         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18183         * bits/mathdef.h: Update copyright year.
18184         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18186 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18188         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18189         builtins, define the macros in the C99 standard.
18190         (FP_FAST_FMAF): Likewise.
18191         (FP_FAST_FMAL): Likewise.
18192         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18193         multiply/add.
18194         (FP_FAST_FMAF): Likewise.
18196 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18198         [BZ #3268]
18199         * math/libm-test.inc (fma_test): Some new testcases.
18200         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18201         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18202         y and infinite z.  Do multiplication by C already in long double.
18203         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18204         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18205         y and infinite z.  Do bitwise or of inexact bit into u.d.
18206         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18207         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18208         * sysdeps/i386/fpu/s_fma.S: Removed.
18209         * sysdeps/i386/fpu/s_fmal.S: Removed.
18211 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18213         [BZ #3268]
18214         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18215         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18216         computation is not scheduled after fetestexcept.  Fix value
18217         of minimum denormal long double.
18219 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18221         [BZ #3268]
18222         * math/libm-test.inc (fma_test): Add some more tests.
18223         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18224         correctly.
18226 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18228         * scripts/data/localplt-s390-linux-gnu.data: New file.
18229         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18231 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18233         [BZ #3268]
18234         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18235         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18236         instead of dbl-64.
18237         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18238         inlines.
18239         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18240         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18241         if one of x and y is very large and the other is subnormal.
18242         * sysdeps/s390/fpu/s_fmaf.c: New file.
18243         * sysdeps/s390/fpu/s_fma.c: New file.
18244         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18245         * sysdeps/powerpc/fpu/s_fma.S: New file.
18246         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18247         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18248         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18250 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18252         [BZ #3268]
18253         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18254         fma tests.
18255         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18256         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18257         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18258         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18259         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18260         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18261         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18263 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18265         [BZ #12078]
18266         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18267         * posix/bug-regex31.input: Add test case.
18269 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18271         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18272         * posix/bug-regex31.input: New file.
18274         [BZ #12078]
18275         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18276         (parse_sub_exp): Fix last change, use postorder.
18278         * posix/bug-regex31.c: New file.
18279         * posix/Makefile: Add rules to build and run bug-regex31.
18281         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18283         [BZ #12078]
18284         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18286         [BZ #12108]
18287         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18288         to have entries in sys_siglist.
18290         [BZ #12093]
18291         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18292         be NULL.
18294 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18296         [BZ #3268]
18297         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18298         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18299         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18300         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18301         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18302         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18303         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18304         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18305         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18306         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18307         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18308         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18309         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18310         * math/ftestexcept.c (fetestexcept): Likewise.
18311         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18312         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18313         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18314         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18315         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18316         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18317         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18319 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18321         [BZ #12107]
18322         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18323         newline.
18325 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18327         * string/bug-strstr1.c: New file.
18328         * string/Makefile: Add rules to build and run bug-strstr1.
18330 2010-10-05  Eric Blake  <eblake@redhat.com>
18332         [BZ #12092]
18333         * string/str-two-way.h (two_way_long_needle): Always clear memory
18334         when skipping input due to the shift table.
18336 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18338         [BZ #12005]
18339         * malloc/mcheck.c: Handle large requests.
18341         [BZ #12077]
18342         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18343         for strncmp and strncasecmp.
18344         * string/stratcliff.c: Add tests for strcmp and strncmp.
18345         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18347 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18349         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18350         __set_fpscr.
18352 2010-09-30  Andreas Jaeger  <aj@suse.de>
18354         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18355         (CGROUP_SUPER_MAGIC): Define.
18356         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18357         Handle btrfs and cgroup file systems.
18358         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18359         Likewise.
18361 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18363         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18364         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18366 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18368         [BZ #12067]
18369         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18370         trying to locate the ELF header.
18372 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18374         [BZ #11611]
18375         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18376         Mask out sign-bit copies when constructing f_fsid.
18378 2010-09-24  Petr Baudis <pasky@suse.cz>
18380         * debug/stack_chk_fail_local.c: Add missing licence exception.
18381         * debug/warning-nop.c: Likewise.
18383 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18385         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18386         implementing getdents64 using getdents syscall, set d_type if
18387         __ASSUME_GETDENTS32_D_TYPE.
18389 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18391         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18392         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18394 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18396         [BZ #12037]
18397         * posix/unistd.h: Undo change of feature selection for ftruncate from
18398         2010-01-11.
18400 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18402         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18403         detection.
18405 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18407         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18408         fanotify_mark.
18409         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18411 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18413         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18414         variables after CHECK_SP call.
18415         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18417 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18418             Ulrich Drepper  <drepper@redhat.com>
18420         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18421         re-relocationg ld.so.
18422         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18423         _dl_init_paths call.
18424         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18425         here anymore.
18427 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18429         * resolv/res_init.c (__res_vinit): Count the default server we added.
18431 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18432             Ulrich Drepper  <drepper@redhat.com>
18434         [BZ #11968]
18435         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18436         (____longjmp_chk): Use %ebx for saving value across system call.
18437         Add unwind info.
18439 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18441         * manual/Makefile: Don't mix pattern rules with normal rules.
18443 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18445         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18446         operation.
18447         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18448         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18449         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18450         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18451         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18452         Likewise.
18454 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18456         [BZ #11979]
18457         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18458         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18460 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18462         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18463         * sysdeps/x86_64/addmul_1.S: Likewise.
18464         * sysdeps/x86_64/lshift.S: Likewise.
18465         * sysdeps/x86_64/mul_1.S: Likewise.
18466         * sysdeps/x86_64/rshift.S: Likewise.
18467         * sysdeps/x86_64/sub_n.S: Likewise.
18468         * sysdeps/x86_64/submul_1.S: Likewise.
18470 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18472         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18473         Define __sched_param instead of SCHED_* and sched_param when
18474         <bits/sched.h> is included with __need_schedparam defined.
18475         * bits/sched.h [__need_schedparam]
18476         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18477         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18478         (__defined_schedparam): Define to 1.
18479         (__sched_param): New structure, identical to sched_param.
18480         (__need_schedparam): Undefine.
18482 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18484         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18485         (epoll_create1): Declare.
18487         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18489 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18491         [BZ #7066]
18492         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18493         shifting retval into place.
18495 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18497         * nis/rpcsvc/nis.h: Update copyright notice.
18498         * nis/rpcsvc/nis.x: Likewise.
18499         * nis/rpcsvc/nis_callback.h: Likewise.
18500         * nis/rpcsvc/nis_callback.x: Likewise.
18501         * nis/rpcsvc/nis_object.x: Likewise.
18502         * nis/rpcsvc/nis_tags.h: Likewise.
18503         * nis/rpcsvc/yp.h: Likewise.
18504         * nis/rpcsvc/yp.x: Likewise.
18505         * nis/rpcsvc/ypupd.h: Likewise.
18506         * nis/yp_xdr.c: Likewise.
18507         * nis/ypupdate_xdr.c: Likewise.
18509         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18510         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18511         (pmap_getport): Use __libc_rpc_getport.
18512         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18513         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18514         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18516 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18519         fanotify_mark.
18521 2010-08-27  Roland McGrath  <roland@redhat.com>
18523         * sysdeps/i386/i686/multiarch/Makefile
18524         (CFLAGS-varshift.c): New variable.
18526 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18528         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18529         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18531         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18533         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18535 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18537         * sysdeps/x86_64/strlen.S: Unroll the loop.
18538         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18539         strlen-sse2 strlen-sse2-bsf.
18540         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18541         __strlen_no_bsf if bit_Slow_BSF is set.
18542         (__strlen_sse42): Removed.
18543         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18544         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18546 2010-08-25  Roland McGrath  <roland@redhat.com>
18548         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18549         * sysdeps/x86_64/multiarch/varshift.c: New file.
18550         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18551         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18552         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18553         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18555 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18557         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18558         strlen-sse2 strlen-sse2-bsf.
18559         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18560         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18561         (__strlen_sse2): Removed.
18562         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18563         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18564         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18565         bit_Slow_BSF for Atom.
18566         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18567         (index_Slow_BSF): Define.
18568         (HAS_SLOW_BSF): Define.
18570 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18572         [BZ #10851]
18573         * resolv/res_init.c (__res_vinit): When no server address at all
18574         is given default to loopback.
18576 2010-08-24  Roland McGrath  <roland@redhat.com>
18578         * configure.in: Remove config-name.h generation.
18579         * configure: Regenerated.
18580         * config-name.in: File removed.
18581         * scripts/config-uname.sh: New file.
18582         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18583         ($(objdir)config-name.h): New target.
18585         * sunrpc/rpc_parse.h: Avoid nested comment.
18587 2010-08-24  Richard Henderson  <rth@redhat.com>
18588             Ulrich Drepper  <drepper@redhat.com>
18589             H.J. Lu  <hongjiu.lu@intel.com>
18591         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18592         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18593         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18594         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18595         _mm_alignr_epi8 with _mm_loadu_si128.
18596         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18597         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18598         (__m128i_shift_right): Removed.
18599         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18600         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18601         * sysdeps/x86_64/multiarch/varshift.h: New file.
18602         * sysdeps/x86_64/multiarch/varshift.S: New file.
18604 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18606         * configure.in: Move assembler checks to before sysdep dir checking.
18608 2010-08-20  Petr Baudis  <pasky@suse.cz>
18610         * LICENSES: Sync the sunrpc license.
18612 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18614         * sunrpc/auth_des.c: Update copyright notice once again.
18615         * sunrpc/auth_none.c: Likewise.
18616         * sunrpc/auth_unix.c: Likewise.
18617         * sunrpc/authdes_prot.c: Likewise.
18618         * sunrpc/authuxprot.c: Likewise.
18619         * sunrpc/bindrsvprt.c: Likewise.
18620         * sunrpc/clnt_gen.c: Likewise.
18621         * sunrpc/clnt_perr.c: Likewise.
18622         * sunrpc/clnt_raw.c: Likewise.
18623         * sunrpc/clnt_simp.c: Likewise.
18624         * sunrpc/clnt_tcp.c: Likewise.
18625         * sunrpc/clnt_udp.c: Likewise.
18626         * sunrpc/clnt_unix.c: Likewise.
18627         * sunrpc/des_crypt.c: Likewise.
18628         * sunrpc/des_soft.c: Likewise.
18629         * sunrpc/get_myaddr.c: Likewise.
18630         * sunrpc/getrpcport.c: Likewise.
18631         * sunrpc/key_call.c: Likewise.
18632         * sunrpc/key_prot.c: Likewise.
18633         * sunrpc/openchild.c: Likewise.
18634         * sunrpc/pm_getmaps.c: Likewise.
18635         * sunrpc/pm_getport.c: Likewise.
18636         * sunrpc/pmap_clnt.c: Likewise.
18637         * sunrpc/pmap_prot.c: Likewise.
18638         * sunrpc/pmap_prot2.c: Likewise.
18639         * sunrpc/pmap_rmt.c: Likewise.
18640         * sunrpc/rpc/auth.h: Likewise.
18641         * sunrpc/rpc/auth_unix.h: Likewise.
18642         * sunrpc/rpc/clnt.h: Likewise.
18643         * sunrpc/rpc/des_crypt.h: Likewise.
18644         * sunrpc/rpc/key_prot.h: Likewise.
18645         * sunrpc/rpc/netdb.h: Likewise.
18646         * sunrpc/rpc/pmap_clnt.h: Likewise.
18647         * sunrpc/rpc/pmap_prot.h: Likewise.
18648         * sunrpc/rpc/pmap_rmt.h: Likewise.
18649         * sunrpc/rpc/rpc.h: Likewise.
18650         * sunrpc/rpc/rpc_des.h: Likewise.
18651         * sunrpc/rpc/rpc_msg.h: Likewise.
18652         * sunrpc/rpc/svc.h: Likewise.
18653         * sunrpc/rpc/svc_auth.h: Likewise.
18654         * sunrpc/rpc/types.h: Likewise.
18655         * sunrpc/rpc/xdr.h: Likewise.
18656         * sunrpc/rpc_clntout.c: Likewise.
18657         * sunrpc/rpc_cmsg.c: Likewise.
18658         * sunrpc/rpc_common.c: Likewise.
18659         * sunrpc/rpc_cout.c: Likewise.
18660         * sunrpc/rpc_dtable.c: Likewise.
18661         * sunrpc/rpc_hout.c: Likewise.
18662         * sunrpc/rpc_main.c: Likewise.
18663         * sunrpc/rpc_parse.c: Likewise.
18664         * sunrpc/rpc_parse.h: Likewise.
18665         * sunrpc/rpc_prot.c: Likewise.
18666         * sunrpc/rpc_sample.c: Likewise.
18667         * sunrpc/rpc_scan.c: Likewise.
18668         * sunrpc/rpc_scan.h: Likewise.
18669         * sunrpc/rpc_svcout.c: Likewise.
18670         * sunrpc/rpc_tblout.c: Likewise.
18671         * sunrpc/rpc_util.c: Likewise.
18672         * sunrpc/rpc_util.h: Likewise.
18673         * sunrpc/rpcinfo.c: Likewise.
18674         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18675         * sunrpc/rpcsvc/key_prot.x: Likewise.
18676         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18677         * sunrpc/rpcsvc/mount.x: Likewise.
18678         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18679         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18680         * sunrpc/rpcsvc/rex.x: Likewise.
18681         * sunrpc/rpcsvc/rstat.x: Likewise.
18682         * sunrpc/rpcsvc/rusers.x: Likewise.
18683         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18684         * sunrpc/rpcsvc/spray.x: Likewise.
18685         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18686         * sunrpc/rtime.c: Likewise.
18687         * sunrpc/svc.c: Likewise.
18688         * sunrpc/svc_auth.c: Likewise.
18689         * sunrpc/svc_authux.c: Likewise.
18690         * sunrpc/svc_raw.c: Likewise.
18691         * sunrpc/svc_run.c: Likewise.
18692         * sunrpc/svc_simple.c: Likewise.
18693         * sunrpc/svc_tcp.c: Likewise.
18694         * sunrpc/svc_udp.c: Likewise.
18695         * sunrpc/svc_unix.c: Likewise.
18696         * sunrpc/svcauth_des.c: Likewise.
18697         * sunrpc/xcrypt.c: Likewise.
18698         * sunrpc/xdr.c: Likewise.
18699         * sunrpc/xdr_array.c: Likewise.
18700         * sunrpc/xdr_float.c: Likewise.
18701         * sunrpc/xdr_mem.c: Likewise.
18702         * sunrpc/xdr_rec.c: Likewise.
18703         * sunrpc/xdr_ref.c: Likewise.
18704         * sunrpc/xdr_sizeof.c: Likewise.
18705         * sunrpc/xdr_stdio.c: Likewise.
18707         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18708         handling.
18710 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18712         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18714 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18716         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18717         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18718         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18719         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18720         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18721         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18722         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18723         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18724         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18725         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18726         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18727         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18728         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18729         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18731 2010-07-26  Anton Blanchard  <anton@samba.org>
18733         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18734         * malloc/arena.c (heap_trim): Likewise.
18736 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18738         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18739         here.  Not...
18740         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18741         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18743 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18745         * sysdeps/i386/elf/Makefile: New file.
18747 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18749         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18750         from fanotify_init.
18751         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18752         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18754 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18756         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18757         of strncasecmp_l.
18758         * sysdeps/multiarch/strcmp.S: Likewise.
18760 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18762         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18763         strncase_l-nonascii.
18764         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18765         Add strncase_l-ssse3.
18766         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18767         * sysdeps/x86_64/strcmp.S: Likewise.
18768         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18769         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18770         * sysdeps/x86_64/strncase.S: New file.
18771         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18772         * sysdeps/x86_64/strncase_l.S: New file.
18773         * string/Makefile (strop-tests): Add strncasecmp.
18774         * string/test-strncasecmp.c: New file.
18776         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18777         warning.
18779         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18780         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18782 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18784         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18786 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18788         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18789         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18790         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18792 2010-05-01  Alan Modra  <amodra@gmail.com>
18794         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18795         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18796         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18797         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18798         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18799         tidying.  Don't tail-call __sigjmp_save for static lib.
18800         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18801         save location.
18802         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18803         (CALL_MCOUNT): Add eh info, and nop after bl.
18804         (TAIL_CALL_SYSCALL_ERROR): New macro.
18805         (PSEUDO_RET): Use it.
18806         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18807         Correct save location of integer regs and cr.
18808         (_dl_profile_resolve): Correct cr save location.  Delete nops
18809         after bl when SHARED.  Reduce cfi size a little by better
18810         placement of cfi directives.
18811         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18812         make a stack frame.  Instead use parm save area as a temp.
18813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18814         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18816         Don't make a stack frame for parent, use parm save area.
18817         Increase child stack frame to 112 bytes.  Don't save unused reg,
18818         and adjust reg usage.  Set up cfi on error recovery and
18819         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18821         (__makecontext): Add dummy nop after jump to exit.
18822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18823         Use correct parm save area and cr save, reduce stack frame.
18824         Correct cfi for possible PSEUDO_RET frame setup.
18825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18826         Branch to local label emitted by PSEUDO_RET rather than
18827         __syscall_error.
18829 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18831         [BZ #11904]
18832         * locale/programs/locale.c (print_assignment): New function.
18833         (show_locale_vars): Use it.
18835 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18837         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18838         field.
18839         (struct statfs64): Likewise.
18840         (_STATFS_F_FLAGS): Define.
18841         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18842         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18843         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18844         (ST_VALID): Define locally.
18845         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18846         __statvfs_getflags, use the provided value.
18847         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18848         __ASSUME_STATFS_F_FLAGS.
18850         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18852         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18853         Add sys/fanotify.h.
18854         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18855         fanotify_mask for GLIBC_2.13.
18856         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18857         fanotify_init and fanotify_mark.
18858         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18859         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18861         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18862         Add prlimit.
18863         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18864         prlimit64 for GLIBC_2.13.
18865         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18866         prlimit64.
18867         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18868         syscall.
18869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18870         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18871         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18872         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18873         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18874         add prlimit alias.
18875         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18877         [BZ #11903]
18878         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18879         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18881         * nss/Makefile: Add rules to build and run tst-nss-test1.
18882         * shlib-versions: Add entry for libnss_test1.
18883         * nss/nss_test1.c: New file.
18884         * nss/tst-nss-test1.c: New file.
18886         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18887         (__nss_configure_lookup): Set appropriate entry in
18888         __nss_configure_lookup to true.
18889         * nss/nsswitch.h: Define enum with indeces of databases in
18890         databases and __nss_database_custom arrays.  Declare
18891         __nss_database_custom.
18892         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18893         to avoid using nscd when custom rules are installed.
18894         * nss/getXXbyYY_r.c: Likewise.
18895         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18897         * nss/nss_files/files-parse.c: Whitespace fixes.
18899 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18901         [BZ #11883]
18902         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18903         * posix/fnmatch_loop.c: Likewise.
18905 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18907         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18908         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18909         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18910         * Versions.def [GLIBC_2.13]: Add.
18912 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18914         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18915         Also fail if tpwd after pwuid call is NULL.
18917 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18919         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18920         when converting to ms.
18922 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18924         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18925         EOPNOTSUPP errors with ENOTTY.
18926         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18927         EOPNOTSUPP errors with ENOTTY.
18929 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18931         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18932         Add strcasecmp_l-ssse3.
18933         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18934         strcasecmp.
18935         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18936         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18937         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18939 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18941         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18943         * string/Makefile (strop-tests): Add strcasecmp.
18944         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18945         strcasecmp_l-nonascii.
18946         (gen-as-const-headers): Add locale-defines.sym.
18947         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18948         * sysdeps/x86_64/strcasecmp.S: New file.
18949         * sysdeps/x86_64/strcasecmp_l.S: New file.
18950         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18951         * sysdeps/x86_64/locale-defines.sym: New file.
18952         * string/test-strcasecmp.c: New file.
18954         * string/test-strcasestr.c: Test both ends of the range of characters.
18955         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18957 2010-07-29  Roland McGrath  <roland@redhat.com>
18959         [BZ #11856]
18960         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18962 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18964         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18965         for ld.so.
18967 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18969         * manual/memory.texi (Malloc Tunable Parameters): Document
18970         M_PERTURB.
18972 2010-07-26  Roland McGrath  <roland@redhat.com>
18974         [BZ #11840]
18975         * configure.in (-fgnu89-inline check): Set and substitute
18976         gnu89_inline, not libc_cv_gnu89_inline.
18977         * configure: Regenerated.
18978         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18980 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18982         * string/test-strnlen.c: New file.
18983         * string/Makefile (strop-tests): Add strnlen.
18984         * string/tester.c (test_strnlen): Add a few more test cases.
18985         * string/tst-strlen.c: Better error reporting.
18987         * sysdeps/x86_64/strnlen.S: New file.
18989 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18991         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18992         lower-latency instructions.
18994 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18996         * string/test-strcasestr.c: New file.
18997         * string/test-strstr.c: New file.
18998         * string/Makefile (strop-tests): Add strstr and strcasestr.
18999         * string/str-two-way.h: Don't undefine MAX.
19000         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19002 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19004         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19005         strcasestr-nonascii.
19006         (CFLAGS-strcasestr-nonascii.c): Define.
19007         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19008         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19009         Remove unused attribute.
19011 2010-07-20  Roland McGrath  <roland@redhat.com>
19013         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19014         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19015         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19016         like LD_HWCAP_MASK can disable hwcaps.
19018 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19020         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19022 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19024         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19025         call in strcasestr.
19026         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19027         __strcasestr_sse42_nonascii.
19028         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19029         strcasestr-nonascii.c.
19030         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19032 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19034         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19035         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19036         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19037         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19039 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19041         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19042         fcntl.
19044 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19046         [BZ #11577]
19047         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19048         dl_signal_cerror.
19050 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19052         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19053         _PC_PIPE_BUF using F_GETPIPE_SZ.
19055 2010-07-05  Roland McGrath  <roland@redhat.com>
19057         * manual/arith.texi (Rounding Functions): Fix rint description
19058         implicit in round description.
19060 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19062         * elf/Makefile: Fix linking for a few tests to make recent linker
19063         happy.
19065 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19067         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19068         $(common-objpfx)libc_nonshared.a.
19070 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19072         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19073         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19074         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19075         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19076         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19077         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19078         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19079         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19094         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19095         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19096         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19097         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19098         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19099         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19100         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19101         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19102         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19103         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19104         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19105         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19121 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19123         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19124         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19125         * string/memmove.c (memmove): Renamed to ...
19126         (MEMMOVE): ...this.  Default to memmove.
19127         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19128         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19129         (END_CHK): Define.
19130         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19131         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19132         mempcpy-ssse3-back memmove-ssse3-back.
19133         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19134         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19135         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19136         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19137         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19138         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19139         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19140         * sysdeps/x86_64/multiarch/memmove.c: New file.
19141         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19142         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19143         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19144         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19145         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19146         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19147         Define.
19148         (index_Fast_Copy_Backward): Define.
19149         (HAS_ARCH_FEATURE): Define.
19150         (HAS_FAST_REP_STRING): Define.
19151         (HAS_FAST_COPY_BACKWARD): Define.
19153 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19155         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19156         Restore proper fallback handling.
19158 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19160         [BZ #11701]
19161         * posix/group_member.c (__group_member): Correct checking loop.
19163         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19164         OOM in getpwuid_r correctly.  Return error number when the caller
19165         should return, otherwise -1.
19166         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19167         call returning > 0 value.
19168         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19170 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19172         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19173         libc_nonshared.a from targets in modules-names.
19175 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19177         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19178         requires it.
19180 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19182         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19183         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19184         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19185         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19187 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19189         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19191 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19193         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19194         and F_GETPIPE_SZ.
19195         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19196         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19197         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19198         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19199         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19200         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19202 2010-06-14  Roland McGrath  <roland@redhat.com>
19204         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19206 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19208         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19209         __REDIRECT followed by __THROW.
19210         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19211         * posix/getopt.h (getopt): Likewise.
19213 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19215         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19216         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19217         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19218         in AT_FLAGS.
19219         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19220         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19222 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19224         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19226 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19228         [BZ #11640]
19229         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19230         Properly check family and model.
19232 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19234         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19236 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19238         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19240 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19242         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19243         symbol reference.
19245 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19247         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19248         symbol reference.
19250 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19252         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19253         and internal_recvmmsg.
19254         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19255         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19256         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19257         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19259         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19260         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19261         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19263 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19265         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19267 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19269         POWER7 optimizations.
19270         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19271         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19273 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19275         * version.h: Update for 2.13 development version.
19277 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19279         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19280         exceptions.  Return 0.
19282 2010-05-07  Roland McGrath  <roland@redhat.com>
19284         * elf/ldconfig.c (main): Add a const.
19286 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19288         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19289         (args_options): Add no-idn option.
19290         (ahosts_keys_int): Add idn_flags to ai_flags.
19291         (parse_option): Handle 'i' option to clear idn_flags.
19293         * malloc/malloc.c (_int_free): Possible race in the most recently
19294         added check.  Only act on the data if no current modification
19295         happened.
19297 See ChangeLog.17 for earlier changes.