Make strtod respect the rounding mode (bug 14518).
[glibc.git] / ChangeLog
blob11120ac8f59b0186f1993cfb9f27e15cdb8a3937
1 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3         [BZ #14518]
4         * include/rounding-mode.h: New file.
5         * sysdeps/generic/get-rounding-mode.h: Likewise.
6         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
7         * stdlib/strtod_l.c: Include <rounding-mode.h>.
8         (MAX_VALUE): New macro.
9         (MIN_VALUE): Likewise.
10         (overflow_value): New function.
11         (underflow_value): Likewise.
12         (round_and_return): Use overflow_value and underflow_value to
13         determine return values in overflow and underflow cases.  Use
14         round_away to determine rounding depending on rounding mode.
15         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
16         determine return values in overflow and underflow cases.
17         * stdlib/tst-strtod-round.c: Include <fenv.h>.
18         (struct test_results): New structure.
19         (struct test): Use struct test_results to store expected results
20         for all rounding modes.
21         (TEST): Include expected results for all rounding modes.
22         (test_in_one_mode): New function.
23         (do_test): Use test_in_one_mode to compute and check results.
24         Check results for all rounding modes.
25         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
26         $(link-libm).
28 2012-12-09  Allan McRae  <allan@archlinux.org>
30         * sysdeps/i386/fpu/libm-test-ulps: Update
32 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
34         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
35         (_G_int32_t): Likewise.
36         (_G_uint16_t): Likewise.
37         (_G_uint32_t): Likewise.
38         (_G_HAVE_BOOL): Likewise.
39         (_G_HAVE_ATEXIT): Likewise.
40         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
41         (_G_HAVE_IO_FILE_OPEN): Likewise.
42         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
43         (_G_int32_t): Likewise.
44         (_G_uint16_t): Likewise.
45         (_G_uint32_t): Likewise.
46         (_G_HAVE_BOOL): Likewise.
47         (_G_HAVE_ATEXIT): Likewise.
48         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
49         (_G_HAVE_IO_FILE_OPEN): Likewise.
50         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
51         (_G_int32_t): Likewise.
52         (_G_uint16_t): Likewise.
53         (_G_uint32_t): Likewise.
54         (_G_HAVE_BOOL): Likewise.
55         (_G_HAVE_ATEXIT): Likewise.
56         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57         (_G_HAVE_IO_FILE_OPEN): Likewise.
59 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
61         * csu/libc-tls.c: Update copyright years.
63 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
65         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
66         [!_G_USING_THUNKS]: Remove conditional code.
67         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
68         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
70         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
71         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
72         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
73         (_G_VTABLE_LABEL_PREFIX): Likewise.
74         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
75         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
76         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
77         (_G_VTABLE_LABEL_PREFIX): Likewise.
78         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
79         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
80         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
81         (_G_VTABLE_LABEL_PREFIX): Likewise.
82         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
84 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
86         * libio/Makefile: Include ../Makeconfig before tests.
87         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
88         only if $(build-shared) is yes.
90         * iconv/gconv_db.c: Update copyright years.
92 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
94         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
95         unwind info if defined PIC. Fix special cases description.
96         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
98         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
99         DP_HI_MASK entry.
100         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
102 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
104         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
106         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
107         is NULL.
109         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
110         (LDLIBS-tst-chk4): This.
111         (LDFLAGS-tst-chk5): Renamed to ...
112         (LDLIBS-tst-chk5): This.
113         (LDFLAGS-tst-chk6): Renamed to ...
114         (LDLIBS-tst-chk6): This.
115         (LDFLAGS-tst-lfschk4): Renamed to ...
116         (LDLIBS-tst-lfschk4): This.
117         (LDFLAGS-tst-lfschk5): Renamed to ...
118         (LDLIBS-tst-lfschk5): This.
119         (LDFLAGS-tst-lfschk6): Renamed to ...
120         (LDLIBS-tst-lfschk6): This.
122         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
123         on $(common-objpfx)soversions.mk.
125 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
127         [BZ #10014]
128         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
129         example host name.
131 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
133         * malloc/arena.c (arena_get_retry): New function that gets
134         another arena for the caller to try its request on.
135         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
136         current arena cannot fulfill the request.
137         (__libc_memalign): Likewise.
138         (__libc_memalign): Likewise.
139         (__libc_pvalloc): Likewise.
140         (__libc_calloc): Likewise.
142 2012-09-05  John Tobey  <john.tobey@gmail.com>
144         [BZ #13542]
145         * manual/arith.texi (Operations on Complex): Fix description
146         of carg branch cut.
148 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
150         [BZ #10014]
151         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
152         host name.
154         [BZ #10038]
155         * manual/memory.texi (Memory): Make order of menu items match
156         order of sections.
158 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
160         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
161         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
162         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
164 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
166         * csu/libc-tls.c (static_dtv): Renamed to ...
167         (_dl_static_dtv): This.  Make it global.
168         (_dl_initial_dtv): Removed.
169         (__libc_setup_tls): Updated.
170         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
171         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
172         DL_INITIAL_DTV.
174 2012-09-06  Petr Machata  <pmachata@redhat.com>
176         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
177         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
178         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
179         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
181 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
183         [BZ #14545]
184         * csu/libc-tls.c (_dl_initial_dtv): New variable.
185         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
186         freeing dtv[-1].
188 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
190         [BZ #14544]
191         * Makeconfig (link-static-before-libc): Replace $(+prector)
192         with $(+prectorT).
193         (link-static-after-libc): Replace $(+postctor) with
194         $(+postctorT).
195         (link-bounded): Replace $(+prector)/$(+postctor) with
196         $(+prectorT)/$(+postctorT).
197         (+prectorT): New macro.
198         (+postctorT): Likewise.
200 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
202         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
203         (round_str): Handle values above the maximum for IBM long double
204         as inexact.
205         * stdlib/tst-strtod-round.c (tests): Regenerated.
207 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
209         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
210         assembler flag.
211         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
212         zarch_nohighgprs around the zarch optimized routines.
213         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
214         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
215         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
216         for zarch.
218 2012-09-05  David S. Miller  <davem@davemloft.net>
220         * sysdeps/sparc/fpu/libm-test-ulps: Update.
222         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
223         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
224         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
225         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
226         entries.
228 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
230         * malloc/arena.c: Fold copyright years.
231         * malloc/mcheck.c, malloc/memusage.c: Likewise.
233 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
235         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
237 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
239         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
241 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
243         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
244         change internal state upon failure.
246 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
248         * malloc/mcheck.c (mcheck_check_all): Fix typo.
249         * malloc/memusage.c (mmap): Likewise.
250         (mmap64, mremap): Likewise.  Adjust name in comment.
252 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
254         * libio/fileops.c: Fix typos in comments.
255         * libio/oldfileops.c: Likewise.
256         * libio/wfileops.c: Likewise.
258 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
260         [BZ #1349]
261         * malloc/Makefile (tests): Add tst-malloc-usable test case.
262         (tst-malloc-usable-ENV): Set environment for test case.
263         * malloc/hooks.c (malloc_check_get_size): New function to get
264         requested size.
265         * malloc/malloc.c (musable): Use malloc_check_get_size.
266         * malloc/tst-malloc-usable.c: New test case.
268 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
270         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
272 2012-09-05  Allan McRae  <allan@archlinux.org>
274         [BZ #13966]
275         * configure.in (CXX_SYSINCLUDES): Use compiler output to
276         determine header location.
277         * configure: Regenerated.
279 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
281         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
282         float format.
283         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
284         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
285         format.
286         (test): Regenerate.
288 2012-09-04  David S. Miller  <davem@davemloft.net>
290         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
291         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
292         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
294 2012-09-04  Florian Weimer  <fweimer@redhat.com>
296         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
297         failures.
299         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
301 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
303         [BZ #9914]
304         * libio/iogetdelim.c: Include <limits.h>.
305         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
306         + len + 1 would overflow.
308 2012-09-03  Andreas Jaeger  <aj@suse.de>
310         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
311         * sysdeps/i386/fpu/libm-test-ulps: Update.
313 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
315         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
316         Add s_sinf-sse2, s_conf-sse2.
318         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
319         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
320         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
321         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
323         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
324         for using routine as __sinf_ia32.
325         Use macro for function declaration and weak_alias.
326         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
327         for using routine as __cosf_ia32.
328         Use macro for function declaration and weak_alias.
330         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
331         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
333         * sysdeps/x86_64/fpu/s_sinf.S: New file.
334         * sysdeps/x86_64/fpu/s_cosf.S: New file.
335         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
337         * math/libm-test.inc (cos_test): Add more test cases.
338         (sin_test): Likewise.
339         (sincos_test): Likewise.
341 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
343         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
344         (IFUNC_RESOLVE): Make pointers to the specialized implementations
345         hidden.
346         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
348 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
350         [BZ #14538]
351         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
352         first element of the GOT.
353         (elf_machine_load_address): Return the difference between
354         the runtime address of _DYNAMIC and elf_machine_dynamic ().
356 2012-09-01  Allan McRae  <allan@archlinux.org>
358         [BZ #13412]
359         * configure.in (AWK): Require gawk version 3.0 or later.
360         * configure: Regenerated.
362 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
364         * sysdeps/unix/sysv/linux/kernel-features.h
365         (__ASSUME_POSIX_CPU_TIMERS): Remove.
366         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
367         [__NR_clock_getres]: Make code unconditional.
368         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
369         (clock_getcpuclockid): Remove code left unreachable by removal of
370         conditionals.
371         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
372         code unconditional.
373         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
374         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
375         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
376         Make code unconditional.
377         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
378         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
379         * sysdeps/unix/sysv/linux/clock_settime.c
380         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
381         conditional code.
382         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
383         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
385 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
387         [BZ #14476]
388         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
389         scripts/test-installation.pl.
391         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
392         and $ld_so_version if it is set.
394 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
396         [BZ #14516]
397         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
398         failure if reading from procfs failed.
399         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
401 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
403         * sysdeps/unix/sysv/linux/kernel-features.h
404         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
405         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
406         Remove conditional code.
407         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
408         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
409         Remove conditional code.
410         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
411         * sysdeps/unix/sysv/linux/i386/fxstat.c
412         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
413         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
414         * sysdeps/unix/sysv/linux/i386/fxstatat.c
415         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
416         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
417         * sysdeps/unix/sysv/linux/i386/lxstat.c
418         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
419         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
420         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
421         Remove conditional code.
422         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
423         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
424         Remove conditional code.
425         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
426         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
427         <kernel-features.h>.
428         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
429         Remove.
430         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
431         Remove conditional code.
432         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
433         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
434         Remove conditional.
436 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
438         [BZ #5400]
439         * NEWS: Add fixed bug number.
441 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
443         [BZ #14519]
444         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
445         underflowing exponent in case of negative sign.
446         * stdlib/tst-strtod-round-data: Add more tests.
447         * stdlib/tst-strtod-round.c (tests): Regenerated.
449         [BZ #3479]
450         * stdlib/strtod_l.c (NDIG): Remove.
451         (HEXNDIG): Likewise.
452         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
453         smallest representable value.
454         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
455         lie within an exact representation of 1/2 ulp of the result.
456         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
457         unconditionally.
458         (TENS_P9_IDX): Define unconditionally.
459         (TENS_P9_SIZE): Likewise.
460         (TENS_P10_IDX): Likewise.
461         (TENS_P10_SIZE): Likewise.
462         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
463         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
464         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
465         entries for 10^2^13 and 10^2^14.
466         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
467         (TENS_P13_IDX): Define.
468         (TENS_P13_SIZE): Likewise.
469         (TENS_P14_IDX): Likewise.
470         (TENS_P14_SIZE): Likewise.
471         (_fpioconst_pow10): Change array size to
472         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
473         unconditional.
474         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
475         1024]: Add entries for 10^2^13 and 10^2^14.
476         [LAST_POW10 > _LAST_POW10]: Remove #error.
477         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
478         (_fpioconst_pow10): Change array size to
479         FPIOCONST_POW10_ARRAY_SIZE.
480         * stdlib/gen-fpioconst.c: New file.
481         * stdlib/gen-tst-strtod-round.c: Likewise.
482         * stdlib/tst-strtod-round-data: Likewise.
483         * stdlib/tst-strtod-round.c: Likewise.
484         * stdlib/Makefile (tests): Add tst-strtod-round.
486         [BZ #14459]
487         * stdlib/strtod_l.c: Include <stdint.h>.
488         (NDEBUG): Do not define.
489         (round_and_return): Change EXPONENT parameter to type intmax_t.
490         Rearrange calculations to avoid internal overflow possibilities.
491         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
492         Rearrange calculations to avoid internal overflow possibilities.
493         Assert that number fits inside MPNSIZE limbs.
494         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
495         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
496         calculations and add assertions to avoid internal overflow
497         possibilities.  Add casts to avoid signed/unsigned operations.
498         * stdlib/tst-strtod-overflow.c: New file.
499         * stdlib/Makefile (tests): Add tst-strtod-overflow.
501 2012-08-25  Marek Polacek  <polacek@redhat.com>
503         * time/time.h: Fix some typos in comments.
505 2012-08-23  Roland McGrath  <roland@hack.frob.com>
507         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
508         * posix/tst-rfc3484-2.c: Likewise.
509         * posix/tst-rfc3484-3.c: Likewise.
511 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
513         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
514         (EF_ARM_ABI_FLOAT_HARD): Likewise.
516 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
518         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
519         #include of fxstatat64.c.
521 2012-08-22  Roland McGrath  <roland@hack.frob.com>
523         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
524         * shadow/getspent_r.c: Likewise.
525         * shadow/getspnam.c: Likewise.
526         * shadow/getspnam_r.c: Likewise.
527         * gshadow/getsgent.c: Likewise.
528         * gshadow/getsgent_r.c: Likewise.
529         * gshadow/getsgnam.c: Likewise.
530         * gshadow/getsgnam_r.c: Likewise.
531         * inet/getnetbyad.c: Likewise.
532         * inet/getnetbyad_r.c: Likewise.
533         * inet/getnetbynm.c: Likewise.
534         * inet/getnetbynm_r.c: Likewise.
535         * inet/getnetent.c: Likewise.
536         * inet/getnetent_r.c: Likewise.
537         * inet/getproto.c: Likewise.
538         * inet/getproto_r.c: Likewise.
539         * inet/getprtent.c: Likewise.
540         * inet/getprtent_r.c: Likewise.
541         * inet/getprtname.c: Likewise.
542         * inet/getprtname_r.c: Likewise.
543         * inet/getrpcbyname.c: Likewise.
544         * inet/getrpcbyname_r.c: Likewise.
545         * inet/getrpcbynumber.c: Likewise.
546         * inet/getrpcbynumber_r.c: Likewise.
547         * inet/getrpcent.c: Likewise.
548         * inet/getrpcent_r.c: Likewise.
549         * inet/getaliasent.c: Likewise.
550         * inet/getaliasent_r.c: Likewise.
551         * inet/getaliasname.c: Likewise.
552         * inet/getaliasname_r.c: Likewise.
553         * nscd/getgrgid_r.c: Likewise.
554         * nscd/getgrnam_r.c: Likewise.
555         * nscd/gethstbyad_r.c: Likewise.
556         * nscd/gethstbynm3_r.c: Likewise.
557         * nscd/getpwnam_r.c: Likewise.
558         * nscd/getpwuid_r.c: Likewise.
559         * nscd/getsrvbynm_r.c: Likewise.
560         * nscd/getsrvbypt_r.c: Likewise.
561         * nscd/gai.c: Likewise.
563         * configure.in (build_nscd): New substituted variable, set
564         by --disable-build-nscd and defaults to $use_nscd.
565         * configure: Regenerated.
566         * config.make.in (build-nscd): New substituted variable.
567         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
568         Change conditional to require [$(build-nscd) = yes] as well.
569         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
571         [BZ# 13696]
572         * configure.in (use_nscd): New substituted variable, set by
573         --disable-nscd.  If enabled, define USE_NSCD.
574         * configure: Regenerated.
575         * config.h.in: Add USE_NSCD.
576         * config.make.in (use-nscd): New substituted variable.
577         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
578         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
579         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
580         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
581         (CFLAGS-getgrnam_r.c): Likewise.
582         (CFLAGS-initgroups.c): Likewise.
583         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
584         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
585         Variables removed.
586         * inet/getnetgrent_r.c
587         (nscd_setnetgrent): New function, broken out of ...
588         (setnetgrent): ... here.  Call it.
589         (innetgr): Conditionalize nscd bits on [USE_NSCD].
590         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
591         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
592         * nscd/Makefile (routines, aux): Move definitions after include of
593         Makeconfig.  Conditionalize on [$(use-nscd) != no].
594         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
595         Conditionalize on [USE_NSCD].
596         (is_nscd, nscd_init_cb): Likewise.
597         (nss_load_library): Conditionalize init callback on [USE_NSCD].
598         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
599         * nss/nss_db/db-init.c: Likewise.
600         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
601         [USE_NSCD].
602         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
603         (make_request): Use it.
604         (cache_valid_p): New function.
605         (__check_pf): Use it.
606         * NEWS: Add item for --disable-nscd.
608 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
610         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
611         to support sed >= 4.2.1-20-ga9bf076.
612         * configure: Regenerated.
614 2012-08-22  Roland McGrath  <roland@hack.frob.com>
616         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
617         Conditionalize whole body on [IREL].
619 2012-08-22  Jeff Law <law@redhat.com>
621         [BZ #14505]
622         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
623         if the family is PF_UNSPEC.
625 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
627         * Makerules (lib-version): Rename from V.
628         (install-lib-nosubdir): Change V to lib-version.
630 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
632         [BZ #14252]
633         * powerpc32/power6/wcschr.c: New file.
634         * powerpc32/power6/wcscpy.c: New file.
635         * powerpc32/power6/wcsrchr.c: New file.
636         * powerpc64/power6/wcschr.c: New file.
637         * powerpc64/power6/wcscpy.c: New file.
638         * powerpc64/power6/wcsrchr.c: New file.
640 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
642         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
643         (two_way_short_needle): Use it.
644         * string/strstr.c (AVAILABLE1_USES_J): Define.
645         * string/strcasestr.c: Likewise.
647         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
648         array references.
649         * string/strcasestr.c (TOLOWER): Make side-effect safe.
651         [BZ #11607]
652         * NEWS: Add an entry.
653         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
654         define their defaults.
655         (two_way_short_needle): Detect end-of-string on-the-fly.
656         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
657         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
658         * string/bug-strcasestr1.c: New test.
659         * string/Makefile: Run it.
661 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
663         [BZ #11607]
664         * string/str-two-way.h (two_way_short_needle): Optimize matching of
665         the first character.
667 2012-08-21  Roland McGrath  <roland@hack.frob.com>
669         * csu/elf-init.c (__libc_csu_irel): Function removed.
670         * csu/libc-start.c (apply_irel): New function.
671         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
673 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
675         * sysdeps/unix/sysv/linux/kernel-features.h
676         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
677         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
678         <kernel-features.h>.
679         [__NR_fadvise64_64]: Make code unconditional.
680         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
681         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
682         !__NR_fadvise64_64)]: Likewise.
683         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
684         !__NR_fadvise64_64))]: Likewise.
685         [__NR_fadvise64]: Make code unconditional.
686         [!__NR_fadvise64]: Remove conditional code.
687         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
688         <kernel-features.h>.
689         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
690         unconditional.
691         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
692         conditional code.
693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
694         not include <kernel-features.h>.
695         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
696         unconditional.
697         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
698         conditional code.
699         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
700         include <kernel-features.h>.
701         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
702         unconditional.
703         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
704         conditional code.
706 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
708         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
709         slight instruction rearrangements per scrollpipe analysis.
710         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
712 2012-08-20  Roland McGrath  <roland@hack.frob.com>
714         * manual/syslog.texi (syslog; vsyslog, closelog):
715         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
716         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
718         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
719         DSOCAPS to match condition on defining it.
721 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
723         * sysdeps/unix/sysv/linux/kernel-features.h
724         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
726         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
727         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
729         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
730         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
732         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
733         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
735         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
736         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
738         * sysdeps/unix/sysv/linux/kernel-features.h
739         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
740         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
741         unconditional.
742         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
743         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
744         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
745         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
746         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
747         Make code unconditional.
748         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
749         (__mmap64) [!__NR_mmap2]: Likewise.
750         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
751         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
752         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
753         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
754         [__NR_mmap2]: Make code unconditional.
755         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
756         (__mmap64) [!__NR_mmap2]: Likewise.
758 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
760         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
762 2012-08-18  Andreas Jaeger  <aj@suse.de>
764         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
766 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
768         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
769         * include/unistd.h (__have_sock_cloexec): Likewise.
770         (__have_pipe2): Likewise.
771         (__have_dup3): Likewise.
773 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
775         [BZ #9685]
776         * include/unistd.h (__have_pipe2): Change define into an extern int.
777         (__have_dup3): Likewise.
778         * socket/have_sock_cloexec.c: Include fcntl.h.
779         (__have_pipe2): New variable.
780         (__have_dup3): Likewise.
782 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
784         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
786 2012-08-17  Marek Polacek  <polacek@redhat.com>
788         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
789         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
791 2012-08-17  Roland McGrath  <roland@hack.frob.com>
793         * configure.in: Add AC_SUBST for sysheaders.
794         * configure: Regenerated.
795         * config.make.in (sysheaders): New substituted variable.
797         * sysdeps/unix/mkfifo.c: Moved ...
798         * sysdeps/posix/mkfifo.c: ... here.
799         * sysdeps/unix/mkfifoat.c: Moved ...
800         * sysdeps/posix/mkfifoat.c: ... here.
802         * sysdeps/unix/utime.c: Moved ...
803         * sysdeps/posix/utime.c: ... here.
805         * sysdeps/unix/time.c: Moved ...
806         * sysdeps/posix/time.c: ... here.
807         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
808         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
810         * sysdeps/unix/nice.c: Moved ...
811         * sysdeps/posix/nice.c: ... here.
813         * sysdeps/unix/alarm.c: Moved ...
814         * sysdeps/posix/alarm.c: ... here.
816         * intl/Makefile ($(codeset_mo)): Depend on the input file.
818 2012-08-17  Jeff Law <law@redhat.com>
820         * intl/Makefile (codeset_mo): New variable.
821         ($(codeset_mo)): New target.
822         (tst-codeset.out): Depend on that.  Remove explicit rule.
823         (tst-gettext3.out, tst-gettext5.out): Likewise.
824         (LOCPATH-ENV, tst-codeset-ENV): New variables.
825         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
826         * intl/tst-codeset.sh: Remove.
827         * intl/tst-gettext3.sh: Likewise.
828         * intl/tst-gettext5.sh: Likewise.
830 2012-08-17  Roland McGrath  <roland@hack.frob.com>
832         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
833         * sysdeps/unix/syscalls.list: ... here.
835         * sysdeps/posix/getaddrinfo.c
836         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
837         (gaiconf_init, gaiconf_reload): Use them.
838         [!_STATBUF_ST_NSEC]
839         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
840         Define using time_t rather than struct timespec.
842         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
843         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
844         Macros removed.
845         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
846         [!NO_THREADS].
847         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
848         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
849         Likewise.
851         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
852         __libc_cleanup_push argument.
854         * bits/param.h: New file.
855         * misc/sys/param.h: New file.
856         * include/sys/param.h: New file.
857         * misc/Makefile (headers): Add bits/param.h.
858         * sysdeps/generic/sys/param.h: File removed.
859         * sysdeps/unix/sysv/linux/bits/param.h: New file.
860         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
861         * sysdeps/mach/hurd/bits/param.h: New file.
862         * sysdeps/mach/hurd/sys/param.h: New file.
864         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
865         last change.
867         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
868         [_IO_MTSAFE_IO].
869         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
870         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
871         New macros.
873         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
874         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
875         rather than -D_IO_MTSAFE_IO conditionally.
876         * stdio-common/Makefile (CPPFLAGS): Likewise.
877         * wcsmbs/Makefile (CPPFLAGS): Likewise.
878         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
879         Use $(libio-mtsafe).
880         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
881         of -D_IO_MTSAFE_IO.
882         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
883         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
884         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
885         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
886         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
887         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
888         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
889         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
890         (CFLAGS-fread_u_chk.c): Likewise.
891         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
892         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
893         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
894         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
895         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
896         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
897         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
898         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
899         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
901         * libio/Makefile: Test [$(libc-reentrant) = yes]
902         instead of [$(filter %REENTRANT, $(defines)) nonempty].
904         * Makeconfig
905         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
906         * sysdeps/pthread/configure: File removed.
907         * sysdeps/pthread/Makeconfig: New file.
908         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
909         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
911 2012-08-16  Gary Benson  <gbenson@redhat.com>
913         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
914         unmapping the first object in a namespace.
916 2012-08-16  Roland McGrath  <roland@hack.frob.com>
918         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
919         (__internal_setnetgrent): ... this.  Add internal_function to
920         definition.  Add libc_hidden_def.
921         (setnetgrent): Update caller.
922         (internal_endnetgrent): Renamed to ...
923         (__internal_endnetgrent): ... this.  Add internal_function to
924         definition.  Add libc_hidden_def.
925         (endnetgrent): Update caller.
926         (internal_getnetgrent_r): Renamed to ...
927         (__internal_getnetgrent_r): ... this.  Add internal_function to
928         definition.  Add libc_hidden_def.
929         (__getnetgrent_r): Update caller.
930         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
932 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
934         * stdlib/longlong.h: Update from GCC.
936 2012-08-16  Roland McGrath  <roland@hack.frob.com>
938         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
939         on _QL, which is set by umul_ppmm but never used.
940         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
941         variables, which are set by GMP macros but never used.
942         * stdio-common/_itowa.c (_itowa): Likewise.
943         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
944         * stdlib/mod_1.c (mpn_mod_1): Likewise.
946 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
948         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
949         struct La_sh_regs is not constant.
950         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
951         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
952         and struct La_sparc64_regs are not constant.
954 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
956         * sysdeps/unix/sysv/linux/kernel-features.h
957         (__ASSUME_POSIX_TIMERS): Remove.
958         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
959         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
960         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
961         Make code unconditional.
962         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
963         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
964         Make code unconditional.
965         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
966         * sysdeps/unix/sysv/linux/clock_nanosleep.c
967         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
968         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
969         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
970         Make code unconditional.
971         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
972         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
973         (__libc_missing_posix_timers): Remove.
975 2012-08-15  Roland McGrath  <roland@hack.frob.com>
977         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
978         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
980         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
982         * elf/dl-sym.c: Include <stdlib.h>.
984         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
985         constants, which avoids warnings in 32-bit builds.
987         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
988         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
990         * misc/lseek.c: File moved to ...
991         * io/lseek.c: ... here.
993         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
995         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
996         shifting LEN more than 31 bits at once.
998 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1000         [BZ #14195]
1001         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1002         segmentation fault for a case of two empty input strings.
1003         * string/test-strncasecmp.c (check1): Renamed to...
1004         (bz12205): ...this.
1005         (bz14195): Add new testcase for two empty input strings and N > 0.
1006         (test_main): Call new testcase, adapt for renamed function.
1008 2012-08-15  Andreas Jaeger  <aj@suse.de>
1010         [BZ #14090]
1011         * crypt/md5test2.c: New test, based on test supplied by Serge
1012         Belyshev <belyshev@depni.sinp.msu.ru>.
1013         * crypt/Makefile (xtests): Add md5test-giant..
1014         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1016 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1018         [BZ #14090]
1019         * crypt/md5.c (md5_process_block): Don't assume the buffer
1020         length is less than 2**32.
1021         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1022         length is less than 2**64.
1024 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1026         * string/str-two-way.h: Include <sys/param.h>.
1027         (MAX): Macro removed.
1029         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1030         Move #define and #undef of memmove to just before and after
1031         including <string.h>.
1033         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1034         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1035         and after including <string.h>.  Move declarations of
1036         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1037         to before #include "string/memmove.c".
1039         * include/dirent.h: Declare __getdirentries.
1041         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1042         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1044 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1046         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1047         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1048         * sysdeps/i386/configure: Regenerated.
1049         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1050         STABS_CURRENT_FILE, and STABS_FUN.
1051         (END): Remove call to STABS_FUN_END.
1052         (STABS_CURRENT_FILE1): Delete.
1053         (STABS_CURRENT_FILE): Likewise.
1054         (STABS_FUN): Likewise.
1055         (STABS_FUN_END): Likewise.
1056         (STABS_FUN2): Likewise.
1057         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1058         * sysdeps/x86_64/configure: Regenerated.
1060 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1062         * elf/dl-open.c: Include <atomic.h>.
1063         * elf/dl-lookup.c: Likewise.
1065 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1067         * sysdeps/unix/sysv/linux/kernel-features.h
1068         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1069         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1070         unconditionally.
1071         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1072         unconditionally.
1073         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1074         condition on __ASSUME_CLONE_THREAD_FLAGS.
1076 2012-08-14  Andreas Jaeger  <aj@suse.de>
1078         * sysdeps/i386/fpu/libm-test-ulps: Update.
1080 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1082         * include/atomic.h (atomic_exchange_and_add): Split into ...
1083         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1084         New atomic macros.
1086 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1088         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1090 2012-08-13  Jeff Law <law@redhat.com>
1092         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1093         null byte in the output string.
1095 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1097         * sysdeps/unix/sysv/linux/kernel-features.h
1098         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1099         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1100         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1101         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1102         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1103         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1104         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1106 2012-08-09  Jeff Law <law@redhat.com>
1108         [BZ #13939]
1109         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1110         When avoid_arena is set, don't retry in the that arena.  Pick the
1111         next one, whatever it might be.
1112         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1113         (arena_lock): Pass in new parameter to arena_get2.
1114         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1115         arena_get2.
1116         (__libc_malloc): Unify retrying after main arena failure with
1117         __libc_memalign version.
1118         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1120 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1122         [BZ #14166]
1123         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1124         to __redirect_strstr.
1125         (__strstr_sse42): Use typeof __redirect_strstr.
1126         (__strstr_ia32): Likewise.
1127         (__libc_strstr): New prototype.
1128         (strstr): Renamed to ...
1129         (__libc_strstr): This.
1130         (strstr): New strong alias of __libc_strstr.
1131         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1132         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1133         __redirect_time.
1134         Include <time.h>.
1135         (__libc_time): New prototype.
1136         (time_ifunc): Replace time with __libc_time.
1137         (time): New strong alias and hidden definition of __libc_time.
1138         (__GI_time): Remove strong alias.
1139         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1140         Include <stddef.h>.
1141         (memmove): Redefined to __redirect_memmove.
1142         (__memmove_sse2): Use typeof __redirect_memmove.
1143         (__memmove_ssse3): Likewise.
1144         (__memmove_ssse3_back): Likewise.
1145         (__libc_memmove): New prototype.
1146         (memmove): Renamed to ...
1147         (__libc_memmove): This.
1148         (memmove): New strong alias of __libc_memmove.
1150 2012-08-08  Mark Salter  <msalter@redhat.com>
1152         * elf/elf.h
1153         (R_MN10300_TLS_GD): Define.
1154         (R_MN10300_TLS_LD): Likewise.
1155         (R_MN10300_TLS_LDO): Likewise.
1156         (R_MN10300_TLS_GOTIE): Likewise.
1157         (R_MN10300_TLS_IE): Likewise.
1158         (R_MN10300_TLS_LE): Likewise.
1159         (R_MN10300_TLS_DTPMOD): Likewise.
1160         (R_MN10300_TLS_DTPOFF): Likewise.
1161         (R_MN10300_TLS_TPOFF): Likewise.
1162         (R_MN10300_SYM_DIFF): Likewise.
1163         (R_MN10300_ALIGN): Likewise.
1164         (R_MN10300_NUM): Update.
1166 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1168         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1169         Remove.
1171 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1173         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1175         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1176         sysdeps/unix -> sysdeps/posix move.
1177         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1179 2012-08-07      Allan McRae     <allan@archlinux.org>
1181         [BZ #14303]
1182         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1183         (SUNOS_CPP): Likewise.
1184         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1185         not found.
1186         (open_input): Call CPP using execvp.
1188 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1190         * sysdeps/unix/sysv/linux/kernel-features.h
1191         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1192         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1193         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1194         (__ASSUME_WAITID_SYSCALL): Likewise.
1195         * sysdeps/unix/sysv/linux/dl-execstack.c
1196         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1197         code unconditional.
1198         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1199         conditional code.
1200         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1201         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1202         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1203         code.
1204         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1205         unconditional.
1206         [__ASSUME_WAITID_SYSCALL]: Likewise.
1207         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1209 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1211         * sysdeps/unix/closedir.c: Renamed to ...
1212         * sysdeps/posix/closedir.c: ... here.
1213         * sysdeps/unix/dirfd.c: Renamed to ...
1214         * sysdeps/posix/dirfd.c: ... here.
1215         * sysdeps/unix/dirstream.h: Renamed to ...
1216         * sysdeps/posix/dirstream.h: ... here.
1217         * sysdeps/unix/fdopendir.c: Renamed to ...
1218         * sysdeps/posix/fdopendir.c: ... here.
1219         * sysdeps/unix/opendir.c: Renamed to ...
1220         * sysdeps/posix/opendir.c: ... here.
1221         * sysdeps/unix/readdir.c: Renamed to ...
1222         * sysdeps/posix/readdir.c: ... here.
1223         * sysdeps/unix/readdir_r.c: Renamed to ...
1224         * sysdeps/posix/readdir_r.c: ... here.
1225         * sysdeps/unix/rewinddir.c: Renamed to ...
1226         * sysdeps/posix/rewinddir.c: ... here.
1227         * sysdeps/unix/seekdir.c: Renamed to ...
1228         * sysdeps/posix/seekdir.c: ... here.
1229         * sysdeps/unix/telldir.c: Renamed to ...
1230         * sysdeps/posix/telldir.c: ... here.
1231         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1232         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1233         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1234         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1236         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1237         * bits/fcntl.h: ... here.
1239         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1240         not 0.
1241         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1242         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1243         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1244         (struct flock): Move l_start, l_len to the beginning.
1245         Use __pid_t for l_pid.
1246         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1247         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1248         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1249         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1250         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1251         [__USE_LARGEFILE64] (struct flock64): New type.
1252         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1254         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1255         * bits/dirent.h: ... here.
1257         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1258         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1260 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1262         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1263         Change from 2.6.0 to 2.6.16.
1264         * sysdeps/unix/sysv/linux/configure: Regenerated.
1265         * sysdeps/unix/sysv/linux/kernel-features.h
1266         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1267         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1268         version.
1269         (__ASSUME_UTIMES): Likewise.
1270         (__ASSUME_CLONE_STOPPED): Remove.
1271         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1272         architectures, not kernel version.
1273         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1274         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1275         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1276         (__ASSUME_WAITID_SYSCALL): Likewise.
1277         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1278         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1279         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1280         refer to older versions.
1282 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1284         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1285         Define alphasort64 as an alias.
1286         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1287         Define versionsort64 as an alias.
1288         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1289         Define scandir64 as an alias.
1290         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1291         Define scandirat64 as an alias.
1292         * dirent/alphasort64.c (alphasort64):
1293         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1294         * dirent/versionsort64.c: Likewise.
1295         * dirent/scandir64.c: Likewise.
1296         * dirent/scandirat64.c: Likewise.
1297         * sysdeps/wordsize-64/alphasort.c: File removed.
1298         * sysdeps/wordsize-64/alphasort64.c: File removed.
1299         * sysdeps/wordsize-64/scandir.c: File removed.
1300         * sysdeps/wordsize-64/scandir64.c: File removed.
1301         * sysdeps/wordsize-64/scandirat.c: File removed.
1302         * sysdeps/wordsize-64/scandirat64.c: File removed.
1303         * sysdeps/wordsize-64/versionsort.c: File removed.
1304         * sysdeps/wordsize-64/versionsort64.c: File removed.
1305         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1306         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1307         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1308         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1309         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1310         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1311         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1312         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1314         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1315         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1316         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1317         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1318         [defined __arch64__ || defined __sparcv9]
1319         (__INO_T_MATCHES_INO64_T): New macro.
1320         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1321         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1322         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1323         * sysdeps/unix/sysv/linux/bits/dirent.h
1324         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1325         (_DIRENT_MATCHES_DIRENT64): New macro.
1327         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1328         Define lockf64 as an alias.
1329         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1330         Define fseeko64 as an alias.
1331         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1332         Define ftello64 as an alias.
1333         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1334         Define _IO_fgetpos64 and fgetpos64 as aliases.
1335         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1336         Define _IO_fsetpos64 and fsetpos64 as aliases.
1337         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1338         Conditionalize body on this.
1339         * libio/fseeko64.c: Likewise.
1340         * libio/ftello64.c: Likewise.
1341         * libio/iofgetpos64.c: Likewise.
1342         * libio/iofsetpos64.c: Likewise.
1343         * sysdeps/wordsize-64/lockf.c: File removed.
1344         * sysdeps/wordsize-64/lockf64.c: File removed.
1345         * sysdeps/wordsize-64/fseeko.c: File removed.
1346         * sysdeps/wordsize-64/fseeko64.c: File removed.
1347         * sysdeps/wordsize-64/ftello.c: File removed.
1348         * sysdeps/wordsize-64/ftello64.c: File removed.
1349         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1350         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1351         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1352         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1353         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1354         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1355         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1356         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1357         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1358         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1359         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1360         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1361         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1362         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1364         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1365         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1366         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1367         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1368         [defined __arch64__ || defined __sparcv9]
1369         (__OFF_T_MATCHES_OFF64_T): New macro.
1370         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1371         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1372         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1373         (__OFF_T_MATCHES_OFF64_T): New macro.
1375 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1377         * stdlib/secure-getenv.c (__secure_getenv): Replace
1378         GLIBC_2_16 with GLIBC_2_17.
1380 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1382         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1383         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1385 2012-08-03  David S. Miller  <davem@davemloft.net>
1387         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1389 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1391         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1392         Remove.
1393         (__ASSUME_CORRECT_SI_PID): Likewise.
1394         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1395         (__ASSUME_TMPFS_NAME): Likewise.
1396         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1397         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1398         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1399         (HAVE_AUX_SECURE): Make definition unconditional.
1400         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1401         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1403 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1405         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1406         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1407         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1408         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1409         __eloop_threshold instead of SYMLOOP_MAX.
1411         * sysdeps/generic/eloop-threshold.h: New file.
1412         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1413         of MAXSYMLINKS.
1414         * elf/chroot_canon.c (chroot_canon): Likewise.
1416 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1418         [BZ #13717]
1419         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1420         Change to 2.6.0 everywhere.
1421         * sysdeps/unix/sysv/linux/configure: Regenerated.
1422         * sysdeps/unix/sysv/linux/kernel-features.h
1423         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1424         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1425         kernel versions.
1426         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1427         (__ASSUME_FUTEX_REQUEUE): Remove.
1428         (__ASSUME_STATFS64): Define unconditionally.
1429         (__ASSUME_AT_SECURE): Likewise.
1430         (__ASSUME_CORRECT_SI_PID): Likewise.
1431         (__ASSUME_TGKILL): Define without depending on kernel version for
1432         i386.
1433         (__ASSUME_UTIMES): Likewise.
1434         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1435         kernel version.
1436         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1437         (__ASSUME_TMPFS_NAME): Likewise.
1438         * README: Update reference to Linux kernel versions.
1440 2012-08-02  Marek Polacek  <polacek@redhat.com>
1442         [BZ# 14150]
1443         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1444         libc_cv_asm_type_prefix with %.
1445         * configure: Regenerated.
1446         * include/libc-symbols.h: Remove comment about
1447         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1448         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1449         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1450         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1451         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1452         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1453         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1454         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1455         * elf/tst-unique2mod1.c: Likewise.
1456         * elf/tst-unique1mod2.c: Likewise.
1457         * elf/tst-unique1mod1.c: Likewise.
1458         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1459         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1460         Replace ASM_TYPE_DIRECTIVE with .type.
1461         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1462         * sysdeps/i386/sysdep.h: Likewise.
1463         * sysdeps/x86_64/sysdep.h: Likewise.
1464         * sysdeps/sh/sysdep.h: Likewise.
1465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1466         Do not define ASM_TYPE_DIRECTIVE.
1467         * sysdeps/powerpc/sysdep.h: Likewise.
1468         * sysdeps/powerpc/powerpc32/sysdep.h:
1469         Replace ASM_TYPE_DIRECTIVE with .type.
1470         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1471         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1472         * sysdeps/i386/fpu/e_powf.S: Likewise.
1473         * sysdeps/i386/fpu/e_expl.S: Likewise.
1474         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1475         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1476         * sysdeps/i386/fpu/e_pow.S: Likewise.
1477         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1478         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1479         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1480         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1481         * sysdeps/i386/fpu/e_log2.S: Likewise.
1482         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1483         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1484         * sysdeps/i386/fpu/e_powl.S: Likewise.
1485         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1486         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1487         * sysdeps/i386/fpu/e_logl.S: Likewise.
1488         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1489         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1490         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1491         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1492         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1493         * sysdeps/i386/fpu/e_log.S: Likewise.
1494         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1495         * sysdeps/i386/fpu/e_logf.S: Likewise.
1496         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1497         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1498         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1499         * sysdeps/i386/fpu/e_log10.S: Likewise.
1500         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1501         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1502         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1503         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1504         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1505         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1506         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1507         * sysdeps/i386/i686/strtok.S: Likewise.
1508         * sysdeps/i386/i386-mcount.S: Likewise.
1509         * sysdeps/i386/strtok.S: Likewise.
1510         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1511         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1512         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1513         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1514         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1515         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1516         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1517         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1518         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1519         * sysdeps/x86_64/_mcount.S: Likewise.
1520         * sysdeps/x86_64/strtok.S: Likewise.
1521         * sysdeps/sh/_mcount.S: Likewise.
1523 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1525         * libio/iofopen.c: Include <fcntl.h>.
1526         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1527         (_IO_fopen64, fopen64): Define as aliases.
1528         * libio/iofopen64.c: Include <fcntl.h>.
1529         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1530         Conditionalize body on this.
1531         * sysdeps/wordsize-64/iofopen.c: File removed.
1532         * sysdeps/wordsize-64/iofopen64.c: File removed.
1534 2012-08-01  Marek Polacek  <polacek@redhat.com>
1536         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1537         Use dlfcn directly instead of a variable.
1538         (binfmt-subdir): Do not define.
1539         (dlfcn): Likewise.
1541 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1543         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1544         Remove all definitions.
1545         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1546         <kernel-features.h>.
1547         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1548         (miss_F_GETOWN_EX): Remove all definitions.
1549         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1550         macro definition.
1551         [!__ASSUME_FCNTL64]: Remove conditional code.
1552         [__ASSUME_FCNTL64]: Make code unconditional.
1553         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1554         <kernel-features.h>.
1555         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1556         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1557         (lockf64) [__NR_fcntl64]: Make code unconditional.
1558         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1560         * sysdeps/unix/sysv/linux/kernel-features.h
1561         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1562         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1563         Make code unconditional.
1564         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1565         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1567         [__NR_vfork]: Make code unconditional.
1568         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1569         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1571         [__NR_vfork]: Make code unconditional.
1572         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1573         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1575 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1577         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1578         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1580         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1581         Define mkstemp64 as an alias.
1582         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1583         Define mkstemps64 as an alias.
1584         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1585         Define mkostemp64 as an alias.
1586         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1587         Define mkostemps64 as an alias.
1588         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1589         Conditionalize body on this.
1590         * misc/mkostemp64.c: Likewise.
1591         * misc/mkostemps64.c: Likewise.
1592         * misc/mkstemps64.c: Likewise.
1593         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1594         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1595         * sysdeps/wordsize-64/mkostemp.c: File removed.
1596         * sysdeps/wordsize-64/mkstemp.c: File removed.
1597         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1598         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1599         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1600         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1602         [BZ #14138]
1603         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1604         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1605         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1606         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1608         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1609         compat_symbol macros from <shlib-compat.h> rather than the underlying
1610         default_symbol_version and symbol_version macros, so that DEFAULT
1611         lines in shlib-versions are respected.
1612         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1614 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1616         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1617         Declare with warn_unused_result.
1618         (setgid, setregid, setegid, setresgid): Likewise.
1619         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1620         Likewise.
1621         * WUR-REPORT: Remove set*id functions.
1623 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1625         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1627 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1629         * include/sys/socket.h (__libc_accept, __libc_accept4):
1630         Add attribute_hidden.
1631         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1633         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1634         use of PTR_MANGLE.
1635         * inet/getnetgrent_r.c (setup): Likewise.
1637         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1639 2012-07-31  David S. Miller  <davem@davemloft.net>
1641         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1643 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1645         [BZ #13629]
1646         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1647         value between 1.0 and 2.0 and smaller part has absolute value less
1648         than 1.0.
1649         * math/s_clog10.c (__clog10): Likewise.
1650         * math/s_clog10f.c (__clog10f): Likewise.
1651         * math/s_clog10l.c (__clog10l): Likewise.
1652         * math/s_clogf.c (__clogf): Likewise.
1653         * math/s_clogl.c (__clogl): Likewise.
1654         * math/libm-test.inc (clog_test): Add more tests.
1655         (clog10_test): Likewise.
1656         * sysdeps/i386/fpu/libm-test-ulps: Update.
1657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1659 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1661         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1662         Exit with zero in case no suitable GID is found, and write a
1663         message to standard error.
1665 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1667         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1668         rather than to 1.
1669         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1670         (MAXPATHLEN): Removed.
1671         (NOGROUP, NODEV): New macros.
1672         (setbit, clrbit, isset, isclr): New macros.
1673         (howmany, roundup, powerof2): New macros.
1674         (DEV_BSIZE): New macro.
1676         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1677         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1679         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1680         definition on [!__NO_LONG_DOUBLE_MATH].
1682         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1683         PTR_MANGLE and PTR_DEMANGLE.
1685         * socket/accept4.c (accept4): Rename to __libc_accept4.
1686         Define accept4 as a weak alias.
1688         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1689         on [_DIRENT_HAVE_D_TYPE].
1690         * io/ftw.c (ftw_dir): Likewise.
1692         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1694         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1696         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1697         Use the BSD numbers rather than the arbitrary ones we had.
1698         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1699         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1700         (SIGXCPU, SIGXFSZ): New macros.
1701         (_NSIG): Now 32.
1703         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1704         initializer on [_LIBC_REENTRANT].
1706         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1707         definitions inside [_POSIX_MAPPED_FILES].
1709         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1711         * dirent/opendir.c: Include <fcntl.h>.
1713         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1714         (__libc_getspecific): Likewise.
1715         (__libc_key_create): Likewise.
1717         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1718         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1719         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1720         (tmpfile64): Define as alias.
1721         * sysdeps/wordsize-64/tmpfile.c: File removed.
1722         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1723         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1724         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1726         * stdio-common/vfscanf.c: Include <stdbool.h>.
1727         * nss/makedb.c: Likewise.
1728         * stdio-common/_i18n_number.h: Likewise.
1729         * argp/argp-help.c: Likewise.
1730         * posix/wordexp.c: Likewise.
1731         * sysdeps/posix/spawni.c: Likewise.
1732         * nss/nss_files/files-initgroups.c: Likewise.
1733         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1734         * nss/nss_files/files-initgroups.c: Likewise.
1735         * nss/nss_db/db-netgrp.c: Likewise.
1736         * nss/nss_db/db-initgroups.c: Likewise.
1737         * io/fchmodat.c: Include <sys/stat.h>.
1739         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1740         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1742         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1743         [HAVE_MMAP].
1745         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1746         Add multiple inclusion protection.
1748 2012-07-27  David S. Miller  <davem@davemloft.net>
1750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1752 2012-07-27  Gary Benson  <gbenson@redhat.com>
1754         [BZ #14298]
1755         * elf/rtld.c: Include <stap-probe.h>.
1756         (dl_main): Added static probes "init_start" and "init_complete".
1757         * elf/dl-load.c: Include <stap-probe.h>.
1758         (lose): Take new parameter "nsid".
1759         Added static probe "map_failed".
1760         (_dl_map_object_from_fd): Pass namespace id to lose.
1761         Added static probe "map_start".
1762         (open_verify): Pass namespace id to lose.
1763         * elf/dl-open.c: Include <stap-probe.h>.
1764         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1765         and "reloc_complete".
1766         * elf/dl-close.c: Include <stap-probe.h>.
1767         (_dl_close_worker): Added static probes "unmap_start" and
1768         "unmap_complete".
1769         * elf/rtld-debugger-interface.txt: New file documenting the above.
1771 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1773         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1774         rather than a string variable.
1775         * sunrpc/rpc_main.c (h_output): Likewise.
1776         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1778 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1780         * inet/check_native.c: New file.
1782 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1784         [BZ #13629]
1785         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1786         if larger part has absolute value 1.0.
1787         * math/s_clog10.c (__clog10): Likewise.
1788         * math/s_clog10f.c (__clog10f): Likewise.
1789         * math/s_clog10l.c (__clog10l): Likewise.
1790         * math/s_clogf.c (__clogf): Likewise.
1791         * math/s_clogl.c (__clogl): Likewise.
1792         * math/libm-test.inc (clog_test): Add more tests.
1793         (clog10_test): Likewise.
1794         * sysdeps/i386/fpu/libm-test-ulps: Update.
1795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1797         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1798         (pltexit): Likewise.
1799         (La_regs): Likewise.
1800         (La_retval): Likewise.
1801         (int_retval): Likewise.
1802         Update #error for removed macros to refer only to definitions in
1803         tst-audit.h.
1804         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1805         macro.
1806         (pltexit): Likewise.
1807         (La_regs): Likewise.
1808         (La_retval): Likewise.
1809         (int_retval): Likewise.
1810         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1811         macro.
1812         (pltexit): Likewise.
1813         (La_regs): Likewise.
1814         (La_retval): Likewise.
1815         (int_retval): Likewise.
1816         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1817         macro.
1818         (pltexit): Likewise.
1819         (La_regs): Likewise.
1820         (La_retval): Likewise.
1821         (int_retval): Likewise.
1822         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1823         macro.
1824         (pltexit): Likewise.
1825         (La_regs): Likewise.
1826         (La_retval): Likewise.
1827         (int_retval): Likewise.
1828         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1829         macro.
1830         (pltexit): Likewise.
1831         (La_regs): Likewise.
1832         (La_retval): Likewise.
1833         (int_retval): Likewise.
1834         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1835         macro.
1836         (pltexit): Likewise.
1837         (La_regs): Likewise.
1838         (La_retval): Likewise.
1839         (int_retval): Likewise.
1840         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1841         macro definitions in tst-audit.h.
1842         * sysdeps/i386/tst-audit.h: New file.
1843         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1844         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1845         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1846         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1847         * sysdeps/sh/tst-audit.h: Likewise.
1848         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1849         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1850         * sysdeps/x86_64/tst-audit.h: Likewise.
1852 2012-07-26  Andreas Jaeger  <aj@suse.de>
1854         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1855         ptrace.
1857         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1858         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1859         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1860         PTRACE_O_MASK.
1861         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1862         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1863         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1865         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1866         value.
1868         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1869         _sigsys.
1870         (si_call_addr, si_syscall, si_arch): Define new macro.
1871         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1872         _sigsys.
1873         (si_call_addr, si_syscall, si_arch): Define new marcro.
1874         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1875         _sigsys.
1876         (si_call_addr, si_syscall, si_arch): Define new macro.
1877         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1878         _sigsys.
1879         (si_call_addr, si_syscall, si_arch): Define new macro.
1881 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1883         [BZ #13717]
1884         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1885         Change to 2.4.21 where previously 2.4.1.
1886         * sysdeps/unix/sysv/linux/configure: Regenerated.
1887         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1888         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1889         Linux kernel version.
1890         (__ASSUME_STD_AUXV): Remove.
1891         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1892         kernel version.
1893         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1894         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1895         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1896         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1897         (__ASSUME_NETLINK_SUPPORT): Likewise.
1898         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1899         (__no_netlink_support): Remove conditional definition.
1900         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1901         Remove.
1902         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1903         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1904         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1905         (if_nameindex_ioctl): Remove.
1906         (if_nameindex_netlink): Do not handle __no_netlink_support.
1907         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1908         code.
1909         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1910         Remove conditional code.
1911         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1912         code.
1913         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1914         unconditional.
1915         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1916         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1917         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1918         Remove.
1919         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1920         [!__ASSUME_STD_AUXV]: Remove conditional code.
1921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1922         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1923         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1925         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1926         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1927         code.
1928         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1930         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1931         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1932         conditional code.
1933         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1935         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1936         code.
1937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1938         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1939         conditional code.
1940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1941         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1942         code unconditional.
1943         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1944         conditional code.
1945         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1946         unconditional.
1947         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1948         conditional code.
1949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1950         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1951         unconditional.
1952         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1953         conditional code.
1954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1955         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1956         code unconditional.
1957         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1958         conditional code.
1959         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1960         unconditional.
1961         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1962         conditional code.
1963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1964         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1965         code unconditional.
1966         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1967         conditional code.
1968         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1969         unconditional.
1970         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1971         conditional code.
1973 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1975         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1976         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1977         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1978         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1979         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1980         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1981         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1982         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1983         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1984         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1985         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1986         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1987         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1988         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1989         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1990         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1991         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1992         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1993         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1994         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1995         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1996         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1997         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1999 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2001         * Versions.def: Add GLIBC_2.17.
2002         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2003         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2004         Introduce __libc_secure_getenv.
2005         * stdlib/Versions (2.17): Add secure_getenv
2006         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2007         * stdlib/secure-getenv.c: Rename __secure_getenv to
2008         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2009         symbol __secure_getenv for GLIBC_2.0.
2010         * stdlib/tst-secure-getenv.c: New.
2011         * stdlib/Makefile (tests): Add testcase.
2012         * manual/startup.texi (Environment Access): Document
2013         secure_getenv.
2014         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2015         __libc_secure_getenv.
2016         * inet/ruserpass.c (ruserpass): Likewise.
2017         * malloc/mtrace.c (mtrace): Likewise.
2018         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2019         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2020         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2021         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2022         HAVE_SECURE_GETENV.
2023         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2024         __secure_getenv to __libc_secure_getenv.
2025         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2027         Likewise.
2028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2029         Likewise.
2030         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2031         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2032         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2033         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2036         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2038 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2040         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2041         (struct La_i86_retval): Likewise.
2042         (struct La_x86_64_regs): Likewise.
2043         (struct La_x86_64_retval): Likewise.
2044         (struct La_x32_regs): Likewise.
2045         (struct La_x32_retval): Likewise.
2046         (struct La_ppc32_regs): Likewise.
2047         (struct La_ppc32_retval): Likewise.
2048         (struct La_ppc64_regs): Likewise.
2049         (struct La_ppc64_retval): Likewise.
2050         (struct La_sh_regs): Likewise.
2051         (struct La_sh_retval): Likewise.
2052         (struct La_s390_32_regs): Likewise.
2053         (struct La_s390_32_retval): Likewise.
2054         (struct La_s390_64_regs): Likewise.
2055         (struct La_s390_64_retval): Likewise.
2056         (struct La_sparc32_regs): Likewise.
2057         (struct La_sparc32_retval): Likewise.
2058         (struct La_sparc64_regs): Likewise.
2059         (struct La_sparc64_retval): Likewise.
2060         (struct audit_ifaces): Remove architecture-specific pltenter and
2061         pltexit members.
2062         * sysdeps/i386/ldsodefs.h: New file.
2063         * sysdeps/powerpc/ldsodefs.h: Likewise.
2064         * sysdeps/s390/ldsodefs.h: Likewise.
2065         * sysdeps/sh/ldsodefs.h: Likewise.
2066         * sysdeps/sparc/ldsodefs.h: Likewise.
2067         * sysdeps/x86_64/ldsodefs.h: Likewise.
2069 2012-07-25  Marek Polacek  <polacek@redhat.com>
2071         [BZ #6808]
2072         * math/libm-test.inc (yn_test): Add another test.
2073         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2074         to ERANGE when the result is +-Inf.
2075         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2076         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2077         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2078         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2080 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2082         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2083         equal to 0.
2084         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2085         clock_t.
2086         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2088 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2090         * configure.in <sysdeps resolving>: Correct printing
2091         Implies_before.
2092         * configure: Regenerate.
2094 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2096         * math/w_ilogb.c: Include <limits.h>.
2097         * math/w_ilogbl.c: Likewise.
2099 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2101         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2102         va_copy.  Document allowing for unavailable va_copy only as
2103         pre-C99 compatibility.
2104         * manual/string.texi (Copying and Concatenation): Use va_copy
2105         instead of __va_copy in concat example.
2107 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2109         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2110         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2111         it if not null.
2113         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2114         with O_NOLINK passed to __file_name_lookup.
2116         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2117         with O_NOLINK passed to __file_name_lookup.
2119         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2120         negative N or less than NGIDS.
2122         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2123         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2124         enough.  Use memcpy instead of strncpy.
2126 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2128         * elf/Makefile (check-data): Remove.
2129         (localplt.data): New vpath directive.
2130         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2131         instead of $(check-data).
2132         * scripts/data/localplt-generic.data: Move to ...
2133         * sysdeps/generic/localplt.data: ... here.
2134         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2135         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2136         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2138         ... here.
2139         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2141         ... here.
2142         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2143         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2144         ... here.
2145         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2147         ... here.
2148         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2150         ... here.
2151         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2153         ... here.
2155 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2157         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2158         PPC32 and PPC64 files.
2159         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2160         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2162 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2164         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2165         __makecontext_ret to ...
2166         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2167         ... here and call exit if uc_link is NULL.  New file.
2168         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2169         __makecontext_ret.S.
2170         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2171         __makecontext_ret to ...
2172         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2173         ... here and call exit if uc_link is NULL.  New file.
2174         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2175         __makecontext_ret.S.
2177 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2179         * elf/elf.h (R_390_IRELATIVE): New definition.
2180         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2181         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2182         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2183         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2184         (elf_machine_lazy_rel): Likewise.
2185         * sysdeps/s390/dl-irel.h: New file.
2186         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2187         * sysdeps/s390/s390-64/memset.S: New asm code.
2188         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2189         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2190         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2191         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2192         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2193         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2194         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2195         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2196         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2197         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2198         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2199         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2200         * sysdeps/s390/s390-32/memset.S: New asm code.
2201         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2203 2012-07-17  Marek Polacek  <polacek@redhat.com>
2205         [BZ #14349]
2206         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2207         * sysdeps/s390/s390-64/configure.in: Likewise.
2208         * sysdeps/sparc/configure.in: Likewise.
2209         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2210         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2211         * sysdeps/i386/configure.in: Likewise.
2212         * sysdeps/x86_64/configure.in: Likewise.
2213         * sysdeps/sh/configure.in: Likewise.
2214         * sysdeps/s390/s390-32/configure: Regenerated.
2215         * sysdeps/s390/s390-64/configure: Likewise.
2216         * sysdeps/x86_64/configure: Likewise.
2217         * sysdeps/sh/configure: Likewise.
2218         * sysdeps/powerpc/powerpc64/configure: Likewise.
2219         * sysdeps/powerpc/powerpc32/configure: Likewise.
2220         * sysdeps/sparc/configure: Likwise.
2221         * sysdeps/i386/configure: Likewise.
2223         * elf/dl-open.c: Comment fixes.
2225 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2227         * Makefile [CXX] (check-data): Remove.
2228         [CXX] (c++-types.data): New vpath directive.
2229         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2230         vpath.  Do not allow for C++ type data being missing.
2231         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2232         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2233         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2234         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2235         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2236         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2237         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2239         ... here.
2240         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2242         ... here.
2243         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2244         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2245         ... here.
2246         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2247         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2248         ... here.
2249         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2250         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2251         ... here.
2252         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2253         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2254         ... here.
2255         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2256         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2257         ... here.
2258         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2259         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2261         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2262         definitions to architecture-specific files.
2263         (TLS_IE): Likewise.
2264         (TLS_LD): Likewise.
2265         (TLS_GD): Likewise.
2266         * sysdeps/i386/tls-macros.h: New file.
2267         * sysdeps/powerpc/tls-macros.h: Likewise.
2268         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2269         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2270         * sysdeps/sh/tls-macros.h: Likewise.
2271         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2272         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2273         * sysdeps/x86_64/tls-macros.h: Likewise.
2275 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2277         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2278         zero value for regular exit case.
2280         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2281         (__start_context): Preserve zero value for regular exit case.
2283 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2284             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2286         * manual/setjmp.texi (setcontext): Clarify normal process
2287         termination when uc_link is the null pointer.
2288         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2289         exit call.
2291 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2293         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2294         preprocessor.  Test for each exception mask separately.
2296 2012-07-16  Andreas Jaeger  <aj@suse.de>
2298         * po/ru.po: Update from translation team.
2300 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2302         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2303         equal to 0.
2304         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2305         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2306         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2307         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2308         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2310 2012-07-13  Andreas Jaeger  <aj@suse.de>
2312         * po/fr.po: Update from translation team.
2314 2012-07-12  Marek Polacek  <polacek@redhat.com>
2316         [BZ #14173]
2317         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2318         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2319         loop condition.
2321 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2323         [BZ #13717]
2324         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2325         Change to 2.4.1 where previously 2.4.0.
2326         * sysdeps/unix/sysv/linux/configure: Regenerated.
2327         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2328         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2329         version.
2330         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2331         (__ASSUME_AT_CLKTCK): Remove.
2332         (__ASSUME_AT_PAGESIZE): Likewise.
2333         (__ASSUME_AT_XID): Likewise.
2334         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2335         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2336         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2337         unconditionally.
2338         (HAVE_AUX_PAGESIZE): Likewise.
2339         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2340         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2341         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2343 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2345         [BZ #14307]
2346         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2347         the temporary buffer used to invoke __gethostbyname2_r,
2348         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2349         host_data / struct gaih_addrtuple.
2350         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2351         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2352         header file nss/nsswitch.h.
2353         * nss/nsswitch.h (global scope): Add definition of implementation
2354         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2355         resolv/nss_dns/dns-host.c).
2357 2012-07-11  Andreas Jaeger  <aj@suse.de>
2359         * po/fr.po: Update from translation team.
2361         * po/sv.po: Update from translation team
2362         * po/fr.po: Another update from translation team.
2364 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2366         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2367         for subnormals or multiply small sinh result by itself.
2368         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2369         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2371 2012-07-11  David S. Miller  <davem@davemloft.net>
2373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2375 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2377         [BZ #14347]
2378         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2379         (INTERNAL_MARK): Shift it here.
2381 2012-07-10  Marek Polacek  <polacek@redhat.com>
2383         [BZ #14151]
2384         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2385         libc_cv_asm_global_directive with .globl.
2386         * configure: Regenerated.
2387         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2388         with .globl.
2389         * sysdeps/i386/configure: Regenerated.
2390         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2391         with .globl.
2392         * sysdeps/x86_64/configure: Regenerated.
2393         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2394         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2395         * elf/tst-unique2mod2.c: Likewise.
2396         * elf/tst-unique2mod1.c: Likewise.
2397         * elf/tst-unique1mod2.c: Likewise.
2398         * elf/tst-unique1mod1.c: Likewise.
2399         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2400         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2401         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2402         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2403         * sysdeps/mach/sysdep.h: Likewise.
2404         * sysdeps/i386/sysdep.h: Likewise.
2405         * sysdeps/i386/i386-mcount.S: Likewise.
2406         * sysdeps/x86_64/_mcount.S: Likewise.
2407         * sysdeps/x86_64/sysdep.h: Likewise.
2408         * sysdeps/sh/_mcount.S: Likewise.
2409         * sysdeps/sh/sysdep.h: Likewise.
2410         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2411         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2412         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2413         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2414         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2415         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2416         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2417         * locale/localeinfo.h: Likewise.
2418         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2419         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2421 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2423         [BZ #14336]
2424         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2425         system".
2426         * manual/message.texi (The Uniforum approach): Likewise.
2427         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2428         (glibc iconv Implementation): Likewise.
2430 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2432         [BZ #14337]
2433         * math/s_clog.c (__clog): Avoid scaling a value down where that
2434         could result in underflow.
2435         * math/s_clog10.c (__clog10): Likewise.
2436         * math/s_clog10f.c (__clog10f): Likewise.
2437         * math/s_clog10l.c (__clog10l): Likewise.
2438         * math/s_clogf.c (__clogf): Likewise.
2439         * math/s_clogl.c (__clogl): Likewise.
2440         * math/libm-test.inc (clog_test): Add more tests.
2441         (clog10_test): Likewise.
2442         * sysdeps/i386/fpu/libm-test-ulps: Update.
2443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2445 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2447         [BZ #14283]
2448         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2449         by 7 not 8 to examine high bit of fractional part.
2451         [BZ #14042]
2452         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2453         for call to __mcount_internal.
2454         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2455         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2456         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2458 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2460         [BZ #14154]
2461         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2462         approximation for values within 0x1p-13f of an odd multiple of
2463         pi/4.
2464         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2465         exception.  Add more tests.
2466         * sysdeps/i386/fpu/libm-test-ulps: Update.
2468         [BZ #6778]
2469         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2470         inputs and return -1 for them.  Do not check for +Inf in case not
2471         reachable for +Inf.
2472         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2473         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2474         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2475         and return -1 for them.  Do not check for +Inf in case not
2476         reachable for +Inf.
2477         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2478         define.
2479         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2480         and return -1 for them.  Do not check for +Inf in case not
2481         reachable for +Inf.
2482         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2483         spurious underflow.
2484         * sysdeps/i386/fpu/libm-test-ulps: Update.
2485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2487 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2489         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2491 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2493         [BZ #14157]
2494         [BZ #14331]
2495         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2496         could result in spurious underflow.  Scale down values above
2497         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2498         * math/s_csqrtf.c (__csqrtf): Likewise.
2499         * math/s_csqrtl.c (__csqrtl): Likewise.
2500         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2501         spurious underflow.
2502         * sysdeps/i386/fpu/libm-test-ulps: Update.
2503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2505 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2507         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2508         xopen-msg.sed.
2509         * catgets/xopen-msg.awk: New file.
2510         * catgets/xopen-msg.sed: Removed.
2512         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2513         po2text.sed.
2514         * intl/po2test.awk: New file.
2515         * intl/po2test.sed: Removed.
2517 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2519         [BZ #14328]
2520         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2521         or multiply small sinh result by itself.
2522         * math/s_ctanf.c (__ctanf): Likewise.
2523         * math/s_ctanh.c (__ctanh): Likewise.
2524         * math/s_ctanhf.c (__ctanhf): Likewise.
2525         * math/s_ctanhl.c (__ctanhl): Likewise.
2526         * math/s_ctanl.c (__ctanl): Likewise.
2527         * math/libm-test.inc (ctan_test_tonearest): New function.
2528         (ctan_test_towardzero): Likewise.
2529         (ctan_test_downward): Likewise.
2530         (ctan_test_upward): Likewise.
2531         (ctanh_test_tonearest): Likewise.
2532         (ctanh_test_towardzero): Likewise.
2533         (ctanh_test_downward): Likewise.
2534         (ctanh_test_upward): Likewise.
2535         (main): Call these new functions.
2536         * sysdeps/i386/fpu/libm-test-ulps: Update.
2537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2539 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2541         * .gitignore: Delete /ports entry.
2543 2012-07-03  Andreas Jaeger  <aj@suse.de>
2545         * po/bg.po: Update from translation team.
2546         * po/cs.po: Likewise.
2547         * po/de.po: Likewise.
2548         * po/hr.po: Likewise.
2549         * po/nl.pl: Likewise.
2550         * po/pl.po: Likewise.
2551         * po/vi.po: Likewise.
2553 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2555         * Makeconfig [!+link] (+link-before-libc): New variable.
2556         [!+link] (+link-after-libc): Likewise.
2557         [!+link] (+link-tests): Likewise.
2558         [!+link] (+link): Define in terms of $(+link-before-libc) and
2559         $(+link-after-libc).
2560         [!+link-static] (+link-static-before-libc): New variable.
2561         [!+link-static] (+link-static-after-libc): Likewise.
2562         [!+link-static] (+link-static-tests): Likewise.
2563         [!+link-static] (+link-static): Define in terms of
2564         $(+link-static-before-libc) and $(+link-static-after-libc).
2565         [build-shared] (link-libc-before-gnulib): New variable.
2566         [build-shared] (link-libc-tests): Likewise.
2567         [build-shared] (link-libc): Define in terms of
2568         $(link-libc-before-gnulib).
2569         [!build-shared] (link-libc-tests): New variable.
2570         (link-libc-static-tests): New variable.
2571         [!gnulib] (gnulib-arch): New variable.
2572         [!gnulib] (gnulib-tests): Likewise.
2573         [!gnulib] (static-gnulib-arch): Likewise.
2574         [!gnulib] (static-gnulib-tests): Likewise.
2575         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2576         Define with "=" instead of ":=".
2577         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2578         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2579         * Rules (binaries-all-notests): New variable.
2580         (binaries-all-tests): Likewise.
2581         (binaries-static-notests): Likewise.
2582         (binaries-static-tests): Likewise.
2583         (binaries-all): Define using $(binaries-all-notests) and
2584         $(binaries-all-tests).
2585         (binaries-static): Define using $(binaries-static-notests) and
2586         $(binaries-static-tests).
2587         (binaries-shared-tests): New variable.
2588         (binaries-shared-notests): Likewise.
2589         (binaries-shared): Remove variable.
2590         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2591         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2592         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2593         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2594         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2595         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2596         * elf/Makefile (sln-modules): New variable.
2597         (extra-objs): Add $(sln-modules:=.o).
2598         (ldconfig-modules): Add static-stubs.
2599         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2600         * elf/static-stubs.c: New file.
2602         [BZ #14283]
2603         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2604         by 7 not 8 to examine high bit of fractional part.  Use volatile
2605         variables when splitting into final array of floats if
2606         __FLT_EVAL_METHOD__ != 0.
2607         * math/libm-test.inc (cos_test): Add another test.
2608         (sin_test): Likewise.
2609         * sysdeps/i386/fpu/libm-test-ulps: Update.
2611         [BZ #14273]
2612         * math/libm-test.inc (cosh_test): Add more tests.
2614         * version.h (RELEASE): Set to "development".
2615         (VERSION): Set to "2.16.90".
2617 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2619         * NEWS: Update copyright. Remove last-updated date.
2620         Mention math library bug fixes and timezone data changes.
2621         * README: Mention GNU/Hurd, x32, and HPPA support status.
2623 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2625         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2627 2012-06-27  Andreas Jaeger  <aj@suse.de>
2629         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2631 2012-06-25  Andreas Jaeger  <aj@suse.de>
2633         * sysdeps/s390/fpu/libm-test-ulps: Update.
2635 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2636             Thomas Schwinge  <thomas@codesourcery.com>
2638         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2639         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2640         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2641         fanotify_mark.
2643 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2645         * sysdeps/mach/start.c: Remove file.
2646         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2647         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2648         * sysdeps/sh/init-first.c: Likewise.
2650         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2651         registers for frame unwinding purposes, add CFI directives.
2652         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2653         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2654         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2655         Likewise.
2657         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2658         __fortify_fail returning.
2659         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2661         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2662         sysdeps/sh/____longjmp_chk.S.
2663         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2664         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2665         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2666         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2668         * sysdeps/sh/abort-instr.h: New file.
2669         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2670         process in case exit returns.
2672         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2673         initialize the GOT register before use.
2675         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2676         calculation of ARGC > 4.
2678         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2679         meaningful names to some local labels.
2681 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2682             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2684         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2685         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2686         (__arch_compare_and_exchange_val_16_acq): Likewise.
2687         (__arch_compare_and_exchange_val_32_acq): Likewise.
2688         (atomic_exchange_and_add): Fix gUSA sequence.
2689         (atomic_add): Likewise.
2690         (atomic_add_negative): Likewise.
2691         (atomic_add_zero): Likewise.
2692         (atomic_bit_test_set): Likewise.
2694 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2696         [BZ #13579]
2697         * include/link.h (struct link_map): Add l_free_initfini.
2698         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2699         l_initfini.
2700         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2701         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2702         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2703         set.
2705 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2707         * configure.in: Use AC_LANG_SOURCE.
2708         * configure: Regenerate.
2710 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2712         * configure.in (libc_cv_localstatedir): New substituted variable.
2713         * configure: Regenerated.
2714         * config.make.in (localstatedir): New variable, substituted from
2715         libc_cv_localstatedir.
2716         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2717         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2718         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2719         * sysdeps/gnu/configure: Regenerated.
2721 2012-06-21  Jeff Law  <law@redhat.com>
2723         [BZ #14277]
2724         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2725         free.  Simplify list management for _LIBC case.
2727 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2729         [BZ #14273]
2730         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2731         Clear sign bit of 64-bit integer value before comparing against
2732         overflow value.
2734         * sysdeps/mach/configure: Regenerated.
2736 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2738         [BZ #14278]
2739         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2741 2012-06-21  Jeff Law  <law@redhat.com>
2743         [BZ #13882]
2744         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2745         uint16_t for elements in the "seen" array to avoid char overflows.
2746         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2747         * elf/dl-open.c (dl_open_worker): Likewise.
2749 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2751         * scripts/list-sources.sh: Scan PORTS for translations.
2752         * po/libc.pot: Regenerated.
2754 2012-06-21  Andreas Jaeger  <aj@suse.de>
2756         [BZ #12194]
2757         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2758         warning.
2759         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2760         * bits/byteswap-16.h (__bswap_16): Likewise.
2761         * bits/byteswap.h (__bswap_constant_16): Likewise.
2763 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2765         [BZ #14117]
2766         * sysdeps/i386/fpu_control.h: Removed.
2767         * sysdeps/x86_64/fpu_control.h: Moved to ...
2768         * sysdeps/x86/fpu_control.h: Here.
2770         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2771         (_FPU_SETCW): Likewise.
2773 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2775         [BZ #14117]
2776         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2777         * sysdeps/x86/fpu/bits/mathinline.h: This.
2778         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2780         [BZ #14050]
2781         [BZ #14117]
2782         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2783         functions if __x86_64__ is defined.
2785 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2787         * string/endian.h: Add !__ASSEMBLER__ condition for including
2788         conversion interfaces.
2790 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2792         [BZ #14241]
2793         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2794         of ABS(x) in calculating zero to negative powers other than odd
2795         integers.
2796         * math/libm-test.inc (pow_test): Add more tests.
2798 2012-06-15  Andreas Jaeger  <aj@suse.de>
2800         * manual/contrib.texi (Contributors): Update entry of Liubov
2801         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2802         Machado Filho.
2804 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2806         * string/string.h: Add __wur to GNU version of strerror_r.
2808 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2810         [BZ #14229]
2811         * string/Makefile (tests): Add tst-strtok_r.
2812         * string/tst-strtok_r.c: New file.
2813         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2814         RAX_LP/RDX_LP on SAVE_PTR.
2816 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2818         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2820 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2822         * libm_test.inc (csqrt_test): Allow more spurious underflow
2823         exceptions.
2824         (j0_test): Likewise.
2825         (j1_test): Likewise.
2826         (y0_test): Likewise.
2827         (y1_test): Likewise.
2829 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2831         * po/Makefile (libc.pot): Use UTF-8 charset.
2833 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2835         [BZ #14210]
2836         Suppress sign-conversion warning from FD_SET.
2837         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2838         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2839         not unsigned long int.
2840         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2842 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2844         [BZ #14050]
2845         [BZ #14117]
2846         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2847         __extern_always_inline instead of __extern_inline.
2848         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2849         (__signbit): Likewise.
2850         (__signbitl): Support C++ namespace.
2851         (lrintf): New inline function.
2852         (lrint): Likewise.
2853         (llrintf): Likewise.
2854         (llrint): Likewise.
2855         (fmaxf): Likewise.
2856         (fmax): Likewise.
2857         (fminf): Likewise.
2858         (fmin): Likewise.
2859         (rint): Likewise.
2860         (rintf): Likewise.
2861         (ceil): Likewise.
2862         (ceilf): Likewise.
2863         (floor): Likewise.
2864         (floorf): Likewise.
2865         (nearbyint): Likewise.
2866         (nearbyintf): Likewise.
2868 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2870         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2871         non-default versions.
2873 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2875         [BZ #14218]
2876         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2878 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2880         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2881         (FE_UPWARD, FE_DOWNWARD): Don't define.
2882         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2883         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2885         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2886         reading it.
2887         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2888         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2890 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2892         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2893         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2894         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2895         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2897 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2899         [BZ #14117]
2900         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2901         * sysdeps/i386/fpu/Implies: New file.
2902         * sysdeps/x86_64/fpu/Implies: Likewise.
2903         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2904         * sysdeps/x86/fpu/bits/fenv.h: This.
2906         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2907         __SSE_MATH__.
2909 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2911         [BZ #14134]
2912         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2913         character 0xffff that matches the last element of the
2914         conversion table.
2916 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2918         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2919         fmodl commit.
2921 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2923         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2924         values higher than 25.6283.
2926 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2928         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2929         subnormal exponent extraction and add some __builtin_expect.
2930         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2931         Fix for subnormal mantissa calculation.
2933 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2935         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2936         cpu2 is -1 and errno is not ENOSYS.
2938 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2940         [BZ #14117]
2941         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2942         * sysdeps/x86/bits/string.h: This.
2943         * sysdeps/x86_64/bits/string.h: Removed.
2945         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2946         if not compiling for x86-64, but compiling for >= i486.
2948         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2949         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2951         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2952         New macro from Linux kernel 3.4.0.
2953         (FP_XSTATE_MAGIC2): Likewise.
2954         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2955         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2956         (struct _fpx_sw_bytes): New struct.
2957         (struct _xsave_hdr): Likewise.
2958         (struct _ymmh_state): Likewise.
2959         (struct _xstate): Likewise.
2961         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2962         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2963         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2964         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2965         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2966         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2968         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2969         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2970         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2971         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2972         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2973         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2975 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2977         [BZ #13743]
2978         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2979         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2980         (sysdep_headers): Include sys/platform/ppc.h.
2981         * sysdeps/powerpc/test-gettimebase.c: Test for
2982         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2983         * manual/Makefile (appendices): Include platform.texi.
2984         * manual/contrib.texi (Contributors): Update @node pointers.
2985         * manual/maint.texi (Maintenance): Likewise.
2986         (Platform): New node.
2987         * manual/platform.texi: New file.  Document the new features.
2989 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2990             Jakub Jelinek  <jakub@redhat.com>
2992         [BZ #14188]
2993         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2994         where __builtin_expect is unavailable.
2996 2012-06-03  David S. Miller  <davem@davemloft.net>
2998         * stdlib/longlong.h: Updated from GCC.
3000 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3002         [BZ #14042]
3003         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3004         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3005         __mcount_internal.
3006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3007         (GLIBC_2.16): Likewise.
3009 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3011         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3013 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3016         (default-abi): New variable.
3017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3018         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3019         variable.
3020         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3021         Likewise.
3022         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3023         Likewise.
3024         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3025         Likewise.
3027         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3028         definition.  Document in comment.
3030 2012-06-01  David S. Miller  <davem@davemloft.net>
3032         * stdlib/longlong.h: Updated from GCC.
3034 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3036         [BZ #14117]
3037         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3038         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3039         sys/debugreg.h sys/io.h here.
3040         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3041         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3042         sys/io.h.
3043         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3044         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3045         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3046         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3047         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3048         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3050         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3051         Define only if __x86_64__ is defined.
3053 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3055         [BZ #14048]
3056         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3057         Use int64_t for variable i.
3058         * math/libm-test.inc (fmod_test): Add more tests.
3060         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3061         z computation is not scheduled after fetestexcept.
3062         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3063         Use math_force_eval instead of asm to ensure calculation scheduled
3064         before exception test.
3065         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3066         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3068 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3070         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3071         computation is not scheduled after fetestexcept.
3073 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3075         [BZ #14117]
3076         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3077         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3079 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3081         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3082         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3084 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3086         [BZ #14117]
3087         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3088         <bits/wordsize.h>.
3089         (__WCHAR_MIN): Support __WORDSIZE == 64.
3090         (__WCHAR_MAX): Likewise.
3092         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3093         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3095         [BZ #14183]
3096         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3097         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3099         [BZ #14117]
3100         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3101         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3103         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3104         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3106         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3107         Defined to 1 if __x86_64__ isn't defined.
3108         (_STAT_VER_LINUX_OLD): New.
3109         (st_atime): Remove duplicate.
3110         (st_mtime): Likewise.
3111         (st_ctime): Likewise.
3113 2012-05-31  David S. Miller  <davem@davemloft.net>
3115         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3116         entries.
3118 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3120         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3121         gen-libm-test.pl.
3123         [BZ #14132]
3124         * elf/dl-reloc.c: Include <_itoa.h>.
3125         (_dl_reloc_bad_type): Remove use of INTUSE.
3126         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3127         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3128         * stdio-common/psiginfo.c (psiginfo): Likewise.
3129         * stdio-common/psignal.c (psignal): Likewise.
3130         * string/strsignal.c (strsignal): Likewise.
3131         * include/signal.h (_sys_siglist): Declare hidden proto.
3132         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3133         INTVARDEF with libc_hidden_data_def.
3134         * stdio-common/itoa-udigits.c: Likewise.
3135         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3136         (_itoa_lower_digits_internal): Remove declaration.
3137         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3138         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3139         (_sys_sigabbrev_internal): Remove aliases.
3140         (_sys_siglist): Define hidden alias.
3142 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3144         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3145         bits/sysctl.h.
3147 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3149         [BZ #14117]
3150         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3151         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3153         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3154         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3155         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3156         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3157         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3158         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3160         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3161         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3162         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3164         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3165         with __addr.
3166         (insw): Likewise.
3167         (insl): Likewise.
3168         (outsb): Likewise.
3169         (outsw): Likewise.
3170         (outsl): Likewise.
3172         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3173         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3174         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3176         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3177         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3178         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3179         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3180         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3181         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3183         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3184         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3186         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3187         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3189         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3190         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3191         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3193         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3194         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3195         to ...
3196         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3198         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3199         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3200         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3202         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3203         for x86-64.
3204         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3206 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3208         * math/math.h (M_El): Use two more decimal places.
3209         (M_LOG2El): Likewise.
3210         (M_LOG10El): Likewise.
3211         (M_LN2l): Likewise.
3212         (M_LN10l): Likewise.
3213         (M_PIl): Likewise.
3214         (M_PI_2l): Likewise.
3215         (M_PI_4l): Likewise.
3216         (M_1_PIl): Likewise.
3217         (M_2_PIl): Likewise.
3218         (M_2_SQRTPIl): Likewise.
3219         (M_SQRT2l): Likewise.
3220         (M_SQRT1_2l): Likewise.
3222 2012-05-31  David S. Miller  <davem@davemloft.net>
3224         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3225         values between float registers.
3226         * sysdeps/sparc/sparc64/memset.S: Likewise.
3227         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3229 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3231         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3232         -D_FORTIFY_SOURCE=1.
3233         (CPPFLAGS-tst-longjmp_chk.c): Define.
3234         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3235         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3236         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3237         CFLAGS-tst-wchar-h.c.
3239 2012-05-31  Marek Polacek  <polacek@redhat.com>
3241         [BZ #14132]
3242         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3243         __endmntent_internal): Remove declaration.
3244         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3245         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3246         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3248 2012-05-30  David S. Miller  <davem@davemloft.net>
3250         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3251         (___Q_simulate_exceptions): Use real FP ops rather than writing
3252         into the %fsr.
3253         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3254         Likewise.
3256 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3258         [BZ #14117]
3259         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3260         * sysdeps/x86/bits/xtitypes.h: This.
3262         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3263         * sysdeps/x86/bits/wordsize.h: This.
3265         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3266         * sysdeps/x86/bits/huge_vall.h: This.
3268         * sysdeps/i386/bits/select.h: Removed.
3269         * sysdeps/x86_64/bits/select.h: Renamed to ...
3270         * sysdeps/x86/bits/select.h: This.
3272         * sysdeps/i386/bits/setjmp.h: Removed.
3273         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3274         * sysdeps/x86/bits/setjmp.h: This.
3276         * sysdeps/i386/bits/mathdef.h: Removed.
3277         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3278         * sysdeps/x86/bits/mathdef.h: This.
3280 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3282         [BZ #14132]
3283         * include/sys/socket.h (__connect_internal)
3284         (__libc_sa_len_internal): Remove declaration.
3285         (__connect, __libc_sa_len): Declare hidden_proto.
3286         (SA_LEN): Remove use of INTUSE.
3287         * socket/connect.c: Add libc_hidden_def.
3288         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3289         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3290         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3291         alias.
3292         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3293         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3294         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3295         of adding _internal alias.
3297 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3299         [BZ #14117]
3300         * sysdeps/i386/bits/link.h: Removed.
3301         * sysdeps/i386/bits/linkmap.h: Likewise.
3302         * sysdeps/x86_64/bits/link.h: Renamed to ...
3303         * sysdeps/x86/bits/link.h: This.
3304         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3305         * sysdeps/x86/bits/linkmap.h: This.
3307         * sysdeps/i386/bits/endian.h: Removed.
3308         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3309         * sysdeps/x86/bits/endian.h: This.
3311         * sysdeps/i386/bits/byteswap.h: Removed.
3312         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3313         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3314         * sysdeps/x86/bits/byteswap.h: This.
3315         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3316         * sysdeps/x86/bits/byteswap-16.h: This.
3317         * sysdeps/i386/Implies: Add x86.
3318         * sysdeps/x86_64/Implies: Likewise.
3320 2012-05-30  David S. Miller  <davem@davemloft.net>
3322         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3323         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3324         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3325         (FP_TRAPPING_EXCEPTIONS): Define.
3326         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3327         (FP_TRAPPING_EXCEPTIONS): Define.
3328         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3329         subnormals only when inexact has been signalled or underflow
3330         exceptions are enabled.
3331         (_FP_PACK_CANONICAL): Likewise.
3333 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3335         [BZ #14183]
3336         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3337         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3339 2012-05-30  Richard Henderson  <rth@twiddle.net>
3341         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3342         with #ifndef NOT_IN_libc.
3344         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3345         marked to avoid plt entry.
3347 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3349         [BZ #14112]
3350         * Makeconfig (default-abi): New macro.
3351         (abi-includes): Likewise.
3352         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3353         $(abi-$(default-abi)-lib-soname) for soname if defined.
3354         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3355         abi-variants.
3356         * Makefile (installed-stubs): Likewise.
3357         * include/stubs-biarch.h: Removed.
3358         * scripts/lib-names.awk: Only handle one library at a time.
3359         * scripts/soversions.awk: Remove WORDSIZE support.
3360         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3361         entries.
3362         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3363         Removed.
3364         (syscall-list-default-condition): Likewise.
3365         (syscall-list-default-condition): Likewise.
3366         (syscall-list-includes): Likewise.
3367         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3368         syscall-list-* with abi-*.  Handle undefined abi-variants.
3369         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3370         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3371         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3372         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3373         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3374         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3375         Removed.
3376         (syscall-list-32-options): Likewise.
3377         (syscall-list-32-condition): Likewise.
3378         (syscall-list-64-options): Likewise.
3379         (syscall-list-64-condition): Likewise.
3380         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3381         macro.
3382         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3383         Renamed to ...
3384         (abi-*): This.
3385         (abi-64-ld-soname): New macro.
3386         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3387         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3388         Renamed to ...
3389         (abi-*): This.
3390         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3391         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3393 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3395         * sysdeps/unix/sysv/linux/kernel-features.h
3396         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3397         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3398         include <kernel-features.h>.
3399         [!__NR_ftruncate64]: Remove conditional code.
3400         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3401         [__NR_ftruncate64]: Make code unconditional.
3402         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3403         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3404         include <kernel-features.h>.
3405         [!__NR_ftruncate64]: Remove conditional code.
3406         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3407         [__NR_ftruncate64]: Make code unconditional.
3408         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3410         include <kernel-features.h>.
3411         [!__NR_ftruncate64]: Remove conditional code.
3412         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3413         [__NR_ftruncate64]: Make code unconditional.
3414         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3416         include <kernel-features.h>.
3417         [!__NR_ftruncate64]: Remove conditional code.
3418         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3419         [__NR_ftruncate64]: Make code unconditional.
3420         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3422         * configure.in (libc_cv_fpie): Weaken to a compile test using
3423         LIBC_TRY_CC_OPTION.
3424         * configure: Regenerated.
3426 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3428         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3429         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3430         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3431         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3432         Refreshed.
3433         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3434         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3435         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3436         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3437         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3438         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3439         Refreshed.
3441 2012-05-27  David S. Miller  <davem@davemloft.net>
3443         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3444         (___Q_zero): New.
3445         (__Q_simulate_exceptions): Return void.  Change to simulate
3446         exceptions by writing into the %fsr.
3447         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3448         (__Qp_handle_exceptions): Likewise.
3449         (numbers): Delete.
3450         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3451         __Qp_handle_exceptions.
3452         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3453         __Qp_handle_exceptions.
3454         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3455         as unused and give dummy FP_RND_NEAREST initializer.
3456         (FP_INHIBIT_RESULTS): Define.
3457         (___Q_simulate_exceptions): Update declaration.
3458         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3459         formatting.
3460         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3461         as unused and give dummy FP_RND_NEAREST initializer.
3462         (__Qp_handle_exceptions): Update declaration.
3463         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3464         formatting.
3466 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3468         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3469         the temporary FPU control word.
3470         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3471         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3472         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3473         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3474         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3475         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3476         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3477         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3478         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3479         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3480         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3482 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3484         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3485         fields.
3487 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3489         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3490         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3491         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3492         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3493         Likewise.
3494         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3495         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3496         Likewise.
3498 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3500         * po/h.po: Update from translation team.
3502 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3504         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3506         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3507         handling of denormals.
3508         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3509         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3510         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3511         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3512         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3513         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3514         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3515         Likewise.
3517 2012-05-26  Marek Polacek  <polacek@redhat.com>
3519         [BZ #14152]
3520         * math/libm-test.inc (fma_test): Don't always expect underflow
3521         exception.
3523 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3525         [BZ #12416]
3526         * elf/tst-execstack.c: Include stackinfo.h.
3527         (do_test): Adjust test case to ensure that pthread_getattr_np
3528         behaviour remains the same after marking stack executable.
3530 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3532         * sysdeps/unix/sysv/linux/kernel-features.h
3533         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3534         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3535         kernel-features.h.
3536         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3537         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3538         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3539         kernel-features.h.
3540         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3541         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3543 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3545         * configure.in: Define the default includes to being none.
3546         * configure: Regenerated.
3548 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3550         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3551         * sysdeps/x86_64/setjmp.S: Likewise.
3552         * sysdeps/i386/bsd-setjmp.S: Likewise.
3553         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3554         * sysdeps/i386/setjmp.S: Likewise.
3555         * sysdeps/i386/__longjmp.S: Likewise.
3556         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3557         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3559         * include/stap-probe.h: New file.
3560         * configure.in: Handle --enable-systemtap.
3561         * configure: Regenerated.
3562         * config.h.in (USE_STAP_PROBE): New #undef.
3563         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3564         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3565         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3567 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3569         [BZ #13717]
3570         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3571         to 2.4.0 where earlier.
3572         * sysdeps/unix/sysv/linux/configure: Regenerated.
3573         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
3582         [__ASSUME_32BITUIDS]: Make code unconditional.
3583         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3584         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3585         <kernel-features.h>.
3586         [__ASSUME_32BITUIDS]: Make code unconditional.
3587         [!__ASSUME_32BITUIDS]: Remove conditional code.
3588         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3589         <kernel-features.h>.
3590         [__ASSUME_32BITUIDS]: Make code unconditional.
3591         [!__ASSUME_32BITUIDS]: Remove conditional code.
3592         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3593         <kernel-features.h>.
3594         [__ASSUME_32BITUIDS]: Make code unconditional.
3595         [!__ASSUME_32BITUIDS]: Remove conditional code.
3596         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3597         <kernel-features.h>.
3598         [__ASSUME_32BITUIDS]: Make code unconditional.
3599         [!__ASSUME_32BITUIDS]: Remove conditional code.
3600         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3601         <kernel-features.h>.
3602         [__ASSUME_32BITUIDS]: Make code unconditional.
3603         [!__ASSUME_32BITUIDS]: Remove conditional code.
3604         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3605         <kernel-features.h>.
3606         [__ASSUME_32BITUIDS]: Make code unconditional.
3607         [!__ASSUME_32BITUIDS]: Remove conditional code.
3608         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3609         <kernel-features.h>.
3610         [__ASSUME_32BITUIDS]: Make code unconditional.
3611         [!__ASSUME_32BITUIDS]: Remove conditional code.
3612         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3613         <kernel-features.h>.
3614         [__ASSUME_32BITUIDS]: Make code unconditional.
3615         [!__ASSUME_32BITUIDS]: Remove conditional code.
3616         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3617         <kernel-features.h>.
3618         [__ASSUME_32BITUIDS]: Make code unconditional.
3619         [!__ASSUME_32BITUIDS]: Remove conditional code.
3620         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3621         <kernel-features.h>.
3622         [__ASSUME_32BITUIDS]: Make code unconditional.
3623         [!__ASSUME_32BITUIDS]: Remove conditional code.
3624         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3625         <kernel-features.h>.
3626         [__NR_setresgid] (__setresgid): Do not declare.
3627         [__ASSUME_32BITUIDS]: Make code unconditional.
3628         [!__ASSUME_32BITUIDS]: Remove conditional code.
3629         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3630         <kernel-features.h>.
3631         [__NR_setresuid] (__setresuid): Do not declare.
3632         [__ASSUME_32BITUIDS]: Make code unconditional.
3633         [!__ASSUME_32BITUIDS]: Remove conditional code.
3634         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3635         <kernel-features.h>.
3636         [__ASSUME_32BITUIDS]: Make code unconditional.
3637         [!__ASSUME_32BITUIDS]: Remove conditional code.
3638         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3639         <kernel-features.h>.
3640         [__ASSUME_32BITUIDS]: Make code unconditional.
3641         [!__ASSUME_32BITUIDS]: Remove conditional code.
3642         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3643         <kernel-features.h>.
3644         [__ASSUME_32BITUIDS]: Make code unconditional.
3645         [!__ASSUME_32BITUIDS]: Remove conditional code.
3646         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3647         <kernel-features.h>.
3648         [__ASSUME_32BITUIDS]: Make code unconditional.
3649         [!__ASSUME_32BITUIDS]: Remove conditional code.
3650         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3651         <kernel-features.h>.
3652         [__ASSUME_32BITUIDS]: Make code unconditional.
3653         [!__ASSUME_32BITUIDS]: Remove conditional code.
3654         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3655         <kernel-features.h>.
3656         [__ASSUME_32BITUIDS]: Make code unconditional.
3657         [!__ASSUME_32BITUIDS]: Remove conditional code.
3658         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3659         <kernel-features.h>.
3660         [__ASSUME_32BITUIDS]: Make code unconditional.
3661         [!__ASSUME_32BITUIDS]: Remove conditional code.
3662         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3663         <kernel-features.h>.
3664         [__ASSUME_32BITUIDS]: Make code unconditional.
3665         [!__ASSUME_32BITUIDS]: Remove conditional code.
3666         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3667         <kernel-features.h>.
3668         [__ASSUME_32BITUIDS]: Make code unconditional.
3669         [!__ASSUME_32BITUIDS]: Remove conditional code.
3670         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3671         <kernel-features.h>.
3672         [__ASSUME_32BITUIDS]: Make code unconditional.
3673         [!__ASSUME_32BITUIDS]: Remove conditional code.
3674         * sysdeps/unix/sysv/linux/kernel-features.h
3675         (__ASSUME_SETRESUID_SYSCALL): Remove.
3676         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3677         (__ASSUME_32BITUIDS): Likewise.
3678         (__ASSUME_LDT_WORKS): Likewise.
3679         (__ASSUME_O_DIRECTORY): Likewise.
3680         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3681         architecture but not kernel version.
3682         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3683         (__ASSUME_MMAP2_SYSCALL): Likewise.
3684         (__ASSUME_STAT64_SYSCALL): Likewise.
3685         (__ASSUME_IPC64): Likewise.
3686         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3687         <kernel-features.h>.
3688         [__ASSUME_32BITUIDS]: Make code unconditional.
3689         [!__ASSUME_32BITUIDS]: Remove conditional code.
3690         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3691         <kernel-features.h>.
3692         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3693         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3694         132096]: Remove conditional code.
3695         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3696         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3697         <kernel-features.h>.
3698         [__ASSUME_32BITUIDS]: Make code unconditional.
3699         [!__ASSUME_32BITUIDS]: Remove conditional code.
3700         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3701         <kernel-features.h>.
3702         [__ASSUME_32BITUIDS]: Make code unconditional.
3703         [!__ASSUME_32BITUIDS]: Remove conditional code.
3704         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3705         <kernel-features.h>.
3706         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3707         unconditional.
3708         (__setresgid): Do not declare.
3709         [__ASSUME_32BITUIDS]: Make code unconditional.
3710         [!__ASSUME_32BITUIDS]: Remove conditional code.
3711         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3712         <kernel-features.h>.
3713         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3714         unconditional.
3715         (__setresuid): Do not declare.
3716         [__ASSUME_32BITUIDS]: Make code unconditional.
3717         [!__ASSUME_32BITUIDS]: Remove conditional code.
3718         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3719         <kernel-features.h>.
3720         [__ASSUME_32BITUIDS]: Make code unconditional.
3721         [!__ASSUME_32BITUIDS]: Remove conditional code.
3722         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3723         <kernel-features.h>.
3724         [__ASSUME_32BITUIDS]: Make code unconditional.
3725         [!__ASSUME_32BITUIDS]: Remove conditional code.
3727 2012-05-25  Richard Henderson  <rth@twiddle.net>
3729         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3730         dl_hwcap to ifunc resolver.
3731         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3732         elf_ifunc_invoke.
3733         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3734         dl_hwcap to ifunc resolver.
3735         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3737 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3739         [BZ #14153]
3740         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3741         for |x| <= 2**-26, not 2**-57.
3742         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3743         exception.
3745 2012-05-24  Jeff Law  <law@redhat.com>
3747         * stdio-common/Makefile (tests): Add bug25.
3748         * stdio-common/bug25.c: New test.
3750 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3752         [BZ #13576]
3753         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3754         multiple of MALLOC_ALIGNMENT in size.
3755         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3757 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3759         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3760         Require >= 256.
3761         (FILENAME_MAX): Use macro-int-constant.
3762         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3763         (_IOFBF): Use macro-int-constant.
3764         (_IOLBF): Likewise.
3765         (_IONBF): Likewise.
3766         (SEEK_CUR): Likewise.
3767         (SEEK_END): Likewise.
3768         (SEEK_SET): Likewise.
3769         (TMP_MAX): Likewise.
3770         (EOF): Use macro-int-constant.  Require < 0.
3771         (NULL): Use macro-constant.  Require == 0.
3772         (stdin): Require type to be FILE *.
3773         (stdout): Likewise.
3774         (stderr): Likewise.
3775         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3776         macro-int-constant.
3777         (EXIT_SUCCESS): Likewise.
3778         (NULL): Use macro-constant.  Require == 0.
3779         (RAND_MAX): Use macro-int-constant.
3780         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3781         [C99-based standards] (strtof): Require function.
3782         [C99-based standards] (strtold): Likewise.
3783         [C99-based standards] (strtoll): Likewise.
3784         [C99-based standards] (strtoull): Likewise.
3785         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3786         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3787         [ISO || ISO99 || ISO11] (math.h): Likewise.
3788         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3789         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3790         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3792 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3794         [BZ #14132]
3795         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3796         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3797         * intl/dgettext.c (DCGETTEXT): Likewise.
3798         * intl/gettext.c (DCGETTEXT): Likewise.
3799         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3800         * posix/regex_internal.h (gettext): Likewise.
3801         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3802         Remove declaration.
3803         * include/argz.h (__argz_count_internal)
3804         (__argz_stringify_internal): Remove declaration.
3805         (__argz_count, __argz_stringify): Declare hidden proto.
3806         * intl/dcgettext.c: Remove use of INTDEF.
3807         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3808         * string/argz-stringify.c: Likewise.
3809         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3810         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3811         Declare hidden proto.
3812         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3813         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3814         Declare hidden proto.
3815         * include/stdio.h (__asprintf_internal): Don't declare.
3816         (__asprintf): Don't define as macro.  Declare hidden proto.
3817         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3818         (__fsetlocking): Declare hidden proto.
3819         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3820         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3821         hidden proto.
3822         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3823         (_IO_setlinebuf): Remove use of INTUSE.
3824         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3825         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3826         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3827         Remove declaration.
3828         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3829         (_IO_do_flush): Remove use of INTUSE.
3830         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3831         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3832         (_IO_adjust_column, _IO_least_wmarker)
3833         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3834         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3835         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3836         (_IO_default_doallocate, _IO_wdefault_doallocate)
3837         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3838         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3839         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3840         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3841         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3842         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3843         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3844         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3845         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3846         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3847         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3848         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3849         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3850         proto.
3851         (_IO_flush_all_internal, _IO_adjust_column_internal)
3852         (_IO_default_uflow_internal, _IO_default_finish_internal)
3853         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3854         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3855         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3856         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3857         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3858         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3859         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3860         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3861         (_IO_file_close_internal, _IO_file_close_it_internal)
3862         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3863         (_IO_file_init_internal, _IO_file_attach_internal)
3864         (_IO_file_fopen_internal, _IO_file_read_internal)
3865         (_IO_file_sync_internal, _IO_file_seek_internal)
3866         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3867         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3868         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3869         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3870         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3871         (_IO_list_all_internal, _IO_link_in_internal)
3872         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3873         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3874         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3875         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3876         (_IO_do_write_internal, _IO_padn_internal)
3877         (_IO_getline_info_internal, _IO_getline_internal)
3878         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3879         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3880         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3881         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3882         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3883         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3884         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3885         with libc_hidden_ver, remove use of INTUSE.
3886         * libio/genops.c: Likewise.
3887         * libio/freopen.c: Likewise.
3888         * libio/freopen64.c: Likewise.
3889         * libio/iofclose.c: Likewise.
3890         * libio/iofdopen.c: Likewise.
3891         * libio/iofflush.c: Likewise.
3892         * libio/iofflush_u.c: Likewise.
3893         * libio/iofgets.c: Likewise.
3894         * libio/iofgets_u.c: Likewise.
3895         * libio/iofopen.c: Likewise.
3896         * libio/iofopncook.c: Likewise.
3897         * libio/iofread.c: Likewise.
3898         * libio/iofread_u.c: Likewise.
3899         * libio/ioftell.c: Likewise.
3900         * libio/iofwrite.c: Likewise.
3901         * libio/iogetline.c: Likewise.
3902         * libio/iogets.c: Likewise.
3903         * libio/iogetwline.c: Likewise.
3904         * libio/iopadn.c: Likewise.
3905         * libio/iopopen.c: Likewise.
3906         * libio/ioseekoff.c: Likewise.
3907         * libio/ioseekpos.c: Likewise.
3908         * libio/iosetbuffer.c: Likewise.
3909         * libio/iosetvbuf.c: Likewise.
3910         * libio/ioungetc.c: Likewise.
3911         * libio/ioungetwc.c: Likewise.
3912         * libio/iovdprintf.c: Likewise.
3913         * libio/iovsprintf.c: Likewise.
3914         * libio/iovsscanf.c: Likewise.
3915         * libio/memstream.c: Likewise.
3916         * libio/obprintf.c: Likewise.
3917         * libio/oldfileops.c: Likewise.
3918         * libio/oldiofclose.c: Likewise.
3919         * libio/oldiofdopen.c: Likewise.
3920         * libio/oldiofopen.c: Likewise.
3921         * libio/oldiopopen.c: Likewise.
3922         * libio/oldstdfiles.c: Likewise.
3923         * libio/putc.c: Likewise.
3924         * libio/setbuf.c: Likewise.
3925         * libio/setlinebuf.c: Likewise.
3926         * libio/stdfiles.c: Likewise.
3927         * libio/strops.c: Likewise.
3928         * libio/vasprintf.c: Likewise.
3929         * libio/vscanf.c: Likewise.
3930         * libio/vsnprintf.c: Likewise.
3931         * libio/vswprintf.c: Likewise.
3932         * libio/wfiledoalloc.c: Likewise.
3933         * libio/wfileops.c: Likewise.
3934         * libio/wgenops.c: Likewise.
3935         * libio/wmemstream.c: Likewise.
3936         * libio/wstrops.c: Likewise.
3937         * libio/__fpurge.c: Likewise.
3938         * libio/__fsetlocking.c: Likewise.
3939         * assert/assert.c: Likewise.
3940         * debug/fgets_chk.c: Likewise.
3941         * debug/fgets_u_chk.c: Likewise.
3942         * debug/fread_chk.c: Likewise.
3943         * debug/fread_u_chk.c: Likewise.
3944         * debug/gets_chk.c: Likewise.
3945         * debug/obprintf_chk.c: Likewise.
3946         * debug/vasprintf_chk.c: Likewise.
3947         * debug/vdprintf_chk.c: Likewise.
3948         * debug/vsnprintf_chk.c: Likewise.
3949         * debug/vsprintf_chk.c: Likewise.
3950         * malloc/mtrace.c: Likewise.
3951         * misc/error.c: Likewise.
3952         * misc/syslog.c: Likewise.
3953         * stdio-common/asprintf.c: Likewise.
3954         * stdio-common/fxprintf.c: Likewise.
3955         * stdio-common/getw.c: Likewise.
3956         * stdio-common/isoc99_fscanf.c: Likewise.
3957         * stdio-common/isoc99_scanf.c: Likewise.
3958         * stdio-common/isoc99_vfscanf.c: Likewise.
3959         * stdio-common/isoc99_vscanf.c: Likewise.
3960         * stdio-common/isoc99_vsscanf.c: Likewise.
3961         * stdio-common/printf-prs.c: Likewise.
3962         * stdio-common/printf_fp.c: Likewise.
3963         * stdio-common/printf_fphex.c: Likewise.
3964         * stdio-common/printf_size.c: Likewise.
3965         * stdio-common/putw.c: Likewise.
3966         * stdio-common/scanf.c: Likewise.
3967         * stdio-common/sprintf.c: Likewise.
3968         * stdio-common/tmpfile.c: Likewise.
3969         * stdio-common/vfprintf.c: Likewise.
3970         * stdio-common/vfscanf.c: Likewise.
3971         * stdlib/strfmon_l.c: Likewise.
3972         * sunrpc/openchild.c: Likewise.
3973         * sunrpc/xdr_stdio.c: Likewise.
3974         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3975         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3977 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3979         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3981         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3982         in the third column, to generate for the shared library an IFUNC
3983         that uses _dl_vdso_vsym.
3984         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3985         * Makeconfig (object-suffixes-noshared): New variable.
3987         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3988         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3989         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3990         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3992         [BZ #14132]
3993         * include/sys/time.h (__gettimeofday): Remove macro.
3994         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3995         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3996         Remove INTDEF.
3997         (__gettimeofday): Add libc_hidden_def.
3998         (gettimeofday): Add libc_hidden_weak.
3999         * sysdeps/mach/gettimeofday.c: Likewise.
4000         * sysdeps/posix/gettimeofday.c: Likewise.
4001         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4002         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4003         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4004         (__gettimeofday_internal): Remove strong_alias.
4005         (__gettimeofday): Add libc_hidden_def.
4006         (gettimeofday): Add libc_hidden_weak.
4007         * sysdeps/unix/syscalls.list (gettimeofday):
4008         Remove __gettimeofday_internal alias.
4010 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4011             H.J. Lu  <hongjiu.lu@intel.com>
4013         [BZ #12495]
4014         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4015         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4016         (largebin_index_32_big): New.
4017         (largebin_index): Use it for 16-byte alignment.
4018         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4019         correction with front_misalign.
4021 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4023         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4024         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4025         Likewise.
4026         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4027         Likewise.
4028         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4029         Likewise.
4030         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4031         Likewise.
4032         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4033         Likewise.
4034         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4035         Likewise.
4036         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4037         Likewise.
4038         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4039         Likewise.
4040         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4041         Likewise.
4042         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4043         Likewise.
4044         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4045         Likewise.
4046         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4047         Likewise.
4049         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4050         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4052 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4054         [BZ #10846]
4055         [BZ #14036]
4056         * math/libm-test.inc (exp_test): Add test from bug 14036.
4057         (pow_test): Add test from bug 10846.
4059         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4060         and other flags.
4061         (special_function): Do not include flags in test name.
4062         (parse_args): Likewise.
4063         * sysdeps/i386/fpu/libm-test-ulps: Update.
4064         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4065         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4066         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4067         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4069         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4070         exceptions.
4071         * math/libm-test.inc ("Philosophy"): Update comment about
4072         exception testing.
4073         (UNDERFLOW_EXCEPTION): New macro.
4074         (UNDERFLOW_EXCEPTION_OK): Likewise.
4075         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4076         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4077         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4078         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4079         (INVALID_EXCEPTION_OK): Update value.
4080         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4081         (OVERFLOW_EXCEPTION_OK): Likewise.
4082         (IGNORE_ZERO_INF_SIGN): Likewise.
4083         (test_exceptions): Handle underflow exceptions.
4084         (acos_test): Update for underflow exception expectations.
4085         (cexp_test): Likewise.
4086         (clog_test): Likewise.
4087         (clog10_test): Likewise.
4088         (csqrt_test): Likewise.
4089         (ctan_test): Likewise.
4090         (ctanh_test): Likewise.
4091         (exp_test): Likewise.
4092         (exp10_test): Likewise.
4093         (exp2_test): Likewise.
4094         (expm1_test): Likewise.
4095         (fma_test): Likewise.
4096         (j0_test): Likewise.
4097         (jn_test): Likewise.
4098         (nexttoward_test): Likewise.
4099         (pow_test): Likewise.
4100         (scalbn_test): Likewise.
4101         (scalbln_test): Likewise.
4102         (tan_test): Likewise.
4103         (y1_test): Likewise.
4104         * sysdeps/i386/fpu/libm-test-ulps: Update.
4105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4107 2012-05-23  David S. Miller  <davem@davemloft.net>
4109         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4110         (__libc_sigaction): Remove unused local variables.
4112 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4114         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4116 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4118         mktime: avoid signed integer overflow
4119         * time/mktime.c (__mktime_internal): Do not mishandle the case
4120         where diff == INT_MIN.
4122         mktime: simplify computation of average
4123         * time/mktime.c (ranged_convert): Use new time_t_avg function
4124         instead of rolling our own (probably-slower) code.
4126         mktime: do not assume signed right shift propagates sign bit
4127         * time/mktime.c (isdst_differ): New static function.
4128         (__mktime_internal): No need to normalize tm_isdst now.
4129         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4130         tm_isdst values.
4132         mktime: merge another wrapv change from gnulib
4133         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4134         from some compilers.
4136         mktime: remove incorrect attempt at unusual arithmetics
4137         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4138         The code didn't really work on such machines anyway.
4139         (TYPE_MINIMUM): Assume two's complement.
4140         (twos_complement_arithmetic): Verify that long_int and time_t
4141         are two's complement (or unsigned, in the latter case).
4143         mktime: check signed shifts on long_int and time_t, too
4144         * time/mktime.c (SHR): Check that shifts work as desired
4145         on the types long_int and time_t too, as SHR is used on
4146         such types.
4148         mktime: do not assume 'long' is wide enough
4149         * time/mktime.c (verify): Move decl up.
4150         (long_int): New type.
4151         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4152         to remove assumption in the code that 'long' is wide enough to
4153         store year values.  This assumption is not true on x32 and on
4154         some non-glibc platforms.
4156         mktime: merge wrapv change from gnulib
4157         * time/mktime.c (WRAPV): New macro.
4158         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4159         (guess_time_tm, __mktime_internal): Do not assume that signed
4160         integer overflow wraps around; modern compilers generate code
4161         where this assumption is no longer valid.
4163 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4165         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4166         Replace "jmp L(pseudo_end)" with "ret".
4167         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4168         Likewise.
4170 2012-05-23  Andreas Jaeger  <aj@suse.de>
4172         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4173         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4175 2012-05-23  Andreas Jaeger  <aj@suse.de>
4176             Maximilian Attems  <max@stro.at>
4178         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4179         New macros.
4181 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4183         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4184         code so that pseudo_end is just ret and the stack pointer is
4185         correct also for static library in error case.
4187 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4189         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4190         move to syscalls.list.
4191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4196         * manual/install.texi (Running make install): Do not mention Linux
4197         kernel version for which pt_chown is not needed.
4198         (Linux): Do not mention problems with nscd with 2.0 kernels.
4199         * INSTALL: Regenerated.
4201 2012-05-23  Andreas Jaeger  <aj@suse.de>
4203         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4204         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4205         macro.
4206         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4207         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4208         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4209         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4210         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4211         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4212         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4213         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4214         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4215         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4216         * sysdeps/unix/sysv/linux/bits/in.h
4217         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4219 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4221         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4222         (PREPARE_VERSION): Just use assert instead, it will be elided
4223         under [NDEBUG] anyway.
4225 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4227         * sysdeps/unix/sysv/linux/Makefile: Include
4228         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4229         (sysdep_routines): Remove sysctl.
4230         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4231         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4232         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4233         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4234         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4236 2012-05-22  Andreas Jaeger  <aj@suse.de>
4238         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4239         that pseudo_end is just ret and the stack pointer is correct also
4240         for static library in error case.
4242 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4244         [BZ #14122]
4245         * nss/nsswitch.c (defconfig_entries): New variable.
4246         (__nss_database_lookup): Don't leak defconfig entries.
4247         (nss_parse_service_list): Don't leak on error paths.
4248         (free_database_entries): New function.
4249         (free_defconfig): New function.
4250         (free_mem): Move common code to free_database_entries.
4252 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4254         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4255         Add arch_prctl.
4256         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4258         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4259         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4260         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4261         New macro.
4262         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4263         (INTERNAL_SYSCALL_TYPES): Likewise.
4264         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4265         (LOAD_REGS_TYPES_[1-6]): Likewise.
4266         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4267         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4269 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4271         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4272         copysignl for GLIBC_2_0.
4273         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4274         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4275         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4276         logbl for GLIBC_2_0.
4277         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4278         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4280 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4282         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4283         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4285         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4286         Use "neg %eax".
4288         * time/mktime.c: Update copyright years.
4290 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4292         mktime: merge comment-quoting-style change from gnulib
4293         * time/mktime.c: Quote 'like this' in comments.
4294         The GNU coding standards suggest that we no longer quote `like this',
4295         as "`" and "'" are typically rendered asymmetrically nowadays.
4296         The typical gnulib style is to quote 'like this' when quoting
4297         code, and "like this" when quoting English.
4299         * time/mktime.c (compile-command): Add "-I.".
4301         mktime: merge mktime-internal.h change from gnulib
4302         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4304         mktime: merge time_r change from gnulib
4305         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4307         mktime: merge DEBUG change from gnulib
4308         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4309         case system <time.h> has a #define.
4311         mktime: merge <sys/types.h> change from gnulib
4312         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4313         since <time.t> is now guaranteed to define time_t.
4315         mktime: merge HAVE_CONFIG_H change from gnulib
4316         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4318 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4320         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4321         Use "neg %eax".
4323         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4324         __rlim_t cast.
4325         (struct rusage): Use anonymous union to pad each field to
4326         __syscall_slong_t.
4328 2012-05-21  David S. Miller  <davem@davemloft.net>
4330         * Makefules (o-iterator): Remove .s cases.
4331         (compile-command.s): Delete.
4332         (COMPILE.s): Delete.
4333         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4335 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4337         * configure.in (libc_cv_predef_stack_protector): Only consider
4338         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4339         * configure: Regenerated.
4341 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4343         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4344         New macro.  Use R*LP on int and pointer.
4345         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4346         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4347         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4348         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4350         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4351         [__WORDSIZE_TIME64_COMPAT32] instead of
4352         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4353         (struct utmp): Likewise.
4354         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4355         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4356         Renamed to ...
4357         (__WORDSIZE_TIME64_COMPAT32): This.
4358         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4359         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4360         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4361         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4362         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4363         (__WORDSIZE_TIME64_COMPAT32): New macro.
4365 2012-05-21  Andreas Jaeger  <aj@suse.de>
4367         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4368         only if [SHARED]. Add prototype for __wcschr_ia32.
4370 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4372         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4373         of %rbp unmolested in the jmp_buf while mangling the low bits.
4374         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4375         unmolested high bits of %rbp while demangling the low bits.
4376         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4378 2012-05-21  Andreas Jaeger  <aj@suse.de>
4380         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4381         * sunrpc/svc_simple.c: Use it for registerrpc.
4382         * sunrpc/xcrypt.c: Use it for passwd2des.
4384         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4386 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4388         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4389         Don't define if [__SYSCALL_WORDSIZE != 32].
4390         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4391         New macro.
4393 2012-05-21  Bruno Haible  <bruno@clisp.org>
4394             Andreas Jaeger  <aj@suse.de>
4396         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4397         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4398         inptr and inend for must_buffer_ch.
4399         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4400         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4401         * stdio-common/Makefile (tests): Remove bug15.
4402         (bug15-ENV): Remove macro.
4403         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4404         anymore.
4406 2012-05-19  Andreas Jaeger  <aj@suse.de>
4407             Roland McGrath  <roland@hack.frob.com>
4409         * manual/contrib.texi: Completely rewritten. It contains now an
4410         alphabetical list of contributors and their contributions.
4412 2012-05-21  Richard Henderson  <rth@twiddle.net>
4414         * misc/getauxval.c (__getauxval): Use unsigned long int.
4415         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4416         (getauxval): Use unsigned long int.
4418 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4420         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4422 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4424         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4425         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4426         __alignof__ (long double).
4428 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4430         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4432 2012-05-20  Richard Henderson  <rth@twiddle.net>
4434         * misc/getauxval.c: New file.
4435         * misc/sys/auxv.h: New file.
4436         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4437         (routines): Add getauxval.
4438         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4439         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4440         * elf/dl-sysdep.c (_dl_auxv): Remove.
4441         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4442         * elf/dl-support.c (_dl_auxv): New variable.
4443         (_dl_aux_init): Initialize it.
4444         * manual/startup.texi (Auxiliary Vector): New node.
4445         * sysdeps/generic/bits/hwcap.h: New file.
4446         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4447         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4448         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4449         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4450         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4451         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4453         Update.
4454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4455         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4456         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4457         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4458         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4459         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4460         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4461         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4463 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4465         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4467 2012-05-19  David S. Miller  <davem@davemloft.net>
4469         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4471 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4473         [BZ #14123]
4474         * math/s_ccosh.c: Include <float.h>
4475         (__ccosh): Avoid internal overflow calculating sinh and cosh
4476         values before multiplying by sin and cos values.
4477         * math/s_ccoshf.c: Likewise.
4478         * math/s_ccoshl.c: Likewise.
4479         * math/s_csin.c: Likewise.
4480         * math/s_csinf.c: Likewise.
4481         * math/s_csinl.c: Likewise.
4482         * math/s_csinh.c: Likewise.
4483         * math/s_csinhf.c: Likewise.
4484         * math/s_csinhl.c: Likewise.
4485         * math/libm-test.inc (ccos_test): Add more tests.
4486         (ccosh_test): Likewise.
4487         (csin_test): Likewise.
4488         (csinh_test): Likewise.
4489         * sysdeps/i386/fpu/libm-test-ulps: Update.
4490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4492 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4494         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4495         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4497         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4499 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4501         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4502         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4503         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4504         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4505         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4506         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4507         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4508         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4509         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4510         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4511         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4512         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4513         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4514         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4515         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4516         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4517         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4518         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4519         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4520         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4521         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4522         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4523         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4524         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4525         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4526         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4527         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4528         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4529         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4530         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4531         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4533 2012-05-18  Andreas Jaeger  <aj@suse.de>
4535         * csu/.gitignore: Delete.
4537 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4539         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4540         (timex): Use __syscall_slong_t.
4542 2012-05-18  Andreas Jaeger  <aj@suse.de>
4543             Carlos O'Donell  <carlos_odonell@mentor.com>
4545         * manual/install.texi (Configuring and compiling): Update
4546         description about files modified in the source directory.
4547         * INSTALL: Regenerated.
4549 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4551         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4552         value.  Use "or" to set return value to -1.
4553         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4554         negate return value.
4556 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4558         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4559         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4560         failure if the compiler has Graphite support disabled.
4561         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4562         Likewise.
4563         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4564         CFLAGS-memmove.c): Likewise.
4565         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4566         Likewise.
4568 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4570         * sysdeps/x86_64/x32/_itoa.h: New file.
4572         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4573         getdents system call only if kernel and user dirents have the
4574         same d_ino and d_off.
4576         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4577         LLONG_MAX != LONG_MAX.
4578         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4579         (_fitoa_word): Likewise.
4581         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4582         years.
4583         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4584         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4585         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4587         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4588         include <bits/wordsize.h>.  Check __x86_64__ instead of
4589         __WORDSIZE.
4590         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4591         if __x86_64__ is defined.  Use anonymous union on fpstate.
4593         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4594         anonymous union.
4596 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4598         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4599         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4600         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4601         Refer to _rtld_local_ro instead of _rtld_global_ro.
4602         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4603         Likewise.
4604         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4605         Likewise.
4606         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4607         Likewise.
4608         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4609         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4610         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4612         * sysdeps/powerpc/powerpc32/dl-machine.c
4613         (__elf_machine_runtime_setup) [PROF]: Don't reference
4614         _dl_prof_resolve.
4616 2012-05-18  Andreas Jaeger  <aj@suse.de>
4618         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4619         function only available for GCCs before 3.4 since GCC 3.4
4620         introduced a builtin.
4621         (lrint): Likewise.
4622         (llrintf): Likewise.
4623         (llrint): Likewise.
4624         (fmaxf): Likewise.
4625         (fmax): Likewise.
4626         (fminf): Likewise.
4627         (fmin): Likewise.
4628         (rint): Likewise.
4629         (rintf): Likewise.
4630         (nearbyint): Likewise.
4631         (nearbyintf): Likewise.
4632         (ceil): Likewise.
4633         (ceilf): Likewise.
4634         (floor): Likewise.
4635         (floorf): Likewise.
4637 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4639         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4640         on both fields and cast pointer to __syscall_ulong_t.
4642         * bits/types.h (__fsword_t): New type.
4643         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4644         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4645         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4646         (__FSWORD_T_TYPE): Likewise.
4647         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4648         (__FSWORD_T_TYPE): Likewise.
4649         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4650         (__FSWORD_T_TYPE): Likewise.
4651         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4652         (__FSWORD_T_TYPE): Likewise.
4653         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4654         __SWORD_TYPE with __fsword_t.
4655         (statfs64): Likewise.
4657 2012-05-17  David S. Miller  <davem@davemloft.net>
4659         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4661 2012-05-17  Andreas Jaeger  <aj@suse.de>
4663         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4664         warning.
4666 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4668         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4670 2012-05-17  Andreas Jaeger  <aj@suse.de>
4672         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4673         when it is used.
4675 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4677         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4679 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4681         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4682         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4684 2012-05-17  Andreas Jaeger  <aj@suse.de>
4685             Carlos O'Donell  <carlos_odonell@mentor.com>
4687         [BZ #14059]
4688         * sysdeps/x86_64/multiarch/init-arch.h
4689         (bit_YMM_Usable): Rename to...
4690         (bit_AVX_Usable): ... this.
4691         (bit_FMA4_Usable): New macro.
4692         (bit_XMM_state): New macro.
4693         (bit_YMM_state): New macro.
4694         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4695         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4696         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4697         (CPUID_OSXSAVE): New macro.
4698         (CPUID_AVX): New macro.
4699         (CPUID_FMA4): New macro.
4700         (index_YMM_Usable): Rename to...
4701         (index_AVX_Usable): ... this.
4702         (HAS_AVX): Use HAS_ARCH_FEATURE.
4703         (HAS_FMA4): Likewise.
4704         (HAS_YMM_USABLE): Remove.
4705         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4706         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4707         are present.
4708         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4709         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4710         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4711         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4712         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4714 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4716         * math/libm-test.c: Support platforms without multiple rounding modes.
4717         * math/bug-nextafter.c: Support platforms without FP exceptions.
4718         * math/bug-nexttoward.c: Likewise.
4719         * math/test-fenv.c: Likewise.
4720         * math/test-misc.c: Likewise.
4721         * stdlib/bug-getcontext.c: Likewise.
4723 2012-05-17  Andreas Jaeger  <aj@suse.de>
4725         * manual/examples/search.c (critter_cmp): Change signature to
4726         avoid warnings.
4727         * manual/string.texi (Collation Functions): Likewise.
4729 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4731         * bits/types.h: Fold copyright years.
4732         * bits/typesizes.h: Likewise.
4733         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4734         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4735         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4736         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4737         * time/time.h: Likewise.
4739 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4741         [BZ #208]
4742         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4743         in instead of returning them.  Return void.
4744         (__libc_mallinfo): Accumulate over all arenas.
4745         (__malloc_stats): Adjust for change in int_mallinfo interface.
4747 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4749         [BZ #10375]
4750         * configure.in (NM): Add AC_CHECK_TOOL for it.
4751         (libc_extra_cflags): New substituted variable.
4752         Check for -fstack-protector being used implicitly.
4753         * configure: Regenerated.
4754         * config.make.in (config-extra-cflags): New variable,
4755         gets @libc_extra_cflags@.
4756         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4758         [BZ #10375]
4759         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4760         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4761         * configure: Regenerated.
4762         * config.make.in (CPPUNDEFS): New substituted variable.
4763         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4764         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4765         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4767 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4769         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4770         (mq_attr): Use __syscall_slong_t.
4772 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4774         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4775         Check __x86_64__ instead of __WORDSIZE.
4776         (_STAT_VER_LINUX): Likewise.
4777         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4778         __syscall_ulong_t and __syscall_slong_t.
4779         (stat64): Likewise.
4781 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4783         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4785 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4787         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4789 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4791         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4792         __syscall_ulong_t.
4794         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4795         include <bits/wordsize.h>.  Check __x86_64__ instead of
4796         __WORDSIZE.
4797         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4798         defined.
4799         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4801         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4802         include <bits/wordsize.h>.  Check __x86_64__ instead of
4803         __WORDSIZE.
4804         (user_regs_struct): Use "__extension__ unsigned long long"
4805         instead of "unsigned long" if __x86_64__ is defined.
4806         (user): Likewise.  Pad after pointer field if __ILP32__ is
4807         defined.
4809 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4811         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4812         versions 5 to 9.
4813         * configure: Regenerated.
4814         * manual/install.texi (texinfo): Increase version requirement to
4815         4.5 or later.
4816         * INSTALL: Regenerated.
4818         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4820 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4822         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4824         * sysdeps/x86_64/x32/ffs.c: New file.
4826         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4827         __syscall_ulong_t.
4828         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4829         defined.  Use __syscall_ulong_t.
4830         (shminfo): Use __syscall_ulong_t.
4831         (shm_info): Likewise.
4833         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4834         __syscall_ulong_t.
4836         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4837         <bits/wordsize.h>.
4838         (msgqnum_t): Use __syscall_ulong_t.
4839         (msglen_t): Likewise.
4840         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4841         __syscall_ulong_t.
4843         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4844         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4846         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4848         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4849         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4851         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4852         __syscall_slong_t.
4854         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4855         include <bits/wordsize.h>.  Check __x86_64__ instead of
4856         __WORDSIZE.
4858         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4859         "unsigned long long int" if __x86_64__ is defined.
4860         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4862         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4863         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4864         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4866         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4867         <stdint.h>.
4868         (GET_PC): Cast to uintptr_t first.
4869         (GET_FRAME): Likewise.
4870         (GET_STACK): Likewise.
4872         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4873         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4874         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4875         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4876         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4877         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4878         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4879         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4880         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4881         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4882         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4883         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4884         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4885         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4886         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4887         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4888         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4889         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4890         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4891         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4892         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4893         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4894         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4895         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4896         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4897         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4898         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4899         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4900         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4902 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4904         * Makerules (+depfiles): Also collect depfiles from .oS in
4905         $(extra-objs).
4906         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4907         .oS, $(libnldbl-routines)).
4909         * Makerules (native-compile-mkdep-flags): Define.
4910         * sunrpc/Makefile (extra-objs): Add $(addprefix
4911         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4912         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4913         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4914         calling $(make-target-directory).
4916 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4918         * bits/types.h (__snseconds_t): Removed.
4919         * time/time.h (struct timespec): Replace __snseconds_t with
4920         __syscall_slong_t.
4921         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4922         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4923         Likewise.
4924         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4925         (__SNSECONDS_T_TYPE): Likewise.
4926         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4927         (__SNSECONDS_T_TYPE): Likewise.
4928         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4929         (__SNSECONDS_T_TYPE): Likewise.
4931 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4933         * sysdeps/mach/hurd/bits/typesizes.h
4934         (__SYSCALL_SLONG_TYPE): New macro.
4935         (__SYSCALL_ULONG_TYPE): Likewise.
4937 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4939         * bits/types.h (__syscall_slong_t): New type.
4940         (__syscall_ulong_t): Likewise.
4942         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4943         (__SYSCALL_ULONG_TYPE): Likewise.
4944         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4945         (__SYSCALL_SLONG_TYPE): Likewise.
4946         (__SYSCALL_ULONG_TYPE): Likewise.
4947         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4948         (__SYSCALL_SLONG_TYPE): Likewise.
4949         (__SYSCALL_ULONG_TYPE): Likewise.
4950         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4951         (__SYSCALL_SLONG_TYPE): Likewise.
4952         (__SYSCALL_ULONG_TYPE): Likewise.
4954 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4956         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4957         Add sigaltstack-offsets.sym.
4958         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4959         <sigaltstack-offsets.h>.
4960         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4961         longjmp_msg pointer.
4962         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4963         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4964         signal stack.
4965         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4967 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4969         * elf/stackguard-macros.h: Remove file.
4970         * sysdeps/generic/stackguard-macros.h: New file.
4971         * sysdeps/i386/stackguard-macros.h: Likewise.
4972         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4973         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4974         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4975         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4976         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4977         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4978         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4979         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4980         <elf/stackguard-macros.h>.
4982         [BZ #14109]
4983         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4984         __aligned__ in attribute.
4985         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4986         (gregset_t): Likewise.
4988 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4990         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4991         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4992         * sysdeps/x86_64/x32/Implies-after: New file.
4994 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4996         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4997         and access return value for _dl_profile_fixup.  Use R10_LP to
4998         load frame size.
5000 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5002         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5004 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5006         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5007         * sysdeps/x86_64/x32/sysdep.h: New file.
5009 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5011         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5012         * sysdeps/x86_64/setjmp.S: Likewise.
5014 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5016         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5017         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5018         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5019         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5020         remove unused global constant.
5022 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5024         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5025         include of <not-cancel.h>.
5027 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5029         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5031 2012-05-15  Jeff Law  <law@redhat.com>
5032             Andreas Jaeger  <aj@suse.de>
5034         [BZ #13594]
5035         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5036         out from...
5037         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5038         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5039         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5040         code changing __hst_map_handle.map.
5042 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5044         * configure.in (sysnames): Look for Implies-before and Implies-after
5045         files.
5046         * configure: Regenerated.
5048 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5050         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5051         8-byte data alignment with LP_SIZE alignment.
5053 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5055         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5056         into R10_LP.
5058 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5060         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5062 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5064         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5065         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5066         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5067         Likewise.
5068         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5070 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5072         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5073         (stackinfo_sub_sp): Likewise.
5075 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5077         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5078         RAX_LP.
5080 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5082         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5083         into R*_LP.
5085 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5087         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5088         sizes into R*_LP.
5090 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5092         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5094 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5096         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5097         into R11_LP and load __x86_64_shared_cache_size_half into
5098         R8_LP.
5100 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5102         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5103         R8_LP.
5105 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5107         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5108         logb for POWER7.
5109         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5110         logbf for POWER7.
5111         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5112         logbl for POWER7.
5113         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5114         powerpc32/power7/fpu/s_logb.c via #include.
5115         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5116         powerpc32/power7/fpu/s_logbf.c via #include.
5117         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5118         powerpc32/power7/fpu/s_logbl.c via #include.
5120 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5122         * README.libm: Remove file.
5124 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5126         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5127         count for x32.  Use R*_LP and omit operand-size suffix.
5129 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5131         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5132         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5133         * sysdeps/x86_64/x32/shlib-versions: New file.
5135 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5137         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5138         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5139         Use _dl_fatal_printf instead.
5141 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5143         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5144         set if not set by the user.  Do not allow for being unset.
5145         * sysdeps/unix/sysv/linux/configure: Regenerated.
5147 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5149         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5150         the `q' suffix from lea and replace .quad with ASM_ADDR.
5152 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5154         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5155         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5156         instead of $17.
5157         (PTR_DEMANGLE): Likewise.
5159 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5161         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5162         (LP_OP): Likewise.
5163         (ASM_ADDR): Likewise.
5164         (RAX_LP): Likewise.
5165         (RBP_LP): Likewise.
5166         (RBX_LP): Likewise.
5167         (RCX_LP): Likewise.
5168         (RDI_LP): Likewise.
5169         (RSI_LP): Likewise.
5170         (RSP_LP): Likewise.
5171         (R8_LP): Likewise.
5172         (R9_LP): Likewise.
5173         (R10_LP): Likewise.
5174         (R10_LP): Likewise.
5175         (R11_LP): Likewise.
5176         (R12_LP): Likewise.
5177         (R13_LP): Likewise.
5178         (R14_LP): Likewise.
5179         (R15_LP): Likewise.
5181 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5183         * sysdeps/x86_64/x32/dl-machine.h: New file.
5185 2012-05-14  Andreas Jaeger  <aj@suse.de>
5187         * manual/Makefile (subdir): Remove export of subdir.
5188         (all): Remove target.
5189         (.PHONY): Remove all from list.
5190         (mkinstalldirs): Remove.
5191         (.PHONY): Remove installdirs from list.
5192         ($(inst_infodir)/libc.info): Use make-target-directory.
5193         (installdirs): Remove.
5194         (subdir_%): Remove.
5195         (glibc-targets): Remove.
5196         (lib): Remove.
5197         (stubs): Remove.
5198         ($(objpfx)stubs ../po/manual.pot): Remove.
5199         ($(objpfx)stamp%): Remove.
5200         (make-target-directory): Remove.
5201         (subdir_install): Remove.
5202         (routines): Remove.
5203         (aux): Remove.
5204         (sources): Remove.
5205         (objects): Remove.
5206         (headers): Remove.
5208         [BZ #13750]
5209         * manual/.gitignore: Remove, it's not needed anymore.
5210         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5211         all files in it.
5212         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5213         directory.
5214         (texis): Renamed to $(objpfx)texis.
5215         (texis-path): New, contains path to generated files.
5216         (chapters.%): Use texis-path for complete path, add extra argument
5217         libc-texinfo.sh.
5218         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5219         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5220         (summary,texi, stamp-summary): Use complete path of
5221         files. Generate files in build dir.
5222         (dir-add.texi): Build in build dir.
5223         (libm-err.texi,stamp-libm-err): Likewise.
5224         (version.texi, stamp-version): Likewise.
5225         (.%c.texi): Likewise.
5226         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5227         (mostlyclean): Remove target.
5228         (realclean): Remove target.
5229         (generated): Add new variable with contents from mostlyclean and
5230         realclean, remove entries duplicated in common-mostlyclean, add
5231         stamp-libm-err and stamp-version.
5232         (generated-dirs): Add libc directory.
5233         ($(inst_infodir)/libc.info): Install files from build dir.
5235         * manual/install.texi (Configuring and compiling): Adjust since
5236         the info files are not part of the tar ball anymore.
5238 2012-05-14  Andreas Jaeger  <aj@suse.de>
5240         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5241         variable.
5243 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5245         [BZ #13717]
5246         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5247         to 2.2.0 where earlier.
5248         * sysdeps/unix/sysv/linux/configure: Regenerated.
5249         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5250         Remove conditional code.
5251         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5252         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5253         Remove conditional code.
5254         [!__NR_lchown]: Likewise.
5255         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5256         [__NR_lchown]: Likewise.
5257         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5258         comment referencing __ASSUME_LCHOWN_SYSCALL.
5259         * sysdeps/unix/sysv/linux/i386/sigaction.c
5260         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5261         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5262         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5263         Remove conditional code.
5264         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5265         (__protocol_available): Remove #if 0 code.
5266         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5267         conditional code.
5268         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5269         * sysdeps/unix/sysv/linux/kernel-features.h
5270         (__ASSUME_GETCWD_SYSCALL): Don't define.
5271         (__ASSUME_REALTIME_SIGNALS): Likewise.
5272         (__ASSUME_PREAD_SYSCALL): Likewise.
5273         (__ASSUME_PWRITE_SYSCALL): Likewise.
5274         (__ASSUME_POLL_SYSCALL): Likewise.
5275         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5276         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5277         non-SPARC.
5278         (__ASSUME_SIOCGIFNAME): Don't define.
5279         (__ASSUME_MSG_NOSIGNAL): Likewise.
5280         (__ASSUME_SENDFILE): Define unconditionally.
5281         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5282         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5283         conditional code.
5284         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5285         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5286         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5287         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5288         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5289         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5290         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5292         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5293         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5295         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5296         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5298         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5299         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5301         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5302         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5304         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5305         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5307         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5308         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5310         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5311         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5313         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5314         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5315         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5316         Remove conditional code.
5317         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5318         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5319         Remove conditional code.
5320         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5321         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5322         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5323         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5324         Remove conditional code.
5325         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5326         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5327         Remove conditional code.
5328         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5329         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5330         Remove conditional code.
5331         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5332         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5333         Remove conditional code.
5334         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5335         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5336         Remove conditional code.
5337         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5338         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5339         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5340         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5341         * sysdeps/unix/sysv/linux/sigaction.c
5342         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5343         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5344         * sysdeps/unix/sysv/linux/sigpending.c
5345         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5346         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5347         * sysdeps/unix/sysv/linux/sigprocmask.c
5348         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5349         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5350         * sysdeps/unix/sysv/linux/sigsuspend.c
5351         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5352         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5353         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5354         (__libc_missing_rt_sigs): Remove.
5355         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5356         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5357         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5358         Remove conditional code.
5359         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5360         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5361         return 1.
5362         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5363         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5364         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5365         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5367 2012-05-14  Andreas Jaeger  <aj@suse.de>
5369         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5370         it's not used in glibc.
5371         (__coshm1): Likewise.
5372         (__acosh1p): Likewise.
5373         (__sgn): Likewise.
5375         * manual/string.texi (Copying and Concatenation): Add missing
5376         variable in concat example.
5377         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5379 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5381         [BZ #14103]
5382         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5383         __builtin_clzl with __builtin_clzll.
5385 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5387         [BZ #14104]
5388         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5389         libc_freeres_ptr.
5391 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5393         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5394         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5395         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5396         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5398 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5400         * NEWS: Update ia64 info.
5402 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5404         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5405         used as bcopy.
5407 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5409         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5410         * sysdeps/unix/syscalls.list (dup3): Likewise.
5411         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5412         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5414 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5416         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5417         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5419 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5421         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5422         thread pointer.
5423         (TLS_IE): Use mov/add instead of movq/addq to load thread
5424         pointer.
5425         (TLS_GD_PREFIX): New.
5426         (TLS_GD): Use it.
5428 2012-05-11  David S. Miller  <davem@davemloft.net>
5430         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5431         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5432         (_FPU_SETCW): Likewise.
5434 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5436         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5437         is 32-byte aligned.
5439 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5441         [BZ #11837]
5442         * iconvdata/gb18030.c: Update tables.
5443         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5444         characters specially.
5445         (BODY for TO_LOOP): Add encoding of missing ranges.
5447 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5449         [BZ #13673]
5450         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5451         * sysdeps/mach/hurd/dup3.c: Likewise.
5452         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5453         * sysdeps/powerpc/memmove.c:: Likewise.
5455 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5457         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5458         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5460 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5462         * elf/elf.h (R_X86_64_RELATIVE64): New.
5463         (R_X86_64_NUM): Updated.
5464         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5465         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5466         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5467         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5468         tst-quad1pie tst-quad2pie
5469         (modules-names): Add tst-quadmod1 tst-quadmod2.
5470         ($(objpfx)tst-quad1): New dependency.
5471         ($(objpfx)tst-quad2): Likewise.
5472         ($(objpfx)tst-quad1pie): Likewise.
5473         ($(objpfx)tst-quad2pie): Likewise.
5474         * sysdeps/x86_64/tst-quad1.c: New file.
5475         * sysdeps/x86_64/tst-quad1pie.c: New file.
5476         * sysdeps/x86_64/tst-quad2.c: Likewise.
5477         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5478         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5479         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5480         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5481         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5483 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5485         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5486         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5487         * streams/stropts.h (t_scalar_t): Define type.
5489         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5490         (_PATH_PRESERVE): Set to "/var/lib".
5491         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5493         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5494         instead of int.
5496         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5497         if __dir_mkfile succeeded.
5499         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5500         checking for _hurd_dtablesize.  Unlock it right after having
5501         finished _hurd_dtable allocation.
5503 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5505         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5506         * sysdeps/mach/hurd/configure: Regenerated.
5507         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5508         special-casing to...
5509         * sysdeps/gnu/configure.in: ... this new file.
5510         * sysdeps/unix/sysv/linux/configure: Regenerated.
5511         * sysdeps/gnu/configure: New generated file.
5513         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5514         for Linux: use nsec instead of usec, as well as:
5515         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5516         members of type struct timespec.
5517         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5518         New macros.
5519         (struct stat64): Likewise.
5520         (_STATBUF_ST_NSEC): New macro.
5521         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5523         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5524         __strtoul_internal rather than strtoul.
5526 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5528         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5529         and reject them.
5531 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5533         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5534         which preserves existing values.
5535         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5537 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5539         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5540         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5541         greater than FD_SETSIZE.
5543 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5545         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5546         allocated, call __vm_protect to finish enabling the existing space, and
5547         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5548         allocate the remainder.
5550 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5552         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5553         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5555 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5557         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5558         sysdeps/mach/hurd/readlink.c.
5560         * posix/tst-sysconf.c (posix_options): Only use
5561         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5562         _POSIX_SYNCHRONIZED_IO when they are defined
5563         * sysdeps/mach/hurd/bits/posix_opt.h:
5564         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5565         (_XOPEN_REALTIME): Undefine macro.
5566         (_XOPEN_REALTIME_THREADS): Undefine macro.
5567         (_XOPEN_SHM): Undefine macro.
5568         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5569         macro to -1.
5570         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5571         macro to -1.
5572         (_POSIX_ASYNC_IO): Undefine macro.
5573         (_POSIX_PRIORITIZED_IO): Undefine macro.
5574         (_POSIX_SPIN_LOCKS): Define macro to -1.
5576         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5577         SA_NODEFER, SA_RESETHAND.
5578         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5579         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5580         F_DUPFD_CLOEXEC.
5582 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5584         * elf/Makefile (pldd-modules): Define unconditionally.
5586 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5588         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5590 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5592         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5593         Return ENOENT when name is empty.
5594         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5596 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5598         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5600         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5602 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5604         Fix mlock in all cases except non-readable pages.
5605         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5606         instead of VM_PROT_ALL as parameter to __vm_wire function.
5608         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5609         (__mkdir): When path is `/', just fail with EEXIST.
5610         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5612 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5614         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5615         <sys/uio.h> (for writev).
5616         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5617         and <sys/param.h> (for MIN).
5619 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5621         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5622         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5623         if interrupted.
5625 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5627         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5628         Depend on against $(link-rpcuserlibs).
5630 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5632         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5633         (__libc_stack_end): Do not use attribute_relro.
5634         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5635         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5636         to libthread-provided value.
5637         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5638         attribute_relro.
5640 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5642         [BZ #3748]
5643         * bits/libc-lock.h (__libc_once_get): New macro.
5644         * sysdeps/mach/bits/libc-lock.h: Likewise.
5645         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5646         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5647         instead of using implementation details.
5649         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5650         * libio/freopen.c: Likewise.
5651         * libio/freopen64.c: Likewise.
5652         * misc/syslog.c: Likewise.
5653         * nscd/connections.c: Likewise.
5654         * nscd/netgroupcache.c: Likewise.
5655         * sysdeps/posix/getcwd.c: Likewise.
5657 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5659         * math/w_ilogbf.c: Add #include <limits.h>.
5661 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5663         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5664         path instead of returning without unlocking.
5666         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5667         immediate-write ioctls.
5668         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5670 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5672         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5673         __builtin_frame_address instead of making assumptions about the
5674         location of the return address relative to DATA.  Force early load of
5675         the return address.
5676         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5677         __builtin_frame_address.
5679         dup3 for GNU Hurd.
5680         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5681         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5682         implement dup3 and do some further code clean-ups.
5683         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5684         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5686 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5688         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5690         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5691         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5692         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5693         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5694         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5695         d->port.lock.
5697         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5698         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5699         when handler == SIG_ERR, not when handler != SIG_ERR.
5701 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5703         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5704         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5705         definitions.
5707         accept4 for GNU Hurd.
5708         * include/sys/socket.h (__libc_accept4): New prototype.
5709         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5710         to implement __libc_accept4.
5711         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5712         __libc_accept4.
5713         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5715         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5716         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5717         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5718         signal-defines.sym.
5720 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5722         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5724 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5726         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5727         assertion on O_CLOEXEC flag.
5728         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5729         * hurd/intern-fd.c: Likewise.
5730         * hurd/port2fd.c: Likewise.
5732 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5734         [BZ #3906]
5735         * bits/in.h (IPV6_PKTINFO): Define new macro.
5736         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5738 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5740         [BZ #13954]
5741         [BZ #13955]
5742         [BZ #13956]
5743         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5744         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5745         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5746         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5747         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5748         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5749         * math/libm-test.inc (logb_test) : Additional logb tests.
5751 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5752             Andreas Jaeger  <aj@suse.de>
5754         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5755         * configure: Regenerated.
5756         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5757         * config.make.in (link-obsolete-rpc): New substituted variable.
5758         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5759         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5760         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5761         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5762         so that libc.a contains the symbols.
5763         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5764         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5765         * sunrpc/auth_none.c: Likewise.
5766         * sunrpc/auth_unix.c: Likewise.
5767         * sunrpc/authdes_prot.c: Likewise.
5768         * sunrpc/authuxprot.c: Likewise.
5769         * sunrpc/clnt_gen.c: Likewise.
5770         * sunrpc/clnt_perr.c: Likewise.
5771         * sunrpc/clnt_raw.c: Likewise.
5772         * sunrpc/clnt_simp.c: Likewise.
5773         * sunrpc/clnt_tcp.c: Likewise.
5774         * sunrpc/clnt_udp.c: Likewise.
5775         * sunrpc/clnt_unix.c: Likewise.
5776         * sunrpc/des_crypt.c: Likewise.
5777         * sunrpc/des_soft.c: Likewise.
5778         * sunrpc/get_myaddr.c: Likewise.
5779         * sunrpc/key_call.c: Likewise.
5780         * sunrpc/key_prot.c: Likewise.
5781         * sunrpc/netname.c: Likewise.
5782         * sunrpc/pm_getmaps.c: Likewise.
5783         * sunrpc/pm_getport.c: Likewise.
5784         * sunrpc/pmap_clnt.c: Likewise.
5785         * sunrpc/pmap_prot.c: Likewise.
5786         * sunrpc/pmap_prot2.c: Likewise.
5787         * sunrpc/pmap_rmt.c: Likewise.
5788         * sunrpc/publickey.c: Likewise.
5789         * sunrpc/rpc_cmsg.c: Likewise.
5790         * sunrpc/rpc_common.c: Likewise.
5791         * sunrpc/rpc_dtable.c: Likewise.
5792         * sunrpc/rpc_prot.c: Likewise.
5793         * sunrpc/rpc_thread.c: Likewise.
5794         * sunrpc/rtime.c: Likewise.
5795         * sunrpc/svc.c: Likewise.
5796         * sunrpc/svc_auth.c: Likewise.
5797         * sunrpc/svc_raw.c: Likewise.
5798         * sunrpc/svc_run.c: Likewise.
5799         * sunrpc/svc_tcp.c: Likewise.
5800         * sunrpc/svc_udp.c: Likewise.
5801         * sunrpc/svc_unix.c: Likewise.
5802         * sunrpc/svcauth_des.c: Likewise.
5803         * sunrpc/xcrypt.c: Likewise.
5804         * sunrpc/xdr.c: Likewise.
5805         * sunrpc/xdr_array.c: Likewise.
5806         * sunrpc/xdr_float.c: Likewise.
5807         * sunrpc/xdr_intXX_t.c: Likewise.
5808         * sunrpc/xdr_mem.c: Likewise.
5809         * sunrpc/xdr_rec.c: Likewise.
5810         * sunrpc/xdr_ref.c: Likewise.
5811         * sunrpc/xdr_sizeof.c: Likewise.
5812         * sunrpc/xdr_stdio.c: Likewise.
5814 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5816         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5817         change.  Update copyright years.
5819 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5821         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5823 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5824             Joseph Myers  <joseph@codesourcery.com>
5825             Paul Pluzhnikov  <ppluzhnikov@google.com>
5827         [BZ #14012]
5828         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5829         requiring rpcgen.
5830         [cross-compiling] (extra-libs): Likewise.
5831         [cross-compiling] (extra-libs-others): Likewise.
5832         [cross-compiling] (librpcsvc-routines): Likewise.
5833         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5834         [cross-compiling] (omit-deps): Likewise.
5835         (sunrpc-CPPFLAGS): New variable.
5836         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5837         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5838         (cross-rpcgen-objs): New variable.
5839         (extra-objs): Append $(cross-rpcgen-objs).
5840         ($(cross-rpcgen-objs)): New rule.
5841         ($(objpfx)cross-rpcgen): Likewise.
5842         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5843         comment.
5844         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5845         ($(objpfx)x%.stmp): Likewise.
5846         * sunrpc/proto.h [IS_IN_build] (_): Define.
5847         [IS_IN_build] (_libc_intl_domainname): Likewise.
5849 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5851         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5852         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5853         and R_X86_64_TPOFF64.
5855 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5857         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5858         sysdeps/unix/sysv/syscalls.list.
5859         (stime): Likewise.
5860         (utime): Likewise.
5861         * sysdeps/unix/sysv/syscalls.list: Remove file.
5863 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5865         [BZ #3440]
5866         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5867         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5868         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5869         (__LC_IDENTIFICATION): Make these macros useful in #if
5870         expressions, as required by C99.
5872 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5874         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5875         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5876         after this.
5878 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5880         * stdlib/longlong.h: Updated from GCC.
5882 2012-05-09  Andreas Jaeger  <aj@suse.de>
5884         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5885         default is first entry.
5886         (run_mode): Set type.
5887         (main): Remove informal message about syslog.
5888         (options): Fix typo.
5890         [BZ #14053]
5891         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5892         to asm.
5893         (lrint): Likewise.
5894         (llrintf): Likewise.
5895         (llrint): Likewise.
5896         (rint): Likewise.
5897         (rintf): Likewise.
5898         (nearbyint): Likewise.
5899         (nearbyintf): Likewise.
5901 2012-05-09  Andreas Jaeger  <aj@suse.de>
5902             Pedro Alves  <palves@redhat.com>
5904         * nscd/nscd.c (run_mode): Use enum.
5905         (main): Cleanup coding style issue.
5907 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5908             Andreas Jaeger  <aj@suse.de>
5910         * nscd/nscd.c (go_background): Replaced with...
5911         (run_mode): ... this.
5912         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5913         (options): Add -F --foreground.
5914         (main): Implement it.
5915         (parse_opt): Parse it.
5917 2012-05-09  Andreas Jaeger  <aj@suse.de>
5919         [BZ #14083]
5920         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5921         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5922         -Wconversion warning.
5923         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5924         Likewise.
5926 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5928         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5929         == 0.
5930         (LC_ALL): Use macro-int-constant.
5931         (LC_COLLATE): Likewise.
5932         (LC_CTYPE): Likewise.
5933         (LC_MESSAGES): Likewise.
5934         (LC_MONETARY): Likewise.
5935         (LC_NUMERIC): Likewise.
5936         (LC_TIME): Likewise.
5937         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5938         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5939         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5940         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5941         Specify type.
5942         [C99-based standards] (float_t): Expect type.
5943         [C99-based standards] (double_t): Expect type.
5944         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5945         type.
5946         [C99-based standards] (HUGE_VALL): Likewise.
5947         [C99-based standards] (INFINITY): Likewise.
5948         [C99-based standards] (NAN): Likewise.
5949         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5950         [C99-based standards] (FP_NAN): Likewise.
5951         [C99-based standards] (FP_NORMAL): Likewise.
5952         [C99-based standards] (FP_SUBNORMAL): Likewise.
5953         [C99-based standards] (FP_ZERO): Likewise.
5954         [C99-based standards] (FP_FAST_FMA): Use
5955         optional-macro-int-constant.  Specify type.  Require == 1.
5956         [C99-based standards] (FP_FAST_FMAF): Likewise.
5957         [C99-based standards] (FP_FAST_FMAL): Likewise.
5958         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5959         [C99-based standards] (FP_ILOGBNAN): Likewise.
5960         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5961         Specify type.
5962         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5963         [C99-based standards] (math_errhandling): Specify type.
5964         [ISO99 || ISO11] (signgam): Do not allow.
5965         [non-C99-based standards] (copysignf): Do not allow.
5966         [non-C99-based standards] (exp2f): Likewise.
5967         [non-C99-based standards] (log2f): Likewise.
5968         [non-C99-based standards] (modff): Allow.
5969         [non-C99-based standards] (erff): Do not allow.
5970         [non-C99-based standards] (erfcf): Likewise.
5971         [non-C99-based standards] (gammaf): Likewise.
5972         [non-C99-based standards] (hypotf): Likewise.
5973         [non-C99-based standards] (j0f): Likewise.
5974         [non-C99-based standards] (j1f): Likewise.
5975         [non-C99-based standards] (jnf): Likewise.
5976         [non-C99-based standards] (lgammaf): Likewise.
5977         [non-C99-based standards] (tgammaf): Likewise.
5978         [non-C99-based standards] (y0f): Likewise.
5979         [non-C99-based standards] (y1f): Likewise.
5980         [non-C99-based standards] (ynf): Likewise.
5981         [non-C99-based standards] (isnanf): Likewise.
5982         [non-C99-based standards] (acoshf): Likewise.
5983         [non-C99-based standards] (asinhf): Likewise.
5984         [non-C99-based standards] (atanhf): Likewise.
5985         [non-C99-based standards] (cbrtf): Likewise.
5986         [non-C99-based standards] (expm1f): Likewise.
5987         [non-C99-based standards] (ilogbf): Likewise.
5988         [non-C99-based standards] (log1pf): Likewise.
5989         [non-C99-based standards] (logbf): Likewise.
5990         [non-C99-based standards] (nextafterf): Likewise.
5991         [non-C99-based standards] (remainderf): Likewise.
5992         [non-C99-based standards] (rintf): Likewise.
5993         [non-C99-based standards] (scalbf): Likewise.
5994         [non-C99-based standards] (copysignl): Likewise.
5995         [non-C99-based standards] (exp2l): Likewise.
5996         [non-C99-based standards] (log2l): Likewise.
5997         [non-C99-based standards] (modfl): Allow.
5998         [non-C99-based standards] (erfl): Do not allow.
5999         [non-C99-based standards] (erfcl): Likewise.
6000         [non-C99-based standards] (gammal): Likewise.
6001         [non-C99-based standards] (hypotl): Likewise.
6002         [non-C99-based standards] (j0l): Likewise.
6003         [non-C99-based standards] (j1l): Likewise.
6004         [non-C99-based standards] (jnl): Likewise.
6005         [non-C99-based standards] (lgammal): Likewise.
6006         [non-C99-based standards] (tgammal): Likewise.
6007         [non-C99-based standards] (y0l): Likewise.
6008         [non-C99-based standards] (y1l): Likewise.
6009         [non-C99-based standards] (ynl): Likewise.
6010         [non-C99-based standards] (isnanl): Likewise.
6011         [non-C99-based standards] (acoshl): Likewise.
6012         [non-C99-based standards] (asinhl): Likewise.
6013         [non-C99-based standards] (atanhl): Likewise.
6014         [non-C99-based standards] (cbrtl): Likewise.
6015         [non-C99-based standards] (expm1l): Likewise.
6016         [non-C99-based standards] (ilogbl): Likewise.
6017         [non-C99-based standards] (log1pl): Likewise.
6018         [non-C99-based standards] (logbl): Likewise.
6019         [non-C99-based standards] (nextafterl): Likewise.
6020         [non-C99-based standards] (remainderl): Likewise.
6021         [non-C99-based standards] (rintl): Likewise.
6022         [non-C99-based standards] (scalbl): Likewise.
6023         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6024         [non-C99-based standards] (FP_*): Do not allow.
6025         [C99-based standards] (FP_*): Change to
6026         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6027         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6028         allow.
6029         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6030         (SIG_ERR): Likewise.
6031         [X/Open-based standards] (SIG_HOLD): Likewise.
6032         (SIG_IGN): Likewise.
6033         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6034         positive value.
6035         (SIGFPE): Likewise.
6036         (SIGILL): Likewise.
6037         (SIGINT): Likewise.
6038         (SIGSEGV): Likewise.
6039         (SIGTER): Likewise.
6040         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6041         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6042         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6043         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6044         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6045         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6046         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6047         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6048         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6049         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6050         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6051         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6052         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6053         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6054         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6055         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6056         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6057         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6058         [X/Open-based standards] (SIGTRAP): Likewise.
6059         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6060         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6061         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6062         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6063         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6064         allow.
6066 2012-05-08  Ian Wienand  <ianw@vmware.com>
6068         [BZ #14080]
6069         * time/tzset.c (__tzset_parse_tz): Update default rules for
6070         daylight time changes in the Energy Policy Act of 2005.
6072 2012-05-09  Andreas Jaeger  <aj@suse.de>
6074         [BZ #13983]
6075         * elf/ldconfig.c (parse_conf): Change string to make clear that
6076         ldconfig only issued a warning if ld.so.conf does not exist.
6078 2012-05-08  David S. Miller  <davem@davemloft.net>
6080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6081         movxtod instead of popping the value on the stack.
6083         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6085 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6087         * config.h.in: Add HAVE_ARM_PCS_VFP.
6089 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6091         [BZ #13979]
6092         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6093         checking but the checks are disabled for any reason.
6095 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6097         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6098         and ELF64_R_TYPE with ELFW(R_TYPE).
6100 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6102         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6103         (ulimit): Likewise.
6105         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6106         (settimeofday): Likewise.
6108 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6110         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6111         a struct th_u2 inside the union, and move tu_block/tu_code into
6112         a new th_u3 union of tu_block/tu_code inside of that.  Move
6113         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6114         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6115         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6116         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6117         (th_stuff): Change to th_u1.tu_stuff.
6118         (th_data): Define.
6119         (th_msg): Change to th_u1.th_u2.tu_data.
6121 2012-05-07  David S. Miller  <davem@davemloft.net>
6123         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6125         [BZ #14074]
6126         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6127         (SETUP_PIC_REG): Use it.
6128         (SETUP_PIC_REG_LEAF): Use it.
6130 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6132         [BZ #13885]
6133         [BZ #13923]
6134         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6135         USE_AS_EXPM1L.
6136         (EXPL_FINITE): Likewise.
6137         (FLDLOG): Likewise.
6138         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6139         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6140         e_expl.S.
6141         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6142         USE_AS_EXPM1L.
6143         (EXPL_FINITE): Likewise.
6144         (FLDLOG): Likewise.
6145         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6146         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6147         e_expl.S.
6148         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6149         test of -max_value argument for long double.
6150         * sysdeps/i386/fpu/libm-test-ulps: Update.
6151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6153 2012-05-06  David S. Miller  <davem@davemloft.net>
6155         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6156         quad soft-float symbols whose references which are compiler
6157         generated.
6158         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6160 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6162         [BZ #13884]
6163         [BZ #13914]
6164         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6165         USE_AS_EXP10L.
6166         (EXPL_FINITE): Likewise.
6167         (FLDLOG): Likewise.
6168         (c0): Likewise.
6169         (c1): Likewise.
6170         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6171         Adjust comments for base varying.
6172         (__expl_finite): Change alias to EXPL_FINITE.
6173         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6174         e_expl.S.
6175         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6176         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6177         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6178         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6179         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6180         USE_AS_EXP10L.
6181         (EXPL_FINITE): Likewise.
6182         (FLDLOG): Likewise.
6183         (c0): Likewise.
6184         (c1): Likewise.
6185         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6186         Adjust comments for base varying.
6187         (__expl_finite): Change alias to EXPL_FINITE.
6188         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6189         tests for bugs.
6190         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6192         [BZ #14064]
6193         * math/libm-test.inc (check_float_internal): Correct ulp
6194         calculation for subnormal expected results.
6196 2012-05-06  Andreas Jaeger  <aj@suse.de>
6198         * Makeconfig (+math-flags): New, set to -frounding-math.
6199         (+cflags): Add +math-flags so that all of glibc gets compiled with
6200         it.
6202         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6204 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6206         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6207         Disable one test.
6209         [BZ #13787]
6210         [BZ #13922]
6211         [BZ #14036]
6212         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6213         (__ieee754_expl): Allow for and saturate large arguments.
6214         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6215         (u_threshold): Likewise.
6216         (__exp): Call __ieee754_exp before checking for overflow and
6217         underflow.
6218         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6219         (u_threshold): Likewise.
6220         (__expf): Call __ieee754_expf before checking for overflow and
6221         underflow.
6222         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6223         (u_threshold): Likewise.
6224         (__expl): Call __ieee754_expl before checking for overflow and
6225         underflow.
6226         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6227         (__ieee754_expl): Allow for and saturate large arguments.
6228         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6229         missing overflow exception on overflow.
6230         (expm1_test): Do not allow missing overflow exception on overflow.
6232         * sysdeps/i386/fpu/e_expl.c: Move to ...
6233         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6234         rather than using inline asm.
6235         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6236         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6237         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6239         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6240         (nice): Likewise.
6241         (poll): Likewise.
6242         (signal): Likewise.
6243         (time): Likewise.
6244         (times): Likewise.
6246 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6248         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6249         sysdeps/unix/common/syscalls.list.
6250         (fchmod): Likewise.
6251         (fchown): Likewise.
6252         (ftruncate): Likewise.
6253         (getrusage): Likewise.
6254         (gettimeofday): Likewise.
6255         (setpgid): Likewise.
6256         (setregid): Likewise.
6257         (setreuid): Likewise.
6258         (sigaction): Likewise.
6259         (truncate): Likewise.
6260         (vhangup): Likewise.
6261         * sysdeps/unix/common/syscalls.list: Remove file.
6262         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6263         * sysdeps/unix/sysv/linux/Implies: Likewise.
6265 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6267         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6268         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6269         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6270         Moved to ...
6271         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6272         Here.
6273         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6274         to ...
6275         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6276         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6277         to ...
6278         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6279         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6280         to ...
6281         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6282         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6283         to ...
6284         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6285         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6286         to ...
6287         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6288         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6289         to ...
6290         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6291         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6292         to ...
6293         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6294         Here.
6295         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6296         to ...
6297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6298         Here.
6299         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6300         to ...
6301         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6302         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6303         Moved to ...
6304         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6305         Here.
6306         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6307         to ...
6308         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6310 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6312         * sysdeps/unix/common/bits/dirent.h: Remove file.
6313         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6315         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6316         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6317         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6318         * sysdeps/unix/bsd/isatty.c: Likewise.
6319         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6320         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6321         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6323 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6325         [BZ #13563]
6326         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6327         long double comparison inaccuracies.
6328         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6329         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6331 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6333         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6334         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6336 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6338         [BZ #14049]
6339         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6340         nonzero digits before rounding a hex value.
6341         * stdlib/tst-strtod.c (tests): Add another test.
6343 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6345         * sysdeps/s390/fpu/libm-test-ulps: Update.
6347 2012-05-03  Andreas Jaeger  <aj@suse.de>
6349         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6350         does not get optimized out.
6351         (malloc_opt_barrier): New.
6353 2012-05-03  Andreas Jaeger  <aj@suse.de>
6354             Roland McGrath  <roland@hack.frob.com>
6356         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6357         intermediate file deletion.
6358         (generated): Add .symlist files.
6360 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6362         [BZ #13775]
6363         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6364         Redirect under this condition.
6365         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6366         [__USE_GNU] (__dprintf_chk): Not under this condition.
6367         [__USE_GNU] (__vdprintf_chk): Likewise.
6368         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6369         under this condition.
6370         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6371         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6372         [__USE_XOPEN2K8] (vdprintf): Likewise.
6373         [__USE_GNU] (__dprintf_chk): Not under this condition.
6374         [__USE_GNU] (__vdprintf_chk): Likewise.
6375         [__USE_GNU] (dprintf): Likewise.
6376         [__USE_GNU] (vdprintf): Likewise.
6378 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6380         * elf/Makefile (common-generated): Set this instead of generated for
6381         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6382         $(all-built-dso)-derived lists.
6384 2012-05-03  Andreas Jaeger  <aj@suse.de>
6386         * sysdeps/i386/fpu/libm-test-ulps: Update.
6388         * FAQ: Removed.
6389         * FAQ.in: Likewise.
6390         * scripts/gen-FAQ.pl: Likewise.
6391         * manual/install.texi (Installation): Point to online location of
6392         FAQ.
6393         * Makefile (files-for-dist): Remove FAQ.
6394         (FAQ): Remove.
6396 2012-05-02  Allan McRae  <allan@archlinux.org>
6398         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6399         (LDFLAGS-reldepmod5.so): Likewise.
6400         (LDFLAGS-reldep6mod1.so): Likewise.
6401         (LDFLAGS-reldep6mod4.so): Likewise.
6402         (LDFLAGS-reldep8mod3.so): Likewise.
6403         (LDFLAGS-unload4mod1.so): Likewise.
6404         (LDFLAGS-unload4mod2.so): Likewise.
6405         (LDFLAGS-tst-initorder): Likewise.
6406         (LDFLAGS-tst-initordera2.so): Likewise.
6407         (LDFLAGS-tst-initordera3.so): Likewise.
6408         (LDFLAGS-tst-initordera4.so): Likewise.
6409         (LDFLAGS-tst-initorderb2.so): Likewise.
6410         (LDFLAGS-noload): Likewise.
6411         (LDFLAGS-next): Likewise.
6412         (LDFLAGS-order2mod1.so): Likewise.
6413         (LDFLAGS-order2mod2.so): Likewise.
6414         (LDFLAGS-tst-initorder2): Likewise.
6415         (LDFLAGS-tst-initorder2a.so): Likewise.
6416         (LDFLAGS-tst-initorder2b.so): Likewise.
6417         (LDFLAGS-tst-initorder2c.so): Likewise.
6418         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6420 2012-05-02  David S. Miller  <davem@davemloft.net>
6422         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6424 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6426         [BZ #14055]
6427         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6429 2012-05-02  Andreas Jaeger  <aj@suse.de>
6431         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6432         since we manipulate rounding mode.
6433         (CPPFLAGS-test-idouble.c): Likewise.
6434         (CPPFLAGS-test-ifloat.c): Likewise.
6435         (CFLAGS-test-ldouble.c): Likewise.
6436         (CFLAGS-test-double.c): Likewise.
6437         (CFLAGS-test-float.c): Likewise.
6438         (CFLAGS-test-misc.c): Likewise.
6439         (CFLAGS-test-test-fenv.c): Likewise.
6441 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6443         [BZ #2550]
6444         [BZ #2570]
6445         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6446         comparisons to determine direction to adjust input.
6448 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6450         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6451         output to the target.
6453         * scripts/localplt.awk: New file.
6454         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6455         (check-localplt-CFLAGS): Variable removed.
6456         ($(all-built-dso:=.jmprel)): New static pattern rule.
6457         (generated): Add those targets.
6458         (localplt-built-dso): New variable.
6459         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6461         * elf/check-localplt.c: File removed.
6463         * scripts/check-execstack.awk: New file.
6464         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6465         (check-execstack-CFLAGS): Variable removed.
6466         ($(objpfx)check-execstack.h): Target removed.
6467         ($(objpfx)execstack-default): New target.
6468         (generated): Add that instead of check-execstack.h.
6469         ($(all-built-dso:=.phdr)): New static pattern rule.
6470         (generated): Add those targets.
6471         * elf/check-execstack.c: File removed.
6473         * scripts/check-textrel.awk: New file.
6474         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6475         (check-textrel-CFLAGS): Variable removed.
6476         (all-built-dso): Use := to define.o
6477         ($(all-built-dso:=.dyn)): New static pattern rule.
6478         (generated): Add those targets.
6479         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6480         * config.make.in (READELF): New substituted variable.
6481         * elf/check-textrel.c: File removed.
6483 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6485         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6486         allow.
6487         * conform/data/ctype.h-data [C99-based standards] (isblank):
6488         Expect function.
6489         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6490         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6491         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6492         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6493         Specify type.  Require positive value.
6494         (EILSEQ): Likewise.
6495         (ERANGE): Likewise.
6496         [ISO || POSIX] (EILSEQ): Do not expect.
6497         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6498         Specify type.  Require positive value.
6499         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6500         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6501         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6502         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6503         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6504         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6505         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6506         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6507         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6508         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6509         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6510         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6511         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6512         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6513         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6514         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6515         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6516         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6517         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6518         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6519         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6520         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6521         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6522         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6523         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6524         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6525         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6526         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6527         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6528         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6529         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6530         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6531         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6532         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6533         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6534         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6535         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6536         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6537         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6538         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6539         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6540         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6541         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6542         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6543         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6544         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6545         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6546         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6547         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6548         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6549         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6550         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6551         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6552         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6553         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6554         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6555         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6556         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6557         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6558         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6559         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6560         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6561         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6562         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6563         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6564         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6565         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6566         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6567         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6568         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6569         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6570         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6571         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6572         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6573         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6574         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6575         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6576         Require >= 2.
6577         (FLT_ROUNDS): Expect as macro, not constant.
6578         (FLT_MANT_DIG): Use macro-int-constant.
6579         (DBL_MANT_DIG): Likewise.
6580         (LDBL_MANT_DIG): Likewise.
6581         (FLT_DIG): Likewise.
6582         (DBL_DIG): Likewise.
6583         (LDBL_DIG): Likewise.
6584         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6585         (DBL_MIN_EXP): Likewise.
6586         (LDBL_MIN_EXP): Likewise.
6587         (FLT_MAX_EXP): Use macro-int-constant.
6588         (DBL_MAX_EXP): Likewise.
6589         (LDBL_MAX_EXP): Likewise.
6590         (FLT_MAX_10_EXP): Likewise.
6591         (DBL_MAX_10_EXP): Likewise.
6592         (LDBL_MAX_10_EXP): Likewise.
6593         (FLT_MAX): Use macro-constant.
6594         (DBL_MAX): Likewise.
6595         (LDBL_MAX): Likewise.
6596         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6597         (DBL_EPSILON): Likewise.
6598         (LDBL_EPSILON): Likewise.
6599         (FLT_MIN): Likewise.
6600         (DBL_MIN): Likewise.
6601         (LDBL_MIN): Likewise.
6602         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6603         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6604         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6605         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6606         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6607         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6608         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6609         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6610         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6611         [ISO11] (FLT_TRUE_MIN): Likewise.
6612         [ISO11] (LDBL_TRUE_MIN): Likewise.
6613         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6614         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6615         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6616         (SCHAR_MAX): Likewise.
6617         (UCHAR_MAX): Likewise.
6618         (CHAR_MIN): Likewise.
6619         (CHAR_MAX): Likewise.
6620         (MB_LEN_MAX): Use macro-int-constant.
6621         (SHRT_MIN): Use macro-int-constant.  Specify type.
6622         (SHRT_MAX): Likewise.
6623         (USHRT_MAX): Likewise.
6624         (INT_MAX): Likewise.
6625         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6626         bound negative.
6627         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6628         bound with "U".
6629         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6630         bound with "L".
6631         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6632         bound negative.  Suffix upper bound with "L".
6633         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6634         bound with "UL".
6635         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6636         Specify type.
6637         [C99-based standards] (LLONG_MAX): Likewise.
6638         [C99-based standards] (ULLONG_MAX): Likewise.
6639         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6640         == 0.
6641         [ISO11] (max_align_t): Require type.
6642         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6644         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6645         from $CFLAGS, without defining away __attribute__ calls.
6646         (checknamespace): Use $CFLAGS_namespace.
6648         * conform/conformtest.pl (@keywords): Only include C99 keywords
6649         for standards based on C99 or C11.
6651         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6652         Disable tests.
6653         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6654         UNIX98]: Likewise.
6656         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6657         usability of symbols in #if.
6659         * conform/conformtest.pl: If macro or constant types start
6660         "promoted:", expect the symbol to be of the following type
6661         promoted by the integer promotions.
6663         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6664         in one place.  Also handle "macro-constant".
6666         * conform/conformtest.pl: Only accept expected macro values with
6667         "==".  Parse all "macro" lines in one place.
6668         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6670         * conform/conformtest.pl: Handle braced types on "constant" lines
6671         instead of handling "typed-constant".
6672         * conform/data/signal.h-data: Use "constant" instead of
6673         "typed-constant".
6675         * conform/conformtest.pl: Handle "optional-" at start of lines in
6676         one place rather than duplicating several cases.  Handle each
6677         format of "macro" line with initial "optional-".
6679         * conform/conformtest.pl: Only accept expected constant or
6680         optional-constant values with "==".  Parse all "constant" lines in
6681         one place.  Parse all "optional-constant" lines in one place.
6682         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6683         * conform/data/fmtmsg.h-data: Likewise.
6684         * conform/data/netinet/in.h-data: Likewise.
6685         * conform/data/tar.h-data: Likewise.
6686         * conform/data/limits.h-data: Use "==" form on "constant" and
6687         "optional-constant" lines.
6689         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6690         Use -std=c99 for XOPEN2K.
6691         (@knownproblems): Remove.
6692         (newtoken): Don't check %isknown.
6694         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6695         Do not expect macro.
6696         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6697         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6698         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6699         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6700         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6701         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6702         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6703         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6704         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6705         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6706         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6707         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6708         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6709         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6710         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6711         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6712         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6713         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6714         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6715         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6716         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6717         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6718         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6719         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6720         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6721         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6722         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6723         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6724         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6725         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6726         [XPG3] (acosh): Likewise.
6727         [XPG3] (asinh): Likewise.
6728         [XPG3] (atanh): Likewise.
6729         [XPG3] (cbrt): Likewise.
6730         [XPG3] (expm1): Likewise.
6731         [XPG3] (ilogb): Likewise.
6732         [XPG3] (log1p): Likewise.
6733         [XPG3] (logb): Likewise.
6734         [XPG3] (nextafter): Likewise.
6735         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6736         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6737         [XPG3] (remainder): Likewise.
6738         [XPG3] (rint): Likewise.
6739         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6740         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6741         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6742         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6743         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6744         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6745         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6746         [UNIX98 || XOPEN2K] (scalb): Expect.
6747         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6748         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6749         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6750         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6751         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6752         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6753         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6754         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6755         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6756         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6757         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6758         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6759         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6760         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6761         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6762         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6763         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6764         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6765         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6766         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6767         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6768         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6769         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6770         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6771         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6772         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6773         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6774         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6775         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6776         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6777         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6778         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6779         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6780         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6781         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6782         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6783         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6784         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6785         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6786         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6787         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6788         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6789         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6790         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6791         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6792         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6793         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6794         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6795         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6796         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6797         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6798         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6799         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6800         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6801         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6802         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6803         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6804         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6805         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6806         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6807         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6808         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6809         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6810         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6811         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6812         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6813         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6814         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6815         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6816         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6817         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6818         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6819         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6820         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6821         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6822         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6823         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6824         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6825         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6826         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6827         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6828         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6829         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6830         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6831         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6832         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6833         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6834         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6835         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6836         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6837         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6838         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6839         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6840         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6841         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6842         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6843         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6844         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6845         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6846         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6847         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6848         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6849         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6850         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6851         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6852         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6853         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6854         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6855         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6856         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6857         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6858         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6859         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6860         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6861         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6862         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6863         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6864         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6865         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6866         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6867         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6868         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6869         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6870         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6871         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6872         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6873         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6874         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6875         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6876         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6877         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6878         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6879         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6880         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6881         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6882         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6883         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6885         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6886         _XOPEN_SOURCE_EXTENDED for XPG4.
6888         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6890         * Makeconfig (localtime): Remove variable.
6891         (inst_localtime-file): Likewise.
6893 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6896         Update.
6897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6898         Update.
6899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6900         Update.
6901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6902         Update.
6903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6904         Update.
6905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6906         Update.
6907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6908         Update.
6909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6910         Update.
6911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6912         Update.
6914 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6916         [BZ #2550]
6917         [BZ #2570]
6918         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6919         comparisons to determine direction to adjust input.
6920         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6921         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6922         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6923         Likewise.
6924         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6925         Likewise.
6926         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6927         Likewise.
6928         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6929         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6930         Likewise.
6931         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6932         Likewise.
6933         * math/libm-test.inc (nexttoward_test): Add more tests.
6935 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6937         [BZ #14040]
6938         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6939         in version GLIBC_2.1, not GLIBC_2.0.
6940         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6941         Likewise.
6943 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6945         [BZ #13942]
6946         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6947         (1 - x) * (1 + x).
6948         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6949         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6950         * math/libm-test.inc (acos_test): Add more tests.
6951         (asin_test): Likewise.
6952         * sysdeps/i386/fpu/libm-test-ulps: Update.
6953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6955         [BZ #14034]
6956         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6957         of square root.
6958         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6959         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6960         * math/libm-test.inc (acos_test_tonearest): New function.
6961         (acos_test_towardzero): Likewise.
6962         (acos_test_downward): Likewise.
6963         (acos_test_upward): Likewise.
6964         (asin_test_tonearest): Likewise.
6965         (asin_test_towardzero): Likewise.
6966         (asin_test_downward): Likewise.
6967         (asin_test_upward): Likewise.
6968         (main): Call the new functions.
6969         * sysdeps/i386/fpu/libm-test-ulps: Update.
6970         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6972         [BZ #13884]
6973         [BZ #13924]
6974         * math/e_exp10.c: Include <float.h>.
6975         (__ieee754_exp10): Handle underflow here rather than multiplying
6976         large negative argument by M_LN10.
6977         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6978         of __ieee754_expf.
6979         * math/e_exp10l.c: Include <float.h>.
6980         (__ieee754_exp10l): Handle underflow here rather than multiplying
6981         large negative argument by M_LN10l.
6982         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6983         spurious overflow exception on underflow.
6985 2012-04-29  Marek Polacek  <polacek@redhat.com>
6987         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6988         (__fortify_function): New macro.
6989         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6990         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6991         __extern_always_inline.
6992         * libio/bits/stdio2.h: Likewise.
6993         * libio/bits/stdio.h: Likewise.
6994         * string/string.h: Likewise.
6995         * string/bits/string3.h: Likewise.
6996         * include/stdio.h: Likewise.
6997         * stdlib/bits/stdlib.h: Likewise.
6998         * stdlib/stdlib.h: Likewise.
6999         * rt/bits/mqueue2.h: Likewise.
7000         * rt/mqueue.h: Likewise.
7001         * posix/bits/unistd.h: Likewise.
7002         * posix/unistd.h: Likewise.
7003         * io/bits/poll2.h: Likewise.
7004         * io/bits/fcntl2.h: Likewise.
7005         * io/fcntl.h: Likewise.
7006         * io/sys/poll.h: Likewise.
7007         * misc/bits/syslog.h: Likewise.
7008         * misc/bits/syslog-ldbl.h: Likewise.
7009         * misc/sys/syslog.h: Likewise.
7010         * socket/bits/socket2.h: Likewise.
7011         * socket/sys/socket.h: Likewise.
7012         * debug/tst-chk1.c: Likewise.
7013         * wcsmbs/bits/wchar2.h: Likewise.
7014         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7015         * wcsmbs/wchar.h: Likewise.
7017 2012-04-29  Andreas Jaeger  <aj@suse.de>
7019         * Makerules (tests): Remove enable-check-abi protection.
7020         (check-abi-warn): Remove.
7021         (check-abi-%): Remove check-abi-warn usage.
7023         * configure.in: Remove check-abi configure option.
7024         * configure: Regenerated.
7025         * config.make.in (enable-check-abi): Remove.
7027 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7029         [BZ #14033]
7030         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7031         double functions to double *_finite functions.
7033         [BZ #13941]
7034         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7035         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7036         LDBL_MIN_EXP.
7037         * stdio-common/Makefile (tests): Add tst-sprintf3.
7038         * stdio-common/tst-sprintf3.c: New file.
7040         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7041         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7043 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7045         * conform/conformtest.pl: Remove duplicate typed-constant
7046         handling.
7048 2012-04-28  David S. Miller  <davem@davemloft.net>
7050         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7051         (check-abi-%): Remove AWK script prerequisite and explicit
7052         abilist directory.
7053         (check-abi): Rewrite to just diff the symlist with the abilist.
7054         (config-tls, config-abi-config): Delete, no longer used.
7055         (update-abi-%): Remove AWK script and explicit abilist directory.
7056         (update-abi): Rewrite to simply compare and conditionally copy the
7057         symlist and the sysdep abilist file.  Remove update-abi-config
7058         checks.
7059         * abilist/ld.abilist: Remove.
7060         * abilist/libBrokenLocale.abilist: Remove.
7061         * abilist/libanl.abilist: Remove.
7062         * abilist/libcrypt.abilist: Remove.
7063         * abilist/libdl.abilist: Remove.
7064         * abilist/librt.abilist: Remove.
7065         * abilist/libthread_db.abilist: Remove.
7066         * abilist/libutil.abilist: Remove.
7067         * scripts/extract-abilist.awk: Remove.
7068         * scripts/merge-abilist.awk: Remove.
7069         * sysdeps/generic/libcidn.abilist: New file.
7070         * sysdeps/generic/libnss_compat.abilist: New file.
7071         * sysdeps/generic/libnss_db.abilist: New file.
7072         * sysdeps/generic/libnss_dns.abilist: New file.
7073         * sysdeps/generic/libnss_files.abilist: New file.
7074         * sysdeps/generic/libnss_hesiod.abilist: New file.
7075         * sysdeps/generic/libnss_nis.abilist: New file.
7076         * sysdeps/generic/libnss_nisplus.abilist: New file.
7077         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7078         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7079         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7080         file.
7081         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7082         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7083         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7084         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7085         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7086         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7087         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7088         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7089         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7090         file.
7091         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7092         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7093         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7094         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7095         file.
7096         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7097         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7098         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7099         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7100         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7101         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7102         file.
7103         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7104         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7105         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7106         file.
7107         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7108         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7109         New file.
7110         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7111         New file.
7112         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7113         New file.
7114         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7115         New file.
7116         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7117         New file.
7118         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7119         New file.
7120         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7121         New file.
7122         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7123         New file.
7124         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7125         New file.
7126         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7127         New file.
7128         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7129         New file.
7130         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7131         New file.
7132         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7133         New file.
7134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7135         file.
7136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7137         New file.
7138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7139         New file.
7140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7141         file.
7142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7143         New file.
7144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7145         New file.
7146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7147         file.
7148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7149         New file.
7150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7151         New file.
7152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7153         New file.
7154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7155         New file.
7156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7157         New file.
7158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7159         New file.
7160         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7161         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7162         file.
7163         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7164         New file.
7165         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7166         file.
7167         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7168         file.
7169         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7170         file.
7171         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7172         file.
7173         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7174         file.
7175         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7176         New file.
7177         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7178         file.
7179         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7180         file.
7181         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7182         New file.
7183         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7184         file.
7185         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7186         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7187         file.
7188         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7189         New file.
7190         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7191         file.
7192         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7193         file.
7194         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7195         file.
7196         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7197         file.
7198         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7199         file.
7200         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7201         New file.
7202         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7203         file.
7204         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7205         file.
7206         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7207         New file.
7208         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7209         file.
7210         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7211         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7212         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7213         file.
7214         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7215         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7216         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7217         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7218         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7219         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7220         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7221         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7222         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7223         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7224         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7225         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7226         file.
7227         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7228         New file.
7229         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7230         file.
7231         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7232         file.
7233         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7234         file.
7235         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7236         file.
7237         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7238         file.
7239         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7240         New file.
7241         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7242         New file.
7243         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7244         file.
7245         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7246         New file.
7247         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7248         file.
7249         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7250         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7251         file.
7252         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7253         New file.
7254         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7255         file.
7256         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7257         file.
7258         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7259         file.
7260         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7261         file.
7262         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7263         file.
7264         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7265         New file.
7266         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7267         New file.
7268         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7269         file.
7270         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7271         New file.
7272         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7273         file.
7275 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7277         * conform/conformtest.pl: Fix typo in handling typed-constant from
7278         allow-header.
7280 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7282         * README: Cut down references to pre-2.6 Linux kernels and
7283         Linuxthreads.  Update lists of configurations in libc and ports
7284         and sort alphabetically.  Say "or newer" with Linux kernel version
7285         requirements.
7287         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7289 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7291         [BZ #887]
7292         * math/libm-test.inc (logb_test_downward): New test to expose
7293         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7294         rounding mode.
7296 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7298         [BZ #14027]
7299         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7300         to be done.
7301         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7302         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7304 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7306         * sysdeps/unix/i386/brk.S: Remove file.
7307         * sysdeps/unix/i386/dl-brk.S: Likewise.
7308         * sysdeps/unix/i386/pipe.S: Likewise.
7309         * sysdeps/unix/i386/sigreturn.S: Likewise.
7310         * sysdeps/unix/i386/syscall.S: Likewise.
7311         * sysdeps/unix/i386/vfork.S: Likewise.
7312         * sysdeps/unix/i386/wait.S: Likewise.
7314         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7315         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7317         * configure.in (arm*-none*): Do not allow without
7318         --enable-hacker-mode.
7319         (netbsd*): Remove case setting base_os.
7320         (386bsd*): Likewise.
7321         (freebsd*): Likewise.
7322         (bsdi*): Likewise.
7323         (osf*): Likewise.
7324         (sunos*): Likewise.
7325         (ultrix*): Likewise.
7326         (newsos*): Likewise.
7327         (dynix*): Likewise.
7328         (*bsd*): Likewise.
7329         (sysv*): Likewise.
7330         (isc*): Likewise.
7331         (esix*): Likewise.
7332         (sco*): Likewise.
7333         (minix*): Likewise.
7334         (irix4*): Likewise.
7335         (irix6*): Likewise.
7336         (solaris[2-9]*): Likewise.
7337         (none): Likewise.
7338         * configure: Regenerated.
7340 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7342         [BZ #11521]
7343         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7344         overflow or cancellation in calculating denominator.
7345         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7346         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7347         down expression to avoid unexpected rounding in newer GCCs.
7348         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7350 2012-04-26  David S. Miller  <davem@davemloft.net>
7352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7353         long-double compat symbols.
7354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7359         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7360         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7361         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7362         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7365         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7366         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7368 2012-04-25  David S. Miller  <davem@davemloft.net>
7370         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7371         HWCAP_* values only after the memory barriers have been defined.
7372         (atomic_full_barrier): Define.
7373         (atomic_read_barrier): Define.
7374         (atomic_write_barrier): Define.
7376 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7378         * shlib-versions: Add libgcc_s version information.
7379         * sysdeps/generic/libgcc_s.h: Remove.
7380         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7381         libgcc_s.h.
7382         * sysdeps/gnu/unwind-resume.c: Likewise.
7383         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7385 2012-04-25  David S. Miller  <davem@davemloft.net>
7387         * sysdeps/unix/sparc/brk.S: Delete.
7388         * sysdeps/unix/sparc/dl-brk.S: Delete.
7389         * sysdeps/unix/sparc/pipe.S: Delete.
7390         * sysdeps/unix/sparc/sysdep.S: Delete.
7391         * sysdeps/unix/sparc/sysdep.h: Delete.
7392         * sysdeps/unix/sparc/vfork.S: Delete.
7393         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7394         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7395         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7396         ret_ERRVAL, r0, r1, MOVE): Define.
7397         (JUMPTARGET): Remove.
7398         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7399         sysdeps/unix/sparc/sysdep.h
7400         (ENTRY, END): Remove.
7401         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7403 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7405         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7406         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7407         -DIS_IN_build.
7409         * timezone/README: Update upstream location and email address for
7410         tzcode and tzdata.
7411         * timezone/zdump.c: Update from tzcode 2012b.
7412         * timezone/zic.c: Likewise.
7414         * configure.in (libc_cv_as_needed): Remove test.
7415         * configure: Regenerated.
7416         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7417         conditional definition.
7418         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7419         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7420         * config.make.in (have-as-needed): Remove variable.
7422 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7423             Paul Pluzhnikov  <ppluzhnikov@google.com>
7425         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7426         strings correctly.
7428 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7430         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7431         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7432         * sysdeps/sh/strlen.S: Likewise.
7434 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7436         * sysdeps/unix/fork.S: Remove file.
7437         * sysdeps/unix/i386/fork.S: Likewise.
7438         * sysdeps/unix/sparc/fork.S: Likewise.
7440         * sysdeps/unix/system.c: Remove file.
7441         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7443         * sysdeps/unix/getegid.S: Remove file.
7444         * sysdeps/unix/geteuid.S: Likewise.
7446 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7448         * scripts/check-localplt.awk: New file.
7449         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7450         of diff.
7451         * scripts/data/localplt-generic.data: Add a comment.
7453         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7454         NODE when __dir_mkfile failed.
7455         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7456         Reported by Ludovic Courtès <ludo@gnu.org>.
7458 2012-04-24  Andreas Jaeger  <aj@suse.de>
7460         * Makerules (common-clean): Also remove gen-as-const-headers
7461         files.
7463 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7465         * Makerules (native-compile): Do not change working directory for
7466         build.  Use $(OUTPUT_OPTION) in command.
7467         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7469 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7471         [BZ #13886]
7472         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7473         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7474         * math/libm-test.inc (floor_test): Add more tests.
7475         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7477 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7479         * sysdeps/unix/getdents.c: Remove file.
7480         * sysdeps/unix/sysv/getdents.c: Likewise.
7481         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7483         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7484         sysdeps/unix/mman/syscalls.list.
7485         (mmap): Likewise.
7486         (mprotect): Likewise.
7487         (msync): Likewise.
7488         (munmap): Likewise.
7489         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7490         * sysdeps/unix/mman/syscalls.list: Remove.
7491         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7493         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7494         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7495         * configure: Regenerated.
7496         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7497         $(libgcc_s_suffix).
7498         * config.make.in (libgcc_s_suffix): Remove variable.
7500 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7502         * sysdeps/unix/sysv/gethostname.c: Move to ...
7503         * sysdeps/posix/gethostname.c: ... here.
7505         * sysdeps/unix/execve.S: Remove file.
7507         * sysdeps/unix/_exit.S: Remove file.
7509 2012-04-23  Andreas Jaeger  <aj@suse.de>
7511         [BZ #13739]
7512         * manual/Makefile: Remove make dist support, there's no
7513         need for a stand-alone documentation tar ball.
7514         (TEXI2DVI): Define always, it's not in Makeconfig.
7515         (dist): Removed.
7516         (tar-it): Removed.
7517         (edition): Removed.
7518         (glibc-doc-$(edition).tar): Removed
7519         (%.Z): Removed.
7520         (%.gz): Removed.
7521         (%.uu): Removed.
7522         (ETAGS): Remove, it's in Makeconfig.
7523         (move-if-change): Remove, it's in Makeconfig.
7525 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7527         [BZ #13970]
7528         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7529         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7530         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7531         (strtod_l, strtof_l, strtold_l): Remove __wur.
7532         It is not necessarily an error to ignore strtol's return value.
7533         One can reliably look at the stored endptr to decide whether
7534         the number had valid syntax.
7536 2012-04-21  Andreas Jaeger  <aj@suse.de>
7538         [BZ #13739]
7539         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7541 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7543         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7544         * sysdeps/unix/sysv/Versions: Remove file.
7546 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7548         [BZ #13927]
7549         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7551 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7553         [BZ #7064]
7554         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7555         version from __vm86.
7557 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7559         * sysdeps/unix/common/lxstat.c: Remove file.
7560         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7562         * sysdeps/unix/sysv/Makefile: Remove file.
7564         * sysdeps/unix/sysv/direct.h: Remove file.
7566         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7567         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7568         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7569         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7570         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7571         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7572         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7574         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7576         * sysdeps/unix/xmknod.c: Remove file.
7577         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7579         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7581         * sysdeps/unix/sysv/i386/time.S: Remove file.
7583         * sysdeps/unix/fxstat.c: Remove file.
7584         * sysdeps/unix/xstat.c: Likewise.
7585         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7587         * sysdeps/unix/sysv/sigaction.c: Remove file.
7589         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7590         (sysdep_headers): Remove variable.
7591         [termio.h not in sysdep_headers] (generated): Likewise.
7592         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7593         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7594         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7595         * sysdeps/unix/sysv/tcflow.c: Likewise.
7596         * sysdeps/unix/sysv/tcflush.c: Likewise.
7597         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7598         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7599         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7600         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7601         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7603         * sysdeps/unix/siglist.c: Remove file.
7605         * sysdeps/unix/getppid.S: Remove file.
7607         * sysdeps/unix/mkdir.c: Remove file.
7608         * sysdeps/unix/rmdir.c: Likewise.
7610 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7612         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7613         ERR_MAX value.
7614         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7615         errlist-compat value.
7617 2012-04-18  David S. Miller  <davem@davemloft.net>
7619         * sysdeps/generic/memcopy.h (reg_char): Delete.
7620         * debug/strcat_chk.c: Use char, not reg_char.
7621         * debug/strcpy_chk.c: Likewise.
7622         * debug/strncat_chk.c: Likewise.
7623         * debug/strncpy_chk.c: Likewise.
7624         * string/memchr.c: Likewise.
7625         * string/memrchr.c: Likewise.
7626         * string/rawmemchr.c: Likewise.
7627         * string/strcat.c: Likewise.
7628         * string/strchr.c: Likewise.
7629         * string/strchrnul.c: Likewise.
7630         * string/strcmp.c: Likewise.
7631         * string/strcpy.c: Likewise.
7632         * string/strncat.c: Likewise.
7633         * string/strncmp.c: Likewise.
7634         * string/strncpy.c: Likewise.
7636 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7638         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7639         __builtin_memcopy is called when src and dest ranges are known to not
7640         overlap.
7642 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7644         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7645         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7646         fwd_align_merge macro call.
7647         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7648         bwd_align_merge macro call.
7649         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7651 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7653         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7654         bwd_align_merge macros.
7655         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7656         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7657         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7659 2012-04-18  David S. Miller  <davem@davemloft.net>
7661         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7663 2012-04-18  Andreas Jaeger  <aj@suse.de>
7665         [BZ# 6794]
7666         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7667         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7668         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7670         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7671         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7672         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7674         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7675         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7676         Adjust for changed ldbl-128 files.
7678         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7679         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7680         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7682 2012-04-17  David S. Miller  <davem@davemloft.net>
7684         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7686 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7688         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7689         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7690         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7691         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7692         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7693         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7695 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7697         [BZ #6794]
7698         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7699         * math/libm-test.inc: Add ilogb errno and exception tests.
7700         * math/w_ilogb.c: New file: ilogb wrapper.
7701         * math/w_ilogbf.c: New file: ilogbf wrapper.
7702         * math/w_ilogbl.c: New file: ilogbl wrapper.
7703         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7704         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7705         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7706         exception being thrown with 0.0 as argument.
7707         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7708         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7709         exception being thrown with 0.0 as argument.
7710         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7711         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7712         exception being thrown with 0.0 as argument.
7713         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7714         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7715         exception being thrown with 0.0 as argument.
7716         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7717         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7718         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7719         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7720         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7721         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7722         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7723         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7724         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7726 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7728         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7729         with altivec.
7731 2012-04-16  Marek Polacek  <polacek@redhat.com>
7733         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7735 2012-04-16  Marek Polacek  <polacek@redhat.com>
7737         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7738         operands of fdivp instruction.
7740 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7742         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7743         * elf/tst-auditmod3b.c: Likewise.
7744         * elf/tst-auditmod4b.c: Likewise.
7745         * elf/tst-auditmod5b.c: Likewise.
7746         * elf/tst-auditmod6b.c: Likewise.
7747         * elf/tst-auditmod6c.c: Likewise.
7748         * elf/tst-auditmod7b.c: Likewise.
7749         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7750         * sysdeps/x86_64/preconfigure.in: Likewise.
7751         * sysdeps/x86_64/preconfigure: Regenerated.
7753 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7755         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7756         __ILP32__.
7758 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7760         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7761         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7763 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7765         [BZ #13973]
7766         * locale/iso-639.def: Fix gl language name. Spotted by
7767         Yaron Shahrabani.
7769 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7771         [BZ #2074]
7772         * libio/libio.h (__io_write_fn): Update comment.
7774 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7776         [BZ #2074]
7777         * stdio.texi (Hook Functions): The user provided writer function
7778         is not allowed to return -1.
7780 2012-04-11  David S. Miller  <davem@davemloft.net>
7782         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7784 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7786         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7787         Add a leading slash to rtkaio.
7789 2012-04-11  Jim Meyering  <meyering@redhat.com>
7791         [BZ #11959]
7792         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7793         It is not necessarily an error to ignore fwrite's return
7794         value.  One can reliably use ferror to test for errors after
7795         the fact.
7797 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7799         * bits/types.h (__snseconds_t): New type.
7800         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7802         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7803         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7804         (__SNSECONDS_T_TYPE): Likewise.
7805         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7806         (__SNSECONDS_T_TYPE): Likewise.
7807         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7808         (__SNSECONDS_T_TYPE): Likewise.
7810 2012-04-10  Andreas Jaeger  <aj@suse.de>
7812         [BZ #2636]
7813         * manual/time.texi (Processor Time): Return type of times is
7814         elapsed real time since an arbitrary point in the past.
7815         (CPU Time): Move CLK_TCK from here...
7816         (Processor Time): ...to here.  Correct description.
7817         * manual/conf.texi (Constants for Sysconf): Correct description of
7818         _SC_CLK_TCK.
7820 2012-04-10  David S. Miller  <davem@davemloft.net>
7822         [BZ #13967]
7823         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7824         where the is a gap between DT_REL(A) and DT_JMPREL.
7826 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7828         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7829         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7830         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7832 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7834         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7835         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7836         (dl_main): Handle --inhibit-cache.
7837         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7838         _dl_inhibit_cache.
7839         * elf/dl-load.c (_dl_map_object): Use it.
7840         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7842 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7844         [BZ #13872]
7845         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7846         (__ieee754_powl): Saturate large exponents rather than testing for
7847         overflow of y*log2(x).
7848         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7849         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7850         exceptions.
7852         [BZ #11521]
7853         * math/s_ctan.c: Include <float.h>.
7854         (__ctan): Avoid internal overflow or cancellation in calculating
7855         denominator.
7856         * math/s_ctanf.c: Likewise.
7857         * math/s_ctanl.c: Likewise.
7858         * math/s_ctanh.c: Likewise.
7859         * math/s_ctanhf.c: Likewise.
7860         * math/s_ctanhl.c: Likewise.
7861         * math/libm-test.inc (ctan_test): Add more tests.
7862         (ctanh_test): Likewise.
7863         * sysdeps/i386/fpu/libm-test-ulps: Update.
7864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7866 2012-04-09  Andreas Jaeger  <aj@suse.de>
7868         [BZ #6894]
7869         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7870         is an optional BSD extension.
7872         [BZ #10254]
7873         * manual/stdio.texi (Opening Streams): Document additional fopen
7874         parameters.
7876 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7878         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7879         %eax without telling the compiler.
7881 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7883         [BZ # 13963]
7884         * manual/install.texi: Use sourceware.org.
7886 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7888         [BZ #13873]
7889         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7890         (__ieee754_pow): Generate overflow and underflow using huge*huge
7891         and tiny*tiny rather than just returning constant infinity or zero
7892         for large exponents.
7893         * math/libm-test.inc (pow_test): Require overflow exceptions for
7894         applicable cases of large exponents.
7896         [BZ #706]
7897         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7898         (__ieee754_pow): Use iterative multiplication algorithm only for
7899         integer exponents with absolute value below 1024.  Check for odd
7900         integer exponents when using algorithm for real exponents.
7901         * math/libm-test.inc (pow_test): Add more tests.
7902         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7904 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7906         [BZ #13705]
7907         * math/libm-test.inc (exp_test): Do not allow overflow exception
7908         on underflow test.
7910 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7912         [BZ #13705]
7913         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7914         instead of __kernel_standard_f.
7916 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7918         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7919         * sysdeps/x86_64/memset_chk.S: Likewise.
7921 2012-04-08  Andreas Jaeger  <aj@suse.de>
7923         [BZ #10153]
7924         * manual/startup.texi (Environment Access): Describe return value
7925         for putenv and setenv.
7927         [BZ #6895]
7928         * manual/filesys.texi (Directory Entries): Add description for
7929         DT_LNK.
7931         [BZ #6890]
7932         * manual/filesys.texi (Directory Entries): Clarify that it's file
7933         system not operating system in the description of DT_UNKNOWN.
7935         [BZ #6578]
7936         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7938 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7940         [BZ #6649]
7941         * manual/llio.texi (Opening and Closing Files): Add cross
7942         reference to explain mode argument.
7944 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7946         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7947         * sysdeps/x86_64/memset_chk.S: Likewise.
7949 2012-04-07  David S. Miller  <davem@davemloft.net>
7951         * elf/elf.h (R_SPARC_WDISP10): Define.
7952         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7953         R_SPARC_SIZE32.
7954         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7955         R_SPARC_SIZE64 and R_SPARC_H34.
7957 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7959         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7960         conditions and remove no longer applicable assertion.
7962 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7964         * bits/byteswap.h: Include <features.h>.
7965         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7966         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7968 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7970         * bits/byteswap.h (__bswap_16): Removed.
7971         Include <bits/byteswap-16.h> to get __bswap_16.
7972         * sysdeps/i386/bits/byteswap.h: Likewise.
7973         * sysdeps/s390/bits/byteswap.h: Likewise.
7974         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7975         * bits/byteswap-16.h: New file.
7976         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7977         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7978         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7979         * string/Makefile (headers): Add bits/byteswap-16.h.
7981 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7983         [BZ #13895]
7984         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7985         extra indirection.
7986         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7987         * nss/tst-nss-static.c: New.
7989 2012-04-06  Robert Millan  <rmh@gnu.org>
7991         [BZ #6486]
7992         * manual/llio.texi (File Position Primitive): lseek
7993         refers to WHENCE when it really means OFFSET.
7995 2012-04-06  Andreas Jaeger  <aj@suse.de>
7997         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7998         strncmp declarations.
8000         * abilist/libc.abilist: Add __poll and __ppoll.
8002 2012-04-05  David S. Miller  <davem@davemloft.net>
8004         * scripts/check-local-headers.sh: Accept a host triplet in the
8005         path matched by the exclude regexp.
8007         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8008         definition.
8009         * sysdeps/powerpc/powerpc32/dl-machine.h
8010         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8011         * sysdeps/s390/s390-32/dl-machine.h
8012         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8013         * sysdeps/sparc/sparc32/dl-machine.h
8014         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8015         * sysdeps/sparc/sparc64/dl-machine.h
8016         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8018         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8019         lazy binding.
8020         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8021         undefined symbol errors.
8023         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8024         DT_NEEDED entries.
8026 2012-04-05  Michael Matz  <matz@suse.de>
8028         [BZ #13592]
8029         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8031 2012-04-05  Andreas Jaeger  <aj@suse.de>
8033         [BZ #13908]
8034         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8035         comment.
8037 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8039         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8040         which ROUND is no valid rounding mode.
8042 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8044         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8045         read again.
8046         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8048 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8050         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8051         an exception using FPU order intentionally.
8053 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8055         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8056         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8057         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8058         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8060 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8062         [BZ #12340]
8063         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8064         EINVAL when BUFLEN is too smal.
8066 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8068         [BZ #13553]
8069         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8070         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8072 2012-04-03  Andreas Jaeger  <aj@suse.de>
8074         [BZ #13938]
8075         * manual/setjmp.texi (System V contexts): Fix sentence.
8077         [BZ #13926]
8078         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8079         New macro for this case.
8080         [!__GNUC__] (__bswap_64): New inline function for this case.
8081         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8082         * bits/byteswap.h: Likewise.
8083         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8084         ull, guard with __GLIBC_HAVE_LONG_LONG.
8086         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8087         __GLIBC_HAVE_LONG_LONG.
8089         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8090         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8092 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8094         [BZ #13691]
8095         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8096         inptr and inend, rather than using last_ch.
8098 2012-04-02  David S. Miller  <davem@davemloft.net>
8100         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8101         * stdio-common/printf-parse.h (read_int): Change return type to
8102         'int', return -1 on INT_MAX overflow.
8103         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8104         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8105         overflows INT_MAX.  Check for overflow of in-format-string precision
8106         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8107         SIZE_MAX not INT_MAX for integer overflow test.
8108         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8109         skip the construct in the format string but do not record anything.
8110         * stdio-common/bug22.c: Adjust to test both width/prevision
8111         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8112         explicitly for proper errno values.
8114 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8116         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8117         CHAR_MAX.
8118         * string/test-strcmp.c [! WIDE]: Likewise.
8119         * time/tst-mktime2.c: Likewise for INT_MAX.
8120         * string/test-string.h: #include <sys/param.h> for MIN.
8122         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8123         * sysdeps/i386/init-first.c (init): Likewise.
8124         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8125         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8126         * sysdeps/sh/init-first.c (init): Likewise.
8128 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8130         * po/ru.po: Update from translation team.
8131         * po/vi.po: Likewise.
8133 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8135         * resolv/nss_dns/dns-host.c: Merge copyright years.
8137 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8139         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8140         Optimize memcpy with prefetch if
8141         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8142         src, dst pointers have unequal 16 byte alignments.
8144 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8146         [BZ #13928]
8147         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8148         from a CNAME entry and return the minimum ttl for the query.
8149         (gaih_getanswer_slice): Likewise.
8151 2012-03-30  Jeff Law  <law@redhat.com>
8153         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8154         due to long keys.
8155         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8156         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8158         * resolv/nss_dns/dns-host.c: Update copyright year.
8160 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8162         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8163         requests to save a system call.  Fix check that all bytes are sent.
8165         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8166         comments for sendmmsg.
8168 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8170         [BZ #13691]
8171         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8172         with only 1 character between 0x0041 and 0x01b0.
8173         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8174         * wcsmbs/tst-mbsnrtowcs.c: New file.
8176 2012-03-29  David S. Miller  <davem@davemloft.net>
8178         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8179         small copies by hand.
8181 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8183         [BZ #13761]
8184         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8185         _nss_compat_initgroups_dyn): Fall back to malloc/free
8186         for large group memberships.
8188 2012-03-28  David S. Miller  <davem@davemloft.net>
8190         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8191         that branches into memcpy.
8192         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8193         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8194         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8195         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8196         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8197         bits.
8198         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8199         implementation too.
8200         * sysdeps/sparc/mempcpy.S: New file.
8202         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8203         the IFUNC routine in the libc case.
8204         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8206         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8207         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8208         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8209         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8210         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8211         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8212         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8213         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8215         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8216         loop to 256 bytes instead of 64 bytes and fix test signedness.
8218         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8219         * sysdeps/sparc/sparc32/Makefile: rather than here...
8220         * sysdeps/sparc/sparc64/Makefile: and here.
8222 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8224         * malloc/mallocbug.c: Avoid warnings about unused variables.
8226 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8228         [BZ #13760]
8229         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8230         in the right place. Discard and retry query if response is
8231         larger than input buffer size.
8233 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8235         [BZ #369]
8236         [BZ #2678]
8237         [BZ #3866]
8238         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8239         x for large integer exponent.
8240         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8241         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8242         sign of result as needed afterwards.
8243         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8244         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8245         result for underflowing pow the same as for overflow.
8246         (__kernel_standard_l): Handle powl overflow and underflow here
8247         rather than calling __kernel_standard.
8248         * math/libm-test.inc (pow_test): Add more tests.
8250         [BZ #3868]
8251         [BZ #13879]
8252         [BZ #13910]
8253         [BZ #13911]
8254         [BZ #13912]
8255         [BZ #13913]
8256         [BZ #13915]
8257         [BZ #13916]
8258         [BZ #13917]
8259         [BZ #13918]
8260         [BZ #13919]
8261         [BZ #13920]
8262         [BZ #13921]
8263         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8264         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8265         (__kernel_standard_l): New function.
8266         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8267         __kernel_standard.
8268         * math/w_acosl.c (__acosl): Likewise.
8269         * math/w_asinl.c (__asinl): Likewise.
8270         * math/w_atan2l.c (__atan2l): Likewise.
8271         * math/w_atanhl.c (__atanhl): Likewise.
8272         * math/w_coshl.c (__coshl): Likewise.
8273         * math/w_exp10l.c (__exp10l): Likewise.
8274         * math/w_exp2l.c (__exp2l): Likewise.
8275         * math/w_fmodl.c (__fmodl): Likewise.
8276         * math/w_hypotl.c (__hypotl): Likewise.
8277         * math/w_j0l.c (__j0l, __y0l): Likewise.
8278         * math/w_j1l.c (__j1l, __y1l): Likewise.
8279         * math/w_jnl.c (__jnl, __ynl): Likewise.
8280         * math/w_lgammal.c (__lgammal): Likewise.
8281         * math/w_log10l.c (__log10l): Likewise.
8282         * math/w_log2l.c (__log2l): Likewise.
8283         * math/w_logl.c (__logl): Likewise.
8284         * math/w_powl.c (__powl): Likewise.
8285         * math/w_remainderl.c (__remainderl): Likewise.
8286         * math/w_scalbl.c (sysv_scalbl): Likewise.
8287         * math/w_sinhl.c (__sinhl): Likewise.
8288         * math/w_sqrtl.c (__sqrtl): Likewise.
8289         * math/w_tgammal.c (__tgammal): Likewise.
8290         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8291         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8292         * math/libm-test.inc (acos_test): Add more tests.
8293         (acosh_test): Likewise.
8294         (asin_test): Likewise.
8295         (atanh_test): Likewise.
8296         (exp_test): Likewise.
8297         (exp10_test): Likewise.
8298         (exp2_test): Likewise.
8299         (expm1_test): Likewise.
8300         (lgamma_test): Likewise.
8301         (log_test): Likewise.
8302         (log10_test): Likewise.
8303         (log1p_test): Likewise.
8304         (log2_test): Likewise.
8305         (pow_test): Do not allow some spurious overflow exceptions.
8306         (sqrt_test): Add more tests.
8307         (tgamma_test): Likewise.
8308         (y0_test): Likewise.
8309         (y1_test): Likewise.
8310         (yn_test): Likewise.
8312 2012-03-27  Anton Blanchard  <anton@samba.org>
8314         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8315         MAP_HUGETLB.
8316         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8317         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8318         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8320 2012-03-27  David S. Miller  <davem@davemloft.net>
8322         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8324         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8325         have-as-vis3 check.
8327 2012-03-27  Andreas Jaeger  <aj@suse.de>
8329         * sysdeps/x86_64/elf/configure.in: Moved to ...
8330         * sysdeps/x86_64/configure.in: ... here.
8331         * sysdeps/x86_64/elf/start.S: Moved to ...
8332         * sysdeps/x86_64/start.S: ... here.
8333         * sysdeps/x86_64/elf/configure: Delete.
8335         * sysdeps/x86_64/configure.in: Merge contents from
8336         sysdeps/i386/configure.in (without i686 check).
8338         * sysdeps/i386/elf/Versions: Merge into ...
8339         * sysdeps/i386/Versions: ... this.
8340         * sysdeps/i386/elf/Versions: Delete file.
8341         * sysdeps/i386/elf/start.S: Moved to ...
8342         * sysdeps/i386/start.S: ...here.
8343         * sysdeps/i386/elf/configure.in: Merge into...
8344         * sysdeps/i386/configure.in: ...here.
8345         * sysdeps/i386/elf/configure.in: Delete file.
8346         * sysdeps/i386/elf/configure: Delete file.
8348         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8349         * debug/backtracesyms.c: ... here.
8350         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8351         * debug/backtracesymsfd.c: ... here.
8352         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8353         * sysdeps/generic/ifunc-sel.h: ... here.
8355         * sysdeps/unix/i386/start.c: Delete file.
8356         * sysdeps/unix/sparc/start.c: Delete file.
8357         * sysdeps/unix/start.c: Delete file.
8359         * sysdeps/sh/elf/configure.in: Moved to ...
8360         * sysdeps/sh/configure.in: ... here.
8361         * sysdeps/sh/elf/start.S: Moved to ...
8362         * sysdeps/sh/start.S: ... here.
8363         * sysdeps/sh/elf/configure: Delete file.
8365         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8366         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8367         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8368         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8369         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8370         * sysdeps/powerpc/powerpc64/start.S: here.
8371         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8372         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8373         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8374         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8375         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8377         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8378         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8379         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8380         * sysdeps/powerpc/powerpc32/start.S: ... here.
8381         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8382         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8383         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8385         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8386         * sysdeps/powerpc/ifunc-sel.h: ... here.
8387         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8388         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8390         * sysdeps/sparc/elf/configure.in: Moved to ...
8391         * sysdeps/sparc/configure.in: ... here.
8392         * sysdeps/sparc/elf/configure: Delete file.
8393         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8394         * sysdeps/sparc/sparc32/start.S: ... here.
8395         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8396         * sysdeps/sparc/sparc64/start.S: ... here.
8397         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8398         * sysdeps/sparc/sparc32/Makefile: ... this.
8399         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8400         * sysdeps/sparc/sparc64/Makefile: ... this.
8402         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8403         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8404         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8405         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8406         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8407         * sysdeps/s390/s390-32/setjmp.S: ... here.
8408         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8409         * sysdeps/s390/s390-32/configure.in: ... here.
8410         * sysdeps/s390/s390-32/elf/configure: Delete file.
8411         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8412         * sysdeps/s390/s390-32/start.S: ... here.
8414         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8415         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8416         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8417         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8418         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8419         * sysdeps/s390/s390-64/setjmp.S: ... here.
8420         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8421         * sysdeps/s390/s390-64/configure.in: ... here
8422         * sysdeps/s390/s390-64/elf/configure: Delete file.
8423         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8424         * sysdeps/s390/s390-64/start.S: ... here.
8425         * sysdeps/s390/s390-64/elf/configure: Delete.
8427         * configure.in: Remove support for elf directories in sysdeps.
8429         * configure: Regenerated.
8430         * sysdeps/i386/configure: Regenerated.
8431         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8432         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8433         * sysdeps/s390/s390-32/configure: Regenerated.
8434         * sysdeps/s390/s390-64/configure: Regenerated.
8435         * sysdeps/sh/configure: Regenerated.
8436         * sysdeps/sparc/configure: Regenerated.
8437         * sysdeps/x86_64/configure: Regenerated.
8439 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8441         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8443         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8444         denormal result into account.
8446 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8448         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8449         Reported by Allan McRae <allan@archlinux.org>.
8451 2012-03-23  Jeff Law  <law@redhat.com>
8453         * nss/getnssent.c (__nss_getent): Fix typo.
8455 2012-03-23  David S. Miller  <davem@davemloft.net>
8457         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8459 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8461         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8462         to pad to uint64_t for each field.
8463         (dl_tls_index): Replace unsigned long with uint64_t.
8465 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8466         Paul Pluzhnikov  <ppluzhnikov@google.com>
8468         [BZ #6528]
8469         * grp/Makefile (otherlibs): Don't set it.
8470         * inet/Makefile (otherlibs): Likewise.
8471         * login/Makefile (otherlibs): Likewise.
8472         * nscd/Makefile (otherlibs): Likewise.
8473         * posix/Makefile (otherlibs): Likewise.
8474         * pwd/Makefile (otherlibs): Likewise.
8475         * rt/Makefile (otherlibs): Likewise.
8476         * sunrpc/Makefile (otherlibs): Likewise.
8477         * nss/Makefile (otherlibs): Likewise.
8478         Add libnss_files to routines and static-only-routines.
8479         ($(objpfx)getent): Remove rule.
8480         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8481         static-only-routines.
8483 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8485         [BZ #13892]
8486         * math/s_cexp.c: Include <float.h>.
8487         (__cexp): Handle exp result overflowing not necessarily
8488         overflowing both real and imaginary parts of result.
8489         * math/s_cexpf.c: Likewise.
8490         * math/s_cexpl.c: Likewise.
8491         * math/libm-test.inc (cexp_test): Add more tests.
8492         * sysdeps/i386/fpu/libm-test-ulps: Update.
8493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8495 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8497         * include/link.h (ELFW): New macro.
8498         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8499         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8501 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8503         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8504         with uint64_t.
8506 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8508         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8509         declaration.
8510         (struct La_x32_retval): Likewise.
8512 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8514         * sysdeps/x86_64/preconfigure.in: New file.
8515         * sysdeps/x86_64/preconfigure: New generated file.
8517 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8519         [BZ #13824]
8520         * math/e_exp2l.c: Include <float.h>.
8521         (__ieee754_exp2l): Handle overflow and underflow cases
8522         separately.  Only pass fractional part of argument to
8523         __ieee754_expl.
8524         * math/libm-test.inc (exp2_test): Add more tests.
8526         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8527         negating x to take absolute value.
8528         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8529         Likewise.
8530         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8531         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8532         Likewise.
8533         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8534         computing low part if x was negated.
8535         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8537 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8539         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8540         la_x32_gnu_pltexit.
8541         (pltexit): Cast int_retval to ptrdiff_t.
8542         * elf/tst-auditmod3b.c: Likewise.
8543         * elf/tst-auditmod4b.c: Likewise.
8544         * elf/tst-auditmod5b.c: Likewise.
8545         * elf/tst-auditmod6b.c: Likewise.
8546         * elf/tst-auditmod6c.c: Likewise.
8547         * elf/tst-auditmod7b.c: Likewise.
8549         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8550         and x32_gnu_pltexit.
8552         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8553         __ELF_NATIVE_CLASS.
8554         (La_x32_regs): New macro.
8555         (La_x32_retval): Likewise.
8556         (la_x32_gnu_pltenter): New function prototype.
8557         (la_x32_gnu_pltexit): Likewise.
8559 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8561         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8562         exponent.
8564         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8566         * configure.in (libc_cv_cc_nofma): Check for option to disable
8567         generation of FMA instructions.
8568         * configure: Regenerate.
8569         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8570         * sysdeps/ieee754/dbl-64/Makefile: New file.
8571         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8572         Remove brandred-fma4.
8573         (CFLAGS-brandred-fma4.c): Remove.
8574         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8575         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8576         define.
8577         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8578         define.
8580 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8582         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8583         LLONG_MAX != LONG_MAX.
8584         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8585         (_fitoa_word): Likewise.
8586         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8587         LLONG_MAX != LONG_MAX.
8588         * stdio-common/_itowa.h: Include <_itoa.h>.
8589         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8590         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8591         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8592         only if not defined.
8593         (_ITOA_WORD_TYPE): Likewise.
8594         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8595         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8597 2012-03-21  David S. Miller  <davem@davemloft.net>
8599         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8601 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8603         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8604         of x86_64 when setting libc_cv_slibdir, libdir and
8605         libc_cv_localedir.
8606         * sysdeps/unix/sysv/linux/configure: Regenerated.
8608 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8610         * manual/lang.texi (Old Varargs): Remove section.
8611         (How Variadic): Update menu.
8612         (va_start): Do not mention varargs.h.
8614 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8615             Joseph Myers  <joseph@codesourcery.com>
8617         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8618         link test.
8619         * configure: Regenerated.
8621 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8623         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8624         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8625         conformtest.pl
8627 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8629         * NOTES: Remove.
8630         * Makefile (files-for-dist): Remove NOTES.
8631         (NOTES): Remove rule.
8632         * README: Don't refer to NOTES.
8633         * manual/creature.texi: Don't include macros.texi.
8634         * manual/intro.texi (creature.texi): Remove comment referring to
8635         NOTES.
8637         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8638         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8639         * configure: Regenerated.
8640         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8641         LIBC_TRY_CC_OPTION.
8642         (libc_cv_as_i686): Likewise.
8643         (libc_cv_cc_avx): Likewise.
8644         (libc_cv_cc_sse2avx): Likewise.
8645         (libc_cv_cc_fma4): Likewise.
8646         (libc_cv_cc_novzeroupper): Likewise.
8647         * sysdeps/i386/configure: Regenerated.
8649         [BZ #13883]
8650         * sysdeps/i386/fpu/s_cexp.S: Remove.
8651         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8652         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8653         * math/libm-test.inc (cexp_test): Add more tests.
8654         * sysdeps/i386/fpu/libm-test-ulps: Update.
8655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8657 2012-03-21  Allan McRae  <allan@archlinux.org>
8659         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8661 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8663         [BZ #13871]
8664         * math/w_exp2.c: Do not include <float.h>.
8665         (o_threshold, u_threshold): Remove.
8666         (__exp2): Calculate result before checking finiteness and calling
8667         __kernel_standard.
8668         * math/w_exp2f.c: Likewise.
8669         * math/w_exp2l.c: Likewise.
8670         * math/libm-test.inc (exp2_test): Require overflow exception for
8671         1e6 input.
8673         [BZ #3866]
8674         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8675         range of signed 64-bit integers before using fistpll.  Remove
8676         checks for whether integers fit in mantissa bits.
8677         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8678         the range of signed 32-bit integers before using fistpl.  Remove
8679         checks for whether integers fit in mantissa bits.
8680         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8681         (__ieee754_powl): Test for y outside the range of signed 64-bit
8682         integers before using fistpll.  Reduce 64-bit values to 63-bit
8683         ones as needed.
8684         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8685         divide-by-zero is raised for zero to large negative powers.
8686         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8687         (__ieee754_powl): Test for y outside the range of signed 64-bit
8688         integers before using fistpll.  Reduce 64-bit values to 63-bit
8689         ones as needed.
8690         * math/libm-test.inc (pow_test): Add more tests.
8692 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8694         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8695         <stdio-common/_itoa.h>.
8696         * debug/segfault.c: Likewise.
8697         * elf/dl-cache.c: Likewise.
8698         * elf/dl-minimal.c: Likewise.
8699         * elf/dl-misc.c: Likewise.
8700         * elf/dl-sysdep.c: Likewise.
8701         * elf/dl-version.c: Likewise.
8702         * elf/rtld.c: Likewise.
8703         * hurd/hurdsock.c: Likewise.
8704         * hurd/lookup-retry.c: Likewise.
8705         * malloc/malloc.c: Likewise.
8706         * malloc/mtrace.c: Likewise.
8707         * nscd/nscd_getgr_r.c: Likewise.
8708         * nscd/nscd_getpw_r.c: Likewise.
8709         * nscd/nscd_getserv_r.c: Likewise.
8710         * posix/getopt_init.c: Likewise.
8711         * posix/wordexp.c: Likewise.
8712         * stdio-common/_itoa.c: Likewise.
8713         * stdio-common/printf_fphex.c: Likewise.
8714         * stdio-common/vfprintf.c: Likewise.
8715         * string/_strerror.c: Likewise.
8716         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8717         * sysdeps/i386/i686/hp-timing.h: Likewise.
8718         * sysdeps/mach/_strerror.c: Likewise.
8719         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8720         * sysdeps/mach/hurd/sethostid.c: Likewise.
8721         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8722         * sysdeps/mach/xpg-strerror.c: Likewise.
8723         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8724         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8725         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8726         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8727         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8728         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8729         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8730         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8731         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8732         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8733         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8734         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8735         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8736         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8737         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8738         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8739         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8740         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8741         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8742         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8743         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8745         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8747         * stdio-common/_itoa.h: Moved to ...
8748         * sysdeps/generic/_itoa.h: Here.
8750         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8752         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8753         instead of "_itoa.h" and "_itowa.h".
8754         * stdio-common/vfprintf.: Likewise.
8756 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8758         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8759         <bits/wordsize.h>.
8760         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8761         (__signbit): Likwise.
8762         (llrintf): Likwise.
8763         (llrint): Likwise.
8765 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8767         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8768         __WORDSIZE != 64.
8770 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8772         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8773         OVERFLOW_EXCEPTION_OK.
8774         * math/libm-test.inc ("Philosophy"): Update comment about
8775         exception testing.
8776         (OVERFLOW_EXCEPTION): Define.
8777         (OVERFLOW_EXCEPTION_OK): Likewise.
8778         (INVALID_EXCEPTION_OK): Renumber.
8779         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8780         (IGNORE_ZERO_INF_SIGN): Likewise.
8781         (test_exceptions): Handle FE_OVERFLOW.
8782         (exp10_test): Expect overflow exceptions.
8783         (exp2_test): Likewise.
8784         (expm1_test): Likewise.
8785         (nextafter_test): Likewise.
8786         (pow_test): Likewise.
8787         (scalbn_test): Likewise.
8788         (scalbln_test): Likewise.
8790 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8792         * sysdeps/x86_64/bits/atomic.h
8793         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8794         64bit integer.
8795         (atomic_exchange_acq): Likewise.
8796         (__arch_exchange_and_add_body): Likewise.
8797         (__arch_add_body): Likewise.
8798         (atomic_add_negative): Likewise.
8799         (atomic_add_zero): Likewise.
8801 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8803         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8804         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8806 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8808         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8809         Check __x86_64__ instead of __WORDSIZE.
8811 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8813         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8815 2012-03-19  David S. Miller  <davem@davemloft.net>
8817         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8819         * sysdeps/sparc/fpu/fenv_private.h: New file.
8820         * sysdeps/sparc/fpu/math_private.h: Use it.
8821         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8822         Remove.
8823         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8824         (libc_feholdexcept_setroundl): Remove.
8825         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8826         Remove.
8827         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8828         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8830 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8832         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8833         int64_t instead of long int.
8834         (INSERT_WORDS64): Likwise.
8836 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8838         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8839         _Unwind_GetCFA return to _Unwind_Ptr first.
8841 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8843         [BZ #13629]
8844         * math/s_clog.c: Include <float.h>.
8845         (__clog): Scale large or subnormal inputs.
8846         * math/s_clogf.c: Likewise.
8847         * math/s_clogl.c: Likewise.
8848         * math/s_clog10.c: Include <float.h>.
8849         (M_LOG10_2): Define.
8850         (__clog10): Scale large or subnormal inputs.
8851         * math/s_clog10f.c: Likewise.
8852         * math/s_clog10l.c: Likewise.
8853         * math/libm-test.inc (clog_test): Add more tests.
8854         (clog10_test): Likewise.
8855         * sysdeps/i386/fpu/libm-test-ulps: Update.
8856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8858         [BZ #11451]
8859         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8860         x and y.
8861         * math/libm-test.inc (atan2_test): Add another test.
8863         * Makerules (common-objdir-compile): Remove.
8864         * sysdeps/unix/Makefile (config-generated): Do not add
8865         $(unix-generated) to variable.
8866         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8867         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8868         Remove rule.
8869         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8870         Likewise.
8871         [generic bits/local_lim.h] (before-compile): Do not append to
8872         variable.
8873         [generic bits/local_lim.h] (common-generated): Likewise.
8874         [generic sys/param.h] (before-compile): Do not append to variable.
8875         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8876         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8877         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8878         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8879         include.
8880         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8881         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8882         [generic sys/param.h] ($(addprefix
8883         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8884         [generic sys/param.h] (common-generated): Do not append to
8885         variable.
8886         [generic sys/param.h] (sysdep_headers): Likewise.
8887         [generic bits/errno.h] (before-compile): Do not append to
8888         variable.
8889         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8890         rule.
8891         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8892         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8893         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8894         [generic bits/errno.h] (common-generated): Do not append to
8895         variable.
8896         [generic bits/ioctls.h] (before-compile): Do not append to
8897         variable.
8898         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8899         rule.
8900         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8901         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8902         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8903         rule.
8904         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8905         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8906         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8907         [generic bits/ioctls.h] (common-generated): Do not append to
8908         variable.
8909         [generic sys/syscall.h] (syscall.h): Remove variable.
8910         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8911         rule.
8912         [generic sys/syscall.h] (before-compile): Do not append to
8913         variable.
8914         [generic sys/syscall.h] (common-generated): Likewise.
8915         * sysdeps/unix/errnos-tmpl.c: Remove file.
8916         * sysdeps/unix/errnos.awk: Likewise.
8917         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8918         * sysdeps/unix/ioctls.awk: Likewise.
8919         * sysdeps/unix/mk-local_lim.c: Likewise.
8920         * sysdeps/unix/snarf-ioctls: Likewise.
8922 2012-03-19  Richard Henderson  <rth@twiddle.net>
8924         * sysdeps/i386/fpu/fenv_private.h: New file.
8925         * sysdeps/i386/fpu/math_private.h: Use it.
8926         (math_opt_barrier, math_force_eval): Remove.
8927         (libc_feholdexcept_setround_53bit): Remove.
8928         (libc_feupdateenv_53bit): Remove.
8929         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8930         (math_opt_barrier, math_force_eval): Remove.
8931         (libc_feholdexcept): Remove.
8932         (libc_feholdexcept_setround): Remove.
8933         (libc_fetestexcept, libc_fesetenv): Remove.
8934         (libc_feupdateenv_test): Remove.
8935         (libc_feupdateenv, libc_feholdsetround): Remove.
8936         (libc_feresetround): Remove.
8938         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8939         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8941         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8942         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8943         (libc_feupdateenv_testl): New.
8944         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8945         (libc_feupdateenv_testf): New.
8946         (libc_feupdateenv): Use libc_feupdateenv_test.
8947         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8948         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8950         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8951         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8952         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8953         (libc_feresetround_noex): New.
8954         (libc_feresetround_noexf): New.
8955         (libc_feresetround_noexl): New.
8956         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8957         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8958         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8959         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8960         SET_RESTORE_ROUND.
8961         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8962         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8963         (__cos): Likewise.
8964         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8965         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8966         SET_RESTORE_ROUND_NOEX.
8967         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8968         SET_RESTORE_ROUND_NOEXF.
8969         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8970         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8971         (libc_feholdsetroundf): New.
8972         (libc_feresetround, libc_feresetroundf): New.
8974         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8975         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8976         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8978         * sysdeps/generic/math_private.h: Include <fenv.h>.
8979         (default_libc_feholdexcept): New.
8980         (default_libc_feholdexcept_setround): New.
8981         (default_libc_fesetenv, default_libc_feupdateenv): New.
8982         (libc_feholdexcept): Only define if undefined.
8983         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8984         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8985         (libc_feholdexcept_setroundl): Likewise.
8986         (libc_feholdexcept_setround_53bit): Likewise.
8987         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8988         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8989         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8990         (libc_feupdateenv_53bit): Likewise.
8991         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8992         (libc_feholdexcept): Convert from macro to inline function.
8993         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8994         (libc_fesetenv, libc_feupdateenv): Likewise.
8996         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8997         not previously defined.
8998         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8999         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9000         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9001         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9002         * sysdeps/ieee754/flt-32/math_private.h: New file.
9003         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9004         math_private.h below SET_FLOAT_WORD.
9005         (__isnan, __isinf_ns, __finite): Remove.
9006         (__isnanf, __isinf_nsf, __finitef): Remove.
9008 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9010         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9012 2012-03-17  David S. Miller  <davem@davemloft.net>
9014         [BZ #6471]
9015         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9016         for 2.16.
9018 2012-03-16  David S. Miller  <davem@davemloft.net>
9020         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9021         warnings.
9023         [BZ #6471]
9024         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9025         properly.
9026         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9027         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9028         sysdep_routines when subdir is sysvipc.
9029         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9030         __getshmlba helper.
9032         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9034 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9036         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9037         [__LP64__].
9039 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9041         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9042         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9043         (__lround): Renamed to ...
9044         (__llround): This.  Replace long int with long long int.
9045         Define lround functions as aliases of llround functions.
9046         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9048 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9050         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9051         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9052         adresses to uintptr_t.  Replace "long int" and "unsigned long
9053         int" with "greg_t" on va_arg.
9055 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9057         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9058         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9060         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9061         Move e_machine check before EI_CLASS check.  Handle x32
9062         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9063         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9064         SKIP_EM_IA_64 and include
9065         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9067         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9068         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9069         (add_system_dir): New macro.
9071         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9072         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9074 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9076         [BZ #2551]
9077         [BZ #2552]
9078         [BZ #2553]
9079         [BZ #2554]
9080         [BZ #2562]
9081         [BZ #2563]
9082         [BZ #2565]
9083         [BZ #2566]
9084         [BZ #2576]
9085         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9086         (y0): Likewise.
9087         * math/w_j0f.c (j0f): Likewise.
9088         (y0f): Likewise.
9089         * math/w_j0l.c (__j0l): Likewise.
9090         (__y0l): Likewise.
9091         * math/w_j1.c (j1): Likewise.
9092         (y1): Likewise.
9093         * math/w_j1f.c (j1f): Likewise.
9094         (y1f): Likewise.
9095         * math/w_j1l.c (__j1l): Likewise.
9096         (__y1l): Likewise.
9097         * math/w_jn.c (jn): Likewise.
9098         (yn): Likewise.
9099         * math/w_jnf.c (jnf): Likewise.
9100         (ynf): Likewise.
9101         * math/w_jnl.c (__jnl): Likewise.
9102         (__ynl): Likewise.
9103         * math/libm-test.inc (j0_test): Add more tests.
9104         (j1_test): Likewise.
9105         (jn_test): Likewise.  Add trailing semicolon to existing test.
9106         (y0_test): Likewise.
9107         (y1_test): Likewise.
9108         * sysdeps/i386/fpu/libm-test-ulps: Update.
9109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9111         [BZ #13851]
9112         [BZ #13854]
9113         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9114         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9115         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9116         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9117         (__tanl): Set errno for infinite argument.
9118         * sysdeps/i386/fpu/mptan.c: Remove.
9119         * sysdeps/i386/fpu/s_tan.S: Likewise.
9120         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9121         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9122         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9123         * math/libm-test.inc (tan_test): Add more tests and enable more
9124         tests for double and long double.
9125         * sysdeps/i386/fpu/libm-test-ulps: Update.
9126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9128 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9130         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9131         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9133 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9135         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9136         * configure.in: Use it for both main tree and add-ons.
9137         * configure: Regenerated.
9139 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9141         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9143 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9145         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9146         in comment.
9148         [BZ #13851]
9149         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9150         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9151         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9152         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9153         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9154         infinite argument.
9155         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9156         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9157         != 0 for prec == 2.
9158         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9159         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9160         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9161         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9162         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9163         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9164         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9165         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9166         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9167         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9168         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9169         * math/libm-test.inc (cos_test): Add more tests and enable more
9170         tests for long double.
9171         (sin_test): Likewise.
9172         (sincos_test): Likewise.
9173         * sysdeps/i386/fpu/libm-test-ulps: Update.
9174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9176 2012-03-16  David S. Miller  <davem@davemloft.net>
9178         * sysdeps/sparc/fpu/math_private.h: New file.
9180 2012-03-15  David S. Miller  <davem@davemloft.net>
9182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9183         file.
9184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9186         file.
9187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9188         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9189         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9190         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9191         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9192         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9193         sysdep routines.
9194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9196         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9197         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9199         * sysdeps/sparc/sparc-ifunc.h: New file.
9200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9201         sparc-ifunc.h
9202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9204         Likewise.
9205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9206         Likewise.
9207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9211         Likewise.
9212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9217         Likewise.
9218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9219         Likewise.
9220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9224         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9225         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9226         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9227         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9228         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9229         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9230         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9231         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9232         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9233         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9234         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9235         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9236         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9237         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9238         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9239         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9240         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9241         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9242         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9243         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9245 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9247         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9248         scaling.
9249         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9251 2012-03-15  Andreas Jaeger  <aj@suse.de>
9253         [BZ #13852]
9254         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9255         ieee754/flt-32 implementation for sin, cos and sincos.
9256         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9257         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9258         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9259         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9260         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9261         ieee754/flt-32 implementation for tan.
9263         * math/libm-test.inc (cos_test): Enable some large input tests for
9264         float as well
9265         (sin_test): Likewise.
9266         (sincos_test): Likewise.
9267         (tan_test): Add tests for large input.
9269         * sysdeps/i386/fpu/libm-test-ulps: Update.
9271 2012-03-15  Andreas Jaeger  <aj@suse.de>
9273         [BZ #13658]
9274         * math/libm-test.inc (cos_test): Add more test cases.
9275         (sin_test): Likewise.
9276         (sincos_test): Likewise.
9278 2012-03-15  Andreas Jaeger  <aj@suse.de>
9280         [BZ #13837]
9281         * math/libm-test.inc (cos_test): Add a test case for large input
9282         value.
9283         (sin_test): Likewise.
9284         (sincos_test): Likewise.
9286 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9287         Joseph Myers  <joseph@codesourcery.com>
9289         [BZ #13658]
9290         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9291         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9292         * sysdeps/i386/fpu/branred.c: Likewise.
9293         * sysdeps/i386/fpu/dosincos.c: Likewise.
9294         * sysdeps/i386/fpu/mpa.c: Likewise.
9295         * sysdeps/i386/fpu/s_cos.S: Likewise.
9296         * sysdeps/i386/fpu/s_sin.S: Likewise.
9297         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9298         * sysdeps/i386/fpu/sincos32.c: Likewise.
9300         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9301         Define.
9302         (libc_feupdateenv_53bit): Define.
9303         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9304         Define.
9305         (libc_feupdateenv_53bit): Define.
9307         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9308         53 bit (without extend i386 double precision).
9310         * math/libm-test.inc (sincos_test): Add tests for large input.
9311         (sin): Likewise.
9312         (cos): Likewise.
9314         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9316 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9318         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9320 2012-03-15  David S. Miller  <davem@davemloft.net>
9322         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9323         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9324         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9325         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9330         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9331         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9332         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9333         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9334         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9335         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9336         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9338         file.
9339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9341         file.
9342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9344         file.
9345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9347         file.
9348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9349         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9350         fmin/fmax sysdep routines.
9351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9353 2012-03-14  David S. Miller  <davem@davemloft.net>
9355         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9356         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9357         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9358         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9359         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9360         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9361         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9362         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9363         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9364         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9365         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9366         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9367         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9368         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9369         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9370         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9371         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9372         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9373         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9374         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9375         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9376         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9377         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9378         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9379         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9380         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9381         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9382         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9383         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9384         routines.
9385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9386         file.
9387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9389         file.
9390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9392         file.
9393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9395         file.
9396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9398         file.
9399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9401         file.
9402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9403         file.
9404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9405         file.
9406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9407         file.
9408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9409         New file.
9410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9411         file.
9412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9413         file.
9414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9416         file.
9417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9419         file.
9420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9422         file.
9423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9425         VIS3 routines.
9427         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9428         New file.
9430         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9432         * sysdeps/sparc/configure.in: New file.
9433         * sysdeps/sparc/configure: Generate.
9434         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9435         * configure: Regenerate.
9436         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9437         * config.make.in (have-as-vis3): New.
9438         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9439         available use -Av9d instead of -Av9a.
9440         * sysdeps/sparc/sparc64/Makefile: Likewise.
9441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9443         New file.
9444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9445         file.
9446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9447         New file.
9448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9449         file.
9450         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9451         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9452         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9453         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9454         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9456         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9457         fzeros/fnegs to load 0x80000000 into a float register instead of
9458         using the stack.
9459         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9461 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9463         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9464         bits/syscall.h.
9465         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9466         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9467         ($(inst_includedir)/bits/syscall.h): Remove rule.
9468         ($(objpfx)bits/syscall.d): Include instead of
9469         $(objpfx)syscall-list.d.
9470         (generated): Change syscall-list.h and syscall-list.d to
9471         bits/syscall.h and bits/syscall.d.
9473 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9475         [BZ #13846]
9476         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9478 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9480         [BZ #13841]
9481         * math/s_csqrt.c: Include <float.h>.
9482         (__csqrt): Scale large or subnormal inputs.
9483         * math/s_csqrtf.c: Likewise.
9484         * math/s_csqrtl.c: Likewise.
9485         * math/libm-test.inc (csqrt_test): Add more tests.
9486         * sysdeps/i386/fpu/libm-test-ulps: Update.
9487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9489         [BZ #13840]
9490         * math/libm-test.inc (hypot_test): Add more tests.
9492 2012-03-13  David S. Miller  <davem@davemloft.net>
9494         [BZ #13840]
9495         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9496         double-precision for the calculation instead of scaling.
9498 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9500         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9501         manipulate bits before adding and subtracting TWO52[sx].
9502         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9503         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9504         Likewise.
9505         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9507 2012-03-13  David S. Miller  <davem@davemloft.net>
9509         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9510         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9511         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9512         rtld-global-offsets.h
9513         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9515         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9516         large parameters.
9518         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9520         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9521         'err' in the ifdef scope in which it is actually used.
9523         * nss/nss_db/db-init.c: Include string.h
9525 2012-03-12  David S. Miller  <davem@davemloft.net>
9527         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9528         masking out of the most significant byte of random value used.
9529         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9530         Fix coding style in previous change.
9532         * sysdeps/unix/sysv/linux/kernel-features.h
9533         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9534         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9535         expression.
9536         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9537         later.
9539 2012-03-11  David S. Miller  <davem@davemloft.net>
9541         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9542         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9543         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9544         for 'resultvar' otherwise things get truncated on 64-bit.
9546         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9547         Fix masking out of the most significant byte of random value used.
9549         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9551 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9553         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9555 2012-03-09  David S. Miller  <davem@davemloft.net>
9557         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9558         variables with appropriate CPP guards.
9559         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9560         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9561         on resulting framesize and the management of the outregs buffer for pltexit.
9562         Preserve floating point return values across _dl_call_pltexit call.
9563         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9564         framesize and the management of the outregs buffer for pltexit.
9565         Preserve floating point return values across _dl_call_pltexit
9566         call.
9567         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9568         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9569         (print_exit): Fix format string for return register value.
9571 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9573         * sunrpc/Makefile (others): Add rpcgen.
9574         ($(objpfx)rpcgen): Remove special build rule and dependency on
9575         libc.
9576         * sunrpc/rpcgen.c: New file.
9578 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9580         [BZ #13673]
9581         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9582         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9583         * sysdeps/i386/crti.S: Likewise.
9584         * sysdeps/i386/crtn.S: Likewise.
9585         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9586         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9587         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9588         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9589         * sysdeps/sh/crti.S: Likewise.
9590         * sysdeps/sh/crtn.S: Likewise.
9591         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9593         [BZ #13673]
9594         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9595         with URL.
9596         * locale/programs/locfile-kw.gperf: Likewise.
9597         * locale/programs/charmap-kw.h: Regenerated.
9598         * locale/programs/locfile-kw.h: Likewise.
9600         [BZ #13673]
9601         * intl/plural.y: Replace FSF snail mail address with URL.
9602         * intl/plural.c: Regenerated.
9604 2012-03-09  Richard Henderson  <rth@twiddle.net>
9606         * include/math_private.h: Remove file.
9607         * math/math_private.h: Move file ...
9608         * sysdeps/generic/math_private.h: ... here.
9610         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9611         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9612         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9614         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9615         and <math_private.h>.
9616         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9617         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9618         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9619         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9620         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9621         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9622         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9623         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9624         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9625         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9626         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9627         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9628         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9629         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9630         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9631         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9632         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9633         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9634         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9635         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9636         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9637         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9638         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9639         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9640         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9641         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9642         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9643         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9644         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9645         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9646         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9647         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9648         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9649         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9650         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9651         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9652         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9653         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9654         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9655         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9656         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9657         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9658         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9659         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9660         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9661         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9662         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9663         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9664         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9665         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9666         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9667         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9668         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9669         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9670         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9671         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9672         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9673         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9674         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9675         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9676         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9677         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9678         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9679         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9680         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9681         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9682         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9683         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9684         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9685         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9686         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9687         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9688         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9689         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9690         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9691         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9692         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9693         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9694         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9695         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9696         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9697         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9698         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9699         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9700         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9701         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9702         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9703         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9704         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9705         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9706         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9707         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9708         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9709         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9710         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9711         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9712         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9713         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9714         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9715         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9716         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9717         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9718         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9719         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9720         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9721         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9722         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9723         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9724         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9725         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9726         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9727         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9728         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9729         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9730         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9731         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9732         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9733         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9734         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9735         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9736         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9737         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9738         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9739         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9740         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9741         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9742         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9743         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9744         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9745         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9746         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9747         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9748         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9749         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9750         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9751         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9752         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9753         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9754         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9755         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9756         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9757         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9758         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9759         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9760         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9761         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9762         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9763         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9764         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9765         * sysdeps/ieee754/k_standard.c: Likewise.
9766         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9767         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9768         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9769         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9770         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9771         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9772         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9773         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9774         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9775         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9776         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9777         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9778         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9779         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9780         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9781         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9782         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9783         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9784         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9785         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9786         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9787         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9788         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9789         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9790         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9791         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9792         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9793         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9794         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9795         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9796         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9797         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9798         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9799         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9800         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9801         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9802         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9803         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9804         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9805         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9806         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9807         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9808         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9809         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9810         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9811         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9812         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9813         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9814         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9815         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9816         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9817         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9818         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9820         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9821         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9822         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9823         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9824         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9825         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9826         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9827         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9828         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9829         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9830         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9831         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9832         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9833         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9834         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9835         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9836         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9837         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9838         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9839         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9840         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9841         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9842         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9843         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9844         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9845         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9846         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9847         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9848         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9849         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9850         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9851         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9852         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9853         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9854         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9855         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9856         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9857         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9858         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9859         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9860         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9861         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9862         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9863         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9864         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9865         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9866         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9867         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9868         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9869         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9870         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9871         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9872         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9873         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9874         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9875         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9876         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9877         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9878         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9879         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9880         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9881         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9882         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9883         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9884         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9885         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9886         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9887         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9888         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9889         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9890         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9891         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9892         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9893         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9894         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9895         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9896         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9897         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9898         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9899         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9900         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9901         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9902         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9903         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9904         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9905         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9906         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9907         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9908         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9909         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9910         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9911         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9912         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9913         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9914         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9915         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9916         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9917         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9918         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9919         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9920         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9921         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9922         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9923         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9924         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9925         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9926         * sysdeps/ieee754/s_lib_version.c: Likewise.
9927         * sysdeps/ieee754/s_matherr.c: Likewise.
9928         * sysdeps/ieee754/s_signgam.c: Likewise.
9929         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9930         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9931         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9932         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9933         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9934         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9935         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9936         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9937         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9938         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9939         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9940         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9941         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9942         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9943         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9944         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9945         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9946         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9947         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9948         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9949         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9951 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9953         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9954         * sunrpc/rpc_main.c: Likewise.
9955         * sunrpc/rpc_svcout.c: Likewise.
9957 2012-03-09  David S. Miller  <davem@davemloft.net>
9959         * include/math_private.h: New file.
9961 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9963         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9964         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9965         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9966         from <bits/socket_type.h>.
9967         (enum __socket_type): Don't define here.
9968         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9969         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9970         bits/socket_type.h.
9972         [BZ #13566]
9973         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9974         checking __USE_GNU.
9976         * Makerules ($(inst_includedir)/%.h): New rule.
9977         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9978         (install-others): Remove variable setting.
9979         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9981 2012-03-08  Richard Henderson  <rth@twiddle.net>
9983         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9984         from macro to inline function; merge with the
9985         !__LIBC_INTERNAL_MATH_INLINES version.
9986         (__ieee754_sqrtf): Likewise.
9988         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9989         to inline function.
9990         (__rintf, __floor, __floorf): Likewise.
9992         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9993         macro to inline function.
9994         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9996         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9997         not <math/math_private.h>.
9999 2012-03-08  David S. Miller  <davem@davemloft.net>
10001         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10002         copyright year.
10003         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10005 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10007         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10008         normalization.
10009         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10010         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10012 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10014         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10015         be defined individually, they must be defined as a block.  Define
10016         S for printing a string instead of hidint the different by using a
10017         macro for adding the 'l'.
10018         * stdio-common/tst-fphex-wide.c: Adjust.
10020 2012-03-07  Marek Polacek  <polacek@redhat.com>
10022         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10024 2012-03-08  Marek Polacek  <polacek@redhat.com>
10026         [BZ #13806]
10027         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10028         * stdio-common/tst-fphex.c: Define a few macros to make the
10029         test reusable.  Use them.
10030         * stdio-common/tst-fphex-wide.c: New file.
10032 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10034         [BZ #6911]
10035         * manual/macros.texi (gnusystems): New macro.
10036         (nongnusystems): Likewise.
10037         (gnulinuxhurdsystems): Likewise.
10038         (gnuhurdsystems): Likewise..
10039         (gnulinuxsystems): Likewise.
10040         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10041         variants of the GNU system, not "GNU system".
10042         * manual/conf.texi: Likewise.
10043         * manual/errno.texi: Likewise.  Update example of errno macro
10044         expansion.
10045         * manual/filesys.texi: Likewise.
10046         (getumask): Document as specific to GNU/Hurd.
10047         * manual/install.texi: Likewise.  Reword some references to
10048         GNU/Linux.
10049         * manual/intro.texi: Likewise.
10050         * manual/io.texi: Likewise.
10051         (File Name Portability): Detail which constraints are inapplicable
10052         to all GNU systems and which are only inapplicable to GNU/Hurd.
10053         * manual/job.texi: Likewise.
10054         * manual/llio.texi: Likewise.
10055         (O_NOCTTY): Document as present on GNU/Linux.
10056         * manual/maint.texi: Likewise.
10057         * manual/memory.texi: Likewise.
10058         * manual/pattern.texi: Likewise.
10059         * manual/pipe.texi: Likewise.
10060         * manual/process.texi: Likewise.
10061         * manual/resource.texi: Likewise.
10062         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10063         child on GNU/Hurd.
10064         * manual/setjmp.texi: Likewise.
10065         * manual/signal.texi: Likewise.
10066         * manual/startup.texi: Likewise.
10067         * manual/stdio.texi: Likewise.
10068         * manual/terminal.texi: Likewise.
10069         (ONLCR): Document as POSIX.
10070         (OXTABS): Document availability on GNU/Linux as XTABS.
10071         (ONOEOT): Document availability separately from other bits.
10072         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10073         * manual/time.texi: Likewise.
10074         * manual/users.texi: Likewise.
10075         * INSTALL: Regenerated.
10076         * sysdeps/gnu/errlist.c: Regenerated.
10078         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10079         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10080         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10081         puts.
10082         * configure: Regenerated.
10084 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10086         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10087         default includes instead of AC_HEADER_CHECK.
10088         * sysdeps/i386/configure: Regenerated.
10090         [BZ #10716]
10091         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10092         * math/s_cacoshf.c (__cacoshf): Likewise.
10093         * math/s_cacoshl.c (__cacoshl): Likewise.
10094         * math/s_casinh.c (__casinh): Set signs of result from argument.
10095         * math/s_casinhf.c (__casinhf): Likewise.
10096         * math/s_casinhl.c (__casinhl): Likewise.
10097         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10098         (casinh_test): Add more tests.
10099         * sysdeps/i386/fpu/libm-test-ulps: Update.
10100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10102 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10104         * po/zh_TW.po: Update from translation team.
10106         * login/Makefile (distribute): Remove variable.
10107         * catgets/Makefile: Likewise.
10108         * mach/Makefile: Likewise.
10109         * malloc/Makefile: Likewise.
10110         * misc/Makefile: Likewise.
10111         * iconv/Makefile: Likewise.
10112         * nscd/Makefile: Likewise.
10113         * hurd/Makefile: Likewise.
10114         * manual/Makefile: Likewise.
10115         * locale/Makefile: Likewise.
10116         * intl/Makefile: Likewise.
10117         * conform/Makefile: Likewise.
10118         * nss/Makefile: Likewise.
10119         * time/Makefile: Likewise.
10120         * soft-fp/Makefile: Likewise.
10121         * dirent/Makefile: Likewise.
10122         * gmon/Makefile: Likewise.
10123         * po/Makefile: Likewise.
10124         * rt/Makefile: Likewise.
10125         * socket/Makefile: Likewise.
10126         * math/Makefile: Likewise.
10127         * signal/Makefile: Likewise.
10128         * debug/Makefile: Likewise.
10129         * elf/Makefile: Likewise.
10130         * timezone/Makefile: Likewise.
10131         * stdlib/Makefile: Likewise.
10132         * iconvdata/Makefile: Likewise.
10133         * sunrpc/Makefile: Likewise.
10134         * io/Makefile: Likewise.
10135         * argp/Makefile: Likewise.
10136         * inet/Makefile: Likewise.
10137         * hesiod/Makefile: Likewise.
10138         * grp/Makefile: Likewise.
10139         * csu/Makefile: Likewise.
10140         * wctype/Makefile: Likewise.
10141         * crypt/Makefile: Likewise.
10142         * libio/Makefile: Likewise.
10143         * string/Makefile: Likewise.
10144         * nis/Makefile: Likewise.
10145         * resolv/Makefile: Likewise.
10146         * stdio-common/Makefile: Likewise.
10147         * wcsmbs/Makefile: Likewise.
10148         * dlfcn/Makefile: Likewise.
10149         * posix/Makefile: Likewise.
10151         [BZ #6959]
10152         * timezone/Makefile: Don't install timezone files, just the programs
10153         and scripts.
10155 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10157         * nss/databases.def: Add missing gshadow entry.
10159         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10161 2012-03-06  Marek Polacek  <polacek@redhat.com>
10163         [BZ #13726]
10164         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10165         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10166         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10167         * stdio-common/tst-long-dbl-fphex.c: New file.
10169 2012-03-06  David S. Miller  <davem@davemloft.net>
10171         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10172         (set_obp_int): New function.
10173         (get_obp_int): New function.
10174         (__get_clockfreq_via_dev_openprom): Likewise.
10175         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10176         Avoid unused variable warnings on 'val' and use builtin_expect.
10177         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10178         __builtin_expect.
10179         (INLINE_CLONE_SYSCALL): Likewise.
10181 2012-03-05  David S. Miller  <davem@davemloft.net>
10183         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10185 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10187         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10189         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10190         only for |x| >= 40.
10191         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10193 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10195         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10196         Replace gettimeofday with __vdso_gettimeofday.
10198         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10199         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10200         __vdso_clock_gettime and __vdso_getcpu.
10202         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10203         time with __vdso_time.
10205 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10207         * manual/lang.texi (size_t): Note types to which size_t may be
10208         equivalent with the GNU C Library, but do not describe when
10209         differences between them are significant.
10211 2012-03-05  Andreas Jaeger  <aj@suse.de>
10213         * sysdeps/i386/fpu/libm-test-ulps: Update.
10215 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10217         [BZ #3976]
10218         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10219         (__ieee754_pow): Save and restore rounding mode and use
10220         round-to-nearest for main computations.
10221         * math/libm-test.inc (pow_test_tonearest): New function.
10222         (pow_test_towardzero): Likewise.
10223         (pow_test_downward): Likewise.
10224         (pow_test_upward): Likewise.
10225         (main): Call the new functions.
10226         * sysdeps/i386/fpu/libm-test-ulps: Update.
10227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10229         [BZ #3976]
10230         * math/libm-test.inc (cosh_test_tonearest): New function.
10231         (cosh_test_towardzero): Likewise.
10232         (cosh_test_downward): Likewise.
10233         (cosh_test_upward): Likewise.
10234         (sinh_test_tonearest): Likewise.
10235         (sinh_test_towardzero): Likewise.
10236         (sinh_test_downward): Likewise.
10237         (sinh_test_upward): Likewise.
10238         (main): Call the new functions.
10239         * sysdeps/i386/fpu/libm-test-ulps: Update.
10240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10242 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10244         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10245         default stack guard is set in last bytes.
10246         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10248 2012-03-05  Kees Cook  <keescook@chromium.org>
10250         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10252         [BZ #13656]
10253         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10254         possibly allocate from heap instead of stack.
10255         * stdio-common/bug-vfprintf-nargs.c: New file.
10256         * stdio-common/Makefile (tests): Add nargs overflow test.
10258 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10260         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10262 2012-03-03  Marek Polacek  <polacek@redhat.com>
10264         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10265         * math/math_private.h: Likewise.
10266         * stdlib/tst-strtod.c: Likewise.
10267         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10268         * sysdeps/x86_64/bits/atomic.h: Likewise.
10270 2012-03-02  David S. Miller  <davem@davemloft.net>
10272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10273         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10274         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10276         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10277         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10278         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10279         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10281 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10283         [BZ #13792]
10284         * manual/examples/README: New file, says the example source files
10285         can be used under GPL>=2.
10286         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10287         line containing just "*/".
10288         * manual/examples/add.c: Add copyright header (GPL>=2).
10289         * manual/examples/argp-ex1.c: Likewise.
10290         * manual/examples/argp-ex2.c: Likewise.
10291         * manual/examples/argp-ex3.c: Likewise.
10292         * manual/examples/argp-ex4.c: Likewise.
10293         * manual/examples/atexit.c: Likewise.
10294         * manual/examples/db.c: Likewise.
10295         * manual/examples/dir.c: Likewise.
10296         * manual/examples/dir2.c: Likewise.
10297         * manual/examples/execinfo.c: Likewise.
10298         * manual/examples/filecli.c: Likewise.
10299         * manual/examples/filesrv.c: Likewise.
10300         * manual/examples/fmtmsgexpl.c: Likewise.
10301         * manual/examples/genpass.c: Likewise.
10302         * manual/examples/inetcli.c: Likewise.
10303         * manual/examples/inetsrv.c: Likewise.
10304         * manual/examples/isockad.c: Likewise.
10305         * manual/examples/longopt.c: Likewise.
10306         * manual/examples/memopen.c: Likewise.
10307         * manual/examples/memstrm.c: Likewise.
10308         * manual/examples/mkfsock.c: Likewise.
10309         * manual/examples/mkisock.c: Likewise.
10310         * manual/examples/mygetpass.c: Likewise.
10311         * manual/examples/pipe.c: Likewise.
10312         * manual/examples/popen.c: Likewise.
10313         * manual/examples/rprintf.c: Likewise.
10314         * manual/examples/search.c: Likewise.
10315         * manual/examples/select.c: Likewise.
10316         * manual/examples/setjmp.c: Likewise.
10317         * manual/examples/sigh1.c: Likewise.
10318         * manual/examples/sigusr.c: Likewise.
10319         * manual/examples/stpcpy.c: Likewise.
10320         * manual/examples/strdupa.c: Likewise.
10321         * manual/examples/strftim.c: Likewise.
10322         * manual/examples/strncat.c: Likewise.
10323         * manual/examples/subopt.c: Likewise.
10324         * manual/examples/swapcontext.c: Likewise.
10325         * manual/examples/termios.c: Likewise.
10326         * manual/examples/testopt.c: Likewise.
10327         * manual/examples/testpass.c: Likewise.
10328         * manual/examples/timeval_subtract.c: Likewise.
10330         [BZ #13792]
10331         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10332         function to ...
10333         * manual/timeval_subtract.c.texi: ... here, new file.
10335 2012-03-02  David S. Miller  <davem@davemloft.net>
10337         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10339 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10341         [BZ #3976]
10342         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10343         (__sin): Save and restore rounding mode and use round-to-nearest
10344         for all computations.
10345         (__cos): Save and restore rounding mode and use round-to-nearest
10346         for all computations.
10347         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10348         <fenv.h>.
10349         (tan): Save and restore rounding mode and use round-to-nearest for
10350         all computations.
10351         * math/libm-test.inc (cos_test_tonearest): New function.
10352         (cos_test_towardzero): Likewise.
10353         (cos_test_downward): Likewise.
10354         (cos_test_upward): Likewise.
10355         (sin_test_tonearest): Likewise.
10356         (sin_test_towardzero): Likewise.
10357         (sin_test_downward): Likewise.
10358         (sin_test_upward): Likewise.
10359         (tan_test_tonearest): Likewise.
10360         (tan_test_towardzero): Likewise.
10361         (tan_test_downward): Likewise.
10362         (tan_test_upward): Likewise.
10363         (main): Call the new functions.
10364         * sysdeps/i386/fpu/libm-test-ulps: Update.
10365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10367         [BZ #10135]
10368         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10369         small n, then large n, before computing and testing k+n.
10370         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10371         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10372         Likewise.
10373         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10374         Likewise.
10375         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10376         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10377         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10378         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10379         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10380         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10381         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10382         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10383         * math/libm-test.inc (scalbn_test): Add more tests.
10384         (scalbln_test): Likewise.
10386         * manual/filesys.texi (mode_t): Describe constraints on size and
10387         signedness, not exact equivalence to a particular type.
10388         (ino_t): Likewise.
10389         (ino64_t): Likewise.
10390         (dev_t): Likewise.
10391         (nlink_t): Likewise.
10392         (blkcnt_t): Likewise.
10393         (blkcnt64_t): Likewise.
10394         * manual/llio.texi (off_t): Likewise.
10396         [BZ #3976]
10397         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10398         (__ieee754_exp): Save and restore rounding mode and use
10399         round-to-nearest for all computations.
10400         * math/libm-test.inc (exp_test_tonearest): New function.
10401         (exp_test_towardzero): Likewise.
10402         (exp_test_downward): Likewise.
10403         (exp_test_upward): Likewise.
10404         (main): Call the new functions.
10405         * sysdeps/i386/fpu/libm-test-ulps: Update.
10406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10408 2012-03-01  Chris Demetriou  <cgd@google.com>
10410         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10411         have predictable order.
10413 2012-03-01  David S. Miller  <davem@davemloft.net>
10415         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10417         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10418         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10419         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10420         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10422         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10423         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10424         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10425         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10426         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10427         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10428         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10429         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10430         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10432         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10434         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10435         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10436         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10438         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10439         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10440         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10441         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10442         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10443         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10444         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10445         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10446         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10447         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10448         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10449         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10450         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10451         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10452         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10453         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10454         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10455         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10456         * sysdeps/sparc/elf/configure: Regenerated.
10458 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10460         * configure.in (AS, LD): Require binutils 2.20 or later.
10461         * configure: Regenerated.
10462         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10463         as required minimum version.
10464         * INSTALL: Regenerated.
10466         [BZ #2541]
10467         [BZ #4108]
10468         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10469         before squaring exponent.
10470         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10471         bottom long double and 27 bits of top long double before squaring
10472         exponent.
10473         * math/libm-test.inc (erfc_test): Add more tests.
10474         * sysdeps/i386/fpu/libm-test-ulps: Update.
10475         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10478 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10480         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10481         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10482         containing bit-fields.
10483         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10484         * soft-fp/single.h (_FP_UNION_S): Likewise.
10485         * soft-fp/double.h (_FP_UNION_D): Likewise.
10487 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10489         [BZ #13786]
10490         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10491         not include ../strcmp.S.
10492         [USE_AS_STRNCASECMP_L]: Likewise.
10493         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10494         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10495         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10496         (__strncasecmp_l_ia32): Define as alias to
10497         __strncasecmp_l_nonascii.
10499         [BZ #5794]
10500         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10501         * sysdeps/i386/fpu/libm-test-ulps: Update.
10502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10504         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10507 2012-02-29  Jeff Law  <law@redhat.com>
10509         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10510         out of bounds read.
10512 2012-02-29  Marek Polacek  <polacek@redhat.com>
10514         [BZ #13706]
10515         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10516         * elf/Makefile: Add rules to run tst-unused-dep.out.
10518 2012-02-28  David S. Miller  <davem@davemloft.net>
10520         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10521         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10522         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10523         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10524         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10525         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10527 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10529         * math/libm-test.inc (llround_test): Move one test from
10530         lround_test.  Use TEST_f_L in moved test.
10531         (lround_test): Move misplaced test to llround_test.  Add testcase
10532         from bug 2561.
10534 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10536         * sysdeps/x86_64/fpu/e_expf.S: New file.
10537         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10539 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10541         [BZ #13637]
10542         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10543         of remain_len that may cause incomplete multi-byte character and
10544         false match.
10545         * posix/bug-regex33.c: New file.
10546         * posix/Makefile (tests): Add bug-regex33.
10548 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10550         * manual/macros.texi: New file.
10551         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10552         * manual/libc.texinfo: Include macros.texi.
10553         * manual/creatute.texi: Likewise.
10554         * manual/install.texi: Likewise.
10555         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10556         @glibcadj{} in references to the GNU C Library.
10557         * manual/charset.texi: Likewise.
10558         * manual/conf.texi: Likewise.
10559         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10560         when not using those macros.
10561         * manual/creature.texi: Likewise.
10562         * manual/crypt.texi: Likewise.
10563         * manual/errno.texi: Likewise.
10564         * manual/filesys.texi: Likewise.
10565         * manual/header.texi: Likewise.
10566         * manual/install.texi: Likewise.
10567         * manual/intro.texi: Likewise.
10568         * manual/io.texi: Likewise.
10569         * manual/job.texi: Likewise.
10570         * manual/lang.texi: Likewise.
10571         * manual/libc.texiinfo: Likewise.
10572         * manual/llio.texi: Likewise.
10573         * manual/locale.texi: Likewise.
10574         * manual/maint.texi: Likewise.
10575         * manual/math.texi: Likewise.
10576         * manual/memory.texi: Likewise.
10577         * manual/message.texi: Likewise.
10578         * manual/nss.texi: Likewise.
10579         * manual/pattern.texi: Likewise.
10580         * manual/process.texi: Likewise.
10581         * manual/resource.texi: Likewise.
10582         * manual/search.texi: Likewise.
10583         * manual/setjmp.texi: Likewise.
10584         * manual/signal.texi: Likewise.
10585         * manual/socket.texi: Likewise.
10586         * manual/startup.texi: Likewise.
10587         * manual/stdio.texi: Likewise.
10588         * manual/string.texi: Likewise.
10589         * manual/sysinfo.texi: Likewise.
10590         * manual/syslog.texi: Likewise.
10591         * manual/terminal.texi: Likewise.
10592         * manual/time.texi: Likewise.
10593         * manual/users.texi: Likewise.
10594         * INSTALL: Regenerated.
10595         * NOTES: Regenerated.
10596         * sysdeps/gnu/errlist.c: Regenerated.
10598 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10600         * include/dirent.h: Include <dirstream.h> before
10601         <dirent/dirent.h>.
10603 2012-02-28  David S. Miller  <davem@davemloft.net>
10605         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10606         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10607         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10608         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10610 2012-02-27  David S. Miller  <davem@davemloft.net>
10612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10614         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10615         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10617         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10618         frame pointer instead of stack pointer relative arg slot.
10619         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10620         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10621         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10623 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10625         [BZ #3992]
10626         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10628 2012-02-27  David S. Miller  <davem@davemloft.net>
10630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10632         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10633         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10634         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10635         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10636         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10637         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10639 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10641         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10642         later.  Allow versions 5-9.
10643         * configure: Regenerated.
10644         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10645         required minimum version and 4.6 as recommended version.  Do not
10646         mention bugs in GCC 2.7 and 2.8.
10647         * INSTALL: Regenerated.
10649 2012-02-27  David S. Miller  <davem@davemloft.net>
10651         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10652         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10653         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10654         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10655         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10656         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10657         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10658         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10660         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10661         manipulate bits before adding and subtracting TWO112[sx].
10662         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10664 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10666         [BZ #13775]
10667         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10668         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10669         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10670         being in POSIX, because they are in 1003.1-2008.
10672         * rt/tst-aio.c: Include <fcntl.h>.
10673         * rt/tst-aio7.c: Likewise.
10674         * rt/tst-aio64.c: Likewise.
10676         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10678 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10680         * manual/install.texi (--with-headers): Describe headers as
10681         interface headers, not private headers.
10682         (Specific advice for GNU/Linux systems): Describe use of headers
10683         from "make headers_install", not private headers from older
10684         kernels.
10685         * INSTALL: Regenerated.
10686         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10687         Change to 2.6.19.
10688         * sysdeps/unix/sysv/linux/configure: Regenerated.
10690         * manual/llio.texi (fclean): Remove documentation.
10692         * manual/Makefile (libc-texi-generated): New variable.  Include
10693         version.texi.
10694         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10695         $(libc-texi-generated), not duplicated list of files.
10696         (version.texi, stamp-version): New rules.
10697         (realclean): Remove $(libc-texi-generated), not individual files
10698         from that list.  Do not remove dir-add.texinfo.
10699         * manual/libc.texinfo: Comment out uses of edition numbers and
10700         references to printed manual.  Remove last-updated dates.
10701         (EDITION): Comment out.
10702         (ISBN): Likewise.
10703         (VERSION, UPDATED): Remove.
10704         (version.texi): Include.
10706 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10708         * sysdeps/posix/spawni.c: Include <signal.h>.
10709         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10710         * sysdeps/pthread/aio_fsync.c: Likewise.
10712 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10714         * conform/Makefile (tests): Run only when not cross-compiling and
10715         when fast-check is not defined.
10717         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10718         * conform/data/limits.h-data: Fixes for POSIX2008.
10719         * conform/run-conformtest.sh: Run all tests.
10720         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10721         headers.
10722         * include/bits/dlfcn.h: Likewise.
10723         * include/langinfo.h: Likewise.
10724         * include/monetary.h: Likewise.
10725         * include/sys/poll.h: Likewise.
10727         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10728         for __USE_GNU.
10729         * posix/spawn.h: Define __need_sigset_t.
10730         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10731         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10732         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10733         to get sigevent_t only.
10734         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10735         only for __USE_GNU.
10736         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10737         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10738         process_vm_writev only for __USE_GNU.
10739         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10741         * conform/Makefile: For now ignore errors from run-conformtest.
10742         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10743         POSIX to avoid namespace pollution.  Don't prepend headers.
10744         * conform/data/aio.h-data: Fixes for POSIX testing.
10745         * conform/data/fcntl.h-data: Likewise.
10746         * conform/data/glob.h-data: Likewise.
10747         * conform/data/grp.h-data: Likewise.
10748         * conform/data/pthread.h-data: Likewise.
10749         * conform/data/pwd.h-data: Likewise.
10750         * conform/data/signal.h-data: Likewise.
10751         * conform/data/spawn.h-data: Likewise.
10752         * conform/data/stdio.h-data: Likewise.
10753         * conform/data/stdlib.h-data: Likewise.
10754         * conform/data/stropts.h-data: Likewise.
10755         * conform/data/sys/mman.h-data: Likewise.
10756         * conform/data/sys/stat.h-data: Likewise.
10757         * conform/data/sys/types.h-data: Likewise.
10758         * conform/data/sys/wait.h-data: Likewise.
10759         * conform/data/time.h-data: Likewise.
10760         * conform/data/unistd.h-data: Likewise.
10761         * conform/data/utime.h-data: Likewise.
10763         * io/sys/stat.h: fchmod was always in POSIX.
10764         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10765         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10766         * rt/aio.h: Define __need_timespec before including <time.h>.
10767         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10768         struct.  Add forward declaration of pthread_attr_t and use it in
10769         sigevent.
10770         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10771         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10772         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10773         always remove CLK_TCK definition.
10775 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10777         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10779 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10781         * conform/run-conformtest.sh: New file.
10782         * conform/Makefile: Run run-conformtest for tests.
10783         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10784         support.
10786         * conform/data/uchar.h-data: New file.
10787         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10788         * conform/data/arpa/inet.h-data: Likewise.
10789         * conform/data/assert.h-data: Likewise.
10790         * conform/data/complex.h-data: Likewise.
10791         * conform/data/cpio.h-data: Likewise.
10792         * conform/data/ctype.h-data: Likewise.
10793         * conform/data/dirent.h-data: Likewise.
10794         * conform/data/dlfcn.h-data: Likewise.
10795         * conform/data/errno.h-data: Likewise.
10796         * conform/data/fcntl.h-data: Likewise.
10797         * conform/data/float.h-data: Likewise.
10798         * conform/data/fmtmsg.h-data: Likewise.
10799         * conform/data/fnmatch.h-data: Likewise.
10800         * conform/data/ftw.h-data: Likewise.
10801         * conform/data/glob.h-data: Likewise.
10802         * conform/data/grp.h-data: Likewise.
10803         * conform/data/iconv.h-data: Likewise.
10804         * conform/data/inttypes.h-data: Likewise.
10805         * conform/data/langinfo.h-data: Likewise.
10806         * conform/data/libgen.h-data: Likewise.
10807         * conform/data/limits.h-data: Likewise.
10808         * conform/data/locale.h-data: Likewise.
10809         * conform/data/math.h-data: Likewise.
10810         * conform/data/monetary.h-data: Likewise.
10811         * conform/data/mqueue.h-data: Likewise.
10812         * conform/data/ndbm.h-data: Likewise.
10813         * conform/data/net/if.h-data: Likewise.
10814         * conform/data/netdb.h-data: Likewise.
10815         * conform/data/netinet/in.h-data: Likewise.
10816         * conform/data/nl_types.h-data: Likewise.
10817         * conform/data/poll.h-data: Likewise.
10818         * conform/data/pthread.h-data: Likewise.
10819         * conform/data/pwd.h-data: Likewise.
10820         * conform/data/regex.h-data: Likewise.
10821         * conform/data/sched.h-data: Likewise.
10822         * conform/data/search.h-data: Likewise.
10823         * conform/data/semaphore.h-data: Likewise.
10824         * conform/data/setjmp.h-data: Likewise.
10825         * conform/data/signal.h-data: Likewise.
10826         * conform/data/spawn.h-data: Likewise.
10827         * conform/data/stdarg.h-data: Likewise.
10828         * conform/data/stdio.h-data: Likewise.
10829         * conform/data/stdlib.h-data: Likewise.
10830         * conform/data/string.h-data: Likewise.
10831         * conform/data/strings.h-data: Likewise.
10832         * conform/data/stropts.h-data: Likewise.
10833         * conform/data/sys/ipc.h-data: Likewise.
10834         * conform/data/sys/mman.h-data: Likewise.
10835         * conform/data/sys/msg.h-data: Likewise.
10836         * conform/data/sys/resource.h-data: Likewise.
10837         * conform/data/sys/select.h-data: Likewise.
10838         * conform/data/sys/sem.h-data: Likewise.
10839         * conform/data/sys/shm.h-data: Likewise.
10840         * conform/data/sys/socket.h-data: Likewise.
10841         * conform/data/sys/stat.h-data: Likewise.
10842         * conform/data/sys/statvfs.h-data: Likewise.
10843         * conform/data/sys/time.h-data: Likewise.
10844         * conform/data/sys/timeb.h-data: Likewise.
10845         * conform/data/sys/times.h-data: Likewise.
10846         * conform/data/sys/types.h-data: Likewise.
10847         * conform/data/sys/uio.h-data: Likewise.
10848         * conform/data/sys/un.h-data: Likewise.
10849         * conform/data/sys/utsname.h-data: Likewise.
10850         * conform/data/sys/wait.h-data: Likewise.
10851         * conform/data/syslog.h-data: Likewise.
10852         * conform/data/tar.h-data: Likewise.
10853         * conform/data/termios.h-data: Likewise.
10854         * conform/data/utime.h-data: Likewise.
10855         * conform/data/utmpx.h-data: Likewise.
10856         * conform/data/varargs.h-data: Likewise.
10857         * conform/data/wchar.h-data: Likewise.
10858         * conform/data/wctype.h-data: Likewise.
10859         * conform/data/wordexp.h-data: Likewise.
10861         * include/stropts.h: New file.
10862         * include/uchar.h: New file.
10863         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10864         * include/assert.h: Likewise.
10865         * include/ctype.h: Likewise.
10866         * include/dirent.h: Likewise.
10867         * include/dlfcn.h: Likewise.
10868         * include/fcntl.h: Likewise.
10869         * include/fnmatch.h: Likewise.
10870         * include/glob.h: Likewise.
10871         * include/grp.h: Likewise.
10872         * include/libio.h: Likewise.
10873         * include/locale.h: Likewise.
10874         * include/math.h: Likewise.
10875         * include/net/if.h: Likewise.
10876         * include/netdb.h: Likewise.
10877         * include/netinet/in.h: Likewise.
10878         * include/pthread.h: Likewise.
10879         * include/pwd.h: Likewise.
10880         * include/regex.h: Likewise.
10881         * include/sched.h: Likewise.
10882         * include/search.h: Likewise.
10883         * include/setjmp.h: Likewise.
10884         * include/signal.h: Likewise.
10885         * include/stdio.h: Likewise.
10886         * include/stdlib.h: Likewise.
10887         * include/string.h: Likewise.
10888         * include/sys/cdefs.h: Likewise.
10889         * include/sys/mman.h: Likewise.
10890         * include/sys/msg.h: Likewise.
10891         * include/sys/resource.h: Likewise.
10892         * include/sys/select.h: Likewise.
10893         * include/sys/socket.h: Likewise.
10894         * include/sys/stat.h: Likewise.
10895         * include/sys/statvfs.h: Likewise.
10896         * include/sys/time.h: Likewise.
10897         * include/sys/times.h: Likewise.
10898         * include/sys/uio.h: Likewise.
10899         * include/sys/utsname.h: Likewise.
10900         * include/sys/wait.h: Likewise.
10901         * include/termios.h: Likewise.
10902         * include/time.h: Likewise.
10903         * include/ulimit.h: Likewise.
10904         * include/unistd.h: Likewise.
10905         * include/utime.h: Likewise.
10906         * include/wchar.h: Likewise.
10907         * include/wctype.h: Likewise.
10908         * include/wordexp.h: Likewise.
10910         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10912         * time/time.h: TIME_UTC must be a macro.
10913         Make timespec_get available for ISO C11 only as well.
10915 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10917         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10918         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10920 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10922         * configure.in: Use -o not -a in test for unsupported multi-arch.
10924 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10926         * manual/texinfo.tex: Update to version 2012-01-19.16.
10928 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10930         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10932 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10934         [BZ #13738]
10935         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10936         * manual/fdl-1.3.texi: New file.
10937         * manual/fdl-1.1.texi: File removed.
10939         [BZ #13738]
10940         * manual/libc.texinfo (FDL_VERSION): New @set.
10941         Use it for mention of FDL in cover text.
10942         (Documentation License): Use it in @include file name.
10944 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10945             Roland McGrath  <roland@hack.frob.com>
10947         [BZ #5461]
10948         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10949         not LONG_LONG_MAX and LONG_LONG_MIN.
10950         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10951         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10952         name.
10953         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10955 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10957         [BZ #2547]
10958         [BZ #11365]
10959         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10960         manipulate bits before adding and subtracting TWO23[sx].
10961         * math/libm-test.inc (nearbyint_test): Add more tests.
10963 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10965         [BZ #2548]
10966         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10967         bits before adding and subtracting TWO23[sx].
10968         * math/libm-test.inc (rint_test): Add more tests.
10969         (rint_test_tonearest): Likewise.
10970         (rint_test_towardzero): Likewise.
10971         (rint_test_downward): Likewise.
10972         (rint_test_upward: Likewise.
10974 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10976         [BZ #10110]
10977         * include/stdc-predef.h: New file.  Extracted from features.h.
10978         * include/features.h: Include stdc-predef.h.
10979         * Makefile (headers): Add stdc-predef.h.
10980         * CONFORMANCE (Compiler limitations): Update.
10982 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10984         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10986 2012-02-21  David S. Miller  <davem@davemloft.net>
10988         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10989         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10991 2012-02-20  David S. Miller  <davem@davemloft.net>
10993         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10994         using a normal save/restore sequence, rather than allocating a
10995         dummy stack frame just to store a frame pointer and restore.
10996         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10998 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11000         * manual/install.texi: Fix stray word in line-wrapped comment.
11002 2012-02-20  David S. Miller  <davem@davemloft.net>
11004         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11005         both binutils and gcc support GOTDATA.
11007         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11008         "rd %pc" in the PIC register setup sequences.
11010         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11011         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11012         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11013         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11014         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11015         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11016         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11017         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11018         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11019         (SYSCALL_ERROR_HANDLER): Likewise.
11020         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11021         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11022         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11023         (SYSCALL_ERROR_HANDLER): Likewise.
11025         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11026         (HAVE_GCC_GOTDATA): New.
11027         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11028         relocation support in both binutils and gcc.
11029         * sysdeps/sparc/elf/configure: Regenerate.
11031         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11032         * sysdeps/sparc/sparc32/elf/configure: Delete.
11033         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11034         * sysdeps/sparc/sparc64/elf/configure: Delete.
11035         * sysdeps/sparc/elf/configure.in: New file.
11036         * sysdeps/sparc/elf/configure: Generate.
11038         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11039         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11040         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11041         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11042         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11044 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11046         * manual/install.texi: Do not mention specific glibc version
11047         numbers.
11048         * manual/libc.texinfo (VERSION, UPDATED): Update.
11049         (@copying): Use @copyright{} and range of years.
11051 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11053         [BZ #13695]
11054         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11055         [crti.S not in sysdirs] (generated): Do not append.
11056         [crti.S not in sysdirs] (omit-deps): Likewise.
11057         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11058         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11059         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11060         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11061         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11062         Likewise.
11063         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11064         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11065         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11066         * csu/defs.awk: Remove file.
11067         * sysdeps/generic/initfini.c: Likewise.
11068         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11069         variable.
11070         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11071         Likewise.
11073 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11075         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11076         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11077         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11078         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11079         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11080         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11081         <bits/epoll.h>.
11082         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11083         (__EPOLL_PACKED): Define to empty if not defined by
11084         <bits/epoll.h>.
11085         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11086         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11087         bits/epoll.h.
11089 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11091         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11092         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11093         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11094         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11095         <bits/timerfd.h>.
11096         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11097         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11098         bits/timerfd.h.
11100 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11102         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11103         in C locale.
11104         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11105         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11106         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11109 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11111         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11112         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11114 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11116         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11117         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11118         defined.
11119         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11120         Likewise.
11121         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11122         entry for 2.16.
11124 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11126         * math/w_acos.c: Use non-signaling floating-point comparisons.
11127         * math/w_acosf.c: Likewise.
11128         * math/w_acosh.c: Likewise.
11129         * math/w_acoshf.c: Likewise.
11130         * math/w_acoshl.c: Likewise.
11131         * math/w_acosl.c: Likewise.
11132         * math/w_asin.c: Likewise.
11133         * math/w_asinf.c: Likewise.
11134         * math/w_asinl.c: Likewise.
11135         * math/w_atanh.c: Likewise.
11136         * math/w_atanhf.c: Likewise.
11137         * math/w_atanhl.c: Likewise.
11138         * math/w_exp2.c: Likewise.
11139         * math/w_exp2f.c: Likewise.
11140         * math/w_exp2l.c: Likewise.
11141         * math/w_j0.c: Likewise.
11142         * math/w_j0f.c: Likewise.
11143         * math/w_j0l.c: Likewise.
11144         * math/w_j1.c: Likewise.
11145         * math/w_j1f.c: Likewise.
11146         * math/w_j1l.c: Likewise.
11147         * math/w_jn.c: Likewise.
11148         * math/w_jnf.c: Likewise.
11149         * math/w_log.c: Likewise.
11150         * math/w_log10.c: Likewise.
11151         * math/w_log10f.c: Likewise.
11152         * math/w_log10l.c: Likewise.
11153         * math/w_log2.c: Likewise.
11154         * math/w_log2f.c: Likewise.
11155         * math/w_log2l.c: Likewise.
11156         * math/w_logf.c: Likewise.
11157         * math/w_logl.c: Likewise.
11158         * math/w_sqrt.c: Likewise.
11159         * math/w_sqrtf.c: Likewise.
11160         * math/w_sqrtl.c: Likewise.
11161         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11162         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11163         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11164         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11165         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11167 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11169         [BZ #9739]
11170         * manual/string.texi (strnlen): Use correct parameter name in
11171         equivalent expression.
11173 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11175         [BZ #11174]
11176         * manual/users.texi (seteuid): Consistently use neweuid for
11177         argument name.
11179 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11181         [BZ #13704]
11182         * manual/nss.texi (Services in the NSS configuration): Correct
11183         list of services in example configuration file.
11185 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11187         [BZ #11322]
11188         * manual/arith.texi: Remove statements about negative zero
11189         behaving identically to zero.
11191 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11193         [BZ #5993]
11194         * manual/install.texi: Do not document upgrading from libc5.
11196 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11198         [BZ #4596]
11199         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11201 2012-02-18  David S. Miller  <davem@davemloft.net>
11203         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11204         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11205         %o7 across the call.
11206         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11207         instead.
11208         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11209         SETUP_PIC_REG_LEAF.
11210         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11211         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11212         * sysdeps/sparc/crtn.S: Likewise.
11214 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11216         * aout/Makefile: Remove.
11218 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11220         [BZ #13058]
11221         * manual/examples/argp-ex1.c (main): Format definition in GNU
11222         style.
11223         * manual/examples/argp-ex2.c (main): Likewise.
11224         * manual/examples/argp-ex3.c (main): Likewise.
11225         * manual/examples/argp-ex4.c (main): Likewise.
11226         * manual/examples/longopt.c (main): Use new-style prototype
11227         definition.
11228         * manual/examples/strncat.c (main): Specify return type and use
11229         (void) for arguments.
11230         * manual/examples/subopt.c (main): Use char **argv argument.
11232 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11234         [BZ #5077]
11235         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11236         rounding modes.
11238 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11240         [BZ #6907]
11241         * manual/string.texi (strchr): Change when strchrnul is
11242         recommended.
11244 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11246         [BZ #174]
11247         * manual/locale.texi (setlocale): Document LOCPATH.
11249 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11251         [BZ #10210]
11252         * manual/process.texi (execle): Move @dots{} before last argument.
11254 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11256         [BZ #12047]
11257         * manual/charset.texi (Generic Charset Conversion): Fix typo
11258         (LC_TYPE -> LC_CTYPE).
11260 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11262         [BZ #5805]
11263         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11264         (scalbnf): Likewise.
11265         (scalbnl): Likewise.
11266         (scalbln): Likewise.
11267         (scalblnf): Likewise.
11268         (scalblnl): Likewise.
11269         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11270         (vwarnx): Likewise.
11271         (verr): Likewise.
11272         (verrx): Likewise.
11273         * manual/filesys.texi (telldir): Use braces around return type.
11274         * manual/llio.texi (mmap): Add space after comma.
11275         (mmap64): Likewise.
11276         * manual/math.texi (jn): Use @var{} on parameter names.
11277         (jnf): Likewise.
11278         (jnl): Likewise.
11279         (yn): Likewise.
11280         (ynf): Likewise.
11281         (ynl): Likewise.
11282         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11283         line.
11284         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11285         "...".
11286         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11287         (sched_get_priority_max): Likewise.
11288         * manual/signal.texi (sigvec): Add space after comma.
11289         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11290         names.
11291         (if_indextoname): Likewise.
11292         (if_freenameindex): Likewise.
11293         (sendto): Use ',' instead of '.' in prototype.
11294         * manual/startup.texi (syscall): Use @dots{} instead of literal
11295         "...".
11296         * manual/stdio.texi (__fpending): Separate initial words of
11297         paragraph from @deftypefun line.
11298         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11299         "...".
11300         (vsyslog): Use @var{} on parameter names.
11301         * manual/terminal.texi (stty): Use @var{} on parameter names.
11302         * manual/users.texi (getutmp): Use @var{} on parameter names.
11303         (getutmpx): Likewise.
11305 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11307         [BZ #6884]
11308         * manual/stdio.texi (fopen): Fix typos in description of
11309         ",ccs=STRING".
11311 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11313         [BZ #4026]
11314         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11315         get clock_id definition.
11317 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11319         [BZ #4822]
11320         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11321         (madvise): Cast every argument to void on its own.
11323 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11325         [BZ #9902]
11326         * manual/startup.texi (Exit Status): Fix typo.
11328 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11330         [BZ #10140]
11331         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11332         * manual/examples/argp-ex2.c: Likewise.
11333         * manual/examples/argp-ex3.c: Likewise.
11335 2012-02-16  Richard Henderson  <rth@redhat.com>
11337         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11338         * sysdeps/s390/s390-32/initfini.c: Remove.
11339         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11340         * sysdeps/s390/s390-64/initfini.c: Remove.
11342 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11344         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11345         compiler output for sysdeps/generic/initfini.c.
11346         * sysdeps/sh/elf/initfini.c: Remove file.
11348 2012-02-16  David S. Miller  <davem@davemloft.net>
11350         [BZ #11494]
11351         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11353         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11354         * sysdeps/sparc/crti.S: New file.
11355         * sysdeps/sparc/crtn.S: New file.
11356         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11357         * sysdeps/sparc/sparc64/Makefile: Likewise.
11359 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11361         [BZ #3335]
11362         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11364 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11366         [BZ #4822]
11367         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11369         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11370         (write, read, close): Likewise.
11371         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11373 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11375         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11376         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11377         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11378         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11379         <bits/signalfd.h>.
11380         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11381         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11382         bits/signalfd.h.
11384 2012-02-14  Marek Polacek  <polacek@redhat.com>
11386         * sysdeps/x86_64/crti.S: New file.
11387         * sysdeps/x86_64/crtn.S: New file.
11388         * sysdeps/x86_64/elf/initfini.c: Remove file.
11390 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11392         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11393         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11394         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11395         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11396         <bits/inotify.h>.
11397         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11398         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11399         bits/inotify.h.
11401 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11403         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11404         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11405         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11406         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11407         <bits/eventfd.h>.
11408         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11409         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11410         bits/eventfd.h.
11412 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11414         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11415         __feraiseexcept instead of feraiseexcept.
11417         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11418         nanosleep invocations.
11419         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11420         strings, and add error checking for a nanosleep invocations.
11422 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11424         Replace FSF snail mail address with URLs, as per GNU coding standards.
11425         Most of the snail mail addresses were wrong anyway, and omitting
11426         them makes the source code easier to maintain.  Almost all of the
11427         changes are to license notices and to locale LC_IDENTIFICATION
11428         addresses, except for this one:
11429         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11430         not its snail mail address.
11432 2012-02-09  Richard Henderson  <rth@twiddle.net>
11434         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11435         of kernel-features.h.
11437         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11439 2012-02-08  Marek Polacek  <polacek@redhat.com>
11441         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11442         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11443         * sysdeps/gnu/_G_config.h: Likewise.
11444         * sysdeps/generic/_G_config.h: Likewise.
11446 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11448         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11449         tests.
11450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11452         * sysdeps/powerpc/powerpc32/crti.S: New file.
11453         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11454         * sysdeps/powerpc/powerpc64/crti.S: New file.
11455         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11457         * Makeconfig (have-initfini): Don't set.
11458         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11459         * configure.in (nopic_initfini): Don't substitute.
11460         * config.h.in (HAVE_INITFINI): Don't #undef.
11461         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11462         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11464 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11466         Support crti.S and crtn.S provided directly by architectures.
11467         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11468         [crti.S in sysdirs] (omit-deps): Likewise.
11469         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11470         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11471         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11472         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11473         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11474         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11475         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11476         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11477         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11478         compiler output for sysdeps/generic/initfini.c.
11479         * sysdeps/i386/elf/Makefile: Remove file.
11480         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11482 2012-02-07  Marek Polacek  <polacek@redhat.com>
11484         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11485         * sysdeps/gnu/_G_config.h: Likewise.
11486         * sysdeps/mach/hurd/_G_config.h: Likewise.
11488 2012-02-07  Marek Polacek  <polacek@redhat.com>
11490         * math/Makefile (tests): Add tst-CMPLX2.
11491         * math/tst-CMPLX2.c: New file.
11493 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11495         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11497         * math/libm-test.inc (jn_test): Add missing L suffix.
11499 2012-02-06  Marek Polacek  <polacek@redhat.com>
11501         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11502         * sysdeps/i386/fpu/e_powf.S: Likewise.
11503         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11504         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11505         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11506         * sysdeps/i386/fpu/e_pow.S: Likewise.
11507         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11508         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11509         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11510         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11511         * sysdeps/i386/fpu/e_log2.S: Likewise.
11512         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11513         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11514         * sysdeps/i386/fpu/e_powl.S: Likewise.
11515         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11516         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11517         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11518         * sysdeps/i386/fpu/e_logl.S: Likewise.
11519         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11520         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11521         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11522         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11523         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11524         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11525         * sysdeps/i386/fpu/e_log.S: Likewise.
11526         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11527         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11528         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11529         * sysdeps/i386/fpu/e_logf.S: Likewise.
11530         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11531         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11532         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11533         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11534         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11535         * sysdeps/i386/fpu/e_log10.S: Likewise.
11536         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11537         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11538         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11539         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11540         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11541         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11542         * sysdeps/i386/asm-syntax.h: Likewise.
11543         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11544         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11545         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11546         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11547         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11548         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11549         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11550         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11551         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11552         * sysdeps/powerpc/sysdep.h: Likewise.
11553         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11554         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11556 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11558         [BZ #411]
11559         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11561 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11563         * sysdeps/i386/sysdep.h: Include <features.h>.
11564         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11565         version.
11567 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11569         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11570         Define.
11571         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11572         LOAD_PIC_REG_STR.
11574 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11576         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11577         (SETUP_PIC_REG): Use GET_PC_THUNK.
11578         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11579         macro.
11581 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11583         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11584         for non-PIC compilation.
11585         (SETUP_PIC_REG): Add .p2align directive.
11586         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11587         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11588         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11589         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11590         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11591         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11592         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11593         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11594         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11595         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11596         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11597         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11598         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11599         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11600         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11601         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11602         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11603         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11604         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11605         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11606         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11607         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11608         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11609         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11610         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11611         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11612         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11613         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11614         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11615         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11616         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11617         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11618         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11619         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11620         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11621         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11622         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11623         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11624         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11625         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11626         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11628 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11630         * math/tst-CMPLX.c: Include <stdio.h>.
11632 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11634         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11635         float.
11636         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11637         * sysdeps/sparc/bits/mathdef.h: Likewise.
11639 2012-01-31  Marek Polacek  <polacek@redhat.com>
11641         * libio/libio.h: Don't define _PARAMS.
11642         * locale/programs/config.h: Don't define PARAMS.
11643         * stdlib/strtol_l.c: Likewise.
11644         (__strtol_l): Remove PARAMS from the prototype.
11646 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11648         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11649         names.  Just use the correct names.  Remove unnecessary wrapper
11650         functions.
11651         * malloc/arena.c: Likewise.
11652         * malloc/hooks.c: Likewise.
11654         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11655         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11656         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11658 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11660         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11661         into tail calls.
11662         (update_get_addr): New function.
11663         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11664         GET_ADDR_MODULE parameter.
11666 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11668         * crypt/cert.c: Remove __STDC__ conditionals.
11669         * crypt/crypt-entry.c: Likewise.
11670         * crypt/crypt_util.c: Likewise.
11671         * libio/filedoalloc.c: Likewise.
11672         * libio/fileops.c: Likewise.
11673         * libio/genops.c: Likewise.
11674         * libio/iofclose.c: Likewise.
11675         * libio/iofdopen.c: Likewise.
11676         * libio/iofopen.c: Likewise.
11677         * libio/iofopen64.c: Likewise.
11678         * libio/iogetdelim.c: Likewise.
11679         * libio/iopopen.c: Likewise.
11680         * libio/obprintf.c: Likewise.
11681         * libio/oldfileops.c: Likewise.
11682         * libio/oldiofclose.c: Likewise.
11683         * libio/oldiofdopen.c: Likewise.
11684         * libio/oldiofopen.c: Likewise.
11685         * libio/oldiopopen.c: Likewise.
11686         * libio/wfiledoalloc.c: Likewise.
11687         * libio/wgenops.c: Likewise.
11688         * locale/programs/xmalloc.c: Likewise.
11689         * misc/syslog.c: Likewise.
11690         * stdio-common/xbug.c: Likewise.
11691         * string/memchr.c: Likewise.
11692         * string/memcmp.c: Likewise.
11693         * string/memrchr.c: Likewise.
11694         * string/rawmemchr.c: Likewise.
11695         * sysdeps/posix/getcwd.c: Likewise.
11696         * time/strftime_l.c: Likewise.
11698 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11700         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11701         * config.make.in (config-cflags-sse2avx): Define.
11702         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11703         Fix typo.
11705 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11707         * scripts/config.guess: Update from upstream config git repository.
11708         * scripts/config.sub: Likewise.
11710 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11712         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11713         (EM_NUM): Update.
11714         (R_TILEPRO_*, R_TILEGX_*): New macros.
11716         * scripts/firstversions.awk: Fix bug in version range handling.
11718         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11720         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11722         * include/sys/epoll.h: New file.
11723         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11724         libc_hidden_def.
11726 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11728         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11729         Avoid unnecessary __WORDSIZE == 64 test.
11730         (fmaxf): Use VEX format if possible.
11731         (fmax): Likewise.
11732         (fminf): Likewise.
11733         (fmin): Likewise.
11735         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11736         * math/math_private.h: Remove libc_fegetround* and
11737         libc_fesetround*.
11738         * sysdeps/i386/configure.in: Check for -msse2avx.
11739         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11740         also if SSE2AVX is defined.
11741         Remove libc_fegetround* and libc_fesetround*.
11742         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11743         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11744         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11745         of HAS_YMM_USABLE.
11746         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11747         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11748         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11749         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11750         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11752         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11754 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11756         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11757         size is not set.
11758         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11760 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11762         [BZ #13618]
11763         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11764         relocation.
11765         * Makeconfig (libm): Define.
11766         * elf/Makefile: Add rules to build and run tst-relsort1.
11767         * elf/tst-relsort1.c: New file.
11768         * elf/tst-relsort1mod1.c: New file.
11769         * elf/tst-relsort1mod2.c: New file.
11771 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11773         * math/s_ldexp.c: Remove __STDC__ conditionals.
11774         * math/s_ldexpf.c: Likewise.
11775         * math/s_ldexpl.c: Likewise.
11776         * math/s_nextafter.c: Likewise.
11777         * math/s_nexttowardf.c: Likewise.
11778         * math/s_significand.c: Likewise.
11779         * math/s_significandf.c: Likewise.
11780         * math/s_significandl.c: Likewise.
11781         * math/w_jnl.c: Likewise.
11782         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11783         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11784         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11785         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11786         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11787         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11788         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11789         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11790         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11791         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11792         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11793         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11794         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11795         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11796         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11797         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11798         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11799         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11800         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11801         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11802         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11803         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11804         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11805         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11806         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11807         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11808         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11809         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11810         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11811         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11812         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11813         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11814         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11815         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11816         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11817         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11818         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11819         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11820         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11821         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11822         * sysdeps/ieee754/k_standard.c: Likewise.
11823         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11824         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11825         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11826         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11827         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11828         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11829         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11830         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11831         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11832         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11833         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11834         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11835         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11836         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11837         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11838         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11839         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11840         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11841         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11842         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11843         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11844         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11845         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11846         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11847         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11848         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11849         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11850         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11851         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11852         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11853         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11854         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11855         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11856         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11857         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11858         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11859         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11860         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11861         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11862         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11863         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11864         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11865         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11866         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11867         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11868         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11869         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11870         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11871         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11872         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11873         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11874         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11875         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11876         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11877         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11878         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11879         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11880         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11881         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11882         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11883         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11884         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11885         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11886         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11887         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11888         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11889         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11890         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11891         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11892         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11893         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11894         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11895         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11896         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11897         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11898         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11899         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11900         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11901         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11902         * sysdeps/ieee754/s_matherr.c: Likewise.
11903         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11904         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11905         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11906         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11908 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11910         * crypt/md5.h: Remove __STDC__ conditionals.
11911         * libio/libioP.h: Likewise.
11912         * locale/programs/config.h: Likewise.
11913         * sysdeps/generic/sysdep.h: Likewise.
11914         * sysdeps/i386/asm-syntax.h: Likewise.
11915         * sysdeps/s390/asm-syntax.h: Likewise.
11916         * sysdeps/unix/sysdep.h: Likewise.
11917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11920 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11922         * libio/libio.h: Remove __STDC__ conditionals.
11923         * malloc/obstack.h: Likewise.
11924         * math/complex.h: Likewise.
11925         * math/math.h: Likewise.
11926         * sysdeps/generic/_G_config.h: Likewise.
11927         * sysdeps/gnu/_G_config.h: Likewise.
11928         * sysdeps/mach/hurd/_G_config.h: Likewise.
11929         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11930         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11931         * sysdeps/sparc/bits/mathdef.h: Likewise.
11933 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11935         [BZ #13583]
11936         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11937         Clean up HAS_* macros.
11938         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11939         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11940         possible.
11941         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11942         HAS_AVX.
11943         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11944         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11945         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11946         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11947         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11949 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11951         * elf/tst-unique3.cc (gets): Remove declaration.
11952         * elf/tst-unique3lib.cc (gets): Likewise.
11953         * elf/tst-unique3lib2.cc (gets): Likewise.
11954         * elf/tst-unique4.cc (gets): Likewise.
11956 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11958         * include/stdio.h: Add C++ protection.  Add gets declarations and
11959         definitions.
11960         * debug/tst-chk1.c: Don't declare gets here.
11961         * stdio-common/tst-gets.c: Likewise.
11963 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11965         * posix/glob: Remove directory.
11967 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11969         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11971 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11973         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11974         of the non-standard EPFNOSUPPORT.
11976 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11978         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11979         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11980         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11982 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11984         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11986 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11988         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11989         transient errors.
11990         * nscd/grpcache.c (cache_addgr): Likewise.
11991         * nscd/hstcache.c (cache_addhst): Likewise.
11992         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11993         * nscd/pwdcache.c (cache_addpw): Likewise.
11994         * nscd/servicescache.c (cache_addserv): Likewise.
11996 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11998         * malloc/malloc.c: Various cleanups.
11999         * malloc/hooks.c: Likewise.
12001         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12002         * stdlib/bug-fmtmsg1.c: New file.
12004         * stdlib/fmtmsg.c (init): Add missing unlock.
12005         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12007 2012-01-12  Marek Polacek  <polacek@redhat.com>
12009         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12010         and _GNU_SOURCE.
12012 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12014         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12015         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12016         macro to ensure uniqueness of label name.
12017         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12018         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12020 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12022         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12024         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12025         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12026         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12029 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12031         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12033         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12034         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12035         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12037         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12039         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12040         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12041         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12042         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12044         * math/bits/math-finite.h: Add ldexp support.
12046 2012-01-10  Marek Polacek  <polacek@redhat.com>
12048         * locale/programs/localedef.h (show_archive_content): Add noreturn
12049         attribute.
12051 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12053         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12055 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12057         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12059         * io/Makefile (headers): Add bits/poll2.h.
12061 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12064         typo #include statement.
12066 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12068         * include/sys/cdefs.h: Define __attribute_alloc_size.
12069         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12070         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12071         * elf/pldd.c: Likewise.
12072         * iconv/iconv_charmap.c: Likewise.
12073         * iconv/iconvconfig.c: Likewise.
12074         * iconv/strtab.c: Likewise.
12075         * locale/programs/locale.c: Likewise.
12076         * locale/programs/localedef.h: Likewise.
12077         * locale/programs/simple-hash.c: Likewise.
12078         * nscd/nscd.h: Likewise.
12079         * nss/makedb.c: Likewise.
12080         * sysdeps/generic/ldconfig.h: Likewise.
12081         * locale/programs/localedef.c: Remove xmalloc prototype.
12082         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12084 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12086         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12087         appropriate.
12089 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12091         * math/Makefile (tests): Add tst-CMPLX.
12092         * math/tst-CMPLX.c: New file.
12094         * math/complex.h (CMPLXL): Fix typo.
12096         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12097         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12098         GLIBC_2.16.
12099         * debug/tst-chk1.c: Add poll and ppoll tests.
12100         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12101         * include/sys/poll.h: Add hidden proto for ppoll.
12102         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12103         * sysdeps/mach/hurd/ppoll.c: Likewise.
12104         * io/ppoll.c: Likewise.
12105         * debug/poll_chk.c: New file.
12106         * debug/ppoll_chk.c: New file.
12107         * include/bits/poll2.h: New file.
12108         * io/bits/poll2.h: New file.
12110         [BZ #1350]
12111         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12113         * configure.in: static is always set to yes.  Remove.
12114         * config.make.in: Don't set build-static.
12115         * Makeconfig: Remove use of build-static.
12116         * dlfcn/Makefile: Likewise.
12117         * elf/Makefile: Likewise.
12118         * math/Makefile: Likewise.
12119         * misc/Makefile: Likewise.
12120         * nptl/Makefile: Likewise.
12121         * sysdeps/mach/hurd/Makefile: Likewise.
12123         * configure.in: PWD_P is not used anymore.
12124         * config.make.in: Remove PWD_P entry.
12126         * configure.in: Remove last remnants of RANLIB.
12127         No need to check for signed size_t anymore.
12128         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12129         and IA-64.
12130         Remove __builtin_expect test because we require at least gcc 3.4.
12131         * aclocal.m4: Likewise.
12133         * wcsmbs/mbrtoc16.c: Implement using towc function.
12134         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12135         * wcsmbs/wcsmbsload.c: Likewise.
12136         * iconv/gconv_simple.c: Likewise.
12137         * iconv/gconv_int.h: Likewise.
12138         * iconv/gconv_builtin.h: Likewise.
12139         * iconv/iconv_prog.c: Remove CHAR16 handling.
12141         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12143         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12145         * configure.in: Remove --with-elf and --enable-bounded options.
12146         Dont set base_machine for ia64.  More non-ELF conditions removed.
12147         Remove testing and setting of leading underscore information.
12148         * config.make.in (build-bounded): Set to no.
12149         * config.h.in: Remove NO_UNDERSCORES entry.
12150         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12151         them.
12152         * csu/start.c: Remove !NO_UNDERSCORE code.
12153         * locale/localeinfo.h: Likewise.
12154         * sysdeps/generic/machine-gmon.h: Likewise.
12155         * sysdeps/generic/sysdep.h: Likewise.
12156         * sysdeps/i386/sysdep.h: Likewise.
12157         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12158         * sysdeps/mach/sysdep.h: Likewise.
12159         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12160         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12161         * sysdeps/sh/sysdep.h: Likewise.
12162         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12163         * sysdeps/unix/i386/sysdep.S: Likewise.
12164         * sysdeps/unix/sparc/start.c: Likewise.
12165         * sysdeps/unix/sparc/sysdep.S: Likewise.
12166         * sysdeps/unix/sparc/sysdep.h: Likewise.
12167         * sysdeps/unix/start.c: Likewise.
12168         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12169         * sysdeps/x86_64/sysdep.h: Likewise.
12171 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12173         [BZ #13553]
12174         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12175         for non-gcc.
12176         * argp/argp-fmtstream.h: Use const instead __const.
12177         * argp/argp.h: Likewise.
12178         * assert/assert.h: Likewise.
12179         * bits/fenv.h: Likewise.
12180         * bits/sched.h: Likewise.
12181         * bits/sigset.h: Likewise.
12182         * bits/sigthread.h: Likewise.
12183         * catgets/nl_types.h: Likewise.
12184         * conform/data/pthread.h-data: Likewise.
12185         * crypt/crypt-private.h: Likewise.
12186         * crypt/crypt.h: Likewise.
12187         * crypt/crypt_util.c: Likewise.
12188         * ctype/ctype.h: Likewise.
12189         * debug/execinfo.h: Likewise.
12190         * debug/mbsnrtowcs_chk.c: Likewise.
12191         * debug/mbsrtowcs_chk.c: Likewise.
12192         * debug/wcsnrtombs_chk.c: Likewise.
12193         * debug/wcsrtombs_chk.c: Likewise.
12194         * debug/wcstombs_chk.c: Likewise.
12195         * dirent/dirent.h: Likewise.
12196         * dlfcn/dlfcn.h: Likewise.
12197         * elf/neededtest4.c: Likewise.
12198         * grp/grp.h: Likewise.
12199         * gshadow/gshadow.h: Likewise.
12200         * iconv/gconv.h: Likewise.
12201         * iconv/gconv_int.h: Likewise.
12202         * iconv/gconv_simple.c: Likewise.
12203         * iconv/iconv.h: Likewise.
12204         * iconv/loop.c: Likewise.
12205         * iconv/skeleton.c: Likewise.
12206         * include/aio.h: Likewise.
12207         * include/aliases.h: Likewise.
12208         * include/argz.h: Likewise.
12209         * include/arpa/inet.h: Likewise.
12210         * include/assert.h: Likewise.
12211         * include/dirent.h: Likewise.
12212         * include/dlfcn.h: Likewise.
12213         * include/execinfo.h: Likewise.
12214         * include/fcntl.h: Likewise.
12215         * include/fenv.h: Likewise.
12216         * include/glob.h: Likewise.
12217         * include/grp.h: Likewise.
12218         * include/libintl.h: Likewise.
12219         * include/mntent.h: Likewise.
12220         * include/netdb.h: Likewise.
12221         * include/pwd.h: Likewise.
12222         * include/rpc/netdb.h: Likewise.
12223         * include/sched.h: Likewise.
12224         * include/search.h: Likewise.
12225         * include/shadow.h: Likewise.
12226         * include/signal.h: Likewise.
12227         * include/stdio.h: Likewise.
12228         * include/stdlib.h: Likewise.
12229         * include/string.h: Likewise.
12230         * include/sys/socket.h: Likewise.
12231         * include/sys/stat.h: Likewise.
12232         * include/sys/statfs.h: Likewise.
12233         * include/sys/statvfs.h: Likewise.
12234         * include/sys/syslog.h: Likewise.
12235         * include/sys/time.h: Likewise.
12236         * include/sys/uio.h: Likewise.
12237         * include/time.h: Likewise.
12238         * include/unistd.h: Likewise.
12239         * include/utmp.h: Likewise.
12240         * include/wchar.h: Likewise.
12241         * include/wctype.h: Likewise.
12242         * inet/aliases.h: Likewise.
12243         * inet/arpa/inet.h: Likewise.
12244         * inet/netinet/ether.h: Likewise.
12245         * inet/netinet/in.h: Likewise.
12246         * intl/libintl.h: Likewise.
12247         * io/bits/fcntl2.h: Likewise.
12248         * io/fcntl.h: Likewise.
12249         * io/ftw.h: Likewise.
12250         * io/sys/poll.h: Likewise.
12251         * io/sys/stat.h: Likewise.
12252         * io/sys/statfs.h: Likewise.
12253         * io/sys/statvfs.h: Likewise.
12254         * io/utime.h: Likewise.
12255         * libio/bits/stdio.h: Likewise.
12256         * libio/bits/stdio2.h: Likewise.
12257         * libio/libio.h: Likewise.
12258         * libio/libioP.h: Likewise.
12259         * libio/stdio.h: Likewise.
12260         * locale/lc-ctype.c: Likewise.
12261         * locale/locale.h: Likewise.
12262         * login/utmp.h: Likewise.
12263         * malloc/arena.c: Likewise.
12264         * malloc/malloc.c: Likewise.
12265         * malloc/malloc.h: Likewise.
12266         * malloc/mcheck.c: Likewise.
12267         * malloc/mtrace.c: Likewise.
12268         * math/bits/mathcalls.h: Likewise.
12269         * math/fenv.h: Likewise.
12270         * math/math_private.h: Likewise.
12271         * misc/bits/error.h: Likewise.
12272         * misc/bits/syslog.h: Likewise.
12273         * misc/err.h: Likewise.
12274         * misc/error.h: Likewise.
12275         * misc/fstab.h: Likewise.
12276         * misc/mntent.h: Likewise.
12277         * misc/regexp.h: Likewise.
12278         * misc/search.h: Likewise.
12279         * misc/sgtty.h: Likewise.
12280         * misc/sys/mman.h: Likewise.
12281         * misc/sys/syslog.h: Likewise.
12282         * misc/sys/uio.h: Likewise.
12283         * misc/sys/xattr.h: Likewise.
12284         * misc/ttyent.h: Likewise.
12285         * nis/rpcsvc/ypclnt.h: Likewise.
12286         * nss/nss.h: Likewise.
12287         * posix/bits/unistd.h: Likewise.
12288         * posix/fnmatch.h: Likewise.
12289         * posix/glob.h: Likewise.
12290         * posix/sched.h: Likewise.
12291         * posix/spawn.h: Likewise.
12292         * posix/sys/wait.h: Likewise.
12293         * posix/unistd.h: Likewise.
12294         * posix/wordexp.h: Likewise.
12295         * pwd/pwd.h: Likewise.
12296         * resolv/netdb.h: Likewise.
12297         * resource/sys/resource.h: Likewise.
12298         * rt/aio.h: Likewise.
12299         * rt/bits/mqueue2.h: Likewise.
12300         * rt/mqueue.h: Likewise.
12301         * shadow/shadow.h: Likewise.
12302         * signal/signal.h: Likewise.
12303         * socket/send.c: Likewise.
12304         * socket/sendto.c: Likewise.
12305         * socket/sys/socket.h: Likewise.
12306         * stdio-common/printf.h: Likewise.
12307         * stdlib/bits/stdlib.h: Likewise.
12308         * stdlib/fmtmsg.h: Likewise.
12309         * stdlib/monetary.h: Likewise.
12310         * stdlib/stdlib.h: Likewise.
12311         * stdlib/ucontext.h: Likewise.
12312         * streams/stropts.h: Likewise.
12313         * string/argz.h: Likewise.
12314         * string/bits/string2.h: Likewise.
12315         * string/string.h: Likewise.
12316         * string/strings.h: Likewise.
12317         * sunrpc/rpc/auth.h: Likewise.
12318         * sunrpc/rpc/auth_des.h: Likewise.
12319         * sunrpc/rpc/clnt.h: Likewise.
12320         * sunrpc/rpc/netdb.h: Likewise.
12321         * sunrpc/rpc/pmap_clnt.h: Likewise.
12322         * sunrpc/rpc/xdr.h: Likewise.
12323         * sysdeps/generic/inttypes.h: Likewise.
12324         * sysdeps/generic/net/if.h: Likewise.
12325         * sysdeps/generic/sys/swap.h: Likewise.
12326         * sysdeps/gnu/net/if.h: Likewise.
12327         * sysdeps/gnu/utmpx.h: Likewise.
12328         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12329         * sysdeps/i386/i486/bits/string.h: Likewise.
12330         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12331         * sysdeps/s390/bits/string.h: Likewise.
12332         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12333         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12334         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12335         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12336         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12337         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12338         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12339         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12340         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12341         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12342         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12343         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12344         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12345         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12346         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12347         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12348         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12349         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12350         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12351         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12352         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12353         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12354         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12355         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12356         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12357         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12358         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12359         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12360         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12361         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12362         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12363         * sysvipc/sys/ipc.h: Likewise.
12364         * sysvipc/sys/msg.h: Likewise.
12365         * sysvipc/sys/sem.h: Likewise.
12366         * sysvipc/sys/shm.h: Likewise.
12367         * termios/termios.h: Likewise.
12368         * time/sys/time.h: Likewise.
12369         * time/time.h: Likewise.
12370         * wcsmbs/bits/wchar2.h: Likewise.
12371         * wcsmbs/uchar.h: Likewise.
12372         * wcsmbs/wchar.h: Likewise.
12373         * wctype/wctype.h: Likewise.
12375         [BZ #13551]
12376         * Makeconfig: Remove all but ELF support including AIX support.
12377         * Makerules: Likewise.
12378         * config.h.in: Likewise.
12379         * config.make.in: Likewise.
12380         * configure: Likewise.
12381         * configure.in: Likewise.
12382         * csu/Makefile: Likewise.
12383         * csu/version.c: Likewise.
12384         * debug/Makefile: Likewise.
12385         * dlfcn/Makefile: Likewise.
12386         * elf/Makefile: Likewise.
12387         * extra-lib.mk: Likewise.
12388         * iconv/Makefile: Likewise.
12389         * include/libc-symbols.h: Likewise.
12390         * include/shlib-compat.h: Likewise.
12391         * resolv/Makefile: Likewise.
12392         * resolv/res_libc.c: Likewise.
12393         * rt/Makefile: Likewise.
12394         * sysdeps/i386/asm-syntax.h: Likewise.
12395         * sysdeps/i386/sysdep.h: Likewise.
12396         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12397         * sysdeps/mach/sysdep.h: Likewise.
12398         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12399         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12400         * sysdeps/s390/asm-syntax.h: Likewise.
12401         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12402         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12403         * sysdeps/sh/sysdep.h: Likewise.
12404         * sysdeps/unix/sparc/sysdep.h: Likewise.
12405         * sysdeps/wordsize-32/divdi3.c: Likewise.
12406         * sysdeps/x86_64/sysdep.h: Likewise.
12408         * argp/Versions: Remove _argp_unlock_xxx.
12410         [BZ #13559]
12411         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12412         * abilist/libBrokenLocale.abilist: Likewise.
12413         * abilist/libanl.abilist: Likewise.
12414         * abilist/libc.abilist: Likewise.
12415         * abilist/libcrypt.abilist: Likewise.
12416         * abilist/libdl.abilist: Likewise.
12417         * abilist/libm.abilist: Likewise.
12418         * abilist/libnsl.abilist: Likewise.
12419         * abilist/libpthread.abilist: Likewise.
12420         * abilist/libresolv.abilist: Likewise.
12421         * abilist/librt.abilist: Likewise.
12422         * abilist/libthread_db.abilist: Likewise.
12423         * abilist/libutil.abilist: Likewise.
12424         * abilist/libnss_db.abilist: New file.
12426         * scripts/abilist.awk: Add support for indirect functions.
12428         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12430         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12432         * shlib-versions: Remove entries for ports architectures.
12434         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12435         files in ports.
12436         * elf/stackguard-macros.h: Remove support for IA-64.
12437         * elf/tst-auditmod1.c: Likewise.
12438         * sysdeps/generic/ldsodefs.h: Likewise.
12440         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12441         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12442         configure files.
12444         [BZ #13552]
12445         * configure.in: Remove --enable-omitfp support.
12446         * FAQ.in: Adjust.
12447         * config.make.in: Likewise.
12448         * Makeconfig: Likewise.
12449         * manual/install.texi: Likewise.
12451         In case anyone cares, the IA-64 architecture could move to ports.
12452         * sysdeps/ia64/*: Removed.
12453         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12454         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12456         [BZ #13555]
12457         * configure.in: Remove entries for unsupported architectures.
12459         [BZ #13533]
12460         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12461         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12462         routines.
12463         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12464         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12465         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12466         fall back to using wcrtomb.
12467         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12468         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12469         renaming.
12470         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12471         * wcsmbs/tst-c16c32-1.c: New file.
12473         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12474         local variable.
12476         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12478         * elf/tst-unique3.cc: Add explicit declaration of gets.
12479         * elf/tst-unique3lib.cc: Likewise.
12480         * elf/tst-unique3lib2.cc: Likewise.
12481         * elf/tst-unique4.cc: Likewise.
12483         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12485 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12487         [BZ #13566]
12488         * assert/assert.h (static_assert): Don't define for C++.
12489         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12490         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12492 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12494         * iconv/loop.c (single loop): Fix assertion in storing of
12495         remaining bytes.
12497         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12499 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12501         * posix/getconf.c: Update copyright year.
12502         * nss/getent.c: Likewise.
12503         * nss/makedb.c: Likewise.
12504         * iconv/iconvconfig.c: Likewise.
12505         * iconv/iconv_prog.c: Likewise.
12506         * elf/ldconfig.c: Likewise.
12507         * elf/pldd.c: Likewise.
12508         * elf/sotruss.ksh: Likewise.
12509         * catgets/gencat.c: Likewise.
12510         * csu/version.c: Likewise.
12511         * elf/ldd.bash.in: Likewise.
12512         * elf/sprof.c (print_version): Likewise.
12513         * locale/programs/locale.c: Likewise.
12514         * locale/programs/localedef.c: Likewise.
12515         * login/programs/pt_chown.c: Likewise.
12516         * nscd/nscd.c (print_version): Likewise.
12517         * debug/xtrace.sh: Likewise.
12518         * malloc/memusage.sh: Likewise.
12519         * malloc/mtrace.pl: Likewise.
12520         * debug/catchsegv.sh: Likewise.
12522 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12524         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12525         pure attribute.
12527 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12529         [BZ #13533]
12530         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12531         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12532         transformations.
12533         * iconv/gconv_int.h: Likewise.
12534         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12535         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12536         from libc for GLIBC_2.16.
12537         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12538         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12539         * wcsmbs/uchar.h: Really define mbstate_t.
12540         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12541         * wcsmbs/c16rtomb.c: New file.
12542         * wcsmbs/mbrtoc16.c: New file.
12543         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12544         for C/POSIX locale.
12545         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12546         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12548         * wcsmbs/wchar.h: Add missing __restrict.
12550 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12552         [BZ #13532]
12553         * time/Makefile (routines): Add timespec_get.
12554         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12555         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12556         timespec for ISO C11.
12557         * time/timespec_get.c: New file.
12558         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12559         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12561         [BZ #13531]
12562         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12563         * stdlib/stdlib.h: Declare aligned_alloc.
12564         * Versions.def: Add GLIBC_2.16 for libc.
12565         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12567         [BZ 13527]
12568         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12569         ISO C11.
12571         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12572         code.
12574         [BZ #13528]
12575         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12577         [BZ #13529]
12578         * assert/assert.h (static_assert): Define.
12580         * version.h: Update for 2.16 development version.
12582         [BZ #13526]
12583         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12584         _ISOC11_SOURCE.
12586         * version.h (RELEASE): Bump for 2.15 release.
12587         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12589         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12590         Patch by Marek Polacek <mpolacek@redhat.com>.
12592         * bits/byteswap.h: Protect long long constants with __extension__.
12593         * sysdeps/i386/bits/byteswap.h: Likewise.
12594         * sysdeps/ia64/bits/byteswap.h: Likewise.
12595         * sysdeps/s390/bits/byteswap.h: Likewise.
12596         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12598 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12600         [BZ #13540]
12601         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12602         destination buffer.
12603         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12605 2011-12-23  Marek Polacek  <polacek@redhat.com>
12607         * elf/dl-addr.c (determine_info): Add inline keyword.
12608         * elf/tst-auditmod4b.c (check_avx): Likewise.
12609         * elf/tst-auditmod6b.c (check_avx): Likewise.
12610         * elf/tst-auditmod6c.c (check_avx): Likewise.
12611         * elf/tst-auditmod7b.c (check_avx): Likewise.
12613 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12615         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12616         !__SSE_MATH__.
12618 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12620         [BZ #13540]
12621         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12622         processing for last bytes.
12624 2011-08-06  Bruno Haible  <bruno@clisp.org>
12626         [BZ #13061]
12627         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12628         U+0385, not to U+1FEE.
12630         [BZ #13062]
12631         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12632         entry for U+00A5 U+0301.
12634 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12636         [BZ #13166]
12637         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12638         buffer for the output is too small.
12640         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12641         optimization.
12643         [BZ #13185]
12644         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12645         SSE flags if possible.
12647 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12649         [BZ #13540]
12650         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12651         processing for last bytes.
12653 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12655         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12656         (syscall-list-default-options, syscall-list-default-condition)
12657         (syscall-list-includes): Define.
12658         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12659         list of ABIs and options and #if conditions for each ABI.  Do not
12660         handle common syscalls between ABIs specially.
12661         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12662         Remove.
12663         (syscall-list-variants, syscall-list-32bit-options)
12664         (syscall-list-32bit-condition, syscall-list-64bit-options)
12665         (syscall-list-64bit-condition): Define.
12666         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12667         (syscall-list-variants, syscall-list-32bit-options)
12668         (syscall-list-32bit-condition, syscall-list-64bit-options)
12669         (syscall-list-64bit-condition): Define.
12670         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12671         Remove.
12672         (syscall-list-variants, syscall-list-32bit-options)
12673         (syscall-list-32bit-condition, syscall-list-64bit-options)
12674         (syscall-list-64bit-condition): Define.
12675         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12676         Remove.
12677         (syscall-list-variants, syscall-list-32bit-options)
12678         (syscall-list-32bit-condition, syscall-list-64bit-options)
12679         (syscall-list-64bit-condition): Define.
12681 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12683         * locale/iso-639.def: Add brx entry.
12685         [BZ #13328]
12686         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12687         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12689         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12690         __feraiseexcept_renamed.
12692 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12694         [BZ #13538]
12695         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12696         EPOLLET with unsigned values.
12697         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12698         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12700         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12701         to large cancellation.
12702         * math/s_cacoshf.c: Likewise.
12703         * math/s_cacoshl.c: Likewise.
12705 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12707         [BZ #13305]
12708         [BZ #12786]
12709         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12710         * math/s_cacoshf.c: Likewise.
12711         * math/s_cacoshl.c: Likewise.
12713 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12715         [BZ #13439]
12716         * iconv/gconv.h: Define __GCONV_SWAP.
12717         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12718         * iconvdata/utf-16.c: Likewise.
12719         * iconvdata/utf-32.c: Likewise.
12721 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12723         [BZ #13524]
12724         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12725         numerator after shifting it by one limb.
12727 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12729         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12730         under [__USE_EXTERN_INLINES].
12732 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12734         [BZ #13446]
12735         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12737 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12739         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12740         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12741         optimized code.
12742         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12743         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12744         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12745         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12746         for strncasecmp/strncasecmp_l compilation.
12747         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12748         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12750 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12752         [BZ #13484]
12753         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12754         of __asm__.
12756 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12758         [BZ #13506]
12759         * time/tzfile.c (__tzfile_read): Check values from file header.
12761 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12763         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12764         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12765         * powerpc/powerpc32/dl-start.S: Likewise.
12766         * powerpc/powerpc32/elf/start.S: Likewise.
12767         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12768         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12769         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12770         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12771         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12772         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12773         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12774         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12775         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12776         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12777         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12778         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12779         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12780         * powerpc/powerpc32/memset.S: Likewise.
12781         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12782         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12783         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12784         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12785         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12786         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12787         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12788         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12789         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12790         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12791         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12792         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12793         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12795 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12797         * math/libm-test.inc: Added more nearbyint tests.
12798         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12799         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12800         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12801         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12803 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12805         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12806         FD_CLOEXEC.
12808 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12810         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12811         Add wcscpy-ssse3 wcscpy-c.
12812         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12813         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12814         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12815         * sysdeps/x86_64/wcschr.S: New file.
12816         * sysdeps/x86_64/wcsrchr.S: New file.
12817         * string/test-strcmp.c: Remove checking of wcscmp function for
12818         wrong alignments.
12819         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12820         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12821         wcsrchr-sse2 wcsrchr-c.
12822         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12823         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12824         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12825         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12826         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12827         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12828         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12829         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12830         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12831         * wcsmbc/wcschr.c (WCSCHR): New macro.
12833 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12835         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12836         * wcsmbs/test-wcsrchr.c: New file.
12837         * string/test-strrchr.c: Add wcsrchr support.
12838         (WIDE): New macro.
12839         * wcsmbs/test-wcscpy.c: New file.
12840         * string/test-strcpy.c: Add wcscpy support.
12841         (WIDE): New macro.
12843 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12845         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12846         the inner loop.
12848 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12850         [BZ #13472]
12851         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12853 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12855         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12856         Minor optimizations.
12858         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12859         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12860         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12862 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12864         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12865         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12866         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12867         for gcc to avoid warnings.
12868         * inet/Makefile (tests): Add tst-checks.
12869         * inet/tst-checks.c: New file.
12871         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12872         warning.
12874         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12875         __wmemcmp_sse2.
12877         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12878         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12880         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12882 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12884         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12885         problem.
12887         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12889 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12891         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12892         conditional on GCC version.
12893         (__arch_compare_and_exchange_val_8_acq)
12894         (__arch_compare_and_exchange_val_16_acq)
12895         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12896         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12897         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12899 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12901         * sysdeps/sh/backtrace.c: New file.
12903 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12905         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12906         parenthesis.
12908 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12910         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12911         falling back to utime.
12913 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12915         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12916         expectations for float.
12918 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12920         * locale/weight.h (findidx): Add parameter len.
12921         * locale/weightwc.h (findidx): Likewise.
12922         * posix/fnmatch_loop.c (FCT): Adjust caller.
12923         * posix/regcomp.c (build_equiv_class): Likewise.
12924         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12925         * posix/regexec.c (check_node_accept_bytes): Likewise.
12926         * string/strcoll_l.c (STRCOLL): Likewise.
12927         * string/strxfrm_l.c (STRXFRM): Likewise.
12929 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12931         * Makefile.in: Remove CVSOPT handling.
12932         * configure.in: Remove use of AC_REVISION.
12933         * iconvdata/Makefile (distribute): No need to filter out CVS.
12934         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12935         handling.
12937 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12939         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12940         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12941         [USE_AS_STRNCASECMP_L]: Likewise.
12942         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12943         NO_TLS_DIRECT_SEG_REFS.
12944         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12945         Fix argument offsets for non-PIC.
12946         [USE_AS_STRNCASECMP_L]: Likewise.
12947         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12948         NO_TLS_DIRECT_SEG_REFS.
12950 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12952         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12953         O_CLOEXEC.
12954         * locale/loadlocale.c (_nl_load_locale): Likewise.
12956 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12958         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12959         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12960         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12961         (SYSCALL_GETTIME): Set errno on error.
12963         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12964         count references to noai6ai_cached.
12966 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12968         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12970         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12971         FD_CLOEXEC for /proc/self/maps.
12973         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12974         FD_CLOEXEC for /proc/meminfo.
12976         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12977         gai.conf.
12979         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12980         FD_CLOEXEC for given file.
12982         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12984         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12985         FD_CLOEXEC for /etc/hosts.
12986         (_gethtent): Likewise.
12988         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12990         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12991         cancellation and set FD_CLOEXEC for /etc/netgroup.
12993         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12994         reading /etc/publickey.
12996         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12997         allow cancellation when reading /etc/group.
12999         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13000         cancellation.
13001         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13003         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13004         when using data file.
13006         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13008         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13009         (write_nis_obj): Use "c" and "e" in fopen.
13011         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13013         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13015         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13017         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13019         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13020         locale.alias.
13022         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13024         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13026         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13028         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13029         file parsing and set FD_CLOEXEC.
13031 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13033         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13035 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13037         * malloc/arena.c (arena_get2): Don't call reused_arena when
13038         _int_new_arena failed.
13040 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13042         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13043         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13044         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13045         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13046         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13047         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13048         to compile strcasecmp and strncasecmp.
13049         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13050         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13052         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13054 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13056         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13057         locale-defines.sym to gen-as-const-headers.
13058         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13059         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13060         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13061         to compile strcasecmp and strncasecmp.
13062         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13063         strcasecmp_l and strncasecmp_l.
13064         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13065         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13066         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13067         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13068         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13069         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13070         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13071         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13072         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13073         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13074         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13076 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13078         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13079         result of SYSDEP_GETTIME_CPU to retval.
13080         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13081         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13083         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13084         variable.
13086         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13087         mantissa words.
13088         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13090         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13091         from unused variable.
13093         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13094         DWARF definitions.
13095         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13096         for assembling.
13098         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13099         over namespaces.
13101         * sunrpc/rpc_prot.c (rejected): Fix case value.
13103         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13104         unsigned long long int to avoid warnings in shift.
13106         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13107         of use of trans.
13108         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13109         variable tmp.
13111         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13112         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13113         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13115         * nis/nis_table.c (nis_list): Use variable of correct type for
13116         result of __follow_path call.
13118 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13120         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13121         of math functions ceil, trunc, floor, round, and sqrt, when
13122         avaliable on the platform.
13123         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13124         name clash.
13125         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13126         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13127         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13129 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13131         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13132         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13134 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13136         * include/unistd.h: Fix __readlink return type.
13137         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13139 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13141         * stdlib/ucontext.h: Undo last change for makecontext.
13143 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13145         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13147         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13148         * setjmp/setjmp.h: Mark functions as non-leaf.
13149         * setjmp/bits/setjmp2.h: Likewise.
13150         * stdlib/ucontext.h: Likewise.
13152 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13154         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13155         (reused_arena): Don't check arena limit.
13156         (arena_get2): Atomically check arena limit.
13158 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13160         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13161         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13163         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13164         instructions.
13166 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13168         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13169         handler when locking.
13171         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13172         Fix size of allocated buffer.
13174 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13176         [BZ #10103]
13177         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13178         declarations for long double functions.
13179         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13181         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13183 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13185         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13186         installed.
13188         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13189         is disabled.
13191 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13193         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13195 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13197         * include/alloca.h (stackinfo_alloca_round): Define.
13198         (extend_alloca): Use it.
13199         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13200         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13201         here.
13203         * scripts/check-local-headers.sh: Ignore libaudit.h.
13205         * nscd/Makefile (extra-objs): Make recursively expanded.
13207 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13209         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13210         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13212         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13213         * posix/tst-rfc3484-2.c: Likewise.
13214         * posix/tst-rfc3484-3.c: Likewise.
13216         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13217         process_vm_writev.
13218         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13219         process_vm_writev.
13220         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13221         process_vm_writev from libc using GLIBC_2.15 version.
13223         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13225 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13227         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13228         stack usage.
13230 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13232         [BZ #13367]
13233         * nss/getent.c (initgroups_keys): Show error message in case no group
13234         names are given.
13236         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13237         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13238         __bump_nl_timestamp.
13239         * nscd/connections (nscd_init): When host database is served open
13240         netlink socket and request notification about configuration changes.
13241         (main_loop_poll): Track netlink file descriptor and bump timestamp
13242         in case data becomes available.
13243         (main_loop_epoll): Likewise.
13244         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13245         (database_pers_head): Add extra_data fileds.
13246         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13247         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13248         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13249         Adjust caller.
13250         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13251         in6ai data, call __free_in6ai.
13252         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13253         Add -DHAVE_NETLINK.
13254         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13255         interface information.  Reuse previous data if netlink timestamp
13256         is not changed.
13257         (__bump_nl_timestamp): New function.
13258         (__free_in6ai): New function.
13260 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13262         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13263         close_not_cancel_no_status here.
13264         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13266 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13268         [BZ #13276]
13269         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13270         return value.
13272         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13273         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13274         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13276 2011-07-03  Andreas Jaeger  <aj@suse.de>
13278         [BZ #10709]
13279         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13280         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13281         * math/libm-test.inc (sin_test): Add test case.
13283 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13285         [BZ #13337]
13286         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13287         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13289         * elf/chroot_canon.c (chroot_canon): Cleanups.
13291         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13293         [BZ #13335]
13294         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13295         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13297         * string/test-strchr.c: Make usable for strchrnul testing.
13298         * string/test-strchrnul.c: New file.
13299         * string/Makefile (strop-tests): Add strchrnul.
13301         * po/it.po: Update from translation team.
13302         * po/es.po: Likewise.
13304 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13306         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13307         the three constants needed as parameters.  Drop the others.
13308         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13309         __m128i_strloadu_tolower.
13310         Create and initialize variable zero and use it in all the places
13311         where _mm_setzero_si128 was used.
13313         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13314         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13315         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13316         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13317         anymore.
13318         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13319         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13320         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13321         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13322         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13323         __mpranred, __mptan.
13324         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13325         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13326         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13327         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13328         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13329         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13330         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13331         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13332         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13334 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13336         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13337         redefine if SHARED.
13338         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13340         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13341         wide char related routines to wcsmbs subdir.
13343 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13345         [BZ #13344]
13346         * misc/sys/cdefs.h (__THROWNL): Define.
13347         * posix/unistd.h: Use __THREADNL instead of __THREAD
13348         for memory synchronization functions.
13350 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13352         [BZ #13349]
13353         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13354         doesn't exist.
13355         * manual/stdio.texi (Obstack Streams): Node removed.
13357 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13359         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13360         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13361         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13363         * math/math_private.h (math_force_eval): Allow non-addressable
13364         arguments.
13365         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13367 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13369         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13370         file is not needed.
13372         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13373         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13374         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13375         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13376         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13377         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13378         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13379         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13380         Add AVX variants.
13381         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13382         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13383         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13384         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13385         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13386         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13387         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13388         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13389         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13390         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13391         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13392         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13393         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13394         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13395         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13396         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13397         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13398         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13399         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13401         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13402         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13404         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13405         place.  Use VEX encoding when compiling for AVX.
13407 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13409         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13410         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13412         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13414 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13416         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13417         useless if() expression.
13418         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13419         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13420         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13421         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13422         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13423         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13424         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13425         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13426         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13427         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13428         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13429         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13430         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13431         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13432         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13433         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13434         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13435         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13436         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13438         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13440 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13442         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13443         condition.
13444         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13446 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13448         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13449         .text section.  Avoid duplicate constants.
13450         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13451         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13452         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13453         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13454         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13455         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13456         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13457         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13458         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13459         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13460         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13461         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13462         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13463         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13464         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13465         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13466         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13467         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13468         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13469         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13470         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13471         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13472         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13473         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13474         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13475         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13476         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13477         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13478         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13479         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13480         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13481         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13482         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13483         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13484         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13485         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13486         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13487         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13488         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13489         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13490         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13491         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13492         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13493         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13494         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13496 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13498         * sysdeps/x86_64/dla.h: Move to ...
13499         * sysdeps/x86_64/fpu/dla.h: ...here.
13500         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13501         situations.  Use __builtin_fma only for gcc 4.6 and up.
13503         * config.make.in: Add have-mfma4 entry.
13504         * configure.in: Substitute libc_cv_cc_fma4.
13505         * math/Makefile (dbl-only-routines): Add sincostab.
13506         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13507         Use __sincostab not sincos.
13508         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13509         name is a macro.
13510         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13511         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13512         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13513         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13514         using __copysign.
13515         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13516         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13517         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13518         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13519         and __inv.
13520         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13521         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13522         __copysign.
13523         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13524         define aliases when function name is a macro.
13525         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13526         sysdeps/ieee754/dbl-64/sincos.tbl.
13527         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13528         fma4-enabled routines.
13529         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13530         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13531         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13532         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13533         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13534         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13535         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13536         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13537         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13538         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13539         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13540         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13541         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13542         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13543         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13544         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13545         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13546         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13547         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13548         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13549         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13550         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13551         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13552         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13553         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13554         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13555         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13556         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13557         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13558         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13560         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13561         rename.
13562         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13563         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13564         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13565         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13566         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13567         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13568         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13569         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13571 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13573         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13575 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13577         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13579         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13580         prediction.
13581         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13583         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13584         Remove unused variable magic_bits.
13585         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13587         * string/strnlen.c: Define and use STRNLEN macro.
13588         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13589         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13590         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13591         * wcsmbs/wcslen.c: Define and use WCSLEN.
13592         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13593         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13594         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13595         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13596         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13597         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13598         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13600 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13602         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13603         strnlen-sse2-no-bsf.
13604         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13605         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13606         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13607         Add strnlen support.
13608         (USE_AS_STRNLEN): New macro.
13609         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13610         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13611         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13612         * sysdeps/x86_64/wcslen.S: New file.
13614 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13616         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13617         XMM-moves are used for copying on small sizes.
13619 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13621         * wcsmbs/Makefile (strop-tests): Add wcschr.
13622         * wcsmbs/test-wcschr.c: New file.
13623         * string/test-strchr.c: Update.
13624         Add wcschr support.
13625         (WIDE): New macro.
13627 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13629         * wcsmbs/Makefile (strop-tests): Add wcslen.
13630         * wcsmbs/test-wcslen.c: New file.
13631         * string/test-strlen.c: Update.
13632         Add wcslen support.
13633         (WIDE): New macro.
13635 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13637         * po/it.po: Update from translation team.
13639 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13641         * sysdeps/x86_64/wcscmp.S: Update.
13642         Fix wrong comparison semantics.
13643         wcscmp shall use signed comparison not unsigned.
13644         Don't use substraction to avoid overflow bug.
13645         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13646         * wcsmbc/wcscmp.c: Likewise.
13647         * string/test-strcmp.c: Likewise.
13648         Add new tests to check cases with negative values.
13650 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13652         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13653         * sysdeps/x86_64/dla.h: ...here.  New file.
13654         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13655         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13656         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13657         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13658         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13659         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13660         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13661         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13662         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13664 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13666         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13667         __ynl_finite aliases.
13669 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13671         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13673         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13674         define DLA_FMA.
13675         [DLA_FMA] (EMULV): Use DLA_FMA.
13676         [DLA_FMA] (MUL12): Use EMULV.
13677         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13678         that are not needed.
13679         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13680         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13681         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13682         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13683         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13684         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13685         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13687 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13689         * math/s_nan.c: Undef __nan.
13690         * math/s_nanf.c: Undef __nanf.
13691         * math/s_nanl.c: Undef __nanl.
13692         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13693         "math_private.h".
13695 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13697         * math/s_catan.c: Add branch predictions.
13698         * math/s_catanf.c: Likewise.
13699         * math/s_catanh.c: Likewise.
13700         * math/s_catanhf.c: Likewise.
13701         * math/s_catanhl.c: Likewise.
13702         * math/s_catanl.c: Likewise.
13703         * math/s_cexp.c: Likewise.
13704         * math/s_cexpf.c: Likewise.
13705         * math/s_cexpl.c: Likewise.
13706         * math/s_clog.c: Likewise.
13707         * math/s_clog10.c: Likewise.
13708         * math/s_clog10f.c: Likewise.
13709         * math/s_clog10l.c: Likewise.
13710         * math/s_clogf.c: Likewise.
13711         * math/s_clogl.c: Likewise.
13712         * math/s_csqrt.c: Likewise.
13713         * math/s_csqrtf.c: Likewise.
13714         * math/s_csqrtl.c: Likewise.
13715         * math/s_ctanf.c: Likewise.
13716         * math/s_ctanh.c: Likewise.
13717         * math/s_ctanhf.c: Likewise.
13718         * math/s_ctanhl.c: Likewise.
13719         * math/s_ctanl.c: Likewise.
13721         * math/math_private.h: Define __nan, __nanf, __nanl.
13722         * math/s_cacosh.c: Include <math_private.h>.
13723         * math/s_cacoshl.c: Likewise.
13724         * math/s_casinh.c: Likewise.
13725         * math/s_casinhf.c: Likewise.
13726         * math/s_casinhl.c: Likewise.
13727         * math/s_ccos.c: Rely entire on ccosh.
13728         * math/s_ccosf.c: Rely entire on ccoshf.
13729         * math/s_ccosl.c: Rely entirely on ccoshl.
13730         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13731         Remove tests for FE_INVALID.
13732         * math/s_ccoshf.c: Likewise.
13733         * math/s_ccoshl.c: Likewise.
13734         * math/s_csin.c: Likewise.
13735         * math/s_csinf.c: Likewise.
13736         * math/s_csinh.c Likewise.
13737         * math/s_csinhf.c: Likewise.
13738         * math/s_csinhl.c: Likewise.
13739         * math/s_csinl.c: Likewise.
13740         * math/s_ctan.c: Likewise.
13741         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13742         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13743         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13745 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13747         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13748         compilation problems.
13750         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13751         __builtin_expect.
13753 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13755         * sysdeps/i386/configure.in: Test for -mfma4 option.
13756         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13757         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13758         COMMON_CPUID_INDEX_80000001.
13759         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13760         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13761         use it if FMA3 is not supported.
13762         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13764         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13765         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13767 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13769         [BZ #12892]
13770         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13771         it would create a cycle with a link time dependency.
13773 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13775         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13776         instruction.
13777         * string/Makefile (strop-tests): Add rawmemchr.
13778         * string/test-rawmemchr.c: New file.
13780         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13781         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13782         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13783         when compiling str{,n}casecmp and when AVX is available.  Hook up
13784         new optimized code in initializers.
13786 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13788         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13789         __feraiseexcept instead of feraiseexcept.
13791 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13793         * math/math_private.h: Define defaults for libc_fetestexcept and
13794         libc_feupdateenv.
13795         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13796         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13797         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13798         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13799         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13800         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13801         libc_fetestexcept and libc_feupdateenv.
13803         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13804         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13805         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13806         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13807         libc_feholdexcept_setround.
13809         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13810         Add s_nearbyint-c and s_nearbyintf-c.
13811         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13812         nearbyintf inlines.
13813         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13814         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13815         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13816         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13818         * math/math_private.h: Define defaults for libc_fegetround,
13819         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13820         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13821         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13822         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13823         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13824         standard functions.
13825         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13826         Remove comments and hacks for old compiler versions.
13827         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13828         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13829         libc_feholdexceptl.
13831 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13833         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13834         (__feraiseexcept_renamed): Add __NTH.
13835         (feraiseexcept): Add __NTH.  Rename local variables to fix
13836         namespace violations.
13838 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13840         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13842         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13844         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13845         recently added interfaces.
13846         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13848         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13849         about macro parameter expansion.
13851         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13852         __NO_MATH_INLINES is defined.  Cleanups.
13854         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13855         and __floorf is target has SSE4.1.
13856         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13857         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13858         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13859         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13861         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13862         name.
13863         (floorf): Likewise.
13865         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13867 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13869         * misc/sys/cdefs.h: Fix last change.
13871         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13872         database lookup.
13874 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13876         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13878         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13879         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13880         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13881         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13882         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13883         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13884         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13885         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13886         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13887         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13888         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13889         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13890         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13891         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13892         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13893         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13894         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13895         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13896         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13897         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13898         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13899         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13901         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13902         ceil, ceilf, floor, floorf.
13904         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13905         Perform IRELATIVE relocations last.
13907         * elf/do-rel.h: Add another parameter nrelative, replacing the
13908         local variable with the same name.  Change name of the function
13909         to end in Rel or Rela (uppercase).
13910         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13911         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13912         elf_dynamic_do_##reloc function.
13914 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13916         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13917         is sufficient, at least on modern CPUs.
13919         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13921         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13922         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13924         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13925         __expl_finite.
13926         * math/bits/math-finite.h: Add entries for exp.
13927         * math/e_expl.c: Add __*_finite alias.
13928         * sysdeps/i386/fpu/e_exp.S: Likewise.
13929         * sysdeps/i386/fpu/e_expf.S: Likewise.
13930         * sysdeps/i386/fpu/e_expl.c: Likewise.
13931         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13932         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13933         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13934         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13935         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13936         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13937         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13939         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13940         is sufficient, at least on modern CPUs.
13942         * ctype/ctype-info.c (__ctype_init): Define.
13943         * include/ctype.h (__ctype_init): Declare.
13944         (__ctype_b_loc): The variable is always initialized.
13945         (__ctype_toupper_loc): Likewise.
13946         (__ctype_tolower_loc): Likewise.
13947         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13948         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13950 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13952         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13954         * configure.in: Also look in $cxxmachine/include for C++ system
13955         headers.
13957 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13959         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13960         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13961         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13962         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13963         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13964         (USE_AS_WMEMCMP): New macro.
13965         Fixing indents.
13966         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13967         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13968         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13969         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13970         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13971         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13972         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13973         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13974         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13975         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13976         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13977         (USE_AS_WMEMCMP): New macro.
13978         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13979         * sysdeps/string/test-memcmp.c: Update.
13980         Fix simple_wmemcmp.
13981         Add new tests.
13982         * wcsmbs/wmemcmp.c: Update.
13983         (WMEMCMP): New macro.
13984         Fix overflow bug.
13986 2011-10-12  Andreas Jaeger  <aj@suse.de>
13988         [BZ #13268]
13989         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13991 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13993         * libio/iofwide.c (do_length): Avoid warning.
13995         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13997 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13999         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14001         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14002         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14003         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14004         * sysdeps/i386/i686/fpu/e_log.S: New file.
14005         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14006         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14008         * ctype/ctype.h: Add support for inlined isXXX functions when
14009         compiling C++ code.
14011 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14013         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14015         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14017 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14019         [BZ #13291]
14020         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14022 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14024         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14025         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14026         feraiseexcept.
14028         * sysdeps/x86_64/memrchr.S: Check for zero size.
14030         * string/stratcliff.c: Add memrchr tests.
14032 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14034         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14035         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14036         rawmemchr-sse2 rawmemchr-sse2-bsf.
14037         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14038         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14039         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14040         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14041         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14042         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14043         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14044         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14045         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14046         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14047         * string/memrchr.c (MEMRCHR): New macro.
14049 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14051         Add integration with gcc's -ffinite-math-only and optimize wrapper
14052         functions in libm.
14053         * Versions.def: Define GLIBC_2.15 version for libm.
14054         * math/Makefile (headers): Add bits/math-finite.h.
14055         * math/bits/math-finite.h: New file.
14056         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14057         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14058         * math/e_acoshl.c: Add __*_finite alias.
14059         * math/e_acosl.c: Likewise.
14060         * math/e_asinl.c: Likewise.
14061         * math/e_atan2l.c: Likewise.
14062         * math/e_atanhl.c: Likewise.
14063         * math/e_coshl.c: Likewise.
14064         * math/e_exp10.c: Likewise.
14065         * math/e_exp10f.c: Likewise.
14066         * math/e_exp10l.c: Likewise.
14067         * math/e_exp2l.c: Likewise.
14068         * math/e_fmodl.c: Likewise.
14069         * math/e_gammal_r.c: Likewise.
14070         * math/e_hypotl.c: Likewise.
14071         * math/e_j0l.c: Likewise.
14072         * math/e_j1l.c: Likewise.
14073         * math/e_jnl.c: Likewise.
14074         * math/e_lgammal_r.c: Likewise.
14075         * math/e_log10l.c: Likewise.
14076         * math/e_log2l.c: Likewise.
14077         * math/e_logl.c: Likewise.
14078         * math/e_powl.c: Likewise.
14079         * math/e_sinhl.c: Likewise.
14080         * math/e_sqrtl.c: Likewise.
14081         * math/e_scalb.c: Completely rewritten and optimized.
14082         * math/e_scalbf.c: Likewise.
14083         * math/e_scalbl.c: Likewise.
14084         * math/w_acos.c: Likewise.
14085         * math/w_acosf.c: Likewise.
14086         * math/w_acosl.c: Likewise.
14087         * math/w_acosh.c: Likewise.
14088         * math/w_acoshf.c: Likewise.
14089         * math/w_acoshl.c: Likewise.
14090         * math/w_asin.c: Likewise.
14091         * math/w_asinf.c: Likewise.
14092         * math/w_asinl.c: Likewise.
14093         * math/w_atan2.c: Likewise.
14094         * math/w_atan2f.c: Likewise.
14095         * math/w_atan2l.c: Likewise.
14096         * math/w_atanh.c: Likewise.
14097         * math/w_atanhf.c: Likewise.
14098         * math/w_atanhl.c: Likewise.
14099         * math/w_exp10.c: Likewise.
14100         * math/w_exp10f.c: Likewise.
14101         * math/w_exp10l.c: Likewise.
14102         * math/w_fmod.c: Likewise.
14103         * math/w_fmodf.c: Likewise.
14104         * math/w_fmodl.c: Likewise.
14105         * math/w_j0.c: Likewise.
14106         * math/w_j0f.c: Likewise.
14107         * math/w_j0l.c: Likewise.
14108         * math/w_j1.c: Likewise.
14109         * math/w_j1f.c: Likewise.
14110         * math/w_j1l.c: Likewise.
14111         * math/w_jn.c: Likewise.
14112         * math/w_jnf.c: Likewise.
14113         * math/w_log.c: Likewise.
14114         * math/w_logf.c: Likewise.
14115         * math/w_logl.c: Likewise.
14116         * math/w_log10.c: Likewise.
14117         * math/w_log10f.c: Likewise.
14118         * math/w_log10l.c: Likewise.
14119         * math/w_log2.c: Likewise.
14120         * math/w_log2f.c: Likewise.
14121         * math/w_log2l.c: Likewise.
14122         * math/w_pow.c: Likewise.
14123         * math/w_powf.c: Likewise.
14124         * math/w_powl.c: Likewise.
14125         * math/w_remainder.c: Likewise.
14126         * math/w_remainderf.c: Likewise.
14127         * math/w_remainderl.c: Likewise.
14128         * math/w_scalb.c: Likewise.
14129         * math/w_scalbf.c: Likewise.
14130         * math/w_scalbl.c: Likewise.
14131         * math/w_sqrt.c: Likewise.
14132         * math/w_sqrtf.c: Likewise.
14133         * math/w_sqrtl.c: Likewise.
14134         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14135         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14136         used.
14137         * math/math_private.h: Declare __kernel_standard_f.
14138         * math/w_cosh.c: Remove cruft and optimize a bit.
14139         * math/w_coshf.c: Likewise.
14140         * math/w_coshl.c: Likewise.
14141         * math/w_exp2.c: Likewise.
14142         * math/w_exp2f.c: Likewise.
14143         * math/w_exp2l.c: Likewise.
14144         * math/w_hypot.c: Likewise.
14145         * math/w_hypotf.c: Likewise.
14146         * math/w_hypotl.c: Likewise.
14147         * math/w_lgamma.c: Likewise.
14148         * math/w_lgamma_r.c: Likewise.
14149         * math/w_lgammaf.c: Likewise.
14150         * math/w_lgammaf_r.c: Likewise.
14151         * math/w_lgammal.c: Likewise.
14152         * math/w_lgammal_r.c: Likewise.
14153         * math/w_sinh.c: Likewise.
14154         * math/w_sinhf.c: Likewise.
14155         * math/w_sinhl.c: Likewise.
14156         * math/w_tgamma.c: Likewise.
14157         * math/w_tgammaf.c: Likewise.
14158         * math/w_tgammal.c: Likewise.
14159         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14160         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14161         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14162         Minor optimizations.  Pretty printing.  Remove cruft.
14163         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14164         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14165         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14166         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14167         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14168         * sysdeps/i386/fpu/e_asin.S: Likewise.
14169         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14170         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14171         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14172         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14173         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14174         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14175         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14176         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14177         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14178         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14179         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14180         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14181         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14182         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14183         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14184         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14185         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14186         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14187         * sysdeps/i386/fpu/e_log.S: Likewise.
14188         * sysdeps/i386/fpu/e_log10.S: Likewise.
14189         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14190         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14191         * sysdeps/i386/fpu/e_log2.S: Likewise.
14192         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14193         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14194         * sysdeps/i386/fpu/e_logf.S: Likewise.
14195         * sysdeps/i386/fpu/e_logl.S: Likewise.
14196         * sysdeps/i386/fpu/e_pow.S: Likewise.
14197         * sysdeps/i386/fpu/e_powf.S: Likewise.
14198         * sysdeps/i386/fpu/e_powl.S: Likewise.
14199         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14200         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14201         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14202         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14203         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14204         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14205         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14206         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14207         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14208         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14209         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14210         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14211         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14212         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14213         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14214         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14215         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14216         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14217         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14218         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14219         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14220         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14221         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14222         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14223         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14224         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14225         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14226         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14227         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14228         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14229         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14230         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14231         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14232         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14233         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14234         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14235         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14236         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14237         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14238         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14239         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14240         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14241         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14242         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14243         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14244         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14245         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14246         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14247         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14248         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14249         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14250         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14251         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14252         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14253         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14254         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14255         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14256         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14257         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14258         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14259         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14260         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14261         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14262         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14263         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14264         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14265         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14266         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14267         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14268         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14269         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14270         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14271         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14272         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14273         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14274         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14275         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14276         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14277         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14278         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14279         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14280         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14281         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14282         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14283         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14284         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14285         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14286         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14287         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14288         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14289         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14290         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14291         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14292         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14293         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14294         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14295         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14296         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14297         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14298         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14299         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14300         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14301         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14302         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14303         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14304         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14305         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14306         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14307         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14308         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14309         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14310         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14311         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14312         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14313         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14314         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14315         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14316         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14317         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14318         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14319         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14320         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14321         (__isnanf): Likewise.
14322         (__isinf_ns): Likewise.
14323         (__isinf_nsf): Likewise.
14324         (__finite): Likewise.
14325         (__finitef): Likewise.
14326         (__ieee754_sqrt): Define as macro.
14327         (__ieee754_sqrtf): Define as macro.
14328         (__ieee754_sqrtl): Define as macro.
14329         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14330         inlined copy.
14331         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14332         __FINITE_MATH_ONLY__ consistent.
14333         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14335 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14337         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14338         of rawmemchr.
14340         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14342 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14344         * po/ja.po: Update from translation team.
14346 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14348         * locale/programs/locarchive.c (prepare_address_space): New function.
14349         (create_archive, enlarge_archive, open_archive): Use it.
14351         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14352         inside [SHARED], where it is used.
14354         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14356         * nss/getent.c (netgroup_keys): Remove unused variable.
14357         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14359 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14361         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14362         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14363         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14364         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14365         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14366         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14367         * math/Makefile (libm-calls): Add s_isinf_ns.
14368         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14369         * math/multc3.c: Likewise.
14370         * math/s_casin.c: Likewise.
14371         * math/s_casinf.c: Likewise.
14372         * math/s_casinl.c: Likewise.
14373         * math/s_ccos.c: Likewise.
14374         * math/s_ccosf.c: Likewise.
14375         * math/s_ccosl.c: Likewise.
14376         * math/s_ctan.c: Likewise.
14377         * math/s_ctanf.c: Likewise.
14378         * math/s_ctanh.c: Likewise.
14379         * math/s_ctanhf.c: Likewise.
14380         * math/s_ctanhl.c: Likewise.
14381         * math/s_ctanl.c: Likewise.
14382         * math/w_fmod.c: Likewise.
14383         * math/w_fmodf.c: Likewise.
14384         * math/w_fmodl.c: Likewise.
14385         * math/w_remainder.c: Likewise.
14386         * math/w_remainderf.c: Likewise.
14387         * math/w_remainderl.c: Likewise.
14388         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14389         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14390         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14391         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14392         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14393         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14394         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14395         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14397         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14398         of the number.
14399         * stdio-common/printf_fphex.c: Likewise.
14400         * stdio-common/printf_size.c: Likewise.
14402         * math/e_exp10.c: Include math_private.h using <...> not "...".
14403         * math/e_exp10f.c: Likewise.
14404         * math/e_exp10l.c: Likewise.
14405         * math/e_exp2l.c: Likewise.
14406         * math/e_j0l.c: Likewise.
14407         * math/e_j1l.c: Likewise.
14408         * math/e_jnl.c: Likewise.
14409         * math/e_lgammal_r.c: Likewise.
14410         * math/e_rem_pio2l.c: Likewise.
14411         * math/e_scalb.c: Likewise.
14412         * math/e_scalbf.c: Likewise.
14413         * math/e_scalbl.c: Likewise.
14414         * math/k_cosl.c: Likewise.
14415         * math/k_sinl.c: Likewise.
14416         * math/k_tanl.c: Likewise.
14417         * math/s_cacoshf.c: Likewise.
14418         * math/s_catan.c: Likewise.
14419         * math/s_catanf.c: Likewise.
14420         * math/s_catanh.c: Likewise.
14421         * math/s_catanhf.c: Likewise.
14422         * math/s_catanhl.c: Likewise.
14423         * math/s_catanl.c: Likewise.
14424         * math/s_ccosh.c: Likewise.
14425         * math/s_ccoshf.c: Likewise.
14426         * math/s_ccoshl.c: Likewise.
14427         * math/s_cexp.c: Likewise.
14428         * math/s_cexpf.c: Likewise.
14429         * math/s_cexpl.c: Likewise.
14430         * math/s_clog.c: Likewise.
14431         * math/s_clog10.c: Likewise.
14432         * math/s_clog10f.c: Likewise.
14433         * math/s_clog10l.c: Likewise.
14434         * math/s_clogf.c: Likewise.
14435         * math/s_clogl.c: Likewise.
14436         * math/s_csin.c: Likewise.
14437         * math/s_csinf.c: Likewise.
14438         * math/s_csinh.c: Likewise.
14439         * math/s_csinhf.c: Likewise.
14440         * math/s_csinhl.c: Likewise.
14441         * math/s_csinl.c: Likewise.
14442         * math/s_csqrt.c: Likewise.
14443         * math/s_csqrtf.c: Likewise.
14444         * math/s_csqrtl.c: Likewise.
14445         * math/s_ctan.c: Likewise.
14446         * math/s_ctanf.c: Likewise.
14447         * math/s_ctanh.c: Likewise.
14448         * math/s_ctanhf.c: Likewise.
14449         * math/s_ctanhl.c: Likewise.
14450         * math/s_ctanl.c: Likewise.
14451         * math/s_ldexp.c: Likewise.
14452         * math/s_ldexpf.c: Likewise.
14453         * math/s_ldexpl.c: Likewise.
14454         * math/s_significand.c: Likewise.
14455         * math/s_significandf.c: Likewise.
14456         * math/s_significandl.c: Likewise.
14457         * math/w_acos.c: Likewise.
14458         * math/w_acosf.c: Likewise.
14459         * math/w_acosh.c: Likewise.
14460         * math/w_acoshf.c: Likewise.
14461         * math/w_acoshl.c: Likewise.
14462         * math/w_acosl.c: Likewise.
14463         * math/w_asin.c: Likewise.
14464         * math/w_asinf.c: Likewise.
14465         * math/w_asinl.c: Likewise.
14466         * math/w_atan2.c: Likewise.
14467         * math/w_atan2f.c: Likewise.
14468         * math/w_atan2l.c: Likewise.
14469         * math/w_atanh.c: Likewise.
14470         * math/w_atanhf.c: Likewise.
14471         * math/w_atanhl.c: Likewise.
14472         * math/w_cosh.c: Likewise.
14473         * math/w_coshf.c: Likewise.
14474         * math/w_coshl.c: Likewise.
14475         * math/w_dremf.c: Likewise.
14476         * math/w_exp10.c: Likewise.
14477         * math/w_exp10f.c: Likewise.
14478         * math/w_exp10l.c: Likewise.
14479         * math/w_exp2.c: Likewise.
14480         * math/w_exp2f.c: Likewise.
14481         * math/w_fmod.c: Likewise.
14482         * math/w_fmodf.c: Likewise.
14483         * math/w_fmodl.c: Likewise.
14484         * math/w_hypot.c: Likewise.
14485         * math/w_hypotf.c: Likewise.
14486         * math/w_hypotl.c: Likewise.
14487         * math/w_j0.c: Likewise.
14488         * math/w_j0f.c: Likewise.
14489         * math/w_j0l.c: Likewise.
14490         * math/w_j1.c: Likewise.
14491         * math/w_j1f.c: Likewise.
14492         * math/w_j1l.c: Likewise.
14493         * math/w_jn.c: Likewise.
14494         * math/w_jnf.c: Likewise.
14495         * math/w_jnl.c: Likewise.
14496         * math/w_lgamma.c: Likewise.
14497         * math/w_lgamma_r.c: Likewise.
14498         * math/w_lgammaf.c: Likewise.
14499         * math/w_lgammaf_r.c: Likewise.
14500         * math/w_lgammal.c: Likewise.
14501         * math/w_lgammal_r.c: Likewise.
14502         * math/w_log.c: Likewise.
14503         * math/w_log10.c: Likewise.
14504         * math/w_log10f.c: Likewise.
14505         * math/w_log10l.c: Likewise.
14506         * math/w_log2.c: Likewise.
14507         * math/w_log2f.c: Likewise.
14508         * math/w_log2l.c: Likewise.
14509         * math/w_logf.c: Likewise.
14510         * math/w_logl.c: Likewise.
14511         * math/w_pow.c: Likewise.
14512         * math/w_powf.c: Likewise.
14513         * math/w_powl.c: Likewise.
14514         * math/w_remainder.c: Likewise.
14515         * math/w_remainderf.c: Likewise.
14516         * math/w_remainderl.c: Likewise.
14517         * math/w_scalb.c: Likewise.
14518         * math/w_scalbf.c: Likewise.
14519         * math/w_scalbl.c: Likewise.
14520         * math/w_sinh.c: Likewise.
14521         * math/w_sinhf.c: Likewise.
14522         * math/w_sinhl.c: Likewise.
14523         * math/w_sqrt.c: Likewise.
14524         * math/w_sqrtf.c: Likewise.
14525         * math/w_sqrtl.c: Likewise.
14526         * math/w_tgamma.c: Likewise.
14527         * math/w_tgammaf.c: Likewise.
14528         * math/w_tgammal.c: Likewise.
14530         * po/ja.po: Update from translation team.
14532 2011-09-29  Andreas Jaeger  <aj@suse.de>
14534         [BZ #13179]
14535         * sunrpc/netname.c (netname2host): Fix logic.
14537         [BZ #6779]
14538         [BZ #6783]
14539         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14540         correctly.
14541         * math/w_remainder.c (__remainder): Likewise.
14542         * math/w_remainderf.c (__remainderf): Likewise.
14543         * math/libm-test.inc (remainder_test): Add test cases.
14545 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14547         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14548         sdiv_qrnnd.
14550 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14552         * string/test-memcmp.c: Avoid unncessary #defines.
14553         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14555 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14557         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14558         Use new sse2 version for core i3 - i7 as it's faster
14559         than sse42 version.
14560         (bit_Prefer_PMINUB_for_stringop): New.
14561         * sysdeps/x86_64/rawmemchr.S: Update.
14562         Replace with faster SSE2 version.
14563         * sysdeps/x86_64/memrchr.S: New file.
14564         * sysdeps/x86_64/memchr.S: Update.
14565         Replace with faster SSE2 version.
14567 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14569         * elf/dl-load.c (lose): Add cast to avoid warning.
14571 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14573         * po/ca.po: Update from translation team.
14575         * inet/getnetgrent_r.c: Hook up nscd.
14576         * nscd/Makefile (routines): Add nscd_netgroup.
14577         (nscd-modules): Add netgroupcache.
14578         (CFLAGS-netgroupcache.c): Define.
14579         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14580         (cache_search): Add const to second parameter.
14581         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14582         INNETGR.
14583         (dbs): Add netgrdb entry.
14584         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14585         (verify_persistent_db): Handle netgrdb.
14586         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14587         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14588         GETFDNETGR.
14589         (netgroup_response_header): Define.
14590         (innetgroup_response_header): Define.
14591         (datahead): Add netgroup_response_header and innetgroup_response_header
14592         elements.
14593         * nscd/nscd.conf: Add entries for netgroup cache.
14594         * nscd/nscd.h (dbtype): Add netgrdb.
14595         (_PATH_NSCD_NETGROUP_DB): Define.
14596         (netgroup_iov_disabled): Declare.
14597         (xmalloc, xcalloc, xrealloc): Move declarations here.
14598         (cache_search): Adjust prototype.
14599         Add netgroup-related prototypes.
14600         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14601         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14602         (__nscd_innetgr): Declare.
14603         * nscd/selinux.c (perms): Use access_vector_t as element type and
14604         add netgroup-related initializers.
14605         * nscd/netgroupcache.c: New file.
14606         * nscd/nscd_netgroup.c: New file.
14607         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14608         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14609         For four parameters use innetgr.
14610         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14611         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14612         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14613         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14615         * nscd/connections.c (register_traced_file): Don't register file
14616         for disabled databases.
14618 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14620         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14622         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14623         from tree and freeing node.
14625 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14627         * nss/nsswitch.c (__nss_database_lookup): Handle
14628         nss_parse_service_list out of memory case.
14630 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14632         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14633         out of memory case.
14635 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14637         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14638         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14639         pass it down.
14640         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14641         elf_machine_rela, elf_machine_lazy_rel.
14642         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14643         (ELF_DYNAMIC_DO_REL): Likewise.
14644         (ELF_DYNAMIC_DO_RELA): Likewise.
14645         (ELF_DYNAMIC_RELOCATE): Likewise.
14646         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14647         to ELF_DYNAMIC_DO_REL.
14648         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14649         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14650         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14651         elf_machine_rela.
14652         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14653         skip_ifunc, don't call ifunc function if non-zero.
14654         (elf_machine_rela): Likewise.
14655         (elf_machine_lazy_rel): Likewise.
14656         (elf_machine_lazy_rela): Likewise.
14657         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14658         (elf_machine_lazy_rel): Likewise.
14659         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14660         Likewise.
14661         (elf_machine_lazy_rel): Likewise.
14662         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14663         Likewise.
14664         (elf_machine_lazy_rel): Likewise.
14665         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14666         (elf_machine_lazy_rel): Likewise.
14667         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14668         (elf_machine_lazy_rel): Likewise.
14669         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14670         (elf_machine_lazy_rel): Likewise.
14671         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14672         (elf_machine_lazy_rel): Likewise.
14673         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14674         (elf_machine_lazy_rel): Likewise.
14675         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14676         (elf_machine_lazy_rel): Likewise.
14678 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14680         * nss/nss_files/files-init.c (_nss_files_init): Use static
14681         initialization for all the *_traced_file variables.
14683 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14685         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14687 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14689         [BZ #13226]
14690         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14692 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14694         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14695         Reread the line before reparsing it.
14697 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14699         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14701 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14702             Maxim Kuvyrkov  <maxim@codesourcery.com>
14703             Joseph Myers  <joseph@codesourcery.com>
14705         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14706         if needed for __stack_chk_guard.
14708 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14710         * sysdeps/posix/spawni.c (script_execute): Always define it.
14711         It will be optimized away if unused.
14712         (maybe_script_execute): New function.
14713         (__spawni): Call it.
14715         * Makerules: Don't include tls.make.
14716         (config-tls): Always set to thread.
14717         * tls.make.c: File removed.
14719 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14721         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14722         * config.make.in (CPPFLAGS-config): New substituted variable.
14724 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14726         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14728         [BZ #13192]
14729         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14730         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14732 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14734         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14735         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14736         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14737         (CALL_FAIL): Likewise.
14738         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14739         (CALL_FAIL): Macro removed.
14740         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14742 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14744         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14745         for __FINITE_MATH_ONLY__ == 1.
14747 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14749         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14750         __ieee754_sqrt instead of sqrt.
14751         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14752         __ieee754_sqrtf instead of sqrtf.
14753         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14754         __floorf instead of floorf.
14755         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14756         __floorf, __truncf instead of floorf, truncf.
14758 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14760         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14762         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14763         __extern_always_inline.
14764         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14765         32-bit.
14767 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14769         * elf/rtld.c (dl_main): Also relocate in dependency order when
14770         doing symbol dependency testing.
14772 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14774         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14775         Always define `refsym'.
14777 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14779         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14780         (__FD_ELT): Renamed from __FDELT.
14781         * misc/bits/select2.h (__FD_ELT): Likewise.
14782         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14783         __FD_MASK instead of __FDELT, __FDMASK.
14784         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14785         Likewise.
14786         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14787         Likewise.
14789         * elf/Makefile (gen-ldd): Fix pattern.
14791         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14792         (init_tls): Likewise.
14794 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14796         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14798 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14800         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14801         `struct cmsghdr *' instead of `void *'.
14802         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14803         Likewise.
14805 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14807         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14808         if non-absolute.
14809         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14810         ldd_rewrite_script.
14812 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14814         * configure.in: Remove --with-tls option.
14815         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14816         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14817         out in case it is missing.
14818         * sysdeps/ia64/elf/configure.in: Likewise.
14819         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14820         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14821         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14822         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14823         * sysdeps/sh/elf/configure.in: Likewise.
14824         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14825         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14826         * sysdeps/x86_64/elf/configure.in: Likewise.
14827         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14828         * sysdeps/mach/hurd/tls.h: Likewise.
14830         [BZ #13067]
14831         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14833         [BZ #13090]
14834         * configure.in: Fix use of AC_INIT.
14836         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14838 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14840         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14841         __set_errno.
14842         * malloc/hooks.c: Likewise.
14844         [BZ #11929]
14845         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14846         variables statically.
14847         (narenas): Initialize.
14848         (list_lock): Initialize.
14849         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14850         initializtion of main_arena and list_lock.  Small cleanups.
14851         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14852         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14853         Add initializers to main_arena and mp_.
14854         (malloc_state): Remove pagesize member.  Change all users to use
14855         GLRO(dl_pagesize).
14857         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14858         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14859         is always initialized.
14861         * malloc/malloc.c: Removed unused configurations and dead code.
14862         * malloc/arena.c: Likewise.
14863         * malloc/hooks.c: Likewise.
14864         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14866         * include/tls.h: Removed.  USE___THREAD must always be defined.
14867         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14868         * elf/dl-libc.c: Likewise.
14869         * elf/dl-tsd.c: Likewise.
14870         * include/errno.h: Likewise.
14871         * include/netdb.h: Likewise.
14872         * include/resolv.h: Likewise.
14873         * inet/herrno-loc.c: Likewise.
14874         * inet/herrno.c: Likewise.
14875         * malloc/arena.c: Likewise.
14876         * malloc/hooks.c: Likewise.
14877         * malloc/malloc.c: Likewise.
14878         * resolv/res-state.c: Likewise.
14879         * resolv/res_libc.c: Likewise.
14880         * sysdeps/i386/dl-machine.h: Likewise.
14881         * sysdeps/ia64/dl-machine.h: Likewise.
14882         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14883         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14884         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14885         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14886         * sysdeps/sh/dl-machine.h: Likewise.
14887         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14888         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14889         * sysdeps/unix/i386/sysdep.S: Likewise.
14890         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14891         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14892         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14893         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14894         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14895         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14896         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14897         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14898         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14899         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14900         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14901         * sysdeps/x86_64/dl-machine.h: Likewise.
14902         * tls.make.c: Likewise.
14904         * configure.in: Remove --with-__thread option.  Make tests for
14905         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14906         tls_model attribute fail if no support is available.  Remove
14907         USE_IN_LIBIO.
14908         * Makeconfig: Adjust for dropped configure option.  All features are
14909         now mandatory.
14910         * Makerules: Likewise.
14911         * Versions.def: Likewise.
14912         * argp/argp-fmtstream.c: Likewise.
14913         * argp/argp-fmtstream.h: Likewise.
14914         * argp/argp-help.c: Likewise.
14915         * assert/assert.c: Likewise.
14916         * config.h.in: Likewise.
14917         * config.make.in: Likewise.
14918         * configure: Likewise.
14919         * configure.in: Likewise.
14920         * csu/Versions: Likewise.
14921         * csu/init.c: Likewise.
14922         * elf/tst-audit2.c: Likewise.
14923         * elf/tst-tls10.c: Likewise.
14924         * elf/tst-tls10.h: Likewise.
14925         * elf/tst-tls11.c: Likewise.
14926         * elf/tst-tls12.c: Likewise.
14927         * elf/tst-tls14.c: Likewise.
14928         * elf/tst-tlsmod11.c: Likewise.
14929         * elf/tst-tlsmod12.c: Likewise.
14930         * elf/tst-tlsmod13.c: Likewise.
14931         * elf/tst-tlsmod13a.c: Likewise.
14932         * elf/tst-tlsmod14a.c: Likewise.
14933         * elf/tst-tlsmod15b.c: Likewise.
14934         * elf/tst-tlsmod16a.c: Likewise.
14935         * elf/tst-tlsmod16b.c: Likewise.
14936         * elf/tst-tlsmod7.c: Likewise.
14937         * elf/tst-tlsmod8.c: Likewise.
14938         * elf/tst-tlsmod9.c: Likewise.
14939         * gmon/gmon.c: Likewise.
14940         * grp/fgetgrent_r.c: Likewise.
14941         * grp/putgrent.c: Likewise.
14942         * hurd/fopenport.c: Likewise.
14943         * include/libc-symbols.h: Likewise.
14944         * include/tls.h: Likewise.
14945         * intl/gettextP.h: Likewise.
14946         * intl/loadinfo.h: Likewise.
14947         * locale/global-locale.c: Likewise.
14948         * locale/localeinfo.h: Likewise.
14949         * mach/devstream.c: Likewise.
14950         * malloc/arena.c: Likewise.
14951         * malloc/set-freeres.c: Likewise.
14952         * misc/err.c: Likewise.
14953         * misc/getttyent.c: Likewise.
14954         * misc/mntent_r.c: Likewise.
14955         * posix/getopt.c: Likewise.
14956         * posix/wordexp.c: Likewise.
14957         * pwd/fgetpwent_r.c: Likewise.
14958         * resolv/Versions: Likewise.
14959         * resolv/res_hconf.c: Likewise.
14960         * shadow/fgetspent_r.c: Likewise.
14961         * shadow/putspent.c: Likewise.
14962         * stdio-common/printf_fphex.c: Likewise.
14963         * stdio-common/tmpfile.c: Likewise.
14964         * stdlib/abort.c: Likewise.
14965         * stdlib/fmtmsg.c: Likewise.
14966         * sunrpc/auth_unix.c: Likewise.
14967         * sunrpc/clnt_perr.c: Likewise.
14968         * sunrpc/clnt_tcp.c: Likewise.
14969         * sunrpc/clnt_udp.c: Likewise.
14970         * sunrpc/clnt_unix.c: Likewise.
14971         * sunrpc/openchild.c: Likewise.
14972         * sunrpc/svc_simple.c: Likewise.
14973         * sunrpc/svc_tcp.c: Likewise.
14974         * sunrpc/svc_udp.c: Likewise.
14975         * sunrpc/svc_unix.c: Likewise.
14976         * sunrpc/xdr.c: Likewise.
14977         * sunrpc/xdr_array.c: Likewise.
14978         * sunrpc/xdr_rec.c: Likewise.
14979         * sunrpc/xdr_ref.c: Likewise.
14980         * sunrpc/xdr_stdio.c: Likewise.
14982 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14984         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14986 2011-07-03  Andreas Jaeger  <aj@suse.de>
14988         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14989         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14990         regenerate with gen-libm-tests.pl.
14992 2010-05-12  Petr Baudis  <pasky@suse.cz>
14994         [BZ #11589]
14995         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14996         around j0() zero points by switching to j1().
14997         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14998         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14999         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15000         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15002 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15004         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15005         instead of 0.
15006         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15007         instead of 0.                              .
15008         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15009         Patch in part by Pavel Roskin <proski@gnu.org>.
15011         [BZ #13138]
15012         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15013         realloc.
15014         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15015         Free memory block if necessary.
15017         [BZ #12847]
15018         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15019         be NULL.  Don't lock in this case.
15021 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15023         * elf/elf.h (ELFOSABI_GNU): New macro.
15024         (ELFOSABI_LINUX): Define to that.
15026 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15028         * string/strncat.c (strncat): Undef the symbol in case it has been
15029         defined in bits/string.h.
15031 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15033         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15035         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15036         link map.
15038 2011-08-17  Andreas Jaeger  <aj@suse.de>
15040         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15042 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15043             Ian Lance Taylor  <iant@google.com>
15045         * math/libm-test.inc (lround_test): New testcase.
15046         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15048 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15050         * Makefile: Remove support for automatic cvs check-ins.
15051         * Makerules: Likewise.
15052         * config.make.in: Likewise.
15053         * configure.in: Likewise.
15054         * intl/Makefile: Likewise.
15055         * locale/Makefile: Likewise.
15056         * po/Makefile: Likewise.
15057         * posix/Makefile: Likewise.
15058         * sysdeps/gnu/Makefile: Likewise.
15059         * sysdeps/mach/hurd/Makefile: Likewise.
15060         * sysdeps/sparc/sparc32/Makefile: Likewise.
15062         [BZ #13118]
15063         * posix/Makefile (bug-regex32-ENV): Define.
15064         Patch by John Stanley <jpsinthemix@verizon.net>.
15066         * misc/Makefile (headers): Add bits/select2.h.
15067         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15068         * misc/bits/select2.h: New file.
15069         * include/bits/select2.h: New file.
15070         * debug/Makefile (routines): Add fdelt_chk.
15071         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15072         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15073         FD_ISSET.
15074         * debug/fdelt_chk.c: New file.
15076         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15077         * wcsmbs/test-wmemcmp.c: Likewise.
15078         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15079         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15081 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15083         * string/Makefile (strop-tests): Add memcmp.
15084         * string/test-wmemcmp.c: New file.
15085         * string/test-memcmp.c: Add wmemcmp support.
15087 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15089         [BZ #13153]
15090         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15091         2011-07-19 change.
15093         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15094         garbage value in a __mach_port_mod_refs call in the cases of the
15095         task-self and thread-self ports.
15097 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15099         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15101 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15103         * elf/dl-load.c (lose): Check for non-null L.
15105 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15107         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15109         * elf/dl-libc.c (dlerror_run): Pass back error code from
15110         dl_catch_error.
15112         [BZ #13123]
15113         * elf/dl-load.c (lose): Free l_origin if it is valid.
15115         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15116         names.
15117         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15118         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15119         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15120         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15121         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15122         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15124 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15126         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15127         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15128         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15129         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15130         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15131         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15132         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15133         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15134         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15135         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15137 2011-08-15  Alan Modra  <amodra@gmail.com>
15139         [BZ #13092]
15140         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15141         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15142         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15143         ppc_mcount to static-only-routines.
15144         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15145         __mcount_internal.
15146         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15147         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15149 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15151         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15152         for finite and infinity parameters.
15154 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15156         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15157         and add nop instructions for throughput optimization.
15158         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15160 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15162         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15163         aligned copy for power7 with vector-scalar instructions.
15164         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15166 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15168         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15169         AVX check.
15171 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15173         [BZ #13144]
15174         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15175         last change.
15177 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15179         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15180         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15181         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15182         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15183         clock_gettime.
15185 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15187         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15188         Forgot to demangle the pointer.
15190         * sysdeps/i386/sysdep.h: Define atom_text_section.
15191         * sysdeps/x86_64/sysdep.h: Likewise.
15192         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15193         section with atom_text_section.
15194         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15195         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15196         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15197         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15198         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15200         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15201         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15202         already be defined.  Change to take two parameters and don't assign
15203         result to variable.  Adjust all users.
15204         Define INTERNAL_GETTIME if not already defined.
15205         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15206         call.
15207         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15208         HAVE_CLOCK_GETTIME_VSYSCALL.
15209         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15211         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15212         gettimeofday vsyscall, just use time.
15214 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15216         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15217         <errno.h>.
15219 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15221         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15222         syscall on x86-64.
15223         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15224         syscall.
15225         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15226         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15227         syscall if possible.
15229 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15231         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15232         e_ident.  Don't pass to find_mapsXX.
15233         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15235 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15237         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15238         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15239         * sysdeps/x86_64/multiarch/strchr.S: Update.
15240         Check bit_slow_BSF bit.
15241         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15242         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15243         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15245 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15247         [BZ #13134]
15248         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15249         before glibc 2.15.
15250         (tryshell): Define.
15251         (__spawni): Change last parameter to be flag.  Test
15252         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15253         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15254         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15255         * posix/spawni.c: Likewise.
15256         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15257         * posix/spawnp.c: Likewise.  Change normal version to use
15258         SPAWN_XFLAGS_USE_PATH.
15259         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15260         SPAWN_XFLAGS_TRY_SHELL.
15262         [BZ #13150]
15263         * posix/glob.h: Remove gcc 1.x support.
15265         [BZ #13068]
15266         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15268 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15270         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15271         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15272         strrchr-sse2-bsf
15273         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15274         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15275         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15276         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15277         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15278         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15280 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15282         * sysdeps/x86_64/wcscmp.S: New file.
15284         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15285         wcscmp-c wcscmp-sse2
15286         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15287         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15288         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15289         * wcsmbs/wcscmp.c: Allow renaming.
15291 2011-09-05  David S. Miller  <davem@davemloft.net>
15293         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15294         stack slot, rather than the struct return pointer slot.
15295         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15296         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15298         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15300 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15302         * po/ja.po: Update from translation team.
15304         [BZ #13144]
15305         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15306         kernel in 64-bit binaries.
15308 2011-09-01  David S. Miller  <davem@davemloft.net>
15310         * elf/elf.h (HWCAP_SPARC_*): Move to..
15311         * sysdeps/sparc/sysdep.h: this new file and add new values.
15312         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15313         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15314         _DL_HWCAP_COUNT to 24.
15315         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15316         entries.
15317         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15318         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15319         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15320         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15321         instead of magic constants.
15322         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15324 2011-08-31  David S. Miller  <davem@davemloft.net>
15326         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15327         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15328         Reimplement to do errno handling inline.
15329         (SYSCALL_ERROR_HANDLER): New macro.
15330         (__SYSCALL_STRING): Do not do errno handling in asm.
15331         (__CLONE_SYSCALL_STRING): Delete.
15332         (__INTERNAL_SYSCALL_STRING): Delete.
15333         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15334         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15335         (PSEUDO): Reimplement to do errno handling inline.
15336         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15337         (SYSCALL_ERROR_HANDLER): New macro.
15338         (__SYSCALL_STRING): Do not do errno handling in asm.
15339         (__CLONE_SYSCALL_STRING): Delete.
15340         (__INTERNAL_SYSCALL_STRING): Delete.
15341         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15342         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15343         i386.
15344         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15345         (inline_syscall*): Add 'err' argument.
15346         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15347         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15348         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15349         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15351         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15352         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15354 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15356         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15358 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15360         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15361         directive.
15363 2011-08-24  David S. Miller  <davem@davemloft.net>
15365         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15367 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15369         * elf/Makefile: Add rules to build and run unload8 test.
15370         * elf/unload8.c: New file.
15371         * elf/unload8mod1.c: New file.
15372         * elf/unload8mod1x.c: New file.
15373         * elf/unload8mod2.c: New file.
15374         * elf/unload8mod3.c: New file.
15376         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15377         it wasn't used.
15379 2011-08-23  David S. Miller  <davem@davemloft.net>
15381         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15382         subtract stack bias.
15383         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15384         %sp not %fp in calculations.
15385         (_JMPBUF_UNWINDS_ADJ): Likewise.
15387         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15388         (aio_suspend): Call it to force an exception region around the
15389         AIO_MISC_WAIT() invocation.
15391 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15393         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15394         backslash.
15396 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15398         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15399         protection macro.
15400         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15401         and <dl-machine.h>.
15402         (Elf64_FuncDesc): Remove.
15404 2011-08-22  David S. Miller  <davem@davemloft.net>
15406         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15407         sigaltstack check, add missing cfi directives.
15408         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15409         missing cfi directives, and sigaltstack handling.
15411 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15413         [BZ #11724]
15414         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15415         object is seen twice.
15416         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15418         * elf/Makefile (distribute): Add tst-initorder2.c.
15419         (tests): Add tst-initorder2.
15420         (modules-names): Add tst-initorder2a tst-initorder2b
15421         tst-initorder2c tst-initorder2d.  Add rules to build them.
15422         ($(objpfx)tst-initorder2.out): New rule.
15423         * elf/tst-initorder2.c: New file.
15424         * elf/tst-initorder2.exp: New file.
15426 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15428         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15430         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15431         dependencies back to end of function.
15433         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15434         $(elfobjdir)/ld.so.
15436 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15438         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15439         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15440         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15441         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15442         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15443         of __vdso_gettimeofday.
15444         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15445         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15446         attribute_hidden.
15447         (_libc_vdso_platform_setup): Remove initialization of
15448         __vdso_gettimeofday and __vdso_time.
15450 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15452         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15453         and fgetc_unlocked.
15454         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15455         getc_unlocked.
15457         * elf/dl-open.c (add_to_global): Report additions to the global scope
15458         for LD_DEBUG=scopes.
15459         (dl_open_worker): Also print scope of newly loaded dependencies.
15460         (_dl_show_scope): Indicate if there is no scope.
15462         [BZ #13114]
15463         * stdio-common/Makefile (tests): Add bug24.
15464         * stdio-common/bug24.c: New file.
15466 2011-08-19  Andreas Jaeger  <aj@suse.de>
15468         [BZ #13114]
15469         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15470         non-existant file when using close-on-exec mode.
15472 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15474         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15475         the very first instruction.
15477         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15478         the CFI state in the end.
15479         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15480         inclusion of dl-trampoline.h.
15481         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15483 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15485         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15486         expectations for long double.
15488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15489         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15491 2011-08-14  David S. Miller  <davem@davemloft.net>
15493         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15494         artificual limit depends upon the system page size.
15496 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15498         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15499         * resolv/Makefile: Define CFLAGS-libresolv.
15501 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15503         * nss/makedb.c (compute_tables): Make variables used in nested
15504         function static.
15506 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15508         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15509         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15510         if buffer was too small.
15512         * elf/pldd.c (main): Attach to all threads in the process.
15513         Rewrite /proc handling to use *at functions.
15515 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15517         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15518         specifies first scope to show.
15519         (dl_open_worker): Update callers.  Move printing scope of new
15520         object to before the relocation.
15521         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15522         * sysdeps/generic/ldsodefs.h: Update declaration.
15524         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15525         string for the scope number.
15527 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15529         * nscd/servicescache.c (cache_addserv): Make sure written is always
15530         initialized.
15532 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15534         * sysdeps/i386/i486/bits/atomic.h
15535         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15536         statement expression, so as to suppress "set but not used" warning.
15537         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15539         * string/strncat.c (STRNCAT): Use prototype definition.
15541         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15542         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15543         -Iprograms here.
15544         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15545         (localedef-modules): Add localedef.
15546         (locale-modules): Add locale.
15548         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15549         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15550         to avoid a warning.
15552 2011-08-14  David S. Miller  <davem@davemloft.net>
15554         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15555         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15557 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15559         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15560         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15561         * elf/rtld.c (dl_main): Set l_name of vDSO.
15562         Call _dl_show_scope when DL_DEBUG_SCOPES.
15563         (process_dl_debug): Recognize scopes flag and also set it for all.
15564         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15565         Declare _dl_show_scope.
15567         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15568         (do_dlopen): Pass caller_dlopen to dl_open.
15569         (__libc_dlopen_mode): Initialize caller_dlopen.
15571         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15572         of libc.  Make tolower call locale-independent.  Optimize a bit by
15573         using isdigit instead of isalnum.
15574         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15576 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15578         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15579         was a dependency or dynamically loaded.
15581 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15583         * intl/l10nflist.c: Allow architecture-specific pop function.
15584         * sysdeps/x86_64/l10nflist.c: New file.
15586         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15587         classification.
15589 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15591         * include/dirent.h: Add libc_hidden_proto for scandirat and
15592         scandirat64.  Don't declare __scandirat64.
15593         * dirent/scandirat.c: Add libc_hidden_def.
15594         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15595         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15597 2011-08-10  David S. Miller  <davem@davemloft.net>
15599         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15600         enum.
15601         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15602         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15603         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15605 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15607         * Versions.def [libc]: Add GLIBC_2.15.
15608         * dirent/Makefile (routines): Add scandirat and scandirat64.
15609         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15610         GLIBC_2.15.
15611         * dirent/dirent.h: Declare scandirat and scandirat64.
15612         * dirent/scandirat.c: New file.
15613         * dirent/scandirat64.c: New file.
15614         * sysdeps/wordsize-64/scandirat.c: New file.
15615         * sysdeps/wordsize-64/scandirat64.c: New file.
15616         * dirent/opendir.c: Define opendirat.
15617         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15618         using scandirat.
15619         * dirent/scandir64.c: Adjust for scandir.c change.
15620         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15621         __scandirat64, and __scandir_cancel_handler.
15622         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15623         additional parameter and use openat instead of open (outside of ld.so).
15624         Add new __opendir as wrapper around __opendirat.
15625         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15626         here without requiring old scandirat implementation.
15628 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15630         * dirent/scandir.c (cancel_handler): Renamed to
15631         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15632         defined.  Adjust users.
15633         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15634         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15636 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15638         * string/test-string.h (IMPL): Use __STRING to expand name and then
15639         stringify it.
15641         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15642         of cleanups.
15644 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15646         * string/Makefile: Update.
15647         (strop-tests): Append strncat.
15648         * string/test-wcscmp.c: New file.
15649         New comprehensive test for wcscmp.
15650         * string/test-strcmp.c: Update.
15651         (WIDE): New define.
15653 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15655         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15656         line.
15658 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15660         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15661         encoding to ACE if AI_IDN.
15663 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15665         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15666         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15668 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15670         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15671         Fix overflow bug in strncat.
15672         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15674         * string/test-strncat.c: Update.
15675         Add new tests for checking overflow bugs.
15677 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15679         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15680         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15681         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15682         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15683         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15684         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15685         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15686         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15687         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15689         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15690         (USE_AS_STRCAT): Define.
15691         Add strcat and strncat support.
15692         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15694 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15696         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15697         __n bigger than INT_MAX+1.
15698         (__strncmp_g): Likewise.
15700 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15702         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15703         * libio/stido.h: Likewise.
15705         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15706         (AF_NFC): Define.
15707         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15708         (AF_NFC): Define.
15710         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15711         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15712         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15713         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15714         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15716         [BZ #13021]
15717         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15718         installed.
15720         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15721         typo.
15722         (_dl_x86_64_save_sse): Likewise.
15724 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15726         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15727         OSXSAVE.
15728         (_dl_x86_64_save_sse): Likewise.
15730         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15732         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15734 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15736         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15737         change.
15738         (_dl_x86_64_save_sse): Use correct AVX check.
15740 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15742         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15743         bug in strncpy/strncat.
15744         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15746 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15748         * string/tester.c (test_strcat): Add tests for different alignments
15749         of source and destination.
15750         (test_strncat): Likewise.
15752 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15754         [BZ #12852]
15755         * posix/glob.c (glob): Check passed in values before using them in
15756         expressions to avoid some overflows.
15757         (glob_in_dir): Likewise.
15759         [BZ #13007]
15760         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15761         check for AVX enablement so that we don't crash with old kernels and
15762         new hardware.
15763         * elf/tst-audit4.c: Add same checks here.
15764         * elf/tst-audit6.c: Likewise.
15766         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15768 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15770         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15772 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15774         * po/cs.po: Update from translation team.
15775         * po/bg.po: Likewise.
15777 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15779         * misc/sys/cdefs.h: Add support for const attribute.
15780         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15781         to gnu_dev_{major,minor,makedev} functions.
15783 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15785         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15787 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15789         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15790         strlen results.
15792 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15794         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15795         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15796         register in order to avoid conflicts with the soft frame pointer
15797         being held in r11 when necessary.
15798         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15799         (INTERNAL_VSYSCALL_NCS): Likewise.
15801 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15803         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15804         * elf/dl-fini.c (_dl_fini): Adjust caller.
15805         * elf/dl-close.c (_dl_close_worker): Likewise.
15806         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15808 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15810         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15811         "aux_cache->nlibs < 0".
15813         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15814         in the reload-count case.
15816 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15818         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15819         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15820         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15821         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15822         * sysdeps/x86_64/multiarch/strcat.S: New file.
15823         * sysdeps/x86_64/multiarch/strncat.S: New file.
15824         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15825         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15826         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15827         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15828         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15829         (USE_AS_STRCAT): Define.
15830         Add strcat and strncat support.
15831         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15832         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15833         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15834         * string/strncat.c: Update.
15835         (USE_AS_STRNCAT): Define.
15836         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15837         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15838         and i7.
15839         * sysdeps/x86_64/multiarch/init-arch.h
15840         (bit_Prefer_PMINUB_for_stringop): New.
15841         (index_Prefer_PMINUB_for_stringop): Likewise.
15842         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15843         bit_Prefer_PMINUB_for_stringop.
15845 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15847         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15848         buffer64.
15849         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15850         of casting of buffer.
15851         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15852         buffer32 and buffer64.
15853         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15854         writes instead of casting of buffer.
15855         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15856         buffer32.
15857         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15858         casting of buffer.
15860 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15862         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15864 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15866         * nscd/nscd.c (termination_handler): Don't do anything for a database
15867         if it has not yet been initialized.
15869 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15871         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15873 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15875         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15877 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15879         * po/nl.po: Update from translation team.
15880         * po/sv.po: Likewise.
15882 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15884         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15885         now disallowed by GCC.
15887         * configure.in (use-default-link): Default to yes if a test -shared
15888         link meets our qualifications.
15889         * configure: Regenerated.
15891         * config.make.in (output-format): New variable.
15892         * configure.in: Check for ld --print-output-format support.
15893         * configure: Regenerated.
15894         * Makerules ($(common-objpfx)format.lds)
15895         [$(output-format) != unknown]: Just use $(output-format),
15896         instead of the linker-script munging.
15898 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15900         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15901         of $(common-objpfx)shlib.lds.
15902         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15904         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15905         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15907         * configure.in (-z relro check): Adjust test code to add a large
15908         writable data section after it.
15909         * configure: Regenerated.
15911 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15913         * configure.in (-z relro check): Fix test code to make the variable
15914         truly const.
15915         * configure: Regenerated.
15917 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15919         * nscd/nscd.h (struct traced_file): Define.
15920         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15921         elements.  Add traced_files.
15922         (inotify_fd): Declare.
15923         (register_traced_file): Declare.
15924         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15925         (inotify_fd): Export.
15926         (resolv_conf_descr): Remove.
15927         (nscd_init): Move inotify descriptor creation to main.
15928         Don't register files for notification here.
15929         (register_traced_file): New function.
15930         (invalidate_cache): Don't use reset_res to determine whether to call
15931         res_init, go through the list of registered files.
15932         (main_loop_poll): The inotify descriptors are now stored in the
15933         structures for the traced files.
15934         (main_loop_epoll): Likewise
15935         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15936         to __nss_disable_nscd.
15937         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15938         for a database anymore.  Check the records for all the registered
15939         files instead.
15940         * nss/Makefile (libnss_files-routines): Add files-init.
15941         (libnss_db-routines): Add db-init.
15942         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15943         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15944         * nss/nss_db/db-init.c: New file.
15945         * nss/nss_files/files-init.c: New file.
15946         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15947         __nss_lookup_function.
15948         (__nss_lookup_function): Call nss_load_library.
15949         (nss_load_all_libraries): New function.
15950         (__nss_disable_nscd): Take parameter with callback function for files
15951         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15952         used for the cached services.
15953         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15954         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15955         options for features to all the files in nscd.
15957         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15959 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15961         * csu/elf-init.c (__libc_csu_init): Comment typo.
15963 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15965         * po/pl.po: Update from translation team.
15966         * po/ja.po: Likewise.
15967         * po/ru.po: Likewise.
15968         * po/ko.po: Likewise.
15969         * po/fr.po: Likewise.
15971 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15973         * configure.in (.ctors/.dtors header and trailer check):
15974         Use an empirical test on a built program.
15975         * configure: Regenerated.
15977         * configure.in (-z relro check): Use an empirical test on a built DSO.
15978         Detect, but do not require, on ia64.
15979         * configure: Regenerated.
15981         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15982         Update tests that use readelf to use $READELF instead.
15983         * configure: Regenerated.
15985 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15987         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15988         if the result is not used.
15990 2011-07-05  Andreas Jaeger  <aj@suse.de>
15992         [BZ#9696]
15993         * stdlib/tst-strtod.c: Add testcase.
15995 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15997         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15998         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15999         The latter has a higher limit.  Take additional parameter to pass to
16000         the new function.
16001         (__pathconf): Pass file to __statfs_link_max.
16002         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16003         __statfs_link_max.
16004         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16005         __statfs_link_max.
16007         [BZ #12868]
16008         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16009         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16010         Handle Lustre.
16011         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16012         (__statfs_filesize_max): Likewise.
16013         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16015 2011-07-05  Andreas Jaeger  <aj@suse.de>
16017         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16019 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16021         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16022         `status' variable.
16023         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16024         Likewise.
16026 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16028         * Makefile (strop-tests): Add strncat.
16029         * string/test-strncat.c: New file.
16031 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16033         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16035 2011-06-21  Andreas Jaeger  <aj@suse.de>
16037         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16038         Copy rule from iconvdata/Makefile.
16040 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16042         [BZ #12922]
16043         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16044         but no long options are defined, just return 'W'.
16046 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16048         [BZ #9696]
16049         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16051 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16053         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16054         netgroups to read.
16055         (innetgr): Likewise.
16057 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16059         * config.make.in (install_root): Default to $(DESTDIR).
16061 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16063         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16065 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16067         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16069         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16070         containing directory rather than embedding absolute directory names.
16072         * scripts/check-local-headers.sh: Rewritten using awk.
16073         Match by word, not by line.  Print error messages for matches.
16074         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16076         * Makerules [shlib-lds-flags empty]:
16077         ($(common-objpfx)libc_pic.opts): New target.
16078         ($(common-objpfx)libc_pic.os.clean): New target.
16079         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16081         * config.make.in (OBJCOPY): New variable.
16082         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16083         * configure: Regenerated.
16085         * config.make.in (use-default-link): New variable.
16086         * configure.in (use_default_link): Grok --with-default-link to set it.
16087         * configure: Regenerated.
16088         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16089         (shlib-lds, shlib-lds-flags): Define to empty.
16091         * Makerules (shlib-lds): New variable.
16092         (shlib-lds-flags): New variable.
16093         (build-shlib, build-moduile, build-module-asneeded): Use it.
16094         ($(common-objpfx)libc.so): Use $(shlib-lds).
16095         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16096         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16098         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16099         DT_FLAGS/DT_FLAGS_1 with zero flags.
16101         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16102         linker script munging.
16104 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16106         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16107         as 128-bit value.
16108         * crypt/sha512.c (sha512_process_block): Perform total addition using
16109         128-bit if possible.
16110         (__sha512_finish_ctx): Likewise.
16111         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16112         as 64-bit value.
16113         * crypt/sha256.c (SWAP64): Define.
16114         (sha256_process_block): Perform total addition using 64-bit if
16115         possible.
16116         (__sha256_finish_ctx): Likewise.
16118 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16120         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16121         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16122         * nscd/hstcache.c (cache_addhst): Likewise.
16123         * nscd/grpcache.c (cache_addgr): Likewise.
16124         * nscd/aicache.c (addhstaiX): Likewise
16125         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16127 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16129         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16130         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16131         * nscd/hstcache.c (cache_addhst): Likewise.
16132         * nscd/grpcache.c (cache_addgr): Likewise.
16133         * nscd/aicache.c (addhstaiX): Likewise
16135 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16137         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16138         domain only when needed.
16140 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16142         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16143         is always restored.
16145 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16147         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16148         are re-adding the entry.
16149         * nscd/servicescache.c (cache_addserv): Likewise.
16151 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16153         * sysdeps/generic/dl-irel.h: fix protection against multiple
16154         inclusions.
16155         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16157 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16159         [BZ #12935]
16160         * malloc/memusage.sh: Fix quoting in message.
16161         * debug/xtrace.sh: Likewise.
16163         * configure.in: Remove support for --experimental-malloc option, make
16164         it the default.
16165         * config.make.in: Likewise.
16166         * malloc/Makefile: Likewise.
16168 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16170         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16171         two-byte characters.
16173 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16175         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16176         AC_CACHE_CHECK invocation.
16177         * configure: Regenerated.
16179         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16181 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16183         [BZ #12350]
16184         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16185         bit from old_res_options.
16187         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16189         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16190         value type for setfct.
16192 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16194         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16195         __gettimeofday instead of gettimeofday.
16197 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16199         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16201 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16203         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16205         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16206         info.
16208 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16210         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16211         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16212         strcpy-sse2-unaligned strncpy-sse2-unaligned
16213         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16214         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16215         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16216         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16217         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16218         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16219         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16220         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16221         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16222         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16223         (STRCPY): Support SSE2 and SSSE3 versions.
16225 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16227         [BZ #12874]
16228         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16229         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16230         kernels which artificially limit size of requests.
16232 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16234         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16235         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16236         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16237         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16238         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16239         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16240         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16241         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16242         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16243         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16244         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16245         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16246         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16247         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16248         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16249         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16250         Enable unaligned load optimization for Intel Core i3, i5 and i7
16251         processors.
16252         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16253         Define.
16254         (index_Fast_Unaligned_Load): Define.
16255         (HAS_FAST_UNALIGNED_LOAD): Define.
16257 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16259         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16261 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16263         [BZ #12907]
16264         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16265         until it is clear that the information is realy needed.
16266         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16268 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16270         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16272 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16274         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16275         /sys/devices/system/cpu/online if it is usable.
16277         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16278         reading the information from the /proc filesystem to once a second.
16280 2011-06-21  Andreas Jaeger  <aj@suse.de>
16282         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16283         NULL after inclusion of kernel headers.
16285 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16287         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16288         calls to internal_setent.
16290         [BZ #12885]
16291         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16292         addresses using gethostbyname4_r ignore IPv4 addresses.
16294         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16295         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16297         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16299 2011-06-20  David S. Miller  <davem@davemloft.net>
16301         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16302         inclusions.
16303         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16305         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16306         (elf_irel): Use it.
16307         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16308         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16309         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16310         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16311         * sysdeps/x86_64/dl-irel.h: Likewise.
16313         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16314         * elf/dl-sym.c: Likewise.
16316 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16318         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16319         need to dereference resplen2.
16321 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16323         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16325 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16327         * Makeconfig: Define vardbdir and inst_vardbdir.
16328         * nss/Makefile: Add rules to install db-Makefile.
16330         * nss/nss_db/db-XXX.c: Cleanup.
16332         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16333         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16334         GLIBC_PRIVATE.
16335         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16336         * nss/makedb.c: Implement -g option to specify that value strings
16337         are generated and should not be added to table iterated over for
16338         get*ent calls.
16339         * nss/nss_db/db-initgroups.c: New file.
16341         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16342         interface.
16344         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16345         (internal_getgrouplist): Adjust to name change.
16346         Update use_initgroups_entry if this is not the first call.
16347         * nss/databases.def: Add initgroups entry.
16349         * nss/makedb.c (compute_tables): Check result of multiple hash table
16350         sizes to minimize maximum chain length.
16352 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16354         * Versions.def: Add entry for libnss_db.
16355         * shlib-versions: Likewise.
16356         * nss/Makefile: Add rules to build libnss_db.
16357         * nss/Versions: Add libnss_db information.  Organize libnss_files
16358         entries better.
16359         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16360         makedb progra.  Some minor improvements to generate smaller files.
16361         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16362         here from...
16363         * nss/makedb.c: ...here.
16364         Improve database format to be smaller and require less memory at
16365         runtime.
16366         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16367         db anymore.
16368         * nss/nss_db/db-netgrp.c: Likewise.
16369         * nss/nss_db/db-open.c: Likewise.
16370         * nss/nss_files/flies-XXX.x: Adjust comments.
16371         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16372         * nss/nss_files/files-grp.c: Likewise.
16373         * nss/nss_files/files-hosts.c: Likewise.
16374         * nss/nss_files/files-network.c: Likewise.
16375         * nss/nss_files/files-proto.c: Likewise.
16376         * nss/nss_files/files-pwd.c: Likewise.
16377         * nss/nss_files/files-rpc.c: Likewise.
16378         * nss/nss_files/files-service.c: Likewise.
16379         * nss/nss_files/files-sgrp.c: Likewise.
16380         * nss/nss_files/files-spwd.c: Likewise.
16381         * nss/nss_db/db-alias.c: Removed.
16382         * nss/nss_db/dummy-db.h: Removed.
16384 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16386         * nss/makedb.c: Rewritten to not use database library.
16387         * nss/Makefile: Update to build new makedb program.
16389 2011-06-14  Andreas Jaeger  <aj@suse.de>
16391         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16392         memset declaration.
16394 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16396         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16397         tmpbuf.
16399 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16401         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16402         * elf/Makefile ($(objpfx)ld.so): Likewise.
16404         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16405         Don't list ld.so twice in dependencies.
16407         * posix/bug-regex31.c: Include <stdlib.h>.
16409         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16411         * nis/nss_compat/compat-spwd.c
16412         (getspent_next_nss_netgr): Remove unused variable.
16413         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16415         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16416         nonmembers" output to use the right array.
16418         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16420         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16422         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16423         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16424         * catgets/gencat.c (read_input_file): Likewise.
16425         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16427         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16428         variable definition inside #if's controlling its use.
16430         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16432         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16434         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16436         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16437         unreachable code.
16439         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16441         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16442         * configure: Regenerated.
16444         * Makerules: Revert last change.
16445         * elf/Makefile: Likewise.
16447 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16449         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16450         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16451         (reloc-link): Likewise.
16453 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16455         * elf/Makefile: Add rules to build pldd.
16456         * elf/pldd.c: New file.
16457         * elf/pldd-xx.c: New file.
16459 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16461         * version.h: Update for 2.15 development version.
16463 2011-06-07  David S. Miller  <davem@davemloft.net>
16465         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16466         ifuncs.
16467         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16468         elf_machine_lazy_rel): Likewise.
16469         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16470         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16471         elf_machine_lazy_rel): Likewise.
16472         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16473         dl_hwcap via passed in argument.
16474         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16475         Likewise.
16477 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16479         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16481 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16483         [BZ #12849]
16484         * manual/fdl-1.1.texi: New file, verbatim from:
16485         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16486         * manual/lgpl-2.1.texi: New file, verbatim from:
16487         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16488         * manual/Makefile (licenses): New variable, list those new file names.
16489         (texis): Use it.
16490         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16492         * manual/fdl.texi: File removed.
16493         * manual/lesser.texi: File removed.
16494         * manual/libc.texinfo (Copying, Documentation License):
16495         Use new @include file names, put @appendix directive before @include.
16497 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16499         [BZ #12841]
16500         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16501         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16502         (mq_open): Add __NTH.
16504 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16506         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16507         Assume Intel Core i3/i5/i7 processor if AVX is available.
16509 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16511         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16512         typo.
16514 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16516         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16517         memory.  Use alloca_account.  Fix memory leak when retrying.
16519 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16521         * version.h (RELEASE): Bump for 2.14 release.
16522         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16524         * config.make.in (RANLIB): Remove entry.
16526 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16528         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16529         (libc.pot): Work around missing support for .ksh extension in xgettext.
16531         [BZ #12684]
16532         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16533         if both request failed.
16534         (send_dg): In case of server errors clear resplen or *resplen2.
16536         [BZ #12454]
16537         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16538         when there are multiple maps.
16539         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16540         (_dl_fini): Remove test here.
16542         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16544 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16546         [BZ #12350]
16547         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16548         bit from old_res_options.
16549         (gaih_inet): Likewise.
16551         [BZ #11099]
16552         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16553         as signed.
16555         * resolv/res_init.c (res_setoptions): Make the code more compact.
16557         [BZ #11558]
16558         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16559         set RES_USEVC.
16561         [BZ #11634]
16562         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16564         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16566         [BZ #11781]
16567         * malloc/malloc.h: Declare malloc hook variables as volatile.
16569         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16570         in last patch.
16572         [BZ #11799]
16573         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16574         raise in the comment.
16575         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16576         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16577         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16579 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16581         [BZ #12811]
16582         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16583         grow the buffers more if it already has to be sufficient.
16584         (build_wcs_upper_buffer): Likewise.
16585         * posix/regexec.c (check_matching): Likewise.
16586         (clean_state_log_if_needed): Likewise.
16587         (extend_buffers): Don't enlarge buffers beyond size of the input
16588         buffer.
16589         Patches mostly by Emil Wojak <emil@wojak.eu>.
16590         * posix/bug-regex32.c: New file.
16591         * posix/Makefile (tests): Add bug-regex32.
16593         * locale/findlocale.c (_nl_find_locale): Return right away if
16594         _nl_explode_name failed.
16595         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16597         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16599         * debug/xtrace.sh: Unify messages.
16600         * malloc/memusage.sh: Likewise.
16602         [BZ #12813]
16603         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16604         time symbol from vDSO.  Substitute with vsyscall if not available.
16605         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16606         __vdso_time.
16608         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16609         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16610         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16611         Add sendmmsg and internal_sendmmsg.
16612         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16613         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16614         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16616         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16617         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16618         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16620 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16622         [BZ #12813]
16623         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16624         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16625         available.
16626         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16627         __vdso_getcpu.
16629         [BZ #12814]
16630         * iconvdata/Makefile (tests): Add bug-iconv9.
16631         * iconvdata/bug-iconv9.c: New file.
16633 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16635         [BZ #12814]
16636         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16638 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16640         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16641         (struct user_regs_struct): Change intcs field back to cs.
16643 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16645         * po/ja.po: Update from translation team.
16647 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16649         [BZ #12795]
16650         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16651         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16653 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16655         * stdlib/longlong.h: Update from GCC.
16657 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16659         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16660         parameter name.
16661         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16662         Add parameter name.
16663         (__sysconf): Pass it down.
16665 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16667         [BZ #12671]
16668         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16669         some situations.
16670         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16671         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16672         add in in __libc_use_alloca calls.  Adjust callers.
16673         (glob): Use malloc in some situations.
16675         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16676         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16677         pltexit.
16679 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16681         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16682         and CLOCK_BOOTTIME_ALARM.
16684         [BZ #12782]
16685         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16686         is returned.
16688         * string/_strerror.c (__strerror_r): Print negative errors as signed
16689         numbers.
16691         [BZ #12777]
16692         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16693         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16694         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16696         * configure.in: Fix typo in redirection and correct removal of test
16697         files in two cases.
16699         [BZ #12788]
16700         * locale/setlocale.c (new_composite_name): Fix test to check for
16701         identical name of all categories.
16703         [BZ #12792]
16704         * libio/filedoalloc.c (local_isatty): New function.
16705         (_IO_file_doallocate): Use local_isatty.
16706         * stdio-common/perror.c (perror): In case a new stream is used
16707         forward the stream error.
16708         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16709         error flag.
16711 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16713         [BZ #11869]
16714         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16715         alloca.
16716         * include/alloca.h (extend_alloca_account): Define.
16718         [BZ #11857]
16719         * posix/regex.h: Fix comments with documentation of user-accessible
16720         fields after compilation and describe correct free'ing of pattern
16721         after re_compile_pattern.
16722         Patch by Reuben Thomas <rrt@sc3d.org>.
16724 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16726         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16727         and -mno-altivec to prevent the compiler from using Altivec and/or
16728         VSX instructions when the corresponding registers are not available.
16730 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16732         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16734 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16736         * libio/freopen.c (freopen): Use __dup2, not dup2.
16737         * libio/freopen64.c (freopen64): Likewise.
16739 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16741         [BZ #12775]
16742         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16743         * math/Makefile (tests): Add test-powl.
16744         (CFLAGS-test-powl.c): Define.
16745         * math/test-powl.c: New file.
16747 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16749         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16751 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16753         [BZ #11837]
16754         * iconvdata/gb18030.c: Update to GB18020-2005.
16756 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16758         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16759         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16760         Patch by Aharon Robbins <arnold@skeeve.com>.
16762         [BZ #11892]
16763         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16764         on the stack.
16766         [BZ #11895]
16767         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16768         through underflows.
16770         [BZ #12766]
16771         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16772         point to strings before performing equality test for error_one_per_line
16773         mode.
16775         [BZ #11697]
16776         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16778         [BZ #11820]
16779         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16780         (struct user_fpregs_struct): Avoid __uint*_t types.
16782         [BZ #6420]
16783         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16784         symbol info.  Use it instead of calling _dl_addr locally.
16785         (lock_and_info): New function.
16786         (tr_freehook): Call lock_and_info and pass symbol info as additional
16787         parameter to tr_where.
16788         (tr_mallochook): Likewise.
16789         (tr_reallochook): Likewise.
16790         (tr_memalignhook): Likewise.
16792         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16793         used and couldn't be at all thread-safe.
16795 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16797         * libio/freopen.c (freopen): Don't close old file descriptor
16798         before the new one is opened.  Instead dup the new file descriptor
16799         to the old one after the new stream is created.
16800         * libio/freopen64.c (freopen64): Likewise.
16801         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16802         * libio/fileops.c (_IO_new_file_close_it): Handle new
16803         _IO_FLAGS2_NOCLOSE flag.
16804         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16805         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16806         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16807         _IO_FLAGS2_NOCLOSE flag.
16808         * include/unistd.h: Add hidden_proto for dup3.
16809         Define __have_dup3.
16810         * io/dup3.c: Define hidden symbol.
16811         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16813         [BZ #7101]
16814         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16815         when an incomplete long option is used.
16816         * posix/tst-getopt_long1.c: New file.
16817         * posix/Makefile (tests): Add tst-getopt_long1.
16819         [BZ #10138]
16820         * scripts/config.guess: Update from autoconf-2.68.
16821         * scripts/config.sub: Likewise.
16823         [BZ #10157]
16824         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16825         tests into ...
16826         (has_cpuclock): ...this.  New function.
16827         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16828         macro here based on has_cpuclock code.
16830         [BZ #10149]
16831         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16832         First byte (not low byte) is now always NUL.
16833         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16835         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16836         Use non-cancelable interfaces.
16838         [BZ #9809]
16839         * locale/iso-639.def: Add entry for Sorani.
16841         [BZ #11901]
16842         * include/stdlib.h: Move include protection to the right place.
16843         Define abort_msg_s.  Declare __abort_msg with it.
16844         * stdlib/abort.c (__abort_msg): Adjust type.
16845         * assert/assert.c (__assert_fail_base): New function.  Majority
16846         of code from __assert_fail.  Allocate memory for __abort_msg with
16847         mmap.
16848         (__assert_fail): Now call __assert_fail_base.
16849         * assert/assert-perr.c: Remove bulk of implementation.  Use
16850         __assert_fail_base.
16851         * include/assert.hL Declare __assert_fail_base.
16852         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16853         mmap.
16854         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16856 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16858         [BZ #11952]
16859         [BZ #12453]
16860         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16861         until all modules are registered in the DTV.
16862         * elf/Makefile: Add rules to build and run tst-tls19.
16863         * elf/tst-tls19.c: New file.
16864         * elf/tst-tls19mod1.c: New file.
16865         * elf/tst-tls19mod2.c: New file.
16866         * elf/tst-tls19mod3.c: New file.
16867         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16869         [BZ #12083]
16870         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16871         correctly.
16873         [BZ #12601]
16874         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16875         two-byte sequence errors.
16876         * iconvdata/Makefile (tests): Add bug-iconv8.
16877         * iconvdata/bug-iconv8.c: New file.
16879         [BZ #12626]
16880         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16881         buf2 definition.
16883         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16885         [BZ #12432]
16886         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16887         (dummy_getcfa): New function.
16888         (init): Get _Unwind_GetCFA address, use dummy if not found.
16889         (backtrace_helper): In recursion check, also check whether CFA changes.
16890         (__backtrace): Completely initialize arg.
16892         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16893         storing incomplete byte sequence in state object.  Avoid testing for
16894         guaranteed too small input if we know there is enough data available.
16896 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16898         * Makeconfig (+link-pie): Indent.
16899         * Rules (binaries-pie): Define if $(have-fpie) and
16900         $(build-shared).
16901         (binaries-shared): Also filter out $(binaries-pie).
16902         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16903         * nscd/Makefile (others-pie): Add nscd.
16904         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16905         ($(objpfx)nscd): Remove command override.
16906         * login/Makefile (others-pie): Add pt_chown.
16907         ($(objpfx)pt_chown): Remove command override.
16908         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16909         remove command overrides.
16911 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16913         * libio/tst_putwc.c: Fix error messages.
16915         [BZ #12724]
16916         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16917         currently writing and seek to current position when not.
16918         * libio/Makefile (tests): Add bug-fclose1.
16919         * libio/bug-fclose1.c: New file.
16921 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16923         [BZ #12511]
16924         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16925         don't set DF_1_NODELETE here.
16926         (do_lookup_x): When entering new entry test for copy relocation
16927         and if necessary set DF_1_NODELETE flag.
16928         * elf/tst-unique4.cc: New file.
16929         * elf/tst-unique4.h: New file.
16930         * elf/tst-unique4lib.cc: New file.
16931         * elf/Makefile: Add rules to build and run tst-unique4.
16932         Patch by Piotr Bury <pbury@goahead.com>.
16934 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16936         [BZ #12052]
16937         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16939         [BZ #12625]
16940         * misc/mntent_r.c (addmntent): Flush the stream after the output
16942         [BZ #12393]
16943         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16944         (is_trusted_path_normalize): Skip initial colon.  Append slash
16945         to empty buffer.  Duplicate is_trusted_path code but allow
16946         constructed patch to be prefix.
16947         (is_dst): Allow $ORIGIN followed by /.
16948         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16949         Correct testing of result of is_trusted_path_normalize
16950         (decompose_rpath): Fix warning.
16952 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16954         [BZ #11257]
16955         * grp/initgroups.c (internal_getgrouplist): When we found the service
16956         list through the initgroups entry in nsswitch.conf do not always
16957         continue on a successful lookup.  Don't always use the
16958         __nss_group_database value if it is set.
16959         * nss/nsswitch.conf (initgroups): Change action for successful db
16960         lookup to continue for compatibility.
16962 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16964         [BZ #11532]
16965         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16966         and CP774 modules.
16967         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16968         and CP774 modules.
16969         * iconvdata/tst-tables.sh: Likewise.
16970         * iconvdata/cp770.c: New file.
16971         * iconvdata/cp771.c: New file.
16972         * iconvdata/cp772.c: New file.
16973         * iconvdata/cp773.c: New file.
16974         * iconvdata/cp774.c: New file.
16975         * iconvdata/testdata/CP770: New file.
16976         * iconvdata/testdata/CP770..UTF8: New file.
16977         * iconvdata/testdata/CP771: New file.
16978         * iconvdata/testdata/CP771..UTF8: New file.
16979         * iconvdata/testdata/CP772: New file.
16980         * iconvdata/testdata/CP772..UTF8: New file.
16981         * iconvdata/testdata/CP773: New file.
16982         * iconvdata/testdata/CP773..UTF8: New file.
16983         * iconvdata/testdata/CP774: New file.
16984         * iconvdata/testdata/CP774..UTF8: New file.
16986         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16987         END CHARMAP line.
16988         * iconvdata/gen-8bit-gap.sh: Likewise.
16989         * iconvdata/gen-8bit.sh: Likewise.
16991         * locale/iso-639.def: Add ary entry.
16993         [BZ #11258]
16994         * locale/C-translit.h.in: Add U20A1 transliteration.
16996         [BZ #12178]
16997         * locale/iso-639.def: Add wae entry.
16998         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17000         [BZ #12545]
17001         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17002         for n.
17004         [BZ #12711]
17005         * locale/C-translit.h.in: Add entry for U20B9.
17006         Patch by pravin.d.s@gmail.com.
17008 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17010         [BZ #12713]
17011         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17012         ENAMETOOLONG use generic getcwd.
17013         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17014         in rtld.  Use *stat64.
17015         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17016         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17017         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17018         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17019         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17020         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17021         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17022         __fstatat64 macros.
17023         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17024         * dirent/rewinddir.c: Add libc_hidden_def.
17025         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17026         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17028         * include/dirent.h (__alloc_dir): Add flags parameter.
17029         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17030         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17031         __alloc_dir.
17032         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17033         from fdopendir if O_CLOEXEC is already set.
17035 2011-03-15  Alan Modra  <amodra@gmail.com>
17037         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17038         l_tls_firstbyte_offset non-zero.  Save padding offset in
17039         l_tls_firstbyte_offset for later use.
17040         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17041         freeing static tls block.
17043 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17045         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17046         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17047         being defined by the kernel headers.
17049 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17051         [BZ #12734]
17052         * resolv/resolv.h: Define RES_NOTLDQUERY.
17053         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17054         no-tld-query and set RES_NOTLDQUERY.
17055         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17056         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17057         modern BIND to search name as TLD unless forbidden.
17059 2011-05-07  Petr Baudis  <pasky@suse.cz>
17060             Ulrich Drepper  <drepper@gmail.com>
17062         [BZ #12393]
17063         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17064         (is_trusted_path): ...to here.
17065         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17066         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17067         using is_trusted_path_normalize() in setuid scripts.
17069 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17071         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17072         __BEGIN/__END_DECLS.
17074 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17076         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17077         NSS_STATUS_NOTFOUND if no record was found.
17079 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17081         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17082         (headers-not-in-tirpc): Remove rpc/netdb.h
17083         * resolv/netdb.h: Revert last change.
17085 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17087         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17088         circular dependency between libgcc.a and libc.a.
17090 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17092         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17093         * nis/Makefile: Don't install rpcsvc/*.
17094         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17095         instead of <rpc/types.h>.
17096         (MAXHOSTNAMELEN): Define.
17098 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17100         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17102 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17104         [BZ #12714]
17105         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17106         gethostbyname4_r when IPv6 results are possible.
17108 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17110         [BZ #12723]
17111         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17112         _PC_PIPE_BUF handling.
17114 2011-04-30  Bruno Haible  <bruno@clisp.org>
17116         [BZ #12717]
17117         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17118         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17119         to 'int'.
17120         * inet/getnameinfo.c (getnameinfo): Likewise.
17122 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17124         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17125         to groups setting in database lookup.
17126         * nss/nsswitch.conf: Add initgroups entry.
17128 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17130         [BZ #12685]
17131         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17132         mode string.
17133         Patch by Eric Blake <eblake@redhat.com>.
17135 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17137         * sunrpc/Makefile (need-export-routines): Add svc_run.
17138         (routines): Remove svc_run.
17139         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17140         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17141         * sunrpc/svc_run.c (svc_run): Likewise.
17142         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17144 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17146         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17147         problem in reallocation in last patch.
17149 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17151         * sunrpc/Makefile: Move inclusion of Rules.
17153 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17155         * nss/nss_files/files-initgroups.c: New file.
17156         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17157         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17158         _nss_files_initgroups_dyn.
17160 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17162         * elf/elf.h (R_ARM_IRELATIVE): Define.
17164 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17166         * po/ru.po: Update from translation team.
17168 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17170         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17171         dependencies.
17173 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17175         [BZ #12653]
17176         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17177         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17178         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17179         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17180         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17182 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17184         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17185         differing bytes.
17186         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17187         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17188         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17190 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17192         [BZ #12420]
17193         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17194         storing it.
17195         * stdlib/bug-getcontext.c: New file.
17196         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17198 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17200         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17201         instructions into .machine "z9-109".
17202         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17203         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17205 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17207         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17208         between environment variables and auxiliary vector.
17210 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17212         * Makefile: Add rules to build linkobj/libc.so.
17213         * include/libc-symbols.h: Define libc_hidden_nolink.
17214         * include/rpc/auth.h: Mark functions which are to be hidden.
17215         * include/rpc/auth_des.h: Likewise.
17216         * include/rpc/auth_unix.h: Likewise.
17217         * include/rpc/clnt.h: Likewise.
17218         * include/rpc/des_crypt.h: Likewise.
17219         * include/rpc/key_prot.h: Likewise.
17220         * include/rpc/pmap_clnt.h: Likewise.
17221         * include/rpc/pmap_prot.h: Likewise.
17222         * include/rpc/pmap_rmt.h: Likewise.
17223         * include/rpc/rpc_msg.h: Likewise.
17224         * include/rpc/svc.h: Likewise.
17225         * include/rpc/svc_auth.h: Likewise.
17226         * include/rpc/xdr.h: Likewise.
17227         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17228         * nss/Makefile: Likewise.
17229         * sunrpc/Makefile: Don't install headers.  Build library with normal
17230         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17231         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17232         for the compat linking library.  Remove use of INTDEF/INTUSE.
17233         * sunrpc/auth_none.c: Likewise.
17234         * sunrpc/auth_unix.c: Likewise.
17235         * sunrpc/authdes_prot.c: Likewise.
17236         * sunrpc/authuxprot.c: Likewise.
17237         * sunrpc/clnt_gen.c: Likewise.
17238         * sunrpc/clnt_perr.c: Likewise.
17239         * sunrpc/clnt_raw.c: Likewise.
17240         * sunrpc/clnt_simp.c: Likewise.
17241         * sunrpc/clnt_tcp.c: Likewise.
17242         * sunrpc/clnt_udp.c: Likewise.
17243         * sunrpc/clnt_unix.c: Likewise.
17244         * sunrpc/des_crypt.c: Likewise.
17245         * sunrpc/des_soft.c: Likewise.
17246         * sunrpc/get_myaddr.c: Likewise.
17247         * sunrpc/key_call.c: Likewise.
17248         * sunrpc/key_prot.c: Likewise.
17249         * sunrpc/netname.c: Likewise.
17250         * sunrpc/pm_getmaps.c: Likewise.
17251         * sunrpc/pm_getport.c: Likewise.
17252         * sunrpc/pmap_clnt.c: Likewise.
17253         * sunrpc/pmap_prot.c: Likewise.
17254         * sunrpc/pmap_prot2.c: Likewise.
17255         * sunrpc/pmap_rmt.c: Likewise.
17256         * sunrpc/publickey.c: Likewise.
17257         * sunrpc/rpc_cmsg.c: Likewise.
17258         * sunrpc/rpc_common.c: Likewise.
17259         * sunrpc/rpc_dtable.c: Likewise.
17260         * sunrpc/rpc_prot.c: Likewise.
17261         * sunrpc/rpc_thread.c: Likewise.
17262         * sunrpc/rtime.c: Likewise.
17263         * sunrpc/svc.c: Likewise.
17264         * sunrpc/svc_auth.c: Likewise.
17265         * sunrpc/svc_authux.c: Likewise.
17266         * sunrpc/svc_raw.c: Likewise.
17267         * sunrpc/svc_run.c: Likewise.
17268         * sunrpc/svc_simple.c: Likewise.
17269         * sunrpc/svc_tcp.c: Likewise.
17270         * sunrpc/svc_udp.c: Likewise.
17271         * sunrpc/svc_unix.c: Likewise.
17272         * sunrpc/svcauth_des.c: Likewise.
17273         * sunrpc/xcrypt.c: Likewise.
17274         * sunrpc/xdr.c: Likewise.
17275         * sunrpc/xdr_array.c: Likewise.
17276         * sunrpc/xdr_float.c: Likewise.
17277         * sunrpc/xdr_intXX_t.c: Likewise.
17278         * sunrpc/xdr_mem.c: Likewise.
17279         * sunrpc/xdr_rec.c: Likewise.
17280         * sunrpc/xdr_ref.c: Likewise.
17281         * sunrpc/xdr_sizeof.c: Likewise.
17282         * sunrpc/xdr_stdio.c: Likewise.
17284 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17286         [BZ #12650]
17287         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17288         * sysdeps/ia64/dl-tls.h: Likewise.
17289         * sysdeps/powerpc/dl-tls.h: Likewise.
17290         * sysdeps/s390/dl-tls.h: Likewise.
17291         * sysdeps/sh/dl-tls.h: Likewise.
17292         * sysdeps/sparc/dl-tls.h: Likewise.
17293         * sysdeps/x86_64/dl-tls.h: Likewise.
17294         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17296 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17298         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17299         rpath element also skip the following colon.
17300         (expand_dynamic_string_token): Add is_path parameter and pass
17301         down to DL_DST_REQUIRED and _dl_dst_substitute.
17302         (decompose_rpath): Call expand_dynamic_string_token with
17303         non-zero is_path.  Ignore empty rpaths.
17304         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17305         with zero is_path.
17307 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17310         Make cancelable.
17312 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17314         [BZ #12655]
17315         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17316         Patch by Filipe David Manana <fdmanana@apache.org>.
17318 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17320         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17321         Maintain aligned stack.
17322         (CHECK_RSP): Remove unused macro.
17324 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17326         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17327         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17329 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17331         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17333         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17335 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17337         [BZ #12518]
17338         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17339         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17340         * sysdeps/x86_64/memmove.c: New file.
17341         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17342         (memcpy): Renamed to ...
17343         (__new_memcpy): This.
17344         (memcpy): Provide GLIBC_2_14 memcpy.
17345         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17346         (memcpy): Provide GLIBC_2_2_5 memcpy.
17348 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17350         [BZ #12631]
17351         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17353 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17355         * misc/syncfs.c: New file.
17356         * misc/Makefile (routines): Add syncfs.
17357         * posix/unistd.h: Declare syncfs.
17358         * sysdeps/unix/syscalls.list: Add syncfs.
17360 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17362         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17363         open_by_handle_at.
17364         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17365         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17366         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17367         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17368         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17369         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17370         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17372 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17374         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17375         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17376         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17377         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17378         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17379         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17380         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17382         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17383         sync_file_range.c with -fexceptions.
17384         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17385         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17386         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17387         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17388         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17389         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17390         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17391         sync_file_range as cancellation point
17392         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17393         now a wrapper around __call_sync_file_range with cancellation handling.
17394         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17395         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17396         function name to __call_sync_file_range.
17397         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17398         Add call_sync_file_range.
17400 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17402         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17403         bits/timex.h.
17405 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17407         * iconv/iconv.h: Fix typo in comment.
17408         * io/fcntl.h: Likewise.
17409         * libio/stdio.h: Likewise.
17410         * posix/spawn.h: Likewise.
17411         * posix/unistd.h: Likewise.
17412         * stdlib/stdlib.h: Likewise.
17413         * time/time.h: Likewise.
17414         * wcsmbs/wchar.h: Likewise.
17416         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17417         open_by_handle): Add.
17418         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17419         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17420         Augment a few comments.
17421         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17422         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17423         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17424         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17425         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17426         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17427         open_by_handle.
17429         * io/fcntl.h (AT_EMPTY_PATH): Define.
17431 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17433         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17434         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17435         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17436         to...
17437         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17438         * Versions.def: Add GLIBC_2.14.
17439         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17440         Export.
17442 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17444         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17445         round counter.
17446         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17448 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17450         [BZ #12597]
17451         * string/test-strncmp.c (do_page_test): New function.
17452         (check2): Likewise.
17453         (test_main): Call check2.
17454         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17456 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17458         [BZ #12587]
17459         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17460         Handle cache information in CPU leaf 4.
17461         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17463 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17465         [BZ #12583]
17466         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17467         character representation.
17468         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17470 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17472         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17473         END(__isnan) to END(__isnanf) to match function entry point/label
17474         EALIGN(__isnanf,...).
17476 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17478         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17480 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17482         [BZ #12510]
17483         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17484         copy from the symbol referenced in the relocation to initialize the
17485         used variable.
17486         Patch by Piotr Bury <pbury@goahead.com>.
17487         * elf/Makefile: Add rules to build and tst-unique3.
17488         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17489         * elf/tst-unique3.cc: New file.
17490         * elf/tst-unique3.h: New file.
17491         * elf/tst-unique3lib.cc: New file.
17492         * elf/tst-unique3lib2.cc: New file.
17494         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17496 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17498         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17499         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17500         to _start.
17502 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17504         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17505         to-be-loaded object along a path to loader is ld.so.
17507 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17508             Ulrich Drepper  <drepper@gmail.com>
17510         * sysdeps/x86_64/memset.S: After aligning destination, code
17511         branches to different locations depending on the value of
17512         misalignment, when multiarch is enabled. Fix this.
17514 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17516         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17517         Set _x86_64_preferred_memory_instruction for AMD processsors.
17518         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17519         Set bit_Prefer_SSE_for_memop for AMD processors.
17521 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17523         * libio/fmemopen.c (fmemopen): Optimize a bit.
17525 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17527         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17529 2011-03-03  Roland McGrath  <roland@redhat.com>
17531         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17533 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17535         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17536         __bzero_ultra1 instead of __memset_ultra1.
17538 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17539             Ulrich Drepper  <drepper@gmail.com>
17541         [BZ #12509]
17542         * include/link.h (struct link_map): Add l_orig_initfini.
17543         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17544         returning unsuccessfully.
17545         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17546         close of a file loaded at startup, restore the original l_initfini
17547         list.
17548         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17549         list, store the pointer.
17550         * elf/Makefile ($(objpfx)noload-mem): New rule.
17551         (noload-ENV): Define.
17552         (tests): Add $(objpfx)noload-mem.
17553         * elf/noload.c: Include <memcheck.h>.
17554         (main): Call mtrace.  Close all opened handles.
17556 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17558         [BZ #12454]
17559         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17560         dependencies are missing.
17562 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17564         Fix __if_freereq crash: Unlike the generic version which uses free,
17565         Hurd needs munmap.
17566         * sysdeps/mach/hurd/ifreq.h: New file.
17568 2011-01-27  Petr Baudis  <pasky@suse.cz>
17569             Ulrich Drepper  <drepper@gmail.com>
17571         [BZ 12445]#
17572         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17573         to extend_alloca().
17574         * stdio-common/bug23.c: New file.
17575         * stdio-common/Makefile (tests): Add bug23.
17577 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17578             Ulrich Drepper  <drepper@gmail.com>
17580         [BZ #12489]
17581         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17582         before performing relro protection.  At old place add assertion
17583         to make sure nothing changed.
17585 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17586             Glauber de Oliveira Costa  <glommer@gmail.com>
17588         * elf/elf.h: Add new ARM TLS relocs.
17590 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17593         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17594         cast from r3.
17595         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17596         'tests' variable.
17597         * sysdeps/wordsize-64/tst-writev.c: New file.
17599 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17601         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17602         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17603         insns in _dl_start to prevent a TOC reference before relocs are
17604         resolved.
17606 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17608         [BZ #12469]
17609         * Makeconfig: Remove RANLIB definition.
17610         * Makerules: Don't use RANLIB.
17611         * aclocal.m4: Remove ranlib test.
17612         * configure.in: No need to check for ranlib.
17613         * elf/rtld-Rules: Don't use RANLIB.
17615 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17617         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17618         protection macro.
17619         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17620         inclusion protection macro.
17622         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17623         SIGRTMIN and SIGRTMAX and print information in that case only when
17624         SIGRTMIN is defined.
17626 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17628         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17629         arginfo fn returning -1.
17631         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17632         and thousands string is zero terminated.
17634 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17636         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17637         sysdeps/unix/sysv/linux/bits/socket.h.
17639 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17641         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17642         (__CPU_COUNT): Remove old macros.
17643         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17644         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17645         (__CPU_ALLOC, __CPU_FREE): Add macros.
17646         (__sched_cpualloc, __sched_cpufree): Add declarations.
17648 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17650         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17651         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17652         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17653         (readdhstai): Return value of addhstaiX call.
17654         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17655         (addgrbyX): Return value returned by cache_addgr.
17656         (readdgrbyname): Return value returned by addgrbyX.
17657         (readdgrbygid): Likewise.
17658         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17659         (addpwbyX): Return value returned by cache_addpw.
17660         (readdpwbyname): Return value returned by addhstbyX.
17661         (readdpwbyuid): Likewise.
17662         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17663         (addservbyX): Return value returned by cache_addserv.
17664         (readdservbyname): Return value returned by addservbyX:
17665         (readdservbyport): Likewise.
17666         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17667         (addhstbyX): Return value returned by cache_addhst.
17668         (readdhstbyname): Return value returned by addhstbyX.
17669         (readdhstbyaddr): Likewise.
17670         (readdhstbynamev6): Likewise.
17671         (readdhstbyaddrv6): Likewise.
17672         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17673         (readdinitgroups): Return value returned by addinitgroupsX.
17674         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17675         (prune_cache): Keep track of timeout value of re-added entries.
17676         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17677         * nscd/nscd.h: Adjust prototypes of readd* functions.
17679 2011-02-04  Roland McGrath  <roland@redhat.com>
17681         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17682         (nis_stats): Likewise.
17683         * nis/nis_modify.c (nis_modify): Likewise.
17684         * nis/nis_remove.c (nis_remove): Likewise.
17685         * nis/nis_add.c (nis_add): Likewise.
17687         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17689         * posix/fnmatch_loop.c: Add some consts.
17691         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17693 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17695         [BZ #12460]
17696         * config.make.in (config-cflags-novzeroupper): Define.
17697         * configure.in: Substitute libc_cv_cc_novzeroupper.
17698         * elf/Makefile (AVX-CFLAGS): Define.
17699         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17700         (CFLAGS-tst-auditmod4a.c): Likewise.
17701         (CFLAGS-tst-auditmod4b.c): Likewise.
17702         (CFLAGS-tst-auditmod6b.c): Likewise.
17703         (CFLAGS-tst-auditmod6c.c): Likewise.
17704         (CFLAGS-tst-auditmod7b.c): Likewise.
17705         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17707 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17709         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17710         function to the callback.
17711         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17713 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17715         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17716         of errno.
17718 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17720         [BZ #11724]
17721         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17722         of constructors.
17723         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17724         of destructors.
17725         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17727         [BZ #11724]
17728         * elf/Makefile: Add rules to build and run new test.
17729         * elf/tst-initorder.c: New file.
17730         * elf/tst-initorder.exp: New file.
17731         * elf/tst-initordera1.c: New file.
17732         * elf/tst-initordera2.c: New file.
17733         * elf/tst-initordera3.c: New file.
17734         * elf/tst-initordera4.c: New file.
17735         * elf/tst-initorderb1.c: New file.
17736         * elf/tst-initorderb2.c: New file.
17737         * elf/tst-order-a1.c: New file.
17738         * elf/tst-order-a2.c: New file.
17739         * elf/tst-order-a3.c: New file.
17740         * elf/tst-order-a4.c: New file.
17741         * elf/tst-order-b1.c: New file.
17742         * elf/tst-order-b2.c: New file.
17743         * elf/tst-order-main.c: New file.
17744         New test case by George Gensure <werkt0@gmail.com>.
17746 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17748         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17749         decoding ACE if AI_CANONIDN.
17751 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17753         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17755 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17757         * version.h (RELEASE): Bump for 2.13 release.
17758         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17760         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17762         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17763         MADV_NOHUGEPAGE.
17764         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17765         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17766         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17767         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17768         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17769         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17771         * posix/getconf.c: Update copyright year.
17772         * catgets/gencat.c: Likewise.
17773         * csu/version.c: Likewise.
17774         * debug/catchsegv.sh: Likewise.
17775         * debug/xtrace.sh: Likewise.
17776         * elf/ldconfig.c: Likewise.
17777         * elf/ldd.bash.in: Likewise.
17778         * elf/sprof.c (print_version): Likewise.
17779         * iconv/iconv_prog.c: Likewise.
17780         * iconv/iconvconfig.c: Likewise.
17781         * locale/programs/locale.c: Likewise.
17782         * locale/programs/localedef.c: Likewise.
17783         * malloc/memusage.sh: Likewise.
17784         * malloc/mtrace.pl: Likewise.
17785         * nscd/nscd.c (print_version): Likewise.
17786         * nss/getent.c: Likewise.
17788         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17789         PF_CAIF, and PF_ALG.
17790         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17792 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17794         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17795         (modules-names): Use them.
17796         (ifunc-test-modules, ifunc-pie-tests): Define.
17797         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17798         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17799         (test-extras): Likewise.
17800         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17801         $(compile-command.c).
17802         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17803         (all-built-dso): Define.
17804         (check-textrel.out, check-execstack.out): Depend on it.
17806         * configure.in: Don't override --enable-multi-arch.
17808 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17810         [BZ #6812]
17811         * nscd/hstcache.c (tryagain): Define.
17812         (cache_addhst): Return tryagain not notfound for temporary errors.
17813         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17814         failed.
17816 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17818         [BZ #10563]
17819         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17820         to make the syscall.
17821         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17823         [BZ #12378]
17824         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17825         and fall back to matching as normal character if the string ends before
17826         the matching ']' is found.  This is what POSIX requires.
17827         * posix/testfnm.c: Adjust test result.
17828         * posix/globtest.sh: Adjust test result.  Add new test.
17829         * posix/tst-fnmatch.input: Likewise.
17830         * posix/tst-fnmatch2.c: Add new test.
17832 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17834         * elf/Makefile (check-execstack): Revert last change.  Depend on
17835         check-execstack.h.
17836         (check-execstack.h): New target.
17837         (generated): Add check-execstack.h.
17838         * elf/check-execstack.c: Include "check-execstack.h".
17839         (main): Revert last change.
17840         (handle_file): Return zero if GNU_STACK is absent and
17841         DEFAULT_STACK_PERMS doesn't include PF_X.
17843 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17845         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17846         in child fails because the descriptor is already closed.
17847         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17848         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17849         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17851         [BZ #12397]
17852         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17853         syscall.
17855         [BZ #10484]
17856         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17857         temporary buffer used to handle multi lookups locally.
17858         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17860 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17862         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17863         loader is ld.so.
17865 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17867         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17868         alignment for SSE2.
17870 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17872         [BZ #12394]
17873         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17874         characters.  When rounding increased number of integer digits recompute
17875         number of groups.
17876         * stdio-common/tst-grouping.c: New file.
17877         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17879 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17881         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17882         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17884         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17885         void.
17886         * bits/select.h: Likewise.
17888 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17890         * po/ja.po: Update from translation team.
17892 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17894         [BZ #11155]
17895         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17896         implementation just like for lxstat, fxstatat, et al.
17898 2010-12-27  Jim Meyering  <meyering@redhat.com>
17900         [BZ #12348]
17901         * posix/regexec.c (build_trtable): Return failure indication upon
17902         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17904 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17906         [BZ #12201]
17907         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17908         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17909         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17910         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17912         [BZ #12207]
17913         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17915         [BZ #12204]
17916         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17917         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17919 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17921         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17922         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17923         script has SORT_BY_INIT_PRIORITY.
17924         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17925         NO_CTORS_DTORS_SECTIONS is defined.
17926         * elf/soinit.c: Likewise.
17927         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17928         NO_CTORS_DTORS_SECTIONS is defined.
17929         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17930         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17931         * sysdeps/sh/init-first.c: Likewise.
17932         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17934 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17936         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17937         always use the slow path.
17939 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17941         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17942         similar rule which adds the sysdep directories to the header search in
17943         order to pick up the correct platform stackinfo.h.
17944         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17945         perform test if it is, otherwise return successfully without testing.
17946         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17947         DEFAULT_STACK_PERMS define in stackinfo.h.
17948         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17949         defined in stackinfo.h.
17950         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17951         DEFAULT_STACK_PERMS defined in stackinfo.h.
17952         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17953         * sysdeps/ia64/stackinfo.h: Likewise.
17954         * sysdeps/s390/stackinfo.h: Likewise.
17955         * sysdeps/sh/stackinfo.h: Likewise.
17956         * sysdeps/sparc/stackinfo.h: Likewise.
17957         * sysdeps/x86_64/stackinfo.h: Likewise.
17958         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17959         PF_X for powerpc64.  Retain PF_X for powerpc32.
17961 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17963         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17964         accurately.
17965         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17966         GETDENTS_64BIT_ALIGNED.
17968 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17970         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17972 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17974         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17975         _GNU_SOURCE.
17977         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17978         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17979         Remove __restrict.
17980         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17981         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17983 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17985         [BZ #11655]
17986         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17987         are initialized.
17989 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17991         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17993 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17995         * po/it.po: Update from translation team.
17997 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17999         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18000         unused codes.
18002 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18004         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18006 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18008         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18009         specially.
18010         (gaih_getanswer_slice): Likewise.
18012 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18014         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18016 2010-05-31  Petr Baudis  <pasky@suse.cz>
18018         [BZ #11149]
18019         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18020         silently even in the chroot mode.
18022 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18024         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18025         last patch a bit.  Pretty printing
18027 2010-05-31  Petr Baudis <pasky@suse.cz>
18029         [BZ #10085]
18030         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18031         initialization of skip_initgroups_dyn.
18033 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18035         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18036         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18038 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18040         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18042 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18044         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18045         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18046         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18047         ($(objpfx)tst-fnmatch-mem): New rule.
18048         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18049         * posix/tst-fnmatch.c (main): Call mtrace.
18051 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18053         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18054         Support Intel processor model 6 and model 0x2c.
18056 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18058         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18059           signed comparison.
18061 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18063         [BZ #12205]
18064         * string/test-strncasecmp.c (check_result): New function.
18065         (do_one_test): Use it.
18066         (check1): New function.
18067         (test_main): Use it.
18068         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18069         Support strcasecmp and strncasecmp.
18071 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18073         [BZ #12194]
18074         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18075         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18077 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18079         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18080         IFUNC support.
18081         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18082         memset-x86-64.
18083         * sysdeps/x86_64/multiarch/bzero.S: New file.
18084         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18085         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18086         * sysdeps/x86_64/multiarch/memset.S: New file.
18087         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18088         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18089         Set bit_Prefer_SSE_for_memop for Intel processors.
18090         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18091         Define.
18092         (index_Prefer_SSE_for_memop): Define.
18093         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18095 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18097         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18098         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18100 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18102         [BZ #12191]
18103         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18104         (__x86_64_raw_data_cache_size_half): Likewise.
18105         (__x86_64_raw_shared_cache_size): Likewise.
18106         (__x86_64_raw_shared_cache_size_half): Likewise.
18108         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18109         (__x86_64_raw_data_cache_size_half): Likewise.
18110         (__x86_64_raw_shared_cache_size): Likewise.
18111         (__x86_64_raw_shared_cache_size_half): Likewise.
18112         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18113         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18114         and __x86_64_raw_shared_cache_size_half.  Round
18115         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18116         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18117         to multiple of 256 bytes.
18119 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18121         [BZ #12167]
18122         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18123         of inacessible symlinks.  Verify result of symlink before returning it.
18124         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18125         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18127 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18129         * math/math.h (isinf): Fix typo in comment.
18131 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18133         * po/da.po: Update from translation team.
18135 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18137         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18138         is added to the list.
18140 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18141             Ulrich Drepper  <drepper@gmail.com>
18143         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18144         the global list here.  Move code to...
18145         (_dl_add_to_namespace_list): ...here.  New function.
18146         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18147         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18148         * elf/dl-load.c (lose): Don't remove the element from the list.
18149         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18150         (_dl_map_object): Likewise.
18152 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18154         [BZ #12159]
18155         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18156         into all bytes of SSE register.
18157         Patch by Richard Li <richardpku@gmail.com>.
18159 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18161         [BZ #12140]
18162         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18163         perturbing.
18165 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18167         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18168         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18169         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18170         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18172         submachine.
18173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18175 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18177         * include/dlfcn.h (__RTLD_SECURE): Define.
18178         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18179         mode & __RTLD_SECURE instead.
18180         (open_path): Rename preloaded parameter to secure.
18181         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18182         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18183         * elf/dl-deps.c (openaux): Likewise.
18184         * elf/rtld.c (struct map_args): Remove is_preloaded.
18185         (map_doit): Don't use it.
18186         (dl_main): Likewise.
18187         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18188         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18190 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18192         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18193         (sysd-rules-targets): Remove duplicates.
18194         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18195         rtld-%.$o dependency.
18197 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18199         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18200         _dl_map_object do it.
18202 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18204         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18205         fast fma builtins, define the macros in the C99 standard.
18206         (FP_FAST_FMAF): Likewise.
18207         (FP_FAST_FMAL): Likewise.
18208         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18210         * bits/mathdef.h: Update copyright year.
18211         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18213 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18215         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18216         builtins, define the macros in the C99 standard.
18217         (FP_FAST_FMAF): Likewise.
18218         (FP_FAST_FMAL): Likewise.
18219         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18220         multiply/add.
18221         (FP_FAST_FMAF): Likewise.
18223 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18225         [BZ #3268]
18226         * math/libm-test.inc (fma_test): Some new testcases.
18227         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18228         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18229         y and infinite z.  Do multiplication by C already in long double.
18230         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18231         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18232         y and infinite z.  Do bitwise or of inexact bit into u.d.
18233         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18234         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18235         * sysdeps/i386/fpu/s_fma.S: Removed.
18236         * sysdeps/i386/fpu/s_fmal.S: Removed.
18238 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18240         [BZ #3268]
18241         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18242         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18243         computation is not scheduled after fetestexcept.  Fix value
18244         of minimum denormal long double.
18246 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18248         [BZ #3268]
18249         * math/libm-test.inc (fma_test): Add some more tests.
18250         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18251         correctly.
18253 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18255         * scripts/data/localplt-s390-linux-gnu.data: New file.
18256         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18258 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18260         [BZ #3268]
18261         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18262         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18263         instead of dbl-64.
18264         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18265         inlines.
18266         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18267         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18268         if one of x and y is very large and the other is subnormal.
18269         * sysdeps/s390/fpu/s_fmaf.c: New file.
18270         * sysdeps/s390/fpu/s_fma.c: New file.
18271         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18272         * sysdeps/powerpc/fpu/s_fma.S: New file.
18273         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18274         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18275         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18277 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18279         [BZ #3268]
18280         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18281         fma tests.
18282         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18283         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18284         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18285         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18286         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18287         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18288         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18290 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18292         [BZ #12078]
18293         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18294         * posix/bug-regex31.input: Add test case.
18296 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18298         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18299         * posix/bug-regex31.input: New file.
18301         [BZ #12078]
18302         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18303         (parse_sub_exp): Fix last change, use postorder.
18305         * posix/bug-regex31.c: New file.
18306         * posix/Makefile: Add rules to build and run bug-regex31.
18308         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18310         [BZ #12078]
18311         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18313         [BZ #12108]
18314         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18315         to have entries in sys_siglist.
18317         [BZ #12093]
18318         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18319         be NULL.
18321 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18323         [BZ #3268]
18324         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18325         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18326         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18327         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18328         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18329         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18330         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18331         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18332         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18333         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18334         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18335         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18336         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18337         * math/ftestexcept.c (fetestexcept): Likewise.
18338         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18339         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18340         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18341         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18342         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18343         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18344         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18346 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18348         [BZ #12107]
18349         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18350         newline.
18352 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18354         * string/bug-strstr1.c: New file.
18355         * string/Makefile: Add rules to build and run bug-strstr1.
18357 2010-10-05  Eric Blake  <eblake@redhat.com>
18359         [BZ #12092]
18360         * string/str-two-way.h (two_way_long_needle): Always clear memory
18361         when skipping input due to the shift table.
18363 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18365         [BZ #12005]
18366         * malloc/mcheck.c: Handle large requests.
18368         [BZ #12077]
18369         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18370         for strncmp and strncasecmp.
18371         * string/stratcliff.c: Add tests for strcmp and strncmp.
18372         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18374 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18376         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18377         __set_fpscr.
18379 2010-09-30  Andreas Jaeger  <aj@suse.de>
18381         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18382         (CGROUP_SUPER_MAGIC): Define.
18383         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18384         Handle btrfs and cgroup file systems.
18385         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18386         Likewise.
18388 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18390         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18391         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18393 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18395         [BZ #12067]
18396         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18397         trying to locate the ELF header.
18399 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18401         [BZ #11611]
18402         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18403         Mask out sign-bit copies when constructing f_fsid.
18405 2010-09-24  Petr Baudis <pasky@suse.cz>
18407         * debug/stack_chk_fail_local.c: Add missing licence exception.
18408         * debug/warning-nop.c: Likewise.
18410 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18412         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18413         implementing getdents64 using getdents syscall, set d_type if
18414         __ASSUME_GETDENTS32_D_TYPE.
18416 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18418         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18419         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18421 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18423         [BZ #12037]
18424         * posix/unistd.h: Undo change of feature selection for ftruncate from
18425         2010-01-11.
18427 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18429         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18430         detection.
18432 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18434         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18435         fanotify_mark.
18436         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18438 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18440         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18441         variables after CHECK_SP call.
18442         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18444 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18445             Ulrich Drepper  <drepper@redhat.com>
18447         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18448         re-relocationg ld.so.
18449         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18450         _dl_init_paths call.
18451         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18452         here anymore.
18454 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18456         * resolv/res_init.c (__res_vinit): Count the default server we added.
18458 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18459             Ulrich Drepper  <drepper@redhat.com>
18461         [BZ #11968]
18462         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18463         (____longjmp_chk): Use %ebx for saving value across system call.
18464         Add unwind info.
18466 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18468         * manual/Makefile: Don't mix pattern rules with normal rules.
18470 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18472         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18473         operation.
18474         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18475         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18476         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18477         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18478         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18479         Likewise.
18481 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18483         [BZ #11979]
18484         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18485         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18487 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18489         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18490         * sysdeps/x86_64/addmul_1.S: Likewise.
18491         * sysdeps/x86_64/lshift.S: Likewise.
18492         * sysdeps/x86_64/mul_1.S: Likewise.
18493         * sysdeps/x86_64/rshift.S: Likewise.
18494         * sysdeps/x86_64/sub_n.S: Likewise.
18495         * sysdeps/x86_64/submul_1.S: Likewise.
18497 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18499         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18500         Define __sched_param instead of SCHED_* and sched_param when
18501         <bits/sched.h> is included with __need_schedparam defined.
18502         * bits/sched.h [__need_schedparam]
18503         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18504         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18505         (__defined_schedparam): Define to 1.
18506         (__sched_param): New structure, identical to sched_param.
18507         (__need_schedparam): Undefine.
18509 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18511         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18512         (epoll_create1): Declare.
18514         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18516 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18518         [BZ #7066]
18519         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18520         shifting retval into place.
18522 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18524         * nis/rpcsvc/nis.h: Update copyright notice.
18525         * nis/rpcsvc/nis.x: Likewise.
18526         * nis/rpcsvc/nis_callback.h: Likewise.
18527         * nis/rpcsvc/nis_callback.x: Likewise.
18528         * nis/rpcsvc/nis_object.x: Likewise.
18529         * nis/rpcsvc/nis_tags.h: Likewise.
18530         * nis/rpcsvc/yp.h: Likewise.
18531         * nis/rpcsvc/yp.x: Likewise.
18532         * nis/rpcsvc/ypupd.h: Likewise.
18533         * nis/yp_xdr.c: Likewise.
18534         * nis/ypupdate_xdr.c: Likewise.
18536         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18537         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18538         (pmap_getport): Use __libc_rpc_getport.
18539         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18540         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18541         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18543 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18546         fanotify_mark.
18548 2010-08-27  Roland McGrath  <roland@redhat.com>
18550         * sysdeps/i386/i686/multiarch/Makefile
18551         (CFLAGS-varshift.c): New variable.
18553 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18555         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18556         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18558         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18560         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18562 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18564         * sysdeps/x86_64/strlen.S: Unroll the loop.
18565         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18566         strlen-sse2 strlen-sse2-bsf.
18567         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18568         __strlen_no_bsf if bit_Slow_BSF is set.
18569         (__strlen_sse42): Removed.
18570         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18571         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18573 2010-08-25  Roland McGrath  <roland@redhat.com>
18575         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18576         * sysdeps/x86_64/multiarch/varshift.c: New file.
18577         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18578         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18579         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18580         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18582 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18584         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18585         strlen-sse2 strlen-sse2-bsf.
18586         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18587         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18588         (__strlen_sse2): Removed.
18589         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18590         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18591         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18592         bit_Slow_BSF for Atom.
18593         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18594         (index_Slow_BSF): Define.
18595         (HAS_SLOW_BSF): Define.
18597 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18599         [BZ #10851]
18600         * resolv/res_init.c (__res_vinit): When no server address at all
18601         is given default to loopback.
18603 2010-08-24  Roland McGrath  <roland@redhat.com>
18605         * configure.in: Remove config-name.h generation.
18606         * configure: Regenerated.
18607         * config-name.in: File removed.
18608         * scripts/config-uname.sh: New file.
18609         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18610         ($(objdir)config-name.h): New target.
18612         * sunrpc/rpc_parse.h: Avoid nested comment.
18614 2010-08-24  Richard Henderson  <rth@redhat.com>
18615             Ulrich Drepper  <drepper@redhat.com>
18616             H.J. Lu  <hongjiu.lu@intel.com>
18618         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18619         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18620         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18621         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18622         _mm_alignr_epi8 with _mm_loadu_si128.
18623         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18624         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18625         (__m128i_shift_right): Removed.
18626         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18627         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18628         * sysdeps/x86_64/multiarch/varshift.h: New file.
18629         * sysdeps/x86_64/multiarch/varshift.S: New file.
18631 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18633         * configure.in: Move assembler checks to before sysdep dir checking.
18635 2010-08-20  Petr Baudis  <pasky@suse.cz>
18637         * LICENSES: Sync the sunrpc license.
18639 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18641         * sunrpc/auth_des.c: Update copyright notice once again.
18642         * sunrpc/auth_none.c: Likewise.
18643         * sunrpc/auth_unix.c: Likewise.
18644         * sunrpc/authdes_prot.c: Likewise.
18645         * sunrpc/authuxprot.c: Likewise.
18646         * sunrpc/bindrsvprt.c: Likewise.
18647         * sunrpc/clnt_gen.c: Likewise.
18648         * sunrpc/clnt_perr.c: Likewise.
18649         * sunrpc/clnt_raw.c: Likewise.
18650         * sunrpc/clnt_simp.c: Likewise.
18651         * sunrpc/clnt_tcp.c: Likewise.
18652         * sunrpc/clnt_udp.c: Likewise.
18653         * sunrpc/clnt_unix.c: Likewise.
18654         * sunrpc/des_crypt.c: Likewise.
18655         * sunrpc/des_soft.c: Likewise.
18656         * sunrpc/get_myaddr.c: Likewise.
18657         * sunrpc/getrpcport.c: Likewise.
18658         * sunrpc/key_call.c: Likewise.
18659         * sunrpc/key_prot.c: Likewise.
18660         * sunrpc/openchild.c: Likewise.
18661         * sunrpc/pm_getmaps.c: Likewise.
18662         * sunrpc/pm_getport.c: Likewise.
18663         * sunrpc/pmap_clnt.c: Likewise.
18664         * sunrpc/pmap_prot.c: Likewise.
18665         * sunrpc/pmap_prot2.c: Likewise.
18666         * sunrpc/pmap_rmt.c: Likewise.
18667         * sunrpc/rpc/auth.h: Likewise.
18668         * sunrpc/rpc/auth_unix.h: Likewise.
18669         * sunrpc/rpc/clnt.h: Likewise.
18670         * sunrpc/rpc/des_crypt.h: Likewise.
18671         * sunrpc/rpc/key_prot.h: Likewise.
18672         * sunrpc/rpc/netdb.h: Likewise.
18673         * sunrpc/rpc/pmap_clnt.h: Likewise.
18674         * sunrpc/rpc/pmap_prot.h: Likewise.
18675         * sunrpc/rpc/pmap_rmt.h: Likewise.
18676         * sunrpc/rpc/rpc.h: Likewise.
18677         * sunrpc/rpc/rpc_des.h: Likewise.
18678         * sunrpc/rpc/rpc_msg.h: Likewise.
18679         * sunrpc/rpc/svc.h: Likewise.
18680         * sunrpc/rpc/svc_auth.h: Likewise.
18681         * sunrpc/rpc/types.h: Likewise.
18682         * sunrpc/rpc/xdr.h: Likewise.
18683         * sunrpc/rpc_clntout.c: Likewise.
18684         * sunrpc/rpc_cmsg.c: Likewise.
18685         * sunrpc/rpc_common.c: Likewise.
18686         * sunrpc/rpc_cout.c: Likewise.
18687         * sunrpc/rpc_dtable.c: Likewise.
18688         * sunrpc/rpc_hout.c: Likewise.
18689         * sunrpc/rpc_main.c: Likewise.
18690         * sunrpc/rpc_parse.c: Likewise.
18691         * sunrpc/rpc_parse.h: Likewise.
18692         * sunrpc/rpc_prot.c: Likewise.
18693         * sunrpc/rpc_sample.c: Likewise.
18694         * sunrpc/rpc_scan.c: Likewise.
18695         * sunrpc/rpc_scan.h: Likewise.
18696         * sunrpc/rpc_svcout.c: Likewise.
18697         * sunrpc/rpc_tblout.c: Likewise.
18698         * sunrpc/rpc_util.c: Likewise.
18699         * sunrpc/rpc_util.h: Likewise.
18700         * sunrpc/rpcinfo.c: Likewise.
18701         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18702         * sunrpc/rpcsvc/key_prot.x: Likewise.
18703         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18704         * sunrpc/rpcsvc/mount.x: Likewise.
18705         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18706         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18707         * sunrpc/rpcsvc/rex.x: Likewise.
18708         * sunrpc/rpcsvc/rstat.x: Likewise.
18709         * sunrpc/rpcsvc/rusers.x: Likewise.
18710         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18711         * sunrpc/rpcsvc/spray.x: Likewise.
18712         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18713         * sunrpc/rtime.c: Likewise.
18714         * sunrpc/svc.c: Likewise.
18715         * sunrpc/svc_auth.c: Likewise.
18716         * sunrpc/svc_authux.c: Likewise.
18717         * sunrpc/svc_raw.c: Likewise.
18718         * sunrpc/svc_run.c: Likewise.
18719         * sunrpc/svc_simple.c: Likewise.
18720         * sunrpc/svc_tcp.c: Likewise.
18721         * sunrpc/svc_udp.c: Likewise.
18722         * sunrpc/svc_unix.c: Likewise.
18723         * sunrpc/svcauth_des.c: Likewise.
18724         * sunrpc/xcrypt.c: Likewise.
18725         * sunrpc/xdr.c: Likewise.
18726         * sunrpc/xdr_array.c: Likewise.
18727         * sunrpc/xdr_float.c: Likewise.
18728         * sunrpc/xdr_mem.c: Likewise.
18729         * sunrpc/xdr_rec.c: Likewise.
18730         * sunrpc/xdr_ref.c: Likewise.
18731         * sunrpc/xdr_sizeof.c: Likewise.
18732         * sunrpc/xdr_stdio.c: Likewise.
18734         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18735         handling.
18737 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18739         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18741 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18743         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18744         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18745         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18746         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18747         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18748         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18749         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18750         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18751         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18752         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18753         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18754         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18755         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18756         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18758 2010-07-26  Anton Blanchard  <anton@samba.org>
18760         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18761         * malloc/arena.c (heap_trim): Likewise.
18763 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18765         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18766         here.  Not...
18767         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18768         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18770 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18772         * sysdeps/i386/elf/Makefile: New file.
18774 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18776         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18777         from fanotify_init.
18778         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18779         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18781 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18783         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18784         of strncasecmp_l.
18785         * sysdeps/multiarch/strcmp.S: Likewise.
18787 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18789         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18790         strncase_l-nonascii.
18791         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18792         Add strncase_l-ssse3.
18793         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18794         * sysdeps/x86_64/strcmp.S: Likewise.
18795         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18796         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18797         * sysdeps/x86_64/strncase.S: New file.
18798         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18799         * sysdeps/x86_64/strncase_l.S: New file.
18800         * string/Makefile (strop-tests): Add strncasecmp.
18801         * string/test-strncasecmp.c: New file.
18803         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18804         warning.
18806         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18807         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18809 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18811         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18813 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18815         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18816         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18817         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18819 2010-05-01  Alan Modra  <amodra@gmail.com>
18821         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18822         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18823         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18824         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18825         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18826         tidying.  Don't tail-call __sigjmp_save for static lib.
18827         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18828         save location.
18829         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18830         (CALL_MCOUNT): Add eh info, and nop after bl.
18831         (TAIL_CALL_SYSCALL_ERROR): New macro.
18832         (PSEUDO_RET): Use it.
18833         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18834         Correct save location of integer regs and cr.
18835         (_dl_profile_resolve): Correct cr save location.  Delete nops
18836         after bl when SHARED.  Reduce cfi size a little by better
18837         placement of cfi directives.
18838         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18839         make a stack frame.  Instead use parm save area as a temp.
18840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18841         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18843         Don't make a stack frame for parent, use parm save area.
18844         Increase child stack frame to 112 bytes.  Don't save unused reg,
18845         and adjust reg usage.  Set up cfi on error recovery and
18846         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18848         (__makecontext): Add dummy nop after jump to exit.
18849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18850         Use correct parm save area and cr save, reduce stack frame.
18851         Correct cfi for possible PSEUDO_RET frame setup.
18852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18853         Branch to local label emitted by PSEUDO_RET rather than
18854         __syscall_error.
18856 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18858         [BZ #11904]
18859         * locale/programs/locale.c (print_assignment): New function.
18860         (show_locale_vars): Use it.
18862 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18864         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18865         field.
18866         (struct statfs64): Likewise.
18867         (_STATFS_F_FLAGS): Define.
18868         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18869         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18870         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18871         (ST_VALID): Define locally.
18872         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18873         __statvfs_getflags, use the provided value.
18874         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18875         __ASSUME_STATFS_F_FLAGS.
18877         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18879         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18880         Add sys/fanotify.h.
18881         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18882         fanotify_mask for GLIBC_2.13.
18883         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18884         fanotify_init and fanotify_mark.
18885         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18886         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18888         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18889         Add prlimit.
18890         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18891         prlimit64 for GLIBC_2.13.
18892         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18893         prlimit64.
18894         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18895         syscall.
18896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18897         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18898         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18899         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18900         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18901         add prlimit alias.
18902         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18904         [BZ #11903]
18905         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18906         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18908         * nss/Makefile: Add rules to build and run tst-nss-test1.
18909         * shlib-versions: Add entry for libnss_test1.
18910         * nss/nss_test1.c: New file.
18911         * nss/tst-nss-test1.c: New file.
18913         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18914         (__nss_configure_lookup): Set appropriate entry in
18915         __nss_configure_lookup to true.
18916         * nss/nsswitch.h: Define enum with indeces of databases in
18917         databases and __nss_database_custom arrays.  Declare
18918         __nss_database_custom.
18919         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18920         to avoid using nscd when custom rules are installed.
18921         * nss/getXXbyYY_r.c: Likewise.
18922         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18924         * nss/nss_files/files-parse.c: Whitespace fixes.
18926 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18928         [BZ #11883]
18929         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18930         * posix/fnmatch_loop.c: Likewise.
18932 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18934         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18935         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18936         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18937         * Versions.def [GLIBC_2.13]: Add.
18939 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18941         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18942         Also fail if tpwd after pwuid call is NULL.
18944 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18946         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18947         when converting to ms.
18949 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18951         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18952         EOPNOTSUPP errors with ENOTTY.
18953         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18954         EOPNOTSUPP errors with ENOTTY.
18956 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18958         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18959         Add strcasecmp_l-ssse3.
18960         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18961         strcasecmp.
18962         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18963         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18964         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18966 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18968         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18970         * string/Makefile (strop-tests): Add strcasecmp.
18971         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18972         strcasecmp_l-nonascii.
18973         (gen-as-const-headers): Add locale-defines.sym.
18974         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18975         * sysdeps/x86_64/strcasecmp.S: New file.
18976         * sysdeps/x86_64/strcasecmp_l.S: New file.
18977         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18978         * sysdeps/x86_64/locale-defines.sym: New file.
18979         * string/test-strcasecmp.c: New file.
18981         * string/test-strcasestr.c: Test both ends of the range of characters.
18982         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18984 2010-07-29  Roland McGrath  <roland@redhat.com>
18986         [BZ #11856]
18987         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18989 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18991         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18992         for ld.so.
18994 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18996         * manual/memory.texi (Malloc Tunable Parameters): Document
18997         M_PERTURB.
18999 2010-07-26  Roland McGrath  <roland@redhat.com>
19001         [BZ #11840]
19002         * configure.in (-fgnu89-inline check): Set and substitute
19003         gnu89_inline, not libc_cv_gnu89_inline.
19004         * configure: Regenerated.
19005         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19007 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19009         * string/test-strnlen.c: New file.
19010         * string/Makefile (strop-tests): Add strnlen.
19011         * string/tester.c (test_strnlen): Add a few more test cases.
19012         * string/tst-strlen.c: Better error reporting.
19014         * sysdeps/x86_64/strnlen.S: New file.
19016 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19018         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19019         lower-latency instructions.
19021 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19023         * string/test-strcasestr.c: New file.
19024         * string/test-strstr.c: New file.
19025         * string/Makefile (strop-tests): Add strstr and strcasestr.
19026         * string/str-two-way.h: Don't undefine MAX.
19027         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19029 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19031         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19032         strcasestr-nonascii.
19033         (CFLAGS-strcasestr-nonascii.c): Define.
19034         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19035         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19036         Remove unused attribute.
19038 2010-07-20  Roland McGrath  <roland@redhat.com>
19040         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19041         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19042         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19043         like LD_HWCAP_MASK can disable hwcaps.
19045 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19047         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19049 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19051         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19052         call in strcasestr.
19053         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19054         __strcasestr_sse42_nonascii.
19055         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19056         strcasestr-nonascii.c.
19057         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19059 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19061         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19062         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19063         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19064         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19066 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19068         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19069         fcntl.
19071 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19073         [BZ #11577]
19074         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19075         dl_signal_cerror.
19077 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19079         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19080         _PC_PIPE_BUF using F_GETPIPE_SZ.
19082 2010-07-05  Roland McGrath  <roland@redhat.com>
19084         * manual/arith.texi (Rounding Functions): Fix rint description
19085         implicit in round description.
19087 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19089         * elf/Makefile: Fix linking for a few tests to make recent linker
19090         happy.
19092 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19094         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19095         $(common-objpfx)libc_nonshared.a.
19097 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19099         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19100         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19101         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19102         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19103         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19104         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19105         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19106         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19121         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19122         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19123         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19124         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19125         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19126         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19127         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19128         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19129         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19130         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19131         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19132         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19148 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19150         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19151         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19152         * string/memmove.c (memmove): Renamed to ...
19153         (MEMMOVE): ...this.  Default to memmove.
19154         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19155         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19156         (END_CHK): Define.
19157         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19158         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19159         mempcpy-ssse3-back memmove-ssse3-back.
19160         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19161         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19162         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19163         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19164         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19165         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19166         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19167         * sysdeps/x86_64/multiarch/memmove.c: New file.
19168         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19169         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19170         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19171         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19172         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19173         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19174         Define.
19175         (index_Fast_Copy_Backward): Define.
19176         (HAS_ARCH_FEATURE): Define.
19177         (HAS_FAST_REP_STRING): Define.
19178         (HAS_FAST_COPY_BACKWARD): Define.
19180 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19182         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19183         Restore proper fallback handling.
19185 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19187         [BZ #11701]
19188         * posix/group_member.c (__group_member): Correct checking loop.
19190         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19191         OOM in getpwuid_r correctly.  Return error number when the caller
19192         should return, otherwise -1.
19193         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19194         call returning > 0 value.
19195         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19197 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19199         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19200         libc_nonshared.a from targets in modules-names.
19202 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19204         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19205         requires it.
19207 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19209         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19210         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19211         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19212         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19214 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19216         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19218 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19220         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19221         and F_GETPIPE_SZ.
19222         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19223         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19224         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19225         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19226         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19227         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19229 2010-06-14  Roland McGrath  <roland@redhat.com>
19231         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19233 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19235         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19236         __REDIRECT followed by __THROW.
19237         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19238         * posix/getopt.h (getopt): Likewise.
19240 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19242         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19243         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19244         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19245         in AT_FLAGS.
19246         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19247         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19249 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19251         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19253 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19255         [BZ #11640]
19256         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19257         Properly check family and model.
19259 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19261         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19263 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19265         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19267 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19269         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19270         symbol reference.
19272 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19274         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19275         symbol reference.
19277 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19279         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19280         and internal_recvmmsg.
19281         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19282         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19283         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19284         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19286         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19287         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19288         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19290 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19292         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19294 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19296         POWER7 optimizations.
19297         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19298         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19300 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19302         * version.h: Update for 2.13 development version.
19304 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19306         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19307         exceptions.  Return 0.
19309 2010-05-07  Roland McGrath  <roland@redhat.com>
19311         * elf/ldconfig.c (main): Add a const.
19313 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19315         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19316         (args_options): Add no-idn option.
19317         (ahosts_keys_int): Add idn_flags to ai_flags.
19318         (parse_option): Handle 'i' option to clear idn_flags.
19320         * malloc/malloc.c (_int_free): Possible race in the most recently
19321         added check.  Only act on the data if no current modification
19322         happened.
19324 See ChangeLog.17 for earlier changes.