Add "()" when casting to uint64_t for 64-bit store
[glibc.git] / ChangeLog
blobe3329b43593180583ac6b143fbf50ddf737def94
1 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3         [BZ #14562]
4         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
5         new chunk size with MALLOC_ALIGN_MASK.
7 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
9         [BZ #5044]
10         * stdio-common/printf_fphex.c: Include <stdbool.h> and
11         <rounding-mode.h>.
12         (__printf_fphex): Determine rounding using get_rounding_mode and
13         round_away.
14         * stdio-common/tst-printf-round.c (struct hex_test): New
15         structure.
16         (hex_tests): New variable.
17         (test_hex_in_one_mode): New function.
18         (do_test): Also run tests for hex float output.
20 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
22         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
23         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
24         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
25         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
26         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
28         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
29         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
31 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
33         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
34         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
35         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
36         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
38 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
40         [BZ #14579]
41         * elf/rtld.c (dl_main): Limit the check for self loading to normal
42         mode only.
43         * elf/tst-rtld-load-self.sh: New test.
44         * elf/Makefile: Run it.
46 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
48         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
49         (tst-writev-ENV): Remove.
50         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
52 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
54         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
56 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
58         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
59         unconditional.
60         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
61         Likewise.
62         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
63         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
64         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
65         Likewise.
67 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
69         [BZ #14587]
70         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
71         * config.make.in (have-cpp-asm-debuginfo): Removed.
72         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
73         * configure: Regenerated.
75 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
77         [BZ #5044]
78         * stdio-common/printf_fp.c: Include <stdbool.h> and
79         <rounding-mode.h>.
80         (___printf_fp): Determine rounding using get_rounding_mode and
81         round_away.
82         * stdio-common/tst-printf-round.c: New file.
83         * stdio-common/Makefile (tests): Add tst-printf-round.
84         (link-libm): New variable.
85         ($(objpfx)tst-printf-round): Depend in $(link-libm).
87 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
89         [BZ #14576]
90         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
91         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
92         Likewise.
93         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
94         Likewise.
96 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
98         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
99         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
100         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
101         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
103 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
105         [BZ #14518]
106         * include/rounding-mode.h: New file.
107         * sysdeps/generic/get-rounding-mode.h: Likewise.
108         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
109         * stdlib/strtod_l.c: Include <rounding-mode.h>.
110         (MAX_VALUE): New macro.
111         (MIN_VALUE): Likewise.
112         (overflow_value): New function.
113         (underflow_value): Likewise.
114         (round_and_return): Use overflow_value and underflow_value to
115         determine return values in overflow and underflow cases.  Use
116         round_away to determine rounding depending on rounding mode.
117         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
118         determine return values in overflow and underflow cases.
119         * stdlib/tst-strtod-round.c: Include <fenv.h>.
120         (struct test_results): New structure.
121         (struct test): Use struct test_results to store expected results
122         for all rounding modes.
123         (TEST): Include expected results for all rounding modes.
124         (test_in_one_mode): New function.
125         (do_test): Use test_in_one_mode to compute and check results.
126         Check results for all rounding modes.
127         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
128         $(link-libm).
130 2012-12-09  Allan McRae  <allan@archlinux.org>
132         * sysdeps/i386/fpu/libm-test-ulps: Update
134 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
136         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
137         (_G_int32_t): Likewise.
138         (_G_uint16_t): Likewise.
139         (_G_uint32_t): Likewise.
140         (_G_HAVE_BOOL): Likewise.
141         (_G_HAVE_ATEXIT): Likewise.
142         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
143         (_G_HAVE_IO_FILE_OPEN): Likewise.
144         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
145         (_G_int32_t): Likewise.
146         (_G_uint16_t): Likewise.
147         (_G_uint32_t): Likewise.
148         (_G_HAVE_BOOL): Likewise.
149         (_G_HAVE_ATEXIT): Likewise.
150         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
151         (_G_HAVE_IO_FILE_OPEN): Likewise.
152         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
153         (_G_int32_t): Likewise.
154         (_G_uint16_t): Likewise.
155         (_G_uint32_t): Likewise.
156         (_G_HAVE_BOOL): Likewise.
157         (_G_HAVE_ATEXIT): Likewise.
158         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
159         (_G_HAVE_IO_FILE_OPEN): Likewise.
161 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
163         * csu/libc-tls.c: Update copyright years.
165 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
167         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
168         [!_G_USING_THUNKS]: Remove conditional code.
169         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
170         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
172         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
173         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
174         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
175         (_G_VTABLE_LABEL_PREFIX): Likewise.
176         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
177         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
178         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
179         (_G_VTABLE_LABEL_PREFIX): Likewise.
180         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
181         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
182         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
183         (_G_VTABLE_LABEL_PREFIX): Likewise.
184         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
186 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
188         * libio/Makefile: Include ../Makeconfig before tests.
189         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
190         only if $(build-shared) is yes.
192         * iconv/gconv_db.c: Update copyright years.
194 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
196         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
197         unwind info if defined PIC. Fix special cases description.
198         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
200         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
201         DP_HI_MASK entry.
202         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
204 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
206         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
208         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
209         is NULL.
211         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
212         (LDLIBS-tst-chk4): This.
213         (LDFLAGS-tst-chk5): Renamed to ...
214         (LDLIBS-tst-chk5): This.
215         (LDFLAGS-tst-chk6): Renamed to ...
216         (LDLIBS-tst-chk6): This.
217         (LDFLAGS-tst-lfschk4): Renamed to ...
218         (LDLIBS-tst-lfschk4): This.
219         (LDFLAGS-tst-lfschk5): Renamed to ...
220         (LDLIBS-tst-lfschk5): This.
221         (LDFLAGS-tst-lfschk6): Renamed to ...
222         (LDLIBS-tst-lfschk6): This.
224         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
225         on $(common-objpfx)soversions.mk.
227 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
229         [BZ #10014]
230         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
231         example host name.
233 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
235         * malloc/arena.c (arena_get_retry): New function that gets
236         another arena for the caller to try its request on.
237         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
238         current arena cannot fulfill the request.
239         (__libc_memalign): Likewise.
240         (__libc_memalign): Likewise.
241         (__libc_pvalloc): Likewise.
242         (__libc_calloc): Likewise.
244 2012-09-05  John Tobey  <john.tobey@gmail.com>
246         [BZ #13542]
247         * manual/arith.texi (Operations on Complex): Fix description
248         of carg branch cut.
250 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
252         [BZ #10014]
253         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
254         host name.
256         [BZ #10038]
257         * manual/memory.texi (Memory): Make order of menu items match
258         order of sections.
260 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
262         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
263         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
264         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
266 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
268         * csu/libc-tls.c (static_dtv): Renamed to ...
269         (_dl_static_dtv): This.  Make it global.
270         (_dl_initial_dtv): Removed.
271         (__libc_setup_tls): Updated.
272         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
273         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
274         DL_INITIAL_DTV.
276 2012-09-06  Petr Machata  <pmachata@redhat.com>
278         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
279         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
280         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
281         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
283 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
285         [BZ #14545]
286         * csu/libc-tls.c (_dl_initial_dtv): New variable.
287         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
288         freeing dtv[-1].
290 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
292         [BZ #14544]
293         * Makeconfig (link-static-before-libc): Replace $(+prector)
294         with $(+prectorT).
295         (link-static-after-libc): Replace $(+postctor) with
296         $(+postctorT).
297         (link-bounded): Replace $(+prector)/$(+postctor) with
298         $(+prectorT)/$(+postctorT).
299         (+prectorT): New macro.
300         (+postctorT): Likewise.
302 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
304         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
305         (round_str): Handle values above the maximum for IBM long double
306         as inexact.
307         * stdlib/tst-strtod-round.c (tests): Regenerated.
309 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
311         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
312         assembler flag.
313         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
314         zarch_nohighgprs around the zarch optimized routines.
315         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
316         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
317         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
318         for zarch.
320 2012-09-05  David S. Miller  <davem@davemloft.net>
322         * sysdeps/sparc/fpu/libm-test-ulps: Update.
324         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
325         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
326         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
327         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
328         entries.
330 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
332         * malloc/arena.c: Fold copyright years.
333         * malloc/mcheck.c, malloc/memusage.c: Likewise.
335 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
337         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
339 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
341         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
343 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
345         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
346         change internal state upon failure.
348 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
350         * malloc/mcheck.c (mcheck_check_all): Fix typo.
351         * malloc/memusage.c (mmap): Likewise.
352         (mmap64, mremap): Likewise.  Adjust name in comment.
354 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
356         * libio/fileops.c: Fix typos in comments.
357         * libio/oldfileops.c: Likewise.
358         * libio/wfileops.c: Likewise.
360 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
362         [BZ #1349]
363         * malloc/Makefile (tests): Add tst-malloc-usable test case.
364         (tst-malloc-usable-ENV): Set environment for test case.
365         * malloc/hooks.c (malloc_check_get_size): New function to get
366         requested size.
367         * malloc/malloc.c (musable): Use malloc_check_get_size.
368         * malloc/tst-malloc-usable.c: New test case.
370 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
372         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
374 2012-09-05  Allan McRae  <allan@archlinux.org>
376         [BZ #13966]
377         * configure.in (CXX_SYSINCLUDES): Use compiler output to
378         determine header location.
379         * configure: Regenerated.
381 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
383         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
384         float format.
385         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
386         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
387         format.
388         (test): Regenerate.
390 2012-09-04  David S. Miller  <davem@davemloft.net>
392         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
393         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
394         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
396 2012-09-04  Florian Weimer  <fweimer@redhat.com>
398         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
399         failures.
401         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
403 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
405         [BZ #9914]
406         * libio/iogetdelim.c: Include <limits.h>.
407         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
408         + len + 1 would overflow.
410 2012-09-03  Andreas Jaeger  <aj@suse.de>
412         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
413         * sysdeps/i386/fpu/libm-test-ulps: Update.
415 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
417         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
418         Add s_sinf-sse2, s_conf-sse2.
420         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
421         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
422         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
423         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
425         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
426         for using routine as __sinf_ia32.
427         Use macro for function declaration and weak_alias.
428         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
429         for using routine as __cosf_ia32.
430         Use macro for function declaration and weak_alias.
432         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
433         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
435         * sysdeps/x86_64/fpu/s_sinf.S: New file.
436         * sysdeps/x86_64/fpu/s_cosf.S: New file.
437         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
439         * math/libm-test.inc (cos_test): Add more test cases.
440         (sin_test): Likewise.
441         (sincos_test): Likewise.
443 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
445         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
446         (IFUNC_RESOLVE): Make pointers to the specialized implementations
447         hidden.
448         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
450 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
452         [BZ #14538]
453         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
454         first element of the GOT.
455         (elf_machine_load_address): Return the difference between
456         the runtime address of _DYNAMIC and elf_machine_dynamic ().
458 2012-09-01  Allan McRae  <allan@archlinux.org>
460         [BZ #13412]
461         * configure.in (AWK): Require gawk version 3.0 or later.
462         * configure: Regenerated.
464 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
466         * sysdeps/unix/sysv/linux/kernel-features.h
467         (__ASSUME_POSIX_CPU_TIMERS): Remove.
468         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
469         [__NR_clock_getres]: Make code unconditional.
470         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
471         (clock_getcpuclockid): Remove code left unreachable by removal of
472         conditionals.
473         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
474         code unconditional.
475         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
476         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
477         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
478         Make code unconditional.
479         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
480         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
481         * sysdeps/unix/sysv/linux/clock_settime.c
482         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
483         conditional code.
484         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
485         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
487 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
489         [BZ #14476]
490         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
491         scripts/test-installation.pl.
493         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
494         and $ld_so_version if it is set.
496 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
498         [BZ #14516]
499         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
500         failure if reading from procfs failed.
501         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
503 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
505         * sysdeps/unix/sysv/linux/kernel-features.h
506         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
507         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
508         Remove conditional code.
509         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
510         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
511         Remove conditional code.
512         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
513         * sysdeps/unix/sysv/linux/i386/fxstat.c
514         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
515         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
516         * sysdeps/unix/sysv/linux/i386/fxstatat.c
517         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
518         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
519         * sysdeps/unix/sysv/linux/i386/lxstat.c
520         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
521         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
522         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
523         Remove conditional code.
524         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
525         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
526         Remove conditional code.
527         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
528         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
529         <kernel-features.h>.
530         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
531         Remove.
532         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
533         Remove conditional code.
534         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
535         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
536         Remove conditional.
538 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
540         [BZ #5400]
541         * NEWS: Add fixed bug number.
543 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
545         [BZ #14519]
546         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
547         underflowing exponent in case of negative sign.
548         * stdlib/tst-strtod-round-data: Add more tests.
549         * stdlib/tst-strtod-round.c (tests): Regenerated.
551         [BZ #3479]
552         * stdlib/strtod_l.c (NDIG): Remove.
553         (HEXNDIG): Likewise.
554         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
555         smallest representable value.
556         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
557         lie within an exact representation of 1/2 ulp of the result.
558         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
559         unconditionally.
560         (TENS_P9_IDX): Define unconditionally.
561         (TENS_P9_SIZE): Likewise.
562         (TENS_P10_IDX): Likewise.
563         (TENS_P10_SIZE): Likewise.
564         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
565         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
566         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
567         entries for 10^2^13 and 10^2^14.
568         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
569         (TENS_P13_IDX): Define.
570         (TENS_P13_SIZE): Likewise.
571         (TENS_P14_IDX): Likewise.
572         (TENS_P14_SIZE): Likewise.
573         (_fpioconst_pow10): Change array size to
574         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
575         unconditional.
576         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
577         1024]: Add entries for 10^2^13 and 10^2^14.
578         [LAST_POW10 > _LAST_POW10]: Remove #error.
579         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
580         (_fpioconst_pow10): Change array size to
581         FPIOCONST_POW10_ARRAY_SIZE.
582         * stdlib/gen-fpioconst.c: New file.
583         * stdlib/gen-tst-strtod-round.c: Likewise.
584         * stdlib/tst-strtod-round-data: Likewise.
585         * stdlib/tst-strtod-round.c: Likewise.
586         * stdlib/Makefile (tests): Add tst-strtod-round.
588         [BZ #14459]
589         * stdlib/strtod_l.c: Include <stdint.h>.
590         (NDEBUG): Do not define.
591         (round_and_return): Change EXPONENT parameter to type intmax_t.
592         Rearrange calculations to avoid internal overflow possibilities.
593         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
594         Rearrange calculations to avoid internal overflow possibilities.
595         Assert that number fits inside MPNSIZE limbs.
596         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
597         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
598         calculations and add assertions to avoid internal overflow
599         possibilities.  Add casts to avoid signed/unsigned operations.
600         * stdlib/tst-strtod-overflow.c: New file.
601         * stdlib/Makefile (tests): Add tst-strtod-overflow.
603 2012-08-25  Marek Polacek  <polacek@redhat.com>
605         * time/time.h: Fix some typos in comments.
607 2012-08-23  Roland McGrath  <roland@hack.frob.com>
609         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
610         * posix/tst-rfc3484-2.c: Likewise.
611         * posix/tst-rfc3484-3.c: Likewise.
613 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
615         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
616         (EF_ARM_ABI_FLOAT_HARD): Likewise.
618 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
620         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
621         #include of fxstatat64.c.
623 2012-08-22  Roland McGrath  <roland@hack.frob.com>
625         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
626         * shadow/getspent_r.c: Likewise.
627         * shadow/getspnam.c: Likewise.
628         * shadow/getspnam_r.c: Likewise.
629         * gshadow/getsgent.c: Likewise.
630         * gshadow/getsgent_r.c: Likewise.
631         * gshadow/getsgnam.c: Likewise.
632         * gshadow/getsgnam_r.c: Likewise.
633         * inet/getnetbyad.c: Likewise.
634         * inet/getnetbyad_r.c: Likewise.
635         * inet/getnetbynm.c: Likewise.
636         * inet/getnetbynm_r.c: Likewise.
637         * inet/getnetent.c: Likewise.
638         * inet/getnetent_r.c: Likewise.
639         * inet/getproto.c: Likewise.
640         * inet/getproto_r.c: Likewise.
641         * inet/getprtent.c: Likewise.
642         * inet/getprtent_r.c: Likewise.
643         * inet/getprtname.c: Likewise.
644         * inet/getprtname_r.c: Likewise.
645         * inet/getrpcbyname.c: Likewise.
646         * inet/getrpcbyname_r.c: Likewise.
647         * inet/getrpcbynumber.c: Likewise.
648         * inet/getrpcbynumber_r.c: Likewise.
649         * inet/getrpcent.c: Likewise.
650         * inet/getrpcent_r.c: Likewise.
651         * inet/getaliasent.c: Likewise.
652         * inet/getaliasent_r.c: Likewise.
653         * inet/getaliasname.c: Likewise.
654         * inet/getaliasname_r.c: Likewise.
655         * nscd/getgrgid_r.c: Likewise.
656         * nscd/getgrnam_r.c: Likewise.
657         * nscd/gethstbyad_r.c: Likewise.
658         * nscd/gethstbynm3_r.c: Likewise.
659         * nscd/getpwnam_r.c: Likewise.
660         * nscd/getpwuid_r.c: Likewise.
661         * nscd/getsrvbynm_r.c: Likewise.
662         * nscd/getsrvbypt_r.c: Likewise.
663         * nscd/gai.c: Likewise.
665         * configure.in (build_nscd): New substituted variable, set
666         by --disable-build-nscd and defaults to $use_nscd.
667         * configure: Regenerated.
668         * config.make.in (build-nscd): New substituted variable.
669         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
670         Change conditional to require [$(build-nscd) = yes] as well.
671         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
673         [BZ# 13696]
674         * configure.in (use_nscd): New substituted variable, set by
675         --disable-nscd.  If enabled, define USE_NSCD.
676         * configure: Regenerated.
677         * config.h.in: Add USE_NSCD.
678         * config.make.in (use-nscd): New substituted variable.
679         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
680         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
681         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
682         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
683         (CFLAGS-getgrnam_r.c): Likewise.
684         (CFLAGS-initgroups.c): Likewise.
685         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
686         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
687         Variables removed.
688         * inet/getnetgrent_r.c
689         (nscd_setnetgrent): New function, broken out of ...
690         (setnetgrent): ... here.  Call it.
691         (innetgr): Conditionalize nscd bits on [USE_NSCD].
692         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
693         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
694         * nscd/Makefile (routines, aux): Move definitions after include of
695         Makeconfig.  Conditionalize on [$(use-nscd) != no].
696         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
697         Conditionalize on [USE_NSCD].
698         (is_nscd, nscd_init_cb): Likewise.
699         (nss_load_library): Conditionalize init callback on [USE_NSCD].
700         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
701         * nss/nss_db/db-init.c: Likewise.
702         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
703         [USE_NSCD].
704         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
705         (make_request): Use it.
706         (cache_valid_p): New function.
707         (__check_pf): Use it.
708         * NEWS: Add item for --disable-nscd.
710 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
712         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
713         to support sed >= 4.2.1-20-ga9bf076.
714         * configure: Regenerated.
716 2012-08-22  Roland McGrath  <roland@hack.frob.com>
718         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
719         Conditionalize whole body on [IREL].
721 2012-08-22  Jeff Law <law@redhat.com>
723         [BZ #14505]
724         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
725         if the family is PF_UNSPEC.
727 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
729         * Makerules (lib-version): Rename from V.
730         (install-lib-nosubdir): Change V to lib-version.
732 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
734         [BZ #14252]
735         * powerpc32/power6/wcschr.c: New file.
736         * powerpc32/power6/wcscpy.c: New file.
737         * powerpc32/power6/wcsrchr.c: New file.
738         * powerpc64/power6/wcschr.c: New file.
739         * powerpc64/power6/wcscpy.c: New file.
740         * powerpc64/power6/wcsrchr.c: New file.
742 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
744         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
745         (two_way_short_needle): Use it.
746         * string/strstr.c (AVAILABLE1_USES_J): Define.
747         * string/strcasestr.c: Likewise.
749         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
750         array references.
751         * string/strcasestr.c (TOLOWER): Make side-effect safe.
753         [BZ #11607]
754         * NEWS: Add an entry.
755         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
756         define their defaults.
757         (two_way_short_needle): Detect end-of-string on-the-fly.
758         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
759         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
760         * string/bug-strcasestr1.c: New test.
761         * string/Makefile: Run it.
763 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
765         [BZ #11607]
766         * string/str-two-way.h (two_way_short_needle): Optimize matching of
767         the first character.
769 2012-08-21  Roland McGrath  <roland@hack.frob.com>
771         * csu/elf-init.c (__libc_csu_irel): Function removed.
772         * csu/libc-start.c (apply_irel): New function.
773         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
775 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
777         * sysdeps/unix/sysv/linux/kernel-features.h
778         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
779         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
780         <kernel-features.h>.
781         [__NR_fadvise64_64]: Make code unconditional.
782         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
783         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
784         !__NR_fadvise64_64)]: Likewise.
785         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
786         !__NR_fadvise64_64))]: Likewise.
787         [__NR_fadvise64]: Make code unconditional.
788         [!__NR_fadvise64]: Remove conditional code.
789         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
790         <kernel-features.h>.
791         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
792         unconditional.
793         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
794         conditional code.
795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
796         not include <kernel-features.h>.
797         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
798         unconditional.
799         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
800         conditional code.
801         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
802         include <kernel-features.h>.
803         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
804         unconditional.
805         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
806         conditional code.
808 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
810         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
811         slight instruction rearrangements per scrollpipe analysis.
812         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
814 2012-08-20  Roland McGrath  <roland@hack.frob.com>
816         * manual/syslog.texi (syslog; vsyslog, closelog):
817         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
818         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
820         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
821         DSOCAPS to match condition on defining it.
823 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
825         * sysdeps/unix/sysv/linux/kernel-features.h
826         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
828         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
829         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
831         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
832         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
834         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
835         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
837         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
838         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
840         * sysdeps/unix/sysv/linux/kernel-features.h
841         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
842         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
843         unconditional.
844         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
845         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
846         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
847         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
848         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
849         Make code unconditional.
850         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
851         (__mmap64) [!__NR_mmap2]: Likewise.
852         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
853         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
854         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
855         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
856         [__NR_mmap2]: Make code unconditional.
857         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
858         (__mmap64) [!__NR_mmap2]: Likewise.
860 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
862         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
864 2012-08-18  Andreas Jaeger  <aj@suse.de>
866         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
868 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
870         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
871         * include/unistd.h (__have_sock_cloexec): Likewise.
872         (__have_pipe2): Likewise.
873         (__have_dup3): Likewise.
875 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
877         [BZ #9685]
878         * include/unistd.h (__have_pipe2): Change define into an extern int.
879         (__have_dup3): Likewise.
880         * socket/have_sock_cloexec.c: Include fcntl.h.
881         (__have_pipe2): New variable.
882         (__have_dup3): Likewise.
884 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
886         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
888 2012-08-17  Marek Polacek  <polacek@redhat.com>
890         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
891         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
893 2012-08-17  Roland McGrath  <roland@hack.frob.com>
895         * configure.in: Add AC_SUBST for sysheaders.
896         * configure: Regenerated.
897         * config.make.in (sysheaders): New substituted variable.
899         * sysdeps/unix/mkfifo.c: Moved ...
900         * sysdeps/posix/mkfifo.c: ... here.
901         * sysdeps/unix/mkfifoat.c: Moved ...
902         * sysdeps/posix/mkfifoat.c: ... here.
904         * sysdeps/unix/utime.c: Moved ...
905         * sysdeps/posix/utime.c: ... here.
907         * sysdeps/unix/time.c: Moved ...
908         * sysdeps/posix/time.c: ... here.
909         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
910         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
912         * sysdeps/unix/nice.c: Moved ...
913         * sysdeps/posix/nice.c: ... here.
915         * sysdeps/unix/alarm.c: Moved ...
916         * sysdeps/posix/alarm.c: ... here.
918         * intl/Makefile ($(codeset_mo)): Depend on the input file.
920 2012-08-17  Jeff Law <law@redhat.com>
922         * intl/Makefile (codeset_mo): New variable.
923         ($(codeset_mo)): New target.
924         (tst-codeset.out): Depend on that.  Remove explicit rule.
925         (tst-gettext3.out, tst-gettext5.out): Likewise.
926         (LOCPATH-ENV, tst-codeset-ENV): New variables.
927         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
928         * intl/tst-codeset.sh: Remove.
929         * intl/tst-gettext3.sh: Likewise.
930         * intl/tst-gettext5.sh: Likewise.
932 2012-08-17  Roland McGrath  <roland@hack.frob.com>
934         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
935         * sysdeps/unix/syscalls.list: ... here.
937         * sysdeps/posix/getaddrinfo.c
938         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
939         (gaiconf_init, gaiconf_reload): Use them.
940         [!_STATBUF_ST_NSEC]
941         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
942         Define using time_t rather than struct timespec.
944         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
945         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
946         Macros removed.
947         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
948         [!NO_THREADS].
949         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
950         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
951         Likewise.
953         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
954         __libc_cleanup_push argument.
956         * bits/param.h: New file.
957         * misc/sys/param.h: New file.
958         * include/sys/param.h: New file.
959         * misc/Makefile (headers): Add bits/param.h.
960         * sysdeps/generic/sys/param.h: File removed.
961         * sysdeps/unix/sysv/linux/bits/param.h: New file.
962         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
963         * sysdeps/mach/hurd/bits/param.h: New file.
964         * sysdeps/mach/hurd/sys/param.h: New file.
966         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
967         last change.
969         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
970         [_IO_MTSAFE_IO].
971         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
972         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
973         New macros.
975         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
976         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
977         rather than -D_IO_MTSAFE_IO conditionally.
978         * stdio-common/Makefile (CPPFLAGS): Likewise.
979         * wcsmbs/Makefile (CPPFLAGS): Likewise.
980         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
981         Use $(libio-mtsafe).
982         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
983         of -D_IO_MTSAFE_IO.
984         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
985         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
986         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
987         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
988         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
989         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
990         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
991         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
992         (CFLAGS-fread_u_chk.c): Likewise.
993         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
994         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
995         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
996         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
997         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
998         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
999         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1000         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1001         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1003         * libio/Makefile: Test [$(libc-reentrant) = yes]
1004         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1006         * Makeconfig
1007         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1008         * sysdeps/pthread/configure: File removed.
1009         * sysdeps/pthread/Makeconfig: New file.
1010         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1011         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1013 2012-08-16  Gary Benson  <gbenson@redhat.com>
1015         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1016         unmapping the first object in a namespace.
1018 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1020         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1021         (__internal_setnetgrent): ... this.  Add internal_function to
1022         definition.  Add libc_hidden_def.
1023         (setnetgrent): Update caller.
1024         (internal_endnetgrent): Renamed to ...
1025         (__internal_endnetgrent): ... this.  Add internal_function to
1026         definition.  Add libc_hidden_def.
1027         (endnetgrent): Update caller.
1028         (internal_getnetgrent_r): Renamed to ...
1029         (__internal_getnetgrent_r): ... this.  Add internal_function to
1030         definition.  Add libc_hidden_def.
1031         (__getnetgrent_r): Update caller.
1032         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1034 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1036         * stdlib/longlong.h: Update from GCC.
1038 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1040         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1041         on _QL, which is set by umul_ppmm but never used.
1042         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1043         variables, which are set by GMP macros but never used.
1044         * stdio-common/_itowa.c (_itowa): Likewise.
1045         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1046         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1048 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1050         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1051         struct La_sh_regs is not constant.
1052         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1053         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1054         and struct La_sparc64_regs are not constant.
1056 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1058         * sysdeps/unix/sysv/linux/kernel-features.h
1059         (__ASSUME_POSIX_TIMERS): Remove.
1060         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1061         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1062         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1063         Make code unconditional.
1064         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1065         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1066         Make code unconditional.
1067         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1068         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1069         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1070         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1071         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1072         Make code unconditional.
1073         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1074         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1075         (__libc_missing_posix_timers): Remove.
1077 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1079         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1080         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1082         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1084         * elf/dl-sym.c: Include <stdlib.h>.
1086         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1087         constants, which avoids warnings in 32-bit builds.
1089         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1090         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1092         * misc/lseek.c: File moved to ...
1093         * io/lseek.c: ... here.
1095         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1097         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1098         shifting LEN more than 31 bits at once.
1100 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1102         [BZ #14195]
1103         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1104         segmentation fault for a case of two empty input strings.
1105         * string/test-strncasecmp.c (check1): Renamed to...
1106         (bz12205): ...this.
1107         (bz14195): Add new testcase for two empty input strings and N > 0.
1108         (test_main): Call new testcase, adapt for renamed function.
1110 2012-08-15  Andreas Jaeger  <aj@suse.de>
1112         [BZ #14090]
1113         * crypt/md5test2.c: New test, based on test supplied by Serge
1114         Belyshev <belyshev@depni.sinp.msu.ru>.
1115         * crypt/Makefile (xtests): Add md5test-giant..
1116         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1118 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1120         [BZ #14090]
1121         * crypt/md5.c (md5_process_block): Don't assume the buffer
1122         length is less than 2**32.
1123         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1124         length is less than 2**64.
1126 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1128         * string/str-two-way.h: Include <sys/param.h>.
1129         (MAX): Macro removed.
1131         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1132         Move #define and #undef of memmove to just before and after
1133         including <string.h>.
1135         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1136         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1137         and after including <string.h>.  Move declarations of
1138         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1139         to before #include "string/memmove.c".
1141         * include/dirent.h: Declare __getdirentries.
1143         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1144         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1146 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1148         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1149         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1150         * sysdeps/i386/configure: Regenerated.
1151         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1152         STABS_CURRENT_FILE, and STABS_FUN.
1153         (END): Remove call to STABS_FUN_END.
1154         (STABS_CURRENT_FILE1): Delete.
1155         (STABS_CURRENT_FILE): Likewise.
1156         (STABS_FUN): Likewise.
1157         (STABS_FUN_END): Likewise.
1158         (STABS_FUN2): Likewise.
1159         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1160         * sysdeps/x86_64/configure: Regenerated.
1162 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1164         * elf/dl-open.c: Include <atomic.h>.
1165         * elf/dl-lookup.c: Likewise.
1167 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1169         * sysdeps/unix/sysv/linux/kernel-features.h
1170         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1171         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1172         unconditionally.
1173         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1174         unconditionally.
1175         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1176         condition on __ASSUME_CLONE_THREAD_FLAGS.
1178 2012-08-14  Andreas Jaeger  <aj@suse.de>
1180         * sysdeps/i386/fpu/libm-test-ulps: Update.
1182 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1184         * include/atomic.h (atomic_exchange_and_add): Split into ...
1185         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1186         New atomic macros.
1188 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1190         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1192 2012-08-13  Jeff Law <law@redhat.com>
1194         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1195         null byte in the output string.
1197 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1199         * sysdeps/unix/sysv/linux/kernel-features.h
1200         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1201         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1202         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1203         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1204         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1205         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1206         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1208 2012-08-09  Jeff Law <law@redhat.com>
1210         [BZ #13939]
1211         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1212         When avoid_arena is set, don't retry in the that arena.  Pick the
1213         next one, whatever it might be.
1214         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1215         (arena_lock): Pass in new parameter to arena_get2.
1216         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1217         arena_get2.
1218         (__libc_malloc): Unify retrying after main arena failure with
1219         __libc_memalign version.
1220         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1222 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1224         [BZ #14166]
1225         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1226         to __redirect_strstr.
1227         (__strstr_sse42): Use typeof __redirect_strstr.
1228         (__strstr_ia32): Likewise.
1229         (__libc_strstr): New prototype.
1230         (strstr): Renamed to ...
1231         (__libc_strstr): This.
1232         (strstr): New strong alias of __libc_strstr.
1233         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1234         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1235         __redirect_time.
1236         Include <time.h>.
1237         (__libc_time): New prototype.
1238         (time_ifunc): Replace time with __libc_time.
1239         (time): New strong alias and hidden definition of __libc_time.
1240         (__GI_time): Remove strong alias.
1241         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1242         Include <stddef.h>.
1243         (memmove): Redefined to __redirect_memmove.
1244         (__memmove_sse2): Use typeof __redirect_memmove.
1245         (__memmove_ssse3): Likewise.
1246         (__memmove_ssse3_back): Likewise.
1247         (__libc_memmove): New prototype.
1248         (memmove): Renamed to ...
1249         (__libc_memmove): This.
1250         (memmove): New strong alias of __libc_memmove.
1252 2012-08-08  Mark Salter  <msalter@redhat.com>
1254         * elf/elf.h
1255         (R_MN10300_TLS_GD): Define.
1256         (R_MN10300_TLS_LD): Likewise.
1257         (R_MN10300_TLS_LDO): Likewise.
1258         (R_MN10300_TLS_GOTIE): Likewise.
1259         (R_MN10300_TLS_IE): Likewise.
1260         (R_MN10300_TLS_LE): Likewise.
1261         (R_MN10300_TLS_DTPMOD): Likewise.
1262         (R_MN10300_TLS_DTPOFF): Likewise.
1263         (R_MN10300_TLS_TPOFF): Likewise.
1264         (R_MN10300_SYM_DIFF): Likewise.
1265         (R_MN10300_ALIGN): Likewise.
1266         (R_MN10300_NUM): Update.
1268 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1270         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1271         Remove.
1273 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1275         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1277         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1278         sysdeps/unix -> sysdeps/posix move.
1279         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1281 2012-08-07      Allan McRae     <allan@archlinux.org>
1283         [BZ #14303]
1284         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1285         (SUNOS_CPP): Likewise.
1286         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1287         not found.
1288         (open_input): Call CPP using execvp.
1290 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1292         * sysdeps/unix/sysv/linux/kernel-features.h
1293         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1294         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1295         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1296         (__ASSUME_WAITID_SYSCALL): Likewise.
1297         * sysdeps/unix/sysv/linux/dl-execstack.c
1298         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1299         code unconditional.
1300         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1301         conditional code.
1302         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1303         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1304         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1305         code.
1306         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1307         unconditional.
1308         [__ASSUME_WAITID_SYSCALL]: Likewise.
1309         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1311 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1313         * sysdeps/unix/closedir.c: Renamed to ...
1314         * sysdeps/posix/closedir.c: ... here.
1315         * sysdeps/unix/dirfd.c: Renamed to ...
1316         * sysdeps/posix/dirfd.c: ... here.
1317         * sysdeps/unix/dirstream.h: Renamed to ...
1318         * sysdeps/posix/dirstream.h: ... here.
1319         * sysdeps/unix/fdopendir.c: Renamed to ...
1320         * sysdeps/posix/fdopendir.c: ... here.
1321         * sysdeps/unix/opendir.c: Renamed to ...
1322         * sysdeps/posix/opendir.c: ... here.
1323         * sysdeps/unix/readdir.c: Renamed to ...
1324         * sysdeps/posix/readdir.c: ... here.
1325         * sysdeps/unix/readdir_r.c: Renamed to ...
1326         * sysdeps/posix/readdir_r.c: ... here.
1327         * sysdeps/unix/rewinddir.c: Renamed to ...
1328         * sysdeps/posix/rewinddir.c: ... here.
1329         * sysdeps/unix/seekdir.c: Renamed to ...
1330         * sysdeps/posix/seekdir.c: ... here.
1331         * sysdeps/unix/telldir.c: Renamed to ...
1332         * sysdeps/posix/telldir.c: ... here.
1333         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1334         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1335         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1336         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1338         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1339         * bits/fcntl.h: ... here.
1341         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1342         not 0.
1343         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1344         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1345         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1346         (struct flock): Move l_start, l_len to the beginning.
1347         Use __pid_t for l_pid.
1348         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1349         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1350         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1351         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1352         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1353         [__USE_LARGEFILE64] (struct flock64): New type.
1354         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1356         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1357         * bits/dirent.h: ... here.
1359         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1360         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1362 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1364         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1365         Change from 2.6.0 to 2.6.16.
1366         * sysdeps/unix/sysv/linux/configure: Regenerated.
1367         * sysdeps/unix/sysv/linux/kernel-features.h
1368         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1369         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1370         version.
1371         (__ASSUME_UTIMES): Likewise.
1372         (__ASSUME_CLONE_STOPPED): Remove.
1373         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1374         architectures, not kernel version.
1375         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1376         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1377         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1378         (__ASSUME_WAITID_SYSCALL): Likewise.
1379         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1380         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1381         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1382         refer to older versions.
1384 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1386         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1387         Define alphasort64 as an alias.
1388         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1389         Define versionsort64 as an alias.
1390         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1391         Define scandir64 as an alias.
1392         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1393         Define scandirat64 as an alias.
1394         * dirent/alphasort64.c (alphasort64):
1395         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1396         * dirent/versionsort64.c: Likewise.
1397         * dirent/scandir64.c: Likewise.
1398         * dirent/scandirat64.c: Likewise.
1399         * sysdeps/wordsize-64/alphasort.c: File removed.
1400         * sysdeps/wordsize-64/alphasort64.c: File removed.
1401         * sysdeps/wordsize-64/scandir.c: File removed.
1402         * sysdeps/wordsize-64/scandir64.c: File removed.
1403         * sysdeps/wordsize-64/scandirat.c: File removed.
1404         * sysdeps/wordsize-64/scandirat64.c: File removed.
1405         * sysdeps/wordsize-64/versionsort.c: File removed.
1406         * sysdeps/wordsize-64/versionsort64.c: File removed.
1407         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1408         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1409         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1410         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1411         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1412         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1413         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1414         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1416         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1417         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1418         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1419         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1420         [defined __arch64__ || defined __sparcv9]
1421         (__INO_T_MATCHES_INO64_T): New macro.
1422         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1423         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1424         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1425         * sysdeps/unix/sysv/linux/bits/dirent.h
1426         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1427         (_DIRENT_MATCHES_DIRENT64): New macro.
1429         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1430         Define lockf64 as an alias.
1431         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1432         Define fseeko64 as an alias.
1433         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1434         Define ftello64 as an alias.
1435         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1436         Define _IO_fgetpos64 and fgetpos64 as aliases.
1437         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1438         Define _IO_fsetpos64 and fsetpos64 as aliases.
1439         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1440         Conditionalize body on this.
1441         * libio/fseeko64.c: Likewise.
1442         * libio/ftello64.c: Likewise.
1443         * libio/iofgetpos64.c: Likewise.
1444         * libio/iofsetpos64.c: Likewise.
1445         * sysdeps/wordsize-64/lockf.c: File removed.
1446         * sysdeps/wordsize-64/lockf64.c: File removed.
1447         * sysdeps/wordsize-64/fseeko.c: File removed.
1448         * sysdeps/wordsize-64/fseeko64.c: File removed.
1449         * sysdeps/wordsize-64/ftello.c: File removed.
1450         * sysdeps/wordsize-64/ftello64.c: File removed.
1451         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1452         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1453         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1454         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1455         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1456         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1457         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1458         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1459         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1460         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1461         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1462         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1463         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1464         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1466         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1467         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1468         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1469         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1470         [defined __arch64__ || defined __sparcv9]
1471         (__OFF_T_MATCHES_OFF64_T): New macro.
1472         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1473         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1474         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1475         (__OFF_T_MATCHES_OFF64_T): New macro.
1477 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1479         * stdlib/secure-getenv.c (__secure_getenv): Replace
1480         GLIBC_2_16 with GLIBC_2_17.
1482 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1484         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1485         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1487 2012-08-03  David S. Miller  <davem@davemloft.net>
1489         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1491 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1493         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1494         Remove.
1495         (__ASSUME_CORRECT_SI_PID): Likewise.
1496         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1497         (__ASSUME_TMPFS_NAME): Likewise.
1498         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1499         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1500         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1501         (HAVE_AUX_SECURE): Make definition unconditional.
1502         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1503         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1505 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1507         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1508         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1509         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1510         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1511         __eloop_threshold instead of SYMLOOP_MAX.
1513         * sysdeps/generic/eloop-threshold.h: New file.
1514         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1515         of MAXSYMLINKS.
1516         * elf/chroot_canon.c (chroot_canon): Likewise.
1518 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1520         [BZ #13717]
1521         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1522         Change to 2.6.0 everywhere.
1523         * sysdeps/unix/sysv/linux/configure: Regenerated.
1524         * sysdeps/unix/sysv/linux/kernel-features.h
1525         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1526         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1527         kernel versions.
1528         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1529         (__ASSUME_FUTEX_REQUEUE): Remove.
1530         (__ASSUME_STATFS64): Define unconditionally.
1531         (__ASSUME_AT_SECURE): Likewise.
1532         (__ASSUME_CORRECT_SI_PID): Likewise.
1533         (__ASSUME_TGKILL): Define without depending on kernel version for
1534         i386.
1535         (__ASSUME_UTIMES): Likewise.
1536         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1537         kernel version.
1538         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1539         (__ASSUME_TMPFS_NAME): Likewise.
1540         * README: Update reference to Linux kernel versions.
1542 2012-08-02  Marek Polacek  <polacek@redhat.com>
1544         [BZ# 14150]
1545         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1546         libc_cv_asm_type_prefix with %.
1547         * configure: Regenerated.
1548         * include/libc-symbols.h: Remove comment about
1549         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1550         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1551         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1552         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1553         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1554         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1555         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1556         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1557         * elf/tst-unique2mod1.c: Likewise.
1558         * elf/tst-unique1mod2.c: Likewise.
1559         * elf/tst-unique1mod1.c: Likewise.
1560         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1561         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1562         Replace ASM_TYPE_DIRECTIVE with .type.
1563         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1564         * sysdeps/i386/sysdep.h: Likewise.
1565         * sysdeps/x86_64/sysdep.h: Likewise.
1566         * sysdeps/sh/sysdep.h: Likewise.
1567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1568         Do not define ASM_TYPE_DIRECTIVE.
1569         * sysdeps/powerpc/sysdep.h: Likewise.
1570         * sysdeps/powerpc/powerpc32/sysdep.h:
1571         Replace ASM_TYPE_DIRECTIVE with .type.
1572         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1573         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1574         * sysdeps/i386/fpu/e_powf.S: Likewise.
1575         * sysdeps/i386/fpu/e_expl.S: Likewise.
1576         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1577         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1578         * sysdeps/i386/fpu/e_pow.S: Likewise.
1579         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1580         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1581         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1582         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1583         * sysdeps/i386/fpu/e_log2.S: Likewise.
1584         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1585         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1586         * sysdeps/i386/fpu/e_powl.S: Likewise.
1587         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1588         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1589         * sysdeps/i386/fpu/e_logl.S: Likewise.
1590         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1591         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1592         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1593         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1594         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1595         * sysdeps/i386/fpu/e_log.S: Likewise.
1596         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1597         * sysdeps/i386/fpu/e_logf.S: Likewise.
1598         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1599         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1600         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1601         * sysdeps/i386/fpu/e_log10.S: Likewise.
1602         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1603         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1604         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1605         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1606         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1607         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1608         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1609         * sysdeps/i386/i686/strtok.S: Likewise.
1610         * sysdeps/i386/i386-mcount.S: Likewise.
1611         * sysdeps/i386/strtok.S: Likewise.
1612         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1613         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1614         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1615         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1616         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1617         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1618         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1619         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1620         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1621         * sysdeps/x86_64/_mcount.S: Likewise.
1622         * sysdeps/x86_64/strtok.S: Likewise.
1623         * sysdeps/sh/_mcount.S: Likewise.
1625 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1627         * libio/iofopen.c: Include <fcntl.h>.
1628         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1629         (_IO_fopen64, fopen64): Define as aliases.
1630         * libio/iofopen64.c: Include <fcntl.h>.
1631         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1632         Conditionalize body on this.
1633         * sysdeps/wordsize-64/iofopen.c: File removed.
1634         * sysdeps/wordsize-64/iofopen64.c: File removed.
1636 2012-08-01  Marek Polacek  <polacek@redhat.com>
1638         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1639         Use dlfcn directly instead of a variable.
1640         (binfmt-subdir): Do not define.
1641         (dlfcn): Likewise.
1643 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1645         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1646         Remove all definitions.
1647         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1648         <kernel-features.h>.
1649         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1650         (miss_F_GETOWN_EX): Remove all definitions.
1651         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1652         macro definition.
1653         [!__ASSUME_FCNTL64]: Remove conditional code.
1654         [__ASSUME_FCNTL64]: Make code unconditional.
1655         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1656         <kernel-features.h>.
1657         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1658         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1659         (lockf64) [__NR_fcntl64]: Make code unconditional.
1660         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1662         * sysdeps/unix/sysv/linux/kernel-features.h
1663         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1664         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1665         Make code unconditional.
1666         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1667         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1669         [__NR_vfork]: Make code unconditional.
1670         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1671         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1673         [__NR_vfork]: Make code unconditional.
1674         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1675         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1677 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1679         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1680         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1682         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1683         Define mkstemp64 as an alias.
1684         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1685         Define mkstemps64 as an alias.
1686         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1687         Define mkostemp64 as an alias.
1688         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1689         Define mkostemps64 as an alias.
1690         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1691         Conditionalize body on this.
1692         * misc/mkostemp64.c: Likewise.
1693         * misc/mkostemps64.c: Likewise.
1694         * misc/mkstemps64.c: Likewise.
1695         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1696         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1697         * sysdeps/wordsize-64/mkostemp.c: File removed.
1698         * sysdeps/wordsize-64/mkstemp.c: File removed.
1699         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1700         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1701         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1702         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1704         [BZ #14138]
1705         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1706         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1707         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1708         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1710         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1711         compat_symbol macros from <shlib-compat.h> rather than the underlying
1712         default_symbol_version and symbol_version macros, so that DEFAULT
1713         lines in shlib-versions are respected.
1714         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1716 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1718         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1719         Declare with warn_unused_result.
1720         (setgid, setregid, setegid, setresgid): Likewise.
1721         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1722         Likewise.
1723         * WUR-REPORT: Remove set*id functions.
1725 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1727         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1729 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1731         * include/sys/socket.h (__libc_accept, __libc_accept4):
1732         Add attribute_hidden.
1733         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1735         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1736         use of PTR_MANGLE.
1737         * inet/getnetgrent_r.c (setup): Likewise.
1739         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1741 2012-07-31  David S. Miller  <davem@davemloft.net>
1743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1745 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1747         [BZ #13629]
1748         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1749         value between 1.0 and 2.0 and smaller part has absolute value less
1750         than 1.0.
1751         * math/s_clog10.c (__clog10): Likewise.
1752         * math/s_clog10f.c (__clog10f): Likewise.
1753         * math/s_clog10l.c (__clog10l): Likewise.
1754         * math/s_clogf.c (__clogf): Likewise.
1755         * math/s_clogl.c (__clogl): Likewise.
1756         * math/libm-test.inc (clog_test): Add more tests.
1757         (clog10_test): Likewise.
1758         * sysdeps/i386/fpu/libm-test-ulps: Update.
1759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1761 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1763         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1764         Exit with zero in case no suitable GID is found, and write a
1765         message to standard error.
1767 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1769         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1770         rather than to 1.
1771         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1772         (MAXPATHLEN): Removed.
1773         (NOGROUP, NODEV): New macros.
1774         (setbit, clrbit, isset, isclr): New macros.
1775         (howmany, roundup, powerof2): New macros.
1776         (DEV_BSIZE): New macro.
1778         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1779         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1781         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1782         definition on [!__NO_LONG_DOUBLE_MATH].
1784         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1785         PTR_MANGLE and PTR_DEMANGLE.
1787         * socket/accept4.c (accept4): Rename to __libc_accept4.
1788         Define accept4 as a weak alias.
1790         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1791         on [_DIRENT_HAVE_D_TYPE].
1792         * io/ftw.c (ftw_dir): Likewise.
1794         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1796         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1798         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1799         Use the BSD numbers rather than the arbitrary ones we had.
1800         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1801         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1802         (SIGXCPU, SIGXFSZ): New macros.
1803         (_NSIG): Now 32.
1805         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1806         initializer on [_LIBC_REENTRANT].
1808         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1809         definitions inside [_POSIX_MAPPED_FILES].
1811         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1813         * dirent/opendir.c: Include <fcntl.h>.
1815         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1816         (__libc_getspecific): Likewise.
1817         (__libc_key_create): Likewise.
1819         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1820         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1821         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1822         (tmpfile64): Define as alias.
1823         * sysdeps/wordsize-64/tmpfile.c: File removed.
1824         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1825         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1826         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1828         * stdio-common/vfscanf.c: Include <stdbool.h>.
1829         * nss/makedb.c: Likewise.
1830         * stdio-common/_i18n_number.h: Likewise.
1831         * argp/argp-help.c: Likewise.
1832         * posix/wordexp.c: Likewise.
1833         * sysdeps/posix/spawni.c: Likewise.
1834         * nss/nss_files/files-initgroups.c: Likewise.
1835         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1836         * nss/nss_files/files-initgroups.c: Likewise.
1837         * nss/nss_db/db-netgrp.c: Likewise.
1838         * nss/nss_db/db-initgroups.c: Likewise.
1839         * io/fchmodat.c: Include <sys/stat.h>.
1841         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1842         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1844         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1845         [HAVE_MMAP].
1847         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1848         Add multiple inclusion protection.
1850 2012-07-27  David S. Miller  <davem@davemloft.net>
1852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1854 2012-07-27  Gary Benson  <gbenson@redhat.com>
1856         [BZ #14298]
1857         * elf/rtld.c: Include <stap-probe.h>.
1858         (dl_main): Added static probes "init_start" and "init_complete".
1859         * elf/dl-load.c: Include <stap-probe.h>.
1860         (lose): Take new parameter "nsid".
1861         Added static probe "map_failed".
1862         (_dl_map_object_from_fd): Pass namespace id to lose.
1863         Added static probe "map_start".
1864         (open_verify): Pass namespace id to lose.
1865         * elf/dl-open.c: Include <stap-probe.h>.
1866         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1867         and "reloc_complete".
1868         * elf/dl-close.c: Include <stap-probe.h>.
1869         (_dl_close_worker): Added static probes "unmap_start" and
1870         "unmap_complete".
1871         * elf/rtld-debugger-interface.txt: New file documenting the above.
1873 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1875         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1876         rather than a string variable.
1877         * sunrpc/rpc_main.c (h_output): Likewise.
1878         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1880 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1882         * inet/check_native.c: New file.
1884 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1886         [BZ #13629]
1887         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1888         if larger part has absolute value 1.0.
1889         * math/s_clog10.c (__clog10): Likewise.
1890         * math/s_clog10f.c (__clog10f): Likewise.
1891         * math/s_clog10l.c (__clog10l): Likewise.
1892         * math/s_clogf.c (__clogf): Likewise.
1893         * math/s_clogl.c (__clogl): Likewise.
1894         * math/libm-test.inc (clog_test): Add more tests.
1895         (clog10_test): Likewise.
1896         * sysdeps/i386/fpu/libm-test-ulps: Update.
1897         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1899         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1900         (pltexit): Likewise.
1901         (La_regs): Likewise.
1902         (La_retval): Likewise.
1903         (int_retval): Likewise.
1904         Update #error for removed macros to refer only to definitions in
1905         tst-audit.h.
1906         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1907         macro.
1908         (pltexit): Likewise.
1909         (La_regs): Likewise.
1910         (La_retval): Likewise.
1911         (int_retval): Likewise.
1912         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1913         macro.
1914         (pltexit): Likewise.
1915         (La_regs): Likewise.
1916         (La_retval): Likewise.
1917         (int_retval): Likewise.
1918         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1919         macro.
1920         (pltexit): Likewise.
1921         (La_regs): Likewise.
1922         (La_retval): Likewise.
1923         (int_retval): Likewise.
1924         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1925         macro.
1926         (pltexit): Likewise.
1927         (La_regs): Likewise.
1928         (La_retval): Likewise.
1929         (int_retval): Likewise.
1930         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1931         macro.
1932         (pltexit): Likewise.
1933         (La_regs): Likewise.
1934         (La_retval): Likewise.
1935         (int_retval): Likewise.
1936         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1937         macro.
1938         (pltexit): Likewise.
1939         (La_regs): Likewise.
1940         (La_retval): Likewise.
1941         (int_retval): Likewise.
1942         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1943         macro definitions in tst-audit.h.
1944         * sysdeps/i386/tst-audit.h: New file.
1945         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1946         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1947         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1948         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1949         * sysdeps/sh/tst-audit.h: Likewise.
1950         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1951         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1952         * sysdeps/x86_64/tst-audit.h: Likewise.
1954 2012-07-26  Andreas Jaeger  <aj@suse.de>
1956         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1957         ptrace.
1959         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1960         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1961         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1962         PTRACE_O_MASK.
1963         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1964         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1965         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1967         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1968         value.
1970         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1971         _sigsys.
1972         (si_call_addr, si_syscall, si_arch): Define new macro.
1973         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1974         _sigsys.
1975         (si_call_addr, si_syscall, si_arch): Define new marcro.
1976         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1977         _sigsys.
1978         (si_call_addr, si_syscall, si_arch): Define new macro.
1979         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1980         _sigsys.
1981         (si_call_addr, si_syscall, si_arch): Define new macro.
1983 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1985         [BZ #13717]
1986         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1987         Change to 2.4.21 where previously 2.4.1.
1988         * sysdeps/unix/sysv/linux/configure: Regenerated.
1989         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1990         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1991         Linux kernel version.
1992         (__ASSUME_STD_AUXV): Remove.
1993         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1994         kernel version.
1995         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1996         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1997         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1998         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1999         (__ASSUME_NETLINK_SUPPORT): Likewise.
2000         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2001         (__no_netlink_support): Remove conditional definition.
2002         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2003         Remove.
2004         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2005         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2006         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2007         (if_nameindex_ioctl): Remove.
2008         (if_nameindex_netlink): Do not handle __no_netlink_support.
2009         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2010         code.
2011         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2012         Remove conditional code.
2013         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2014         code.
2015         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2016         unconditional.
2017         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2018         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2019         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2020         Remove.
2021         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2022         [!__ASSUME_STD_AUXV]: Remove conditional code.
2023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2024         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2025         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2027         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2028         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2029         code.
2030         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2032         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2033         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2034         conditional code.
2035         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2037         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2038         code.
2039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2040         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2041         conditional code.
2042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2043         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2044         code unconditional.
2045         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2046         conditional code.
2047         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2048         unconditional.
2049         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2050         conditional code.
2051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2052         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2053         unconditional.
2054         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2055         conditional code.
2056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2057         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2058         code unconditional.
2059         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2060         conditional code.
2061         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2062         unconditional.
2063         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2064         conditional code.
2065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2066         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2067         code unconditional.
2068         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2069         conditional code.
2070         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2071         unconditional.
2072         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2073         conditional code.
2075 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2077         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2078         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2079         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2080         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2081         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2082         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2083         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2084         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2085         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2086         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2087         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2088         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2089         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2090         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2091         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2092         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2093         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2094         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2095         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2096         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2097         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2098         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2099         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2101 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2103         * Versions.def: Add GLIBC_2.17.
2104         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2105         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2106         Introduce __libc_secure_getenv.
2107         * stdlib/Versions (2.17): Add secure_getenv
2108         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2109         * stdlib/secure-getenv.c: Rename __secure_getenv to
2110         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2111         symbol __secure_getenv for GLIBC_2.0.
2112         * stdlib/tst-secure-getenv.c: New.
2113         * stdlib/Makefile (tests): Add testcase.
2114         * manual/startup.texi (Environment Access): Document
2115         secure_getenv.
2116         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2117         __libc_secure_getenv.
2118         * inet/ruserpass.c (ruserpass): Likewise.
2119         * malloc/mtrace.c (mtrace): Likewise.
2120         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2121         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2122         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2123         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2124         HAVE_SECURE_GETENV.
2125         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2126         __secure_getenv to __libc_secure_getenv.
2127         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2129         Likewise.
2130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2131         Likewise.
2132         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2133         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2134         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2135         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2136         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2137         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2140 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2142         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2143         (struct La_i86_retval): Likewise.
2144         (struct La_x86_64_regs): Likewise.
2145         (struct La_x86_64_retval): Likewise.
2146         (struct La_x32_regs): Likewise.
2147         (struct La_x32_retval): Likewise.
2148         (struct La_ppc32_regs): Likewise.
2149         (struct La_ppc32_retval): Likewise.
2150         (struct La_ppc64_regs): Likewise.
2151         (struct La_ppc64_retval): Likewise.
2152         (struct La_sh_regs): Likewise.
2153         (struct La_sh_retval): Likewise.
2154         (struct La_s390_32_regs): Likewise.
2155         (struct La_s390_32_retval): Likewise.
2156         (struct La_s390_64_regs): Likewise.
2157         (struct La_s390_64_retval): Likewise.
2158         (struct La_sparc32_regs): Likewise.
2159         (struct La_sparc32_retval): Likewise.
2160         (struct La_sparc64_regs): Likewise.
2161         (struct La_sparc64_retval): Likewise.
2162         (struct audit_ifaces): Remove architecture-specific pltenter and
2163         pltexit members.
2164         * sysdeps/i386/ldsodefs.h: New file.
2165         * sysdeps/powerpc/ldsodefs.h: Likewise.
2166         * sysdeps/s390/ldsodefs.h: Likewise.
2167         * sysdeps/sh/ldsodefs.h: Likewise.
2168         * sysdeps/sparc/ldsodefs.h: Likewise.
2169         * sysdeps/x86_64/ldsodefs.h: Likewise.
2171 2012-07-25  Marek Polacek  <polacek@redhat.com>
2173         [BZ #6808]
2174         * math/libm-test.inc (yn_test): Add another test.
2175         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2176         to ERANGE when the result is +-Inf.
2177         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2178         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2179         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2180         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2182 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2184         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2185         equal to 0.
2186         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2187         clock_t.
2188         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2190 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2192         * configure.in <sysdeps resolving>: Correct printing
2193         Implies_before.
2194         * configure: Regenerate.
2196 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2198         * math/w_ilogb.c: Include <limits.h>.
2199         * math/w_ilogbl.c: Likewise.
2201 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2203         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2204         va_copy.  Document allowing for unavailable va_copy only as
2205         pre-C99 compatibility.
2206         * manual/string.texi (Copying and Concatenation): Use va_copy
2207         instead of __va_copy in concat example.
2209 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2211         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2212         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2213         it if not null.
2215         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2216         with O_NOLINK passed to __file_name_lookup.
2218         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2219         with O_NOLINK passed to __file_name_lookup.
2221         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2222         negative N or less than NGIDS.
2224         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2225         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2226         enough.  Use memcpy instead of strncpy.
2228 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2230         * elf/Makefile (check-data): Remove.
2231         (localplt.data): New vpath directive.
2232         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2233         instead of $(check-data).
2234         * scripts/data/localplt-generic.data: Move to ...
2235         * sysdeps/generic/localplt.data: ... here.
2236         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2237         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2238         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2240         ... here.
2241         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2243         ... here.
2244         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2245         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2246         ... here.
2247         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2248         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2249         ... here.
2250         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2251         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2252         ... here.
2253         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2254         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2255         ... here.
2257 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2259         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2260         PPC32 and PPC64 files.
2261         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2262         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2264 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2266         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2267         __makecontext_ret to ...
2268         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2269         ... here and call exit if uc_link is NULL.  New file.
2270         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2271         __makecontext_ret.S.
2272         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2273         __makecontext_ret to ...
2274         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2275         ... here and call exit if uc_link is NULL.  New file.
2276         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2277         __makecontext_ret.S.
2279 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2281         * elf/elf.h (R_390_IRELATIVE): New definition.
2282         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2283         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2284         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2285         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2286         (elf_machine_lazy_rel): Likewise.
2287         * sysdeps/s390/dl-irel.h: New file.
2288         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2289         * sysdeps/s390/s390-64/memset.S: New asm code.
2290         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2291         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2292         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2293         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2294         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2295         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2296         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2297         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2298         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2299         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2300         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2301         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2302         * sysdeps/s390/s390-32/memset.S: New asm code.
2303         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2305 2012-07-17  Marek Polacek  <polacek@redhat.com>
2307         [BZ #14349]
2308         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2309         * sysdeps/s390/s390-64/configure.in: Likewise.
2310         * sysdeps/sparc/configure.in: Likewise.
2311         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2312         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2313         * sysdeps/i386/configure.in: Likewise.
2314         * sysdeps/x86_64/configure.in: Likewise.
2315         * sysdeps/sh/configure.in: Likewise.
2316         * sysdeps/s390/s390-32/configure: Regenerated.
2317         * sysdeps/s390/s390-64/configure: Likewise.
2318         * sysdeps/x86_64/configure: Likewise.
2319         * sysdeps/sh/configure: Likewise.
2320         * sysdeps/powerpc/powerpc64/configure: Likewise.
2321         * sysdeps/powerpc/powerpc32/configure: Likewise.
2322         * sysdeps/sparc/configure: Likwise.
2323         * sysdeps/i386/configure: Likewise.
2325         * elf/dl-open.c: Comment fixes.
2327 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2329         * Makefile [CXX] (check-data): Remove.
2330         [CXX] (c++-types.data): New vpath directive.
2331         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2332         vpath.  Do not allow for C++ type data being missing.
2333         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2334         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2335         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2336         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2337         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2338         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2339         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2341         ... here.
2342         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2344         ... here.
2345         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2347         ... here.
2348         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2349         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2350         ... here.
2351         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2352         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2353         ... here.
2354         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2355         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2356         ... here.
2357         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2358         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2359         ... here.
2360         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2361         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2363         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2364         definitions to architecture-specific files.
2365         (TLS_IE): Likewise.
2366         (TLS_LD): Likewise.
2367         (TLS_GD): Likewise.
2368         * sysdeps/i386/tls-macros.h: New file.
2369         * sysdeps/powerpc/tls-macros.h: Likewise.
2370         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2371         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2372         * sysdeps/sh/tls-macros.h: Likewise.
2373         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2374         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2375         * sysdeps/x86_64/tls-macros.h: Likewise.
2377 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2379         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2380         zero value for regular exit case.
2382         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2383         (__start_context): Preserve zero value for regular exit case.
2385 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2386             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2388         * manual/setjmp.texi (setcontext): Clarify normal process
2389         termination when uc_link is the null pointer.
2390         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2391         exit call.
2393 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2395         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2396         preprocessor.  Test for each exception mask separately.
2398 2012-07-16  Andreas Jaeger  <aj@suse.de>
2400         * po/ru.po: Update from translation team.
2402 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2404         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2405         equal to 0.
2406         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2407         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2408         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2409         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2410         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2412 2012-07-13  Andreas Jaeger  <aj@suse.de>
2414         * po/fr.po: Update from translation team.
2416 2012-07-12  Marek Polacek  <polacek@redhat.com>
2418         [BZ #14173]
2419         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2420         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2421         loop condition.
2423 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2425         [BZ #13717]
2426         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2427         Change to 2.4.1 where previously 2.4.0.
2428         * sysdeps/unix/sysv/linux/configure: Regenerated.
2429         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2430         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2431         version.
2432         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2433         (__ASSUME_AT_CLKTCK): Remove.
2434         (__ASSUME_AT_PAGESIZE): Likewise.
2435         (__ASSUME_AT_XID): Likewise.
2436         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2437         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2438         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2439         unconditionally.
2440         (HAVE_AUX_PAGESIZE): Likewise.
2441         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2442         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2443         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2445 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2447         [BZ #14307]
2448         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2449         the temporary buffer used to invoke __gethostbyname2_r,
2450         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2451         host_data / struct gaih_addrtuple.
2452         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2453         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2454         header file nss/nsswitch.h.
2455         * nss/nsswitch.h (global scope): Add definition of implementation
2456         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2457         resolv/nss_dns/dns-host.c).
2459 2012-07-11  Andreas Jaeger  <aj@suse.de>
2461         * po/fr.po: Update from translation team.
2463         * po/sv.po: Update from translation team
2464         * po/fr.po: Another update from translation team.
2466 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2468         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2469         for subnormals or multiply small sinh result by itself.
2470         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2471         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2473 2012-07-11  David S. Miller  <davem@davemloft.net>
2475         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2477 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2479         [BZ #14347]
2480         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2481         (INTERNAL_MARK): Shift it here.
2483 2012-07-10  Marek Polacek  <polacek@redhat.com>
2485         [BZ #14151]
2486         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2487         libc_cv_asm_global_directive with .globl.
2488         * configure: Regenerated.
2489         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2490         with .globl.
2491         * sysdeps/i386/configure: Regenerated.
2492         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2493         with .globl.
2494         * sysdeps/x86_64/configure: Regenerated.
2495         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2496         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2497         * elf/tst-unique2mod2.c: Likewise.
2498         * elf/tst-unique2mod1.c: Likewise.
2499         * elf/tst-unique1mod2.c: Likewise.
2500         * elf/tst-unique1mod1.c: Likewise.
2501         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2502         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2503         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2504         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2505         * sysdeps/mach/sysdep.h: Likewise.
2506         * sysdeps/i386/sysdep.h: Likewise.
2507         * sysdeps/i386/i386-mcount.S: Likewise.
2508         * sysdeps/x86_64/_mcount.S: Likewise.
2509         * sysdeps/x86_64/sysdep.h: Likewise.
2510         * sysdeps/sh/_mcount.S: Likewise.
2511         * sysdeps/sh/sysdep.h: Likewise.
2512         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2513         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2514         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2515         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2516         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2517         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2518         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2519         * locale/localeinfo.h: Likewise.
2520         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2521         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2523 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2525         [BZ #14336]
2526         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2527         system".
2528         * manual/message.texi (The Uniforum approach): Likewise.
2529         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2530         (glibc iconv Implementation): Likewise.
2532 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2534         [BZ #14337]
2535         * math/s_clog.c (__clog): Avoid scaling a value down where that
2536         could result in underflow.
2537         * math/s_clog10.c (__clog10): Likewise.
2538         * math/s_clog10f.c (__clog10f): Likewise.
2539         * math/s_clog10l.c (__clog10l): Likewise.
2540         * math/s_clogf.c (__clogf): Likewise.
2541         * math/s_clogl.c (__clogl): Likewise.
2542         * math/libm-test.inc (clog_test): Add more tests.
2543         (clog10_test): Likewise.
2544         * sysdeps/i386/fpu/libm-test-ulps: Update.
2545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2547 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2549         [BZ #14283]
2550         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2551         by 7 not 8 to examine high bit of fractional part.
2553         [BZ #14042]
2554         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2555         for call to __mcount_internal.
2556         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2557         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2558         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2560 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2562         [BZ #14154]
2563         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2564         approximation for values within 0x1p-13f of an odd multiple of
2565         pi/4.
2566         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2567         exception.  Add more tests.
2568         * sysdeps/i386/fpu/libm-test-ulps: Update.
2570         [BZ #6778]
2571         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2572         inputs and return -1 for them.  Do not check for +Inf in case not
2573         reachable for +Inf.
2574         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2575         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2576         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2577         and return -1 for them.  Do not check for +Inf in case not
2578         reachable for +Inf.
2579         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2580         define.
2581         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2582         and return -1 for them.  Do not check for +Inf in case not
2583         reachable for +Inf.
2584         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2585         spurious underflow.
2586         * sysdeps/i386/fpu/libm-test-ulps: Update.
2587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2589 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2591         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2593 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2595         [BZ #14157]
2596         [BZ #14331]
2597         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2598         could result in spurious underflow.  Scale down values above
2599         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2600         * math/s_csqrtf.c (__csqrtf): Likewise.
2601         * math/s_csqrtl.c (__csqrtl): Likewise.
2602         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2603         spurious underflow.
2604         * sysdeps/i386/fpu/libm-test-ulps: Update.
2605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2607 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2609         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2610         xopen-msg.sed.
2611         * catgets/xopen-msg.awk: New file.
2612         * catgets/xopen-msg.sed: Removed.
2614         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2615         po2text.sed.
2616         * intl/po2test.awk: New file.
2617         * intl/po2test.sed: Removed.
2619 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2621         [BZ #14328]
2622         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2623         or multiply small sinh result by itself.
2624         * math/s_ctanf.c (__ctanf): Likewise.
2625         * math/s_ctanh.c (__ctanh): Likewise.
2626         * math/s_ctanhf.c (__ctanhf): Likewise.
2627         * math/s_ctanhl.c (__ctanhl): Likewise.
2628         * math/s_ctanl.c (__ctanl): Likewise.
2629         * math/libm-test.inc (ctan_test_tonearest): New function.
2630         (ctan_test_towardzero): Likewise.
2631         (ctan_test_downward): Likewise.
2632         (ctan_test_upward): Likewise.
2633         (ctanh_test_tonearest): Likewise.
2634         (ctanh_test_towardzero): Likewise.
2635         (ctanh_test_downward): Likewise.
2636         (ctanh_test_upward): Likewise.
2637         (main): Call these new functions.
2638         * sysdeps/i386/fpu/libm-test-ulps: Update.
2639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2641 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2643         * .gitignore: Delete /ports entry.
2645 2012-07-03  Andreas Jaeger  <aj@suse.de>
2647         * po/bg.po: Update from translation team.
2648         * po/cs.po: Likewise.
2649         * po/de.po: Likewise.
2650         * po/hr.po: Likewise.
2651         * po/nl.pl: Likewise.
2652         * po/pl.po: Likewise.
2653         * po/vi.po: Likewise.
2655 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2657         * Makeconfig [!+link] (+link-before-libc): New variable.
2658         [!+link] (+link-after-libc): Likewise.
2659         [!+link] (+link-tests): Likewise.
2660         [!+link] (+link): Define in terms of $(+link-before-libc) and
2661         $(+link-after-libc).
2662         [!+link-static] (+link-static-before-libc): New variable.
2663         [!+link-static] (+link-static-after-libc): Likewise.
2664         [!+link-static] (+link-static-tests): Likewise.
2665         [!+link-static] (+link-static): Define in terms of
2666         $(+link-static-before-libc) and $(+link-static-after-libc).
2667         [build-shared] (link-libc-before-gnulib): New variable.
2668         [build-shared] (link-libc-tests): Likewise.
2669         [build-shared] (link-libc): Define in terms of
2670         $(link-libc-before-gnulib).
2671         [!build-shared] (link-libc-tests): New variable.
2672         (link-libc-static-tests): New variable.
2673         [!gnulib] (gnulib-arch): New variable.
2674         [!gnulib] (gnulib-tests): Likewise.
2675         [!gnulib] (static-gnulib-arch): Likewise.
2676         [!gnulib] (static-gnulib-tests): Likewise.
2677         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2678         Define with "=" instead of ":=".
2679         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2680         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2681         * Rules (binaries-all-notests): New variable.
2682         (binaries-all-tests): Likewise.
2683         (binaries-static-notests): Likewise.
2684         (binaries-static-tests): Likewise.
2685         (binaries-all): Define using $(binaries-all-notests) and
2686         $(binaries-all-tests).
2687         (binaries-static): Define using $(binaries-static-notests) and
2688         $(binaries-static-tests).
2689         (binaries-shared-tests): New variable.
2690         (binaries-shared-notests): Likewise.
2691         (binaries-shared): Remove variable.
2692         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2693         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2694         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2695         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2696         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2697         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2698         * elf/Makefile (sln-modules): New variable.
2699         (extra-objs): Add $(sln-modules:=.o).
2700         (ldconfig-modules): Add static-stubs.
2701         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2702         * elf/static-stubs.c: New file.
2704         [BZ #14283]
2705         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2706         by 7 not 8 to examine high bit of fractional part.  Use volatile
2707         variables when splitting into final array of floats if
2708         __FLT_EVAL_METHOD__ != 0.
2709         * math/libm-test.inc (cos_test): Add another test.
2710         (sin_test): Likewise.
2711         * sysdeps/i386/fpu/libm-test-ulps: Update.
2713         [BZ #14273]
2714         * math/libm-test.inc (cosh_test): Add more tests.
2716         * version.h (RELEASE): Set to "development".
2717         (VERSION): Set to "2.16.90".
2719 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2721         * NEWS: Update copyright. Remove last-updated date.
2722         Mention math library bug fixes and timezone data changes.
2723         * README: Mention GNU/Hurd, x32, and HPPA support status.
2725 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2727         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2729 2012-06-27  Andreas Jaeger  <aj@suse.de>
2731         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2733 2012-06-25  Andreas Jaeger  <aj@suse.de>
2735         * sysdeps/s390/fpu/libm-test-ulps: Update.
2737 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2738             Thomas Schwinge  <thomas@codesourcery.com>
2740         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2741         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2742         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2743         fanotify_mark.
2745 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2747         * sysdeps/mach/start.c: Remove file.
2748         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2749         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2750         * sysdeps/sh/init-first.c: Likewise.
2752         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2753         registers for frame unwinding purposes, add CFI directives.
2754         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2755         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2756         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2757         Likewise.
2759         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2760         __fortify_fail returning.
2761         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2763         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2764         sysdeps/sh/____longjmp_chk.S.
2765         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2766         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2767         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2768         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2770         * sysdeps/sh/abort-instr.h: New file.
2771         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2772         process in case exit returns.
2774         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2775         initialize the GOT register before use.
2777         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2778         calculation of ARGC > 4.
2780         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2781         meaningful names to some local labels.
2783 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2784             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2786         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2787         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2788         (__arch_compare_and_exchange_val_16_acq): Likewise.
2789         (__arch_compare_and_exchange_val_32_acq): Likewise.
2790         (atomic_exchange_and_add): Fix gUSA sequence.
2791         (atomic_add): Likewise.
2792         (atomic_add_negative): Likewise.
2793         (atomic_add_zero): Likewise.
2794         (atomic_bit_test_set): Likewise.
2796 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2798         [BZ #13579]
2799         * include/link.h (struct link_map): Add l_free_initfini.
2800         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2801         l_initfini.
2802         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2803         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2804         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2805         set.
2807 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2809         * configure.in: Use AC_LANG_SOURCE.
2810         * configure: Regenerate.
2812 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2814         * configure.in (libc_cv_localstatedir): New substituted variable.
2815         * configure: Regenerated.
2816         * config.make.in (localstatedir): New variable, substituted from
2817         libc_cv_localstatedir.
2818         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2819         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2820         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2821         * sysdeps/gnu/configure: Regenerated.
2823 2012-06-21  Jeff Law  <law@redhat.com>
2825         [BZ #14277]
2826         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2827         free.  Simplify list management for _LIBC case.
2829 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2831         [BZ #14273]
2832         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2833         Clear sign bit of 64-bit integer value before comparing against
2834         overflow value.
2836         * sysdeps/mach/configure: Regenerated.
2838 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2840         [BZ #14278]
2841         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2843 2012-06-21  Jeff Law  <law@redhat.com>
2845         [BZ #13882]
2846         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2847         uint16_t for elements in the "seen" array to avoid char overflows.
2848         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2849         * elf/dl-open.c (dl_open_worker): Likewise.
2851 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2853         * scripts/list-sources.sh: Scan PORTS for translations.
2854         * po/libc.pot: Regenerated.
2856 2012-06-21  Andreas Jaeger  <aj@suse.de>
2858         [BZ #12194]
2859         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2860         warning.
2861         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2862         * bits/byteswap-16.h (__bswap_16): Likewise.
2863         * bits/byteswap.h (__bswap_constant_16): Likewise.
2865 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2867         [BZ #14117]
2868         * sysdeps/i386/fpu_control.h: Removed.
2869         * sysdeps/x86_64/fpu_control.h: Moved to ...
2870         * sysdeps/x86/fpu_control.h: Here.
2872         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2873         (_FPU_SETCW): Likewise.
2875 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2877         [BZ #14117]
2878         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2879         * sysdeps/x86/fpu/bits/mathinline.h: This.
2880         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2882         [BZ #14050]
2883         [BZ #14117]
2884         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2885         functions if __x86_64__ is defined.
2887 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2889         * string/endian.h: Add !__ASSEMBLER__ condition for including
2890         conversion interfaces.
2892 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2894         [BZ #14241]
2895         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2896         of ABS(x) in calculating zero to negative powers other than odd
2897         integers.
2898         * math/libm-test.inc (pow_test): Add more tests.
2900 2012-06-15  Andreas Jaeger  <aj@suse.de>
2902         * manual/contrib.texi (Contributors): Update entry of Liubov
2903         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2904         Machado Filho.
2906 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2908         * string/string.h: Add __wur to GNU version of strerror_r.
2910 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2912         [BZ #14229]
2913         * string/Makefile (tests): Add tst-strtok_r.
2914         * string/tst-strtok_r.c: New file.
2915         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2916         RAX_LP/RDX_LP on SAVE_PTR.
2918 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2920         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2922 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2924         * libm_test.inc (csqrt_test): Allow more spurious underflow
2925         exceptions.
2926         (j0_test): Likewise.
2927         (j1_test): Likewise.
2928         (y0_test): Likewise.
2929         (y1_test): Likewise.
2931 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2933         * po/Makefile (libc.pot): Use UTF-8 charset.
2935 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2937         [BZ #14210]
2938         Suppress sign-conversion warning from FD_SET.
2939         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2940         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2941         not unsigned long int.
2942         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2944 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2946         [BZ #14050]
2947         [BZ #14117]
2948         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2949         __extern_always_inline instead of __extern_inline.
2950         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2951         (__signbit): Likewise.
2952         (__signbitl): Support C++ namespace.
2953         (lrintf): New inline function.
2954         (lrint): Likewise.
2955         (llrintf): Likewise.
2956         (llrint): Likewise.
2957         (fmaxf): Likewise.
2958         (fmax): Likewise.
2959         (fminf): Likewise.
2960         (fmin): Likewise.
2961         (rint): Likewise.
2962         (rintf): Likewise.
2963         (ceil): Likewise.
2964         (ceilf): Likewise.
2965         (floor): Likewise.
2966         (floorf): Likewise.
2967         (nearbyint): Likewise.
2968         (nearbyintf): Likewise.
2970 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2972         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2973         non-default versions.
2975 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2977         [BZ #14218]
2978         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2980 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2982         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2983         (FE_UPWARD, FE_DOWNWARD): Don't define.
2984         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2985         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2987         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2988         reading it.
2989         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2990         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2992 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2994         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2995         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2996         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2997         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2999 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3001         [BZ #14117]
3002         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3003         * sysdeps/i386/fpu/Implies: New file.
3004         * sysdeps/x86_64/fpu/Implies: Likewise.
3005         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3006         * sysdeps/x86/fpu/bits/fenv.h: This.
3008         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3009         __SSE_MATH__.
3011 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3013         [BZ #14134]
3014         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3015         character 0xffff that matches the last element of the
3016         conversion table.
3018 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3020         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3021         fmodl commit.
3023 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3025         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3026         values higher than 25.6283.
3028 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3030         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3031         subnormal exponent extraction and add some __builtin_expect.
3032         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3033         Fix for subnormal mantissa calculation.
3035 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3037         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3038         cpu2 is -1 and errno is not ENOSYS.
3040 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3042         [BZ #14117]
3043         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3044         * sysdeps/x86/bits/string.h: This.
3045         * sysdeps/x86_64/bits/string.h: Removed.
3047         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3048         if not compiling for x86-64, but compiling for >= i486.
3050         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3051         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3053         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3054         New macro from Linux kernel 3.4.0.
3055         (FP_XSTATE_MAGIC2): Likewise.
3056         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3057         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3058         (struct _fpx_sw_bytes): New struct.
3059         (struct _xsave_hdr): Likewise.
3060         (struct _ymmh_state): Likewise.
3061         (struct _xstate): Likewise.
3063         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3064         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3065         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3066         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3067         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3068         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3070         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3071         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3072         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3073         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3074         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3075         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3077 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3079         [BZ #13743]
3080         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3081         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3082         (sysdep_headers): Include sys/platform/ppc.h.
3083         * sysdeps/powerpc/test-gettimebase.c: Test for
3084         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3085         * manual/Makefile (appendices): Include platform.texi.
3086         * manual/contrib.texi (Contributors): Update @node pointers.
3087         * manual/maint.texi (Maintenance): Likewise.
3088         (Platform): New node.
3089         * manual/platform.texi: New file.  Document the new features.
3091 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3092             Jakub Jelinek  <jakub@redhat.com>
3094         [BZ #14188]
3095         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3096         where __builtin_expect is unavailable.
3098 2012-06-03  David S. Miller  <davem@davemloft.net>
3100         * stdlib/longlong.h: Updated from GCC.
3102 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3104         [BZ #14042]
3105         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3106         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3107         __mcount_internal.
3108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3109         (GLIBC_2.16): Likewise.
3111 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3113         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3115 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3118         (default-abi): New variable.
3119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3120         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3121         variable.
3122         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3123         Likewise.
3124         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3125         Likewise.
3126         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3127         Likewise.
3129         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3130         definition.  Document in comment.
3132 2012-06-01  David S. Miller  <davem@davemloft.net>
3134         * stdlib/longlong.h: Updated from GCC.
3136 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3138         [BZ #14117]
3139         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3140         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3141         sys/debugreg.h sys/io.h here.
3142         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3143         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3144         sys/io.h.
3145         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3146         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3147         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3148         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3149         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3150         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3152         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3153         Define only if __x86_64__ is defined.
3155 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3157         [BZ #14048]
3158         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3159         Use int64_t for variable i.
3160         * math/libm-test.inc (fmod_test): Add more tests.
3162         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3163         z computation is not scheduled after fetestexcept.
3164         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3165         Use math_force_eval instead of asm to ensure calculation scheduled
3166         before exception test.
3167         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3168         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3170 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3172         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3173         computation is not scheduled after fetestexcept.
3175 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3177         [BZ #14117]
3178         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3179         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3181 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3183         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3184         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3186 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3188         [BZ #14117]
3189         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3190         <bits/wordsize.h>.
3191         (__WCHAR_MIN): Support __WORDSIZE == 64.
3192         (__WCHAR_MAX): Likewise.
3194         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3195         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3197         [BZ #14183]
3198         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3199         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3201         [BZ #14117]
3202         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3203         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3205         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3206         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3208         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3209         Defined to 1 if __x86_64__ isn't defined.
3210         (_STAT_VER_LINUX_OLD): New.
3211         (st_atime): Remove duplicate.
3212         (st_mtime): Likewise.
3213         (st_ctime): Likewise.
3215 2012-05-31  David S. Miller  <davem@davemloft.net>
3217         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3218         entries.
3220 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3222         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3223         gen-libm-test.pl.
3225         [BZ #14132]
3226         * elf/dl-reloc.c: Include <_itoa.h>.
3227         (_dl_reloc_bad_type): Remove use of INTUSE.
3228         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3229         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3230         * stdio-common/psiginfo.c (psiginfo): Likewise.
3231         * stdio-common/psignal.c (psignal): Likewise.
3232         * string/strsignal.c (strsignal): Likewise.
3233         * include/signal.h (_sys_siglist): Declare hidden proto.
3234         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3235         INTVARDEF with libc_hidden_data_def.
3236         * stdio-common/itoa-udigits.c: Likewise.
3237         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3238         (_itoa_lower_digits_internal): Remove declaration.
3239         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3240         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3241         (_sys_sigabbrev_internal): Remove aliases.
3242         (_sys_siglist): Define hidden alias.
3244 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3246         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3247         bits/sysctl.h.
3249 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3251         [BZ #14117]
3252         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3253         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3255         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3256         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3257         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3258         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3259         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3260         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3262         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3263         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3264         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3266         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3267         with __addr.
3268         (insw): Likewise.
3269         (insl): Likewise.
3270         (outsb): Likewise.
3271         (outsw): Likewise.
3272         (outsl): Likewise.
3274         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3275         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3276         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3278         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3279         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3280         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3281         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3282         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3283         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3285         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3286         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3288         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3289         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3291         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3292         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3293         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3295         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3296         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3297         to ...
3298         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3300         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3301         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3302         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3304         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3305         for x86-64.
3306         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3308 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3310         * math/math.h (M_El): Use two more decimal places.
3311         (M_LOG2El): Likewise.
3312         (M_LOG10El): Likewise.
3313         (M_LN2l): Likewise.
3314         (M_LN10l): Likewise.
3315         (M_PIl): Likewise.
3316         (M_PI_2l): Likewise.
3317         (M_PI_4l): Likewise.
3318         (M_1_PIl): Likewise.
3319         (M_2_PIl): Likewise.
3320         (M_2_SQRTPIl): Likewise.
3321         (M_SQRT2l): Likewise.
3322         (M_SQRT1_2l): Likewise.
3324 2012-05-31  David S. Miller  <davem@davemloft.net>
3326         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3327         values between float registers.
3328         * sysdeps/sparc/sparc64/memset.S: Likewise.
3329         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3331 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3333         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3334         -D_FORTIFY_SOURCE=1.
3335         (CPPFLAGS-tst-longjmp_chk.c): Define.
3336         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3337         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3338         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3339         CFLAGS-tst-wchar-h.c.
3341 2012-05-31  Marek Polacek  <polacek@redhat.com>
3343         [BZ #14132]
3344         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3345         __endmntent_internal): Remove declaration.
3346         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3347         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3348         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3350 2012-05-30  David S. Miller  <davem@davemloft.net>
3352         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3353         (___Q_simulate_exceptions): Use real FP ops rather than writing
3354         into the %fsr.
3355         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3356         Likewise.
3358 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3360         [BZ #14117]
3361         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3362         * sysdeps/x86/bits/xtitypes.h: This.
3364         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3365         * sysdeps/x86/bits/wordsize.h: This.
3367         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3368         * sysdeps/x86/bits/huge_vall.h: This.
3370         * sysdeps/i386/bits/select.h: Removed.
3371         * sysdeps/x86_64/bits/select.h: Renamed to ...
3372         * sysdeps/x86/bits/select.h: This.
3374         * sysdeps/i386/bits/setjmp.h: Removed.
3375         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3376         * sysdeps/x86/bits/setjmp.h: This.
3378         * sysdeps/i386/bits/mathdef.h: Removed.
3379         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3380         * sysdeps/x86/bits/mathdef.h: This.
3382 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3384         [BZ #14132]
3385         * include/sys/socket.h (__connect_internal)
3386         (__libc_sa_len_internal): Remove declaration.
3387         (__connect, __libc_sa_len): Declare hidden_proto.
3388         (SA_LEN): Remove use of INTUSE.
3389         * socket/connect.c: Add libc_hidden_def.
3390         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3391         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3392         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3393         alias.
3394         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3395         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3396         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3397         of adding _internal alias.
3399 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3401         [BZ #14117]
3402         * sysdeps/i386/bits/link.h: Removed.
3403         * sysdeps/i386/bits/linkmap.h: Likewise.
3404         * sysdeps/x86_64/bits/link.h: Renamed to ...
3405         * sysdeps/x86/bits/link.h: This.
3406         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3407         * sysdeps/x86/bits/linkmap.h: This.
3409         * sysdeps/i386/bits/endian.h: Removed.
3410         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3411         * sysdeps/x86/bits/endian.h: This.
3413         * sysdeps/i386/bits/byteswap.h: Removed.
3414         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3415         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3416         * sysdeps/x86/bits/byteswap.h: This.
3417         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3418         * sysdeps/x86/bits/byteswap-16.h: This.
3419         * sysdeps/i386/Implies: Add x86.
3420         * sysdeps/x86_64/Implies: Likewise.
3422 2012-05-30  David S. Miller  <davem@davemloft.net>
3424         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3425         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3426         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3427         (FP_TRAPPING_EXCEPTIONS): Define.
3428         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3429         (FP_TRAPPING_EXCEPTIONS): Define.
3430         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3431         subnormals only when inexact has been signalled or underflow
3432         exceptions are enabled.
3433         (_FP_PACK_CANONICAL): Likewise.
3435 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3437         [BZ #14183]
3438         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3439         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3441 2012-05-30  Richard Henderson  <rth@twiddle.net>
3443         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3444         with #ifndef NOT_IN_libc.
3446         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3447         marked to avoid plt entry.
3449 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3451         [BZ #14112]
3452         * Makeconfig (default-abi): New macro.
3453         (abi-includes): Likewise.
3454         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3455         $(abi-$(default-abi)-lib-soname) for soname if defined.
3456         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3457         abi-variants.
3458         * Makefile (installed-stubs): Likewise.
3459         * include/stubs-biarch.h: Removed.
3460         * scripts/lib-names.awk: Only handle one library at a time.
3461         * scripts/soversions.awk: Remove WORDSIZE support.
3462         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3463         entries.
3464         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3465         Removed.
3466         (syscall-list-default-condition): Likewise.
3467         (syscall-list-default-condition): Likewise.
3468         (syscall-list-includes): Likewise.
3469         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3470         syscall-list-* with abi-*.  Handle undefined abi-variants.
3471         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3472         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3473         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3474         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3475         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3476         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3477         Removed.
3478         (syscall-list-32-options): Likewise.
3479         (syscall-list-32-condition): Likewise.
3480         (syscall-list-64-options): Likewise.
3481         (syscall-list-64-condition): Likewise.
3482         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3483         macro.
3484         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3485         Renamed to ...
3486         (abi-*): This.
3487         (abi-64-ld-soname): New macro.
3488         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3489         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3490         Renamed to ...
3491         (abi-*): This.
3492         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3493         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3495 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3497         * sysdeps/unix/sysv/linux/kernel-features.h
3498         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3499         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3500         include <kernel-features.h>.
3501         [!__NR_ftruncate64]: Remove conditional code.
3502         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3503         [__NR_ftruncate64]: Make code unconditional.
3504         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3505         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3506         include <kernel-features.h>.
3507         [!__NR_ftruncate64]: Remove conditional code.
3508         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3509         [__NR_ftruncate64]: Make code unconditional.
3510         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3512         include <kernel-features.h>.
3513         [!__NR_ftruncate64]: Remove conditional code.
3514         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3515         [__NR_ftruncate64]: Make code unconditional.
3516         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3518         include <kernel-features.h>.
3519         [!__NR_ftruncate64]: Remove conditional code.
3520         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3521         [__NR_ftruncate64]: Make code unconditional.
3522         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3524         * configure.in (libc_cv_fpie): Weaken to a compile test using
3525         LIBC_TRY_CC_OPTION.
3526         * configure: Regenerated.
3528 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3530         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3531         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3532         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3533         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3534         Refreshed.
3535         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3536         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3538         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3539         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3540         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3541         Refreshed.
3543 2012-05-27  David S. Miller  <davem@davemloft.net>
3545         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3546         (___Q_zero): New.
3547         (__Q_simulate_exceptions): Return void.  Change to simulate
3548         exceptions by writing into the %fsr.
3549         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3550         (__Qp_handle_exceptions): Likewise.
3551         (numbers): Delete.
3552         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3553         __Qp_handle_exceptions.
3554         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3555         __Qp_handle_exceptions.
3556         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3557         as unused and give dummy FP_RND_NEAREST initializer.
3558         (FP_INHIBIT_RESULTS): Define.
3559         (___Q_simulate_exceptions): Update declaration.
3560         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3561         formatting.
3562         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3563         as unused and give dummy FP_RND_NEAREST initializer.
3564         (__Qp_handle_exceptions): Update declaration.
3565         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3566         formatting.
3568 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3570         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3571         the temporary FPU control word.
3572         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3573         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3574         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3575         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3576         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3577         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3578         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3579         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3580         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3581         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3582         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3584 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3586         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3587         fields.
3589 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3591         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3592         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3593         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3594         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3595         Likewise.
3596         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3597         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3598         Likewise.
3600 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3602         * po/h.po: Update from translation team.
3604 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3606         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3608         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3609         handling of denormals.
3610         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3611         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3612         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3613         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3614         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3615         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3616         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3617         Likewise.
3619 2012-05-26  Marek Polacek  <polacek@redhat.com>
3621         [BZ #14152]
3622         * math/libm-test.inc (fma_test): Don't always expect underflow
3623         exception.
3625 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3627         [BZ #12416]
3628         * elf/tst-execstack.c: Include stackinfo.h.
3629         (do_test): Adjust test case to ensure that pthread_getattr_np
3630         behaviour remains the same after marking stack executable.
3632 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3634         * sysdeps/unix/sysv/linux/kernel-features.h
3635         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3636         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3637         kernel-features.h.
3638         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3639         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3640         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3641         kernel-features.h.
3642         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3643         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3645 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3647         * configure.in: Define the default includes to being none.
3648         * configure: Regenerated.
3650 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3652         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3653         * sysdeps/x86_64/setjmp.S: Likewise.
3654         * sysdeps/i386/bsd-setjmp.S: Likewise.
3655         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3656         * sysdeps/i386/setjmp.S: Likewise.
3657         * sysdeps/i386/__longjmp.S: Likewise.
3658         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3659         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3661         * include/stap-probe.h: New file.
3662         * configure.in: Handle --enable-systemtap.
3663         * configure: Regenerated.
3664         * config.h.in (USE_STAP_PROBE): New #undef.
3665         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3666         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3667         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3669 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3671         [BZ #13717]
3672         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3673         to 2.4.0 where earlier.
3674         * sysdeps/unix/sysv/linux/configure: Regenerated.
3675         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3676         <kernel-features.h>.
3677         [__ASSUME_32BITUIDS]: Make code unconditional.
3678         [!__ASSUME_32BITUIDS]: Remove conditional code.
3679         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3680         <kernel-features.h>.
3681         [__ASSUME_32BITUIDS]: Make code unconditional.
3682         [!__ASSUME_32BITUIDS]: Remove conditional code.
3683         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3684         [__ASSUME_32BITUIDS]: Make code unconditional.
3685         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3686         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3687         <kernel-features.h>.
3688         [__ASSUME_32BITUIDS]: Make code unconditional.
3689         [!__ASSUME_32BITUIDS]: Remove conditional code.
3690         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3691         <kernel-features.h>.
3692         [__ASSUME_32BITUIDS]: Make code unconditional.
3693         [!__ASSUME_32BITUIDS]: Remove conditional code.
3694         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3695         <kernel-features.h>.
3696         [__ASSUME_32BITUIDS]: Make code unconditional.
3697         [!__ASSUME_32BITUIDS]: Remove conditional code.
3698         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3699         <kernel-features.h>.
3700         [__ASSUME_32BITUIDS]: Make code unconditional.
3701         [!__ASSUME_32BITUIDS]: Remove conditional code.
3702         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3703         <kernel-features.h>.
3704         [__ASSUME_32BITUIDS]: Make code unconditional.
3705         [!__ASSUME_32BITUIDS]: Remove conditional code.
3706         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3707         <kernel-features.h>.
3708         [__ASSUME_32BITUIDS]: Make code unconditional.
3709         [!__ASSUME_32BITUIDS]: Remove conditional code.
3710         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3711         <kernel-features.h>.
3712         [__ASSUME_32BITUIDS]: Make code unconditional.
3713         [!__ASSUME_32BITUIDS]: Remove conditional code.
3714         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3715         <kernel-features.h>.
3716         [__ASSUME_32BITUIDS]: Make code unconditional.
3717         [!__ASSUME_32BITUIDS]: Remove conditional code.
3718         * sysdeps/unix/sysv/linux/i386/msgctl.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/i386/semctl.c: Do not include
3723         <kernel-features.h>.
3724         [__ASSUME_32BITUIDS]: Make code unconditional.
3725         [!__ASSUME_32BITUIDS]: Remove conditional code.
3726         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3727         <kernel-features.h>.
3728         [__NR_setresgid] (__setresgid): Do not declare.
3729         [__ASSUME_32BITUIDS]: Make code unconditional.
3730         [!__ASSUME_32BITUIDS]: Remove conditional code.
3731         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3732         <kernel-features.h>.
3733         [__NR_setresuid] (__setresuid): Do not declare.
3734         [__ASSUME_32BITUIDS]: Make code unconditional.
3735         [!__ASSUME_32BITUIDS]: Remove conditional code.
3736         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3737         <kernel-features.h>.
3738         [__ASSUME_32BITUIDS]: Make code unconditional.
3739         [!__ASSUME_32BITUIDS]: Remove conditional code.
3740         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3741         <kernel-features.h>.
3742         [__ASSUME_32BITUIDS]: Make code unconditional.
3743         [!__ASSUME_32BITUIDS]: Remove conditional code.
3744         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3745         <kernel-features.h>.
3746         [__ASSUME_32BITUIDS]: Make code unconditional.
3747         [!__ASSUME_32BITUIDS]: Remove conditional code.
3748         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3749         <kernel-features.h>.
3750         [__ASSUME_32BITUIDS]: Make code unconditional.
3751         [!__ASSUME_32BITUIDS]: Remove conditional code.
3752         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3753         <kernel-features.h>.
3754         [__ASSUME_32BITUIDS]: Make code unconditional.
3755         [!__ASSUME_32BITUIDS]: Remove conditional code.
3756         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3757         <kernel-features.h>.
3758         [__ASSUME_32BITUIDS]: Make code unconditional.
3759         [!__ASSUME_32BITUIDS]: Remove conditional code.
3760         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3761         <kernel-features.h>.
3762         [__ASSUME_32BITUIDS]: Make code unconditional.
3763         [!__ASSUME_32BITUIDS]: Remove conditional code.
3764         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3765         <kernel-features.h>.
3766         [__ASSUME_32BITUIDS]: Make code unconditional.
3767         [!__ASSUME_32BITUIDS]: Remove conditional code.
3768         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3769         <kernel-features.h>.
3770         [__ASSUME_32BITUIDS]: Make code unconditional.
3771         [!__ASSUME_32BITUIDS]: Remove conditional code.
3772         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3773         <kernel-features.h>.
3774         [__ASSUME_32BITUIDS]: Make code unconditional.
3775         [!__ASSUME_32BITUIDS]: Remove conditional code.
3776         * sysdeps/unix/sysv/linux/kernel-features.h
3777         (__ASSUME_SETRESUID_SYSCALL): Remove.
3778         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3779         (__ASSUME_32BITUIDS): Likewise.
3780         (__ASSUME_LDT_WORKS): Likewise.
3781         (__ASSUME_O_DIRECTORY): Likewise.
3782         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3783         architecture but not kernel version.
3784         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3785         (__ASSUME_MMAP2_SYSCALL): Likewise.
3786         (__ASSUME_STAT64_SYSCALL): Likewise.
3787         (__ASSUME_IPC64): Likewise.
3788         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3789         <kernel-features.h>.
3790         [__ASSUME_32BITUIDS]: Make code unconditional.
3791         [!__ASSUME_32BITUIDS]: Remove conditional code.
3792         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3793         <kernel-features.h>.
3794         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3795         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3796         132096]: Remove conditional code.
3797         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3798         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3799         <kernel-features.h>.
3800         [__ASSUME_32BITUIDS]: Make code unconditional.
3801         [!__ASSUME_32BITUIDS]: Remove conditional code.
3802         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3803         <kernel-features.h>.
3804         [__ASSUME_32BITUIDS]: Make code unconditional.
3805         [!__ASSUME_32BITUIDS]: Remove conditional code.
3806         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3807         <kernel-features.h>.
3808         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3809         unconditional.
3810         (__setresgid): Do not declare.
3811         [__ASSUME_32BITUIDS]: Make code unconditional.
3812         [!__ASSUME_32BITUIDS]: Remove conditional code.
3813         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3814         <kernel-features.h>.
3815         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3816         unconditional.
3817         (__setresuid): Do not declare.
3818         [__ASSUME_32BITUIDS]: Make code unconditional.
3819         [!__ASSUME_32BITUIDS]: Remove conditional code.
3820         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3821         <kernel-features.h>.
3822         [__ASSUME_32BITUIDS]: Make code unconditional.
3823         [!__ASSUME_32BITUIDS]: Remove conditional code.
3824         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3825         <kernel-features.h>.
3826         [__ASSUME_32BITUIDS]: Make code unconditional.
3827         [!__ASSUME_32BITUIDS]: Remove conditional code.
3829 2012-05-25  Richard Henderson  <rth@twiddle.net>
3831         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3832         dl_hwcap to ifunc resolver.
3833         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3834         elf_ifunc_invoke.
3835         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3836         dl_hwcap to ifunc resolver.
3837         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3839 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3841         [BZ #14153]
3842         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3843         for |x| <= 2**-26, not 2**-57.
3844         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3845         exception.
3847 2012-05-24  Jeff Law  <law@redhat.com>
3849         * stdio-common/Makefile (tests): Add bug25.
3850         * stdio-common/bug25.c: New test.
3852 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3854         [BZ #13576]
3855         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3856         multiple of MALLOC_ALIGNMENT in size.
3857         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3859 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3861         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3862         Require >= 256.
3863         (FILENAME_MAX): Use macro-int-constant.
3864         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3865         (_IOFBF): Use macro-int-constant.
3866         (_IOLBF): Likewise.
3867         (_IONBF): Likewise.
3868         (SEEK_CUR): Likewise.
3869         (SEEK_END): Likewise.
3870         (SEEK_SET): Likewise.
3871         (TMP_MAX): Likewise.
3872         (EOF): Use macro-int-constant.  Require < 0.
3873         (NULL): Use macro-constant.  Require == 0.
3874         (stdin): Require type to be FILE *.
3875         (stdout): Likewise.
3876         (stderr): Likewise.
3877         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3878         macro-int-constant.
3879         (EXIT_SUCCESS): Likewise.
3880         (NULL): Use macro-constant.  Require == 0.
3881         (RAND_MAX): Use macro-int-constant.
3882         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3883         [C99-based standards] (strtof): Require function.
3884         [C99-based standards] (strtold): Likewise.
3885         [C99-based standards] (strtoll): Likewise.
3886         [C99-based standards] (strtoull): Likewise.
3887         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3888         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3889         [ISO || ISO99 || ISO11] (math.h): Likewise.
3890         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3891         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3892         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3894 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3896         [BZ #14132]
3897         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3898         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3899         * intl/dgettext.c (DCGETTEXT): Likewise.
3900         * intl/gettext.c (DCGETTEXT): Likewise.
3901         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3902         * posix/regex_internal.h (gettext): Likewise.
3903         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3904         Remove declaration.
3905         * include/argz.h (__argz_count_internal)
3906         (__argz_stringify_internal): Remove declaration.
3907         (__argz_count, __argz_stringify): Declare hidden proto.
3908         * intl/dcgettext.c: Remove use of INTDEF.
3909         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3910         * string/argz-stringify.c: Likewise.
3911         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3912         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3913         Declare hidden proto.
3914         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3915         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3916         Declare hidden proto.
3917         * include/stdio.h (__asprintf_internal): Don't declare.
3918         (__asprintf): Don't define as macro.  Declare hidden proto.
3919         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3920         (__fsetlocking): Declare hidden proto.
3921         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3922         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3923         hidden proto.
3924         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3925         (_IO_setlinebuf): Remove use of INTUSE.
3926         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3927         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3928         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3929         Remove declaration.
3930         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3931         (_IO_do_flush): Remove use of INTUSE.
3932         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3933         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3934         (_IO_adjust_column, _IO_least_wmarker)
3935         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3936         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3937         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3938         (_IO_default_doallocate, _IO_wdefault_doallocate)
3939         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3940         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3941         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3942         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3943         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3944         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3945         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3946         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3947         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3948         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3949         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3950         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3951         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3952         proto.
3953         (_IO_flush_all_internal, _IO_adjust_column_internal)
3954         (_IO_default_uflow_internal, _IO_default_finish_internal)
3955         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3956         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3957         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3958         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3959         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3960         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3961         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3962         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3963         (_IO_file_close_internal, _IO_file_close_it_internal)
3964         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3965         (_IO_file_init_internal, _IO_file_attach_internal)
3966         (_IO_file_fopen_internal, _IO_file_read_internal)
3967         (_IO_file_sync_internal, _IO_file_seek_internal)
3968         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3969         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3970         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3971         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3972         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3973         (_IO_list_all_internal, _IO_link_in_internal)
3974         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3975         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3976         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3977         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3978         (_IO_do_write_internal, _IO_padn_internal)
3979         (_IO_getline_info_internal, _IO_getline_internal)
3980         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3981         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3982         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3983         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3984         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3985         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3986         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3987         with libc_hidden_ver, remove use of INTUSE.
3988         * libio/genops.c: Likewise.
3989         * libio/freopen.c: Likewise.
3990         * libio/freopen64.c: Likewise.
3991         * libio/iofclose.c: Likewise.
3992         * libio/iofdopen.c: Likewise.
3993         * libio/iofflush.c: Likewise.
3994         * libio/iofflush_u.c: Likewise.
3995         * libio/iofgets.c: Likewise.
3996         * libio/iofgets_u.c: Likewise.
3997         * libio/iofopen.c: Likewise.
3998         * libio/iofopncook.c: Likewise.
3999         * libio/iofread.c: Likewise.
4000         * libio/iofread_u.c: Likewise.
4001         * libio/ioftell.c: Likewise.
4002         * libio/iofwrite.c: Likewise.
4003         * libio/iogetline.c: Likewise.
4004         * libio/iogets.c: Likewise.
4005         * libio/iogetwline.c: Likewise.
4006         * libio/iopadn.c: Likewise.
4007         * libio/iopopen.c: Likewise.
4008         * libio/ioseekoff.c: Likewise.
4009         * libio/ioseekpos.c: Likewise.
4010         * libio/iosetbuffer.c: Likewise.
4011         * libio/iosetvbuf.c: Likewise.
4012         * libio/ioungetc.c: Likewise.
4013         * libio/ioungetwc.c: Likewise.
4014         * libio/iovdprintf.c: Likewise.
4015         * libio/iovsprintf.c: Likewise.
4016         * libio/iovsscanf.c: Likewise.
4017         * libio/memstream.c: Likewise.
4018         * libio/obprintf.c: Likewise.
4019         * libio/oldfileops.c: Likewise.
4020         * libio/oldiofclose.c: Likewise.
4021         * libio/oldiofdopen.c: Likewise.
4022         * libio/oldiofopen.c: Likewise.
4023         * libio/oldiopopen.c: Likewise.
4024         * libio/oldstdfiles.c: Likewise.
4025         * libio/putc.c: Likewise.
4026         * libio/setbuf.c: Likewise.
4027         * libio/setlinebuf.c: Likewise.
4028         * libio/stdfiles.c: Likewise.
4029         * libio/strops.c: Likewise.
4030         * libio/vasprintf.c: Likewise.
4031         * libio/vscanf.c: Likewise.
4032         * libio/vsnprintf.c: Likewise.
4033         * libio/vswprintf.c: Likewise.
4034         * libio/wfiledoalloc.c: Likewise.
4035         * libio/wfileops.c: Likewise.
4036         * libio/wgenops.c: Likewise.
4037         * libio/wmemstream.c: Likewise.
4038         * libio/wstrops.c: Likewise.
4039         * libio/__fpurge.c: Likewise.
4040         * libio/__fsetlocking.c: Likewise.
4041         * assert/assert.c: Likewise.
4042         * debug/fgets_chk.c: Likewise.
4043         * debug/fgets_u_chk.c: Likewise.
4044         * debug/fread_chk.c: Likewise.
4045         * debug/fread_u_chk.c: Likewise.
4046         * debug/gets_chk.c: Likewise.
4047         * debug/obprintf_chk.c: Likewise.
4048         * debug/vasprintf_chk.c: Likewise.
4049         * debug/vdprintf_chk.c: Likewise.
4050         * debug/vsnprintf_chk.c: Likewise.
4051         * debug/vsprintf_chk.c: Likewise.
4052         * malloc/mtrace.c: Likewise.
4053         * misc/error.c: Likewise.
4054         * misc/syslog.c: Likewise.
4055         * stdio-common/asprintf.c: Likewise.
4056         * stdio-common/fxprintf.c: Likewise.
4057         * stdio-common/getw.c: Likewise.
4058         * stdio-common/isoc99_fscanf.c: Likewise.
4059         * stdio-common/isoc99_scanf.c: Likewise.
4060         * stdio-common/isoc99_vfscanf.c: Likewise.
4061         * stdio-common/isoc99_vscanf.c: Likewise.
4062         * stdio-common/isoc99_vsscanf.c: Likewise.
4063         * stdio-common/printf-prs.c: Likewise.
4064         * stdio-common/printf_fp.c: Likewise.
4065         * stdio-common/printf_fphex.c: Likewise.
4066         * stdio-common/printf_size.c: Likewise.
4067         * stdio-common/putw.c: Likewise.
4068         * stdio-common/scanf.c: Likewise.
4069         * stdio-common/sprintf.c: Likewise.
4070         * stdio-common/tmpfile.c: Likewise.
4071         * stdio-common/vfprintf.c: Likewise.
4072         * stdio-common/vfscanf.c: Likewise.
4073         * stdlib/strfmon_l.c: Likewise.
4074         * sunrpc/openchild.c: Likewise.
4075         * sunrpc/xdr_stdio.c: Likewise.
4076         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4077         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4079 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4081         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4083         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4084         in the third column, to generate for the shared library an IFUNC
4085         that uses _dl_vdso_vsym.
4086         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4087         * Makeconfig (object-suffixes-noshared): New variable.
4089         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4090         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4091         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4092         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4094         [BZ #14132]
4095         * include/sys/time.h (__gettimeofday): Remove macro.
4096         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4097         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4098         Remove INTDEF.
4099         (__gettimeofday): Add libc_hidden_def.
4100         (gettimeofday): Add libc_hidden_weak.
4101         * sysdeps/mach/gettimeofday.c: Likewise.
4102         * sysdeps/posix/gettimeofday.c: Likewise.
4103         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4104         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4105         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4106         (__gettimeofday_internal): Remove strong_alias.
4107         (__gettimeofday): Add libc_hidden_def.
4108         (gettimeofday): Add libc_hidden_weak.
4109         * sysdeps/unix/syscalls.list (gettimeofday):
4110         Remove __gettimeofday_internal alias.
4112 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4113             H.J. Lu  <hongjiu.lu@intel.com>
4115         [BZ #12495]
4116         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4117         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4118         (largebin_index_32_big): New.
4119         (largebin_index): Use it for 16-byte alignment.
4120         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4121         correction with front_misalign.
4123 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4125         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4126         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4127         Likewise.
4128         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4129         Likewise.
4130         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4131         Likewise.
4132         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4133         Likewise.
4134         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4135         Likewise.
4136         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4137         Likewise.
4138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4139         Likewise.
4140         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4141         Likewise.
4142         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4143         Likewise.
4144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4145         Likewise.
4146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4147         Likewise.
4148         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4149         Likewise.
4151         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4152         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4154 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4156         [BZ #10846]
4157         [BZ #14036]
4158         * math/libm-test.inc (exp_test): Add test from bug 14036.
4159         (pow_test): Add test from bug 10846.
4161         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4162         and other flags.
4163         (special_function): Do not include flags in test name.
4164         (parse_args): Likewise.
4165         * sysdeps/i386/fpu/libm-test-ulps: Update.
4166         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4167         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4168         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4171         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4172         exceptions.
4173         * math/libm-test.inc ("Philosophy"): Update comment about
4174         exception testing.
4175         (UNDERFLOW_EXCEPTION): New macro.
4176         (UNDERFLOW_EXCEPTION_OK): Likewise.
4177         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4178         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4179         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4180         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4181         (INVALID_EXCEPTION_OK): Update value.
4182         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4183         (OVERFLOW_EXCEPTION_OK): Likewise.
4184         (IGNORE_ZERO_INF_SIGN): Likewise.
4185         (test_exceptions): Handle underflow exceptions.
4186         (acos_test): Update for underflow exception expectations.
4187         (cexp_test): Likewise.
4188         (clog_test): Likewise.
4189         (clog10_test): Likewise.
4190         (csqrt_test): Likewise.
4191         (ctan_test): Likewise.
4192         (ctanh_test): Likewise.
4193         (exp_test): Likewise.
4194         (exp10_test): Likewise.
4195         (exp2_test): Likewise.
4196         (expm1_test): Likewise.
4197         (fma_test): Likewise.
4198         (j0_test): Likewise.
4199         (jn_test): Likewise.
4200         (nexttoward_test): Likewise.
4201         (pow_test): Likewise.
4202         (scalbn_test): Likewise.
4203         (scalbln_test): Likewise.
4204         (tan_test): Likewise.
4205         (y1_test): Likewise.
4206         * sysdeps/i386/fpu/libm-test-ulps: Update.
4207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4209 2012-05-23  David S. Miller  <davem@davemloft.net>
4211         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4212         (__libc_sigaction): Remove unused local variables.
4214 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4216         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4218 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4220         mktime: avoid signed integer overflow
4221         * time/mktime.c (__mktime_internal): Do not mishandle the case
4222         where diff == INT_MIN.
4224         mktime: simplify computation of average
4225         * time/mktime.c (ranged_convert): Use new time_t_avg function
4226         instead of rolling our own (probably-slower) code.
4228         mktime: do not assume signed right shift propagates sign bit
4229         * time/mktime.c (isdst_differ): New static function.
4230         (__mktime_internal): No need to normalize tm_isdst now.
4231         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4232         tm_isdst values.
4234         mktime: merge another wrapv change from gnulib
4235         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4236         from some compilers.
4238         mktime: remove incorrect attempt at unusual arithmetics
4239         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4240         The code didn't really work on such machines anyway.
4241         (TYPE_MINIMUM): Assume two's complement.
4242         (twos_complement_arithmetic): Verify that long_int and time_t
4243         are two's complement (or unsigned, in the latter case).
4245         mktime: check signed shifts on long_int and time_t, too
4246         * time/mktime.c (SHR): Check that shifts work as desired
4247         on the types long_int and time_t too, as SHR is used on
4248         such types.
4250         mktime: do not assume 'long' is wide enough
4251         * time/mktime.c (verify): Move decl up.
4252         (long_int): New type.
4253         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4254         to remove assumption in the code that 'long' is wide enough to
4255         store year values.  This assumption is not true on x32 and on
4256         some non-glibc platforms.
4258         mktime: merge wrapv change from gnulib
4259         * time/mktime.c (WRAPV): New macro.
4260         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4261         (guess_time_tm, __mktime_internal): Do not assume that signed
4262         integer overflow wraps around; modern compilers generate code
4263         where this assumption is no longer valid.
4265 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4267         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4268         Replace "jmp L(pseudo_end)" with "ret".
4269         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4270         Likewise.
4272 2012-05-23  Andreas Jaeger  <aj@suse.de>
4274         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4275         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4277 2012-05-23  Andreas Jaeger  <aj@suse.de>
4278             Maximilian Attems  <max@stro.at>
4280         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4281         New macros.
4283 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4285         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4286         code so that pseudo_end is just ret and the stack pointer is
4287         correct also for static library in error case.
4289 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4291         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4292         move to syscalls.list.
4293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4298         * manual/install.texi (Running make install): Do not mention Linux
4299         kernel version for which pt_chown is not needed.
4300         (Linux): Do not mention problems with nscd with 2.0 kernels.
4301         * INSTALL: Regenerated.
4303 2012-05-23  Andreas Jaeger  <aj@suse.de>
4305         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4306         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4307         macro.
4308         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4309         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4310         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4311         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4312         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4313         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4314         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4315         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4316         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4317         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4318         * sysdeps/unix/sysv/linux/bits/in.h
4319         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4321 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4323         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4324         (PREPARE_VERSION): Just use assert instead, it will be elided
4325         under [NDEBUG] anyway.
4327 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4329         * sysdeps/unix/sysv/linux/Makefile: Include
4330         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4331         (sysdep_routines): Remove sysctl.
4332         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4333         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4334         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4335         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4336         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4338 2012-05-22  Andreas Jaeger  <aj@suse.de>
4340         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4341         that pseudo_end is just ret and the stack pointer is correct also
4342         for static library in error case.
4344 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4346         [BZ #14122]
4347         * nss/nsswitch.c (defconfig_entries): New variable.
4348         (__nss_database_lookup): Don't leak defconfig entries.
4349         (nss_parse_service_list): Don't leak on error paths.
4350         (free_database_entries): New function.
4351         (free_defconfig): New function.
4352         (free_mem): Move common code to free_database_entries.
4354 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4356         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4357         Add arch_prctl.
4358         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4360         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4361         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4362         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4363         New macro.
4364         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4365         (INTERNAL_SYSCALL_TYPES): Likewise.
4366         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4367         (LOAD_REGS_TYPES_[1-6]): Likewise.
4368         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4369         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4371 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4373         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4374         copysignl for GLIBC_2_0.
4375         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4376         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4377         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4378         logbl for GLIBC_2_0.
4379         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4380         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4382 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4384         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4385         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4387         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4388         Use "neg %eax".
4390         * time/mktime.c: Update copyright years.
4392 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4394         mktime: merge comment-quoting-style change from gnulib
4395         * time/mktime.c: Quote 'like this' in comments.
4396         The GNU coding standards suggest that we no longer quote `like this',
4397         as "`" and "'" are typically rendered asymmetrically nowadays.
4398         The typical gnulib style is to quote 'like this' when quoting
4399         code, and "like this" when quoting English.
4401         * time/mktime.c (compile-command): Add "-I.".
4403         mktime: merge mktime-internal.h change from gnulib
4404         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4406         mktime: merge time_r change from gnulib
4407         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4409         mktime: merge DEBUG change from gnulib
4410         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4411         case system <time.h> has a #define.
4413         mktime: merge <sys/types.h> change from gnulib
4414         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4415         since <time.t> is now guaranteed to define time_t.
4417         mktime: merge HAVE_CONFIG_H change from gnulib
4418         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4420 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4422         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4423         Use "neg %eax".
4425         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4426         __rlim_t cast.
4427         (struct rusage): Use anonymous union to pad each field to
4428         __syscall_slong_t.
4430 2012-05-21  David S. Miller  <davem@davemloft.net>
4432         * Makefules (o-iterator): Remove .s cases.
4433         (compile-command.s): Delete.
4434         (COMPILE.s): Delete.
4435         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4437 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4439         * configure.in (libc_cv_predef_stack_protector): Only consider
4440         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4441         * configure: Regenerated.
4443 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4445         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4446         New macro.  Use R*LP on int and pointer.
4447         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4448         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4449         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4450         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4452         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4453         [__WORDSIZE_TIME64_COMPAT32] instead of
4454         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4455         (struct utmp): Likewise.
4456         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4457         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4458         Renamed to ...
4459         (__WORDSIZE_TIME64_COMPAT32): This.
4460         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4461         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4462         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4463         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4464         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4465         (__WORDSIZE_TIME64_COMPAT32): New macro.
4467 2012-05-21  Andreas Jaeger  <aj@suse.de>
4469         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4470         only if [SHARED]. Add prototype for __wcschr_ia32.
4472 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4474         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4475         of %rbp unmolested in the jmp_buf while mangling the low bits.
4476         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4477         unmolested high bits of %rbp while demangling the low bits.
4478         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4480 2012-05-21  Andreas Jaeger  <aj@suse.de>
4482         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4483         * sunrpc/svc_simple.c: Use it for registerrpc.
4484         * sunrpc/xcrypt.c: Use it for passwd2des.
4486         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4488 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4490         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4491         Don't define if [__SYSCALL_WORDSIZE != 32].
4492         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4493         New macro.
4495 2012-05-21  Bruno Haible  <bruno@clisp.org>
4496             Andreas Jaeger  <aj@suse.de>
4498         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4499         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4500         inptr and inend for must_buffer_ch.
4501         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4502         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4503         * stdio-common/Makefile (tests): Remove bug15.
4504         (bug15-ENV): Remove macro.
4505         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4506         anymore.
4508 2012-05-19  Andreas Jaeger  <aj@suse.de>
4509             Roland McGrath  <roland@hack.frob.com>
4511         * manual/contrib.texi: Completely rewritten. It contains now an
4512         alphabetical list of contributors and their contributions.
4514 2012-05-21  Richard Henderson  <rth@twiddle.net>
4516         * misc/getauxval.c (__getauxval): Use unsigned long int.
4517         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4518         (getauxval): Use unsigned long int.
4520 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4522         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4524 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4526         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4527         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4528         __alignof__ (long double).
4530 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4532         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4534 2012-05-20  Richard Henderson  <rth@twiddle.net>
4536         * misc/getauxval.c: New file.
4537         * misc/sys/auxv.h: New file.
4538         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4539         (routines): Add getauxval.
4540         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4541         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4542         * elf/dl-sysdep.c (_dl_auxv): Remove.
4543         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4544         * elf/dl-support.c (_dl_auxv): New variable.
4545         (_dl_aux_init): Initialize it.
4546         * manual/startup.texi (Auxiliary Vector): New node.
4547         * sysdeps/generic/bits/hwcap.h: New file.
4548         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4549         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4550         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4551         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4552         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4553         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4555         Update.
4556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4557         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4558         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4559         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4561         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4562         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4563         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4565 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4567         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4569 2012-05-19  David S. Miller  <davem@davemloft.net>
4571         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4573 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4575         [BZ #14123]
4576         * math/s_ccosh.c: Include <float.h>
4577         (__ccosh): Avoid internal overflow calculating sinh and cosh
4578         values before multiplying by sin and cos values.
4579         * math/s_ccoshf.c: Likewise.
4580         * math/s_ccoshl.c: Likewise.
4581         * math/s_csin.c: Likewise.
4582         * math/s_csinf.c: Likewise.
4583         * math/s_csinl.c: Likewise.
4584         * math/s_csinh.c: Likewise.
4585         * math/s_csinhf.c: Likewise.
4586         * math/s_csinhl.c: Likewise.
4587         * math/libm-test.inc (ccos_test): Add more tests.
4588         (ccosh_test): Likewise.
4589         (csin_test): Likewise.
4590         (csinh_test): Likewise.
4591         * sysdeps/i386/fpu/libm-test-ulps: Update.
4592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4594 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4596         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4597         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4599         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4601 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4603         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4604         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4605         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4606         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4607         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4608         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4609         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4610         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4611         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4612         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4613         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4614         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4615         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4616         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4617         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4618         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4619         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4620         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4621         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4622         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4623         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4624         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4625         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4626         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4627         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4628         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4629         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4630         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4631         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4632         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4633         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4635 2012-05-18  Andreas Jaeger  <aj@suse.de>
4637         * csu/.gitignore: Delete.
4639 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4641         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4642         (timex): Use __syscall_slong_t.
4644 2012-05-18  Andreas Jaeger  <aj@suse.de>
4645             Carlos O'Donell  <carlos_odonell@mentor.com>
4647         * manual/install.texi (Configuring and compiling): Update
4648         description about files modified in the source directory.
4649         * INSTALL: Regenerated.
4651 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4653         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4654         value.  Use "or" to set return value to -1.
4655         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4656         negate return value.
4658 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4660         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4661         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4662         failure if the compiler has Graphite support disabled.
4663         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4664         Likewise.
4665         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4666         CFLAGS-memmove.c): Likewise.
4667         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4668         Likewise.
4670 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4672         * sysdeps/x86_64/x32/_itoa.h: New file.
4674         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4675         getdents system call only if kernel and user dirents have the
4676         same d_ino and d_off.
4678         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4679         LLONG_MAX != LONG_MAX.
4680         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4681         (_fitoa_word): Likewise.
4683         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4684         years.
4685         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4686         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4687         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4689         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4690         include <bits/wordsize.h>.  Check __x86_64__ instead of
4691         __WORDSIZE.
4692         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4693         if __x86_64__ is defined.  Use anonymous union on fpstate.
4695         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4696         anonymous union.
4698 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4700         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4701         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4702         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4703         Refer to _rtld_local_ro instead of _rtld_global_ro.
4704         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4705         Likewise.
4706         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4707         Likewise.
4708         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4709         Likewise.
4710         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4711         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4712         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4714         * sysdeps/powerpc/powerpc32/dl-machine.c
4715         (__elf_machine_runtime_setup) [PROF]: Don't reference
4716         _dl_prof_resolve.
4718 2012-05-18  Andreas Jaeger  <aj@suse.de>
4720         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4721         function only available for GCCs before 3.4 since GCC 3.4
4722         introduced a builtin.
4723         (lrint): Likewise.
4724         (llrintf): Likewise.
4725         (llrint): Likewise.
4726         (fmaxf): Likewise.
4727         (fmax): Likewise.
4728         (fminf): Likewise.
4729         (fmin): Likewise.
4730         (rint): Likewise.
4731         (rintf): Likewise.
4732         (nearbyint): Likewise.
4733         (nearbyintf): Likewise.
4734         (ceil): Likewise.
4735         (ceilf): Likewise.
4736         (floor): Likewise.
4737         (floorf): Likewise.
4739 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4741         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4742         on both fields and cast pointer to __syscall_ulong_t.
4744         * bits/types.h (__fsword_t): New type.
4745         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4746         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4747         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4748         (__FSWORD_T_TYPE): Likewise.
4749         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4750         (__FSWORD_T_TYPE): Likewise.
4751         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4752         (__FSWORD_T_TYPE): Likewise.
4753         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4754         (__FSWORD_T_TYPE): Likewise.
4755         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4756         __SWORD_TYPE with __fsword_t.
4757         (statfs64): Likewise.
4759 2012-05-17  David S. Miller  <davem@davemloft.net>
4761         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4763 2012-05-17  Andreas Jaeger  <aj@suse.de>
4765         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4766         warning.
4768 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4770         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4772 2012-05-17  Andreas Jaeger  <aj@suse.de>
4774         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4775         when it is used.
4777 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4779         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4781 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4783         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4784         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4786 2012-05-17  Andreas Jaeger  <aj@suse.de>
4787             Carlos O'Donell  <carlos_odonell@mentor.com>
4789         [BZ #14059]
4790         * sysdeps/x86_64/multiarch/init-arch.h
4791         (bit_YMM_Usable): Rename to...
4792         (bit_AVX_Usable): ... this.
4793         (bit_FMA4_Usable): New macro.
4794         (bit_XMM_state): New macro.
4795         (bit_YMM_state): New macro.
4796         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4797         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4798         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4799         (CPUID_OSXSAVE): New macro.
4800         (CPUID_AVX): New macro.
4801         (CPUID_FMA4): New macro.
4802         (index_YMM_Usable): Rename to...
4803         (index_AVX_Usable): ... this.
4804         (HAS_AVX): Use HAS_ARCH_FEATURE.
4805         (HAS_FMA4): Likewise.
4806         (HAS_YMM_USABLE): Remove.
4807         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4808         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4809         are present.
4810         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4811         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4812         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4813         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4814         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4816 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4818         * math/libm-test.c: Support platforms without multiple rounding modes.
4819         * math/bug-nextafter.c: Support platforms without FP exceptions.
4820         * math/bug-nexttoward.c: Likewise.
4821         * math/test-fenv.c: Likewise.
4822         * math/test-misc.c: Likewise.
4823         * stdlib/bug-getcontext.c: Likewise.
4825 2012-05-17  Andreas Jaeger  <aj@suse.de>
4827         * manual/examples/search.c (critter_cmp): Change signature to
4828         avoid warnings.
4829         * manual/string.texi (Collation Functions): Likewise.
4831 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4833         * bits/types.h: Fold copyright years.
4834         * bits/typesizes.h: Likewise.
4835         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4836         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4837         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4838         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4839         * time/time.h: Likewise.
4841 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4843         [BZ #208]
4844         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4845         in instead of returning them.  Return void.
4846         (__libc_mallinfo): Accumulate over all arenas.
4847         (__malloc_stats): Adjust for change in int_mallinfo interface.
4849 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4851         [BZ #10375]
4852         * configure.in (NM): Add AC_CHECK_TOOL for it.
4853         (libc_extra_cflags): New substituted variable.
4854         Check for -fstack-protector being used implicitly.
4855         * configure: Regenerated.
4856         * config.make.in (config-extra-cflags): New variable,
4857         gets @libc_extra_cflags@.
4858         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4860         [BZ #10375]
4861         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4862         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4863         * configure: Regenerated.
4864         * config.make.in (CPPUNDEFS): New substituted variable.
4865         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4866         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4867         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4869 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4871         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4872         (mq_attr): Use __syscall_slong_t.
4874 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4876         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4877         Check __x86_64__ instead of __WORDSIZE.
4878         (_STAT_VER_LINUX): Likewise.
4879         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4880         __syscall_ulong_t and __syscall_slong_t.
4881         (stat64): Likewise.
4883 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4885         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4887 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4889         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4891 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4893         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4894         __syscall_ulong_t.
4896         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4897         include <bits/wordsize.h>.  Check __x86_64__ instead of
4898         __WORDSIZE.
4899         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4900         defined.
4901         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4903         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4904         include <bits/wordsize.h>.  Check __x86_64__ instead of
4905         __WORDSIZE.
4906         (user_regs_struct): Use "__extension__ unsigned long long"
4907         instead of "unsigned long" if __x86_64__ is defined.
4908         (user): Likewise.  Pad after pointer field if __ILP32__ is
4909         defined.
4911 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4913         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4914         versions 5 to 9.
4915         * configure: Regenerated.
4916         * manual/install.texi (texinfo): Increase version requirement to
4917         4.5 or later.
4918         * INSTALL: Regenerated.
4920         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4922 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4924         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4926         * sysdeps/x86_64/x32/ffs.c: New file.
4928         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4929         __syscall_ulong_t.
4930         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4931         defined.  Use __syscall_ulong_t.
4932         (shminfo): Use __syscall_ulong_t.
4933         (shm_info): Likewise.
4935         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4936         __syscall_ulong_t.
4938         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4939         <bits/wordsize.h>.
4940         (msgqnum_t): Use __syscall_ulong_t.
4941         (msglen_t): Likewise.
4942         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4943         __syscall_ulong_t.
4945         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4946         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4948         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4950         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4951         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4953         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4954         __syscall_slong_t.
4956         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4957         include <bits/wordsize.h>.  Check __x86_64__ instead of
4958         __WORDSIZE.
4960         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4961         "unsigned long long int" if __x86_64__ is defined.
4962         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4964         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4965         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4966         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4968         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4969         <stdint.h>.
4970         (GET_PC): Cast to uintptr_t first.
4971         (GET_FRAME): Likewise.
4972         (GET_STACK): Likewise.
4974         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4975         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4976         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4977         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4978         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4979         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4980         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4981         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4982         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4983         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4984         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4985         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4986         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4987         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4988         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4989         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4990         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4991         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4992         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4993         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4994         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4995         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4996         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4997         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4998         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4999         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5000         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5001         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5002         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5004 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5006         * Makerules (+depfiles): Also collect depfiles from .oS in
5007         $(extra-objs).
5008         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5009         .oS, $(libnldbl-routines)).
5011         * Makerules (native-compile-mkdep-flags): Define.
5012         * sunrpc/Makefile (extra-objs): Add $(addprefix
5013         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5014         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5015         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5016         calling $(make-target-directory).
5018 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5020         * bits/types.h (__snseconds_t): Removed.
5021         * time/time.h (struct timespec): Replace __snseconds_t with
5022         __syscall_slong_t.
5023         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5024         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5025         Likewise.
5026         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5027         (__SNSECONDS_T_TYPE): Likewise.
5028         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5029         (__SNSECONDS_T_TYPE): Likewise.
5030         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5031         (__SNSECONDS_T_TYPE): Likewise.
5033 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5035         * sysdeps/mach/hurd/bits/typesizes.h
5036         (__SYSCALL_SLONG_TYPE): New macro.
5037         (__SYSCALL_ULONG_TYPE): Likewise.
5039 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5041         * bits/types.h (__syscall_slong_t): New type.
5042         (__syscall_ulong_t): Likewise.
5044         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5045         (__SYSCALL_ULONG_TYPE): Likewise.
5046         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5047         (__SYSCALL_SLONG_TYPE): Likewise.
5048         (__SYSCALL_ULONG_TYPE): Likewise.
5049         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5050         (__SYSCALL_SLONG_TYPE): Likewise.
5051         (__SYSCALL_ULONG_TYPE): Likewise.
5052         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5053         (__SYSCALL_SLONG_TYPE): Likewise.
5054         (__SYSCALL_ULONG_TYPE): Likewise.
5056 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5058         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5059         Add sigaltstack-offsets.sym.
5060         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5061         <sigaltstack-offsets.h>.
5062         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5063         longjmp_msg pointer.
5064         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5065         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5066         signal stack.
5067         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5069 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5071         * elf/stackguard-macros.h: Remove file.
5072         * sysdeps/generic/stackguard-macros.h: New file.
5073         * sysdeps/i386/stackguard-macros.h: Likewise.
5074         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5075         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5076         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5077         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5078         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5079         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5080         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5081         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5082         <elf/stackguard-macros.h>.
5084         [BZ #14109]
5085         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5086         __aligned__ in attribute.
5087         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5088         (gregset_t): Likewise.
5090 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5092         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5093         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5094         * sysdeps/x86_64/x32/Implies-after: New file.
5096 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5098         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5099         and access return value for _dl_profile_fixup.  Use R10_LP to
5100         load frame size.
5102 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5104         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5106 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5108         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5109         * sysdeps/x86_64/x32/sysdep.h: New file.
5111 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5113         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5114         * sysdeps/x86_64/setjmp.S: Likewise.
5116 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5118         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5119         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5120         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5121         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5122         remove unused global constant.
5124 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5126         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5127         include of <not-cancel.h>.
5129 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5131         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5133 2012-05-15  Jeff Law  <law@redhat.com>
5134             Andreas Jaeger  <aj@suse.de>
5136         [BZ #13594]
5137         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5138         out from...
5139         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5140         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5141         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5142         code changing __hst_map_handle.map.
5144 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5146         * configure.in (sysnames): Look for Implies-before and Implies-after
5147         files.
5148         * configure: Regenerated.
5150 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5152         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5153         8-byte data alignment with LP_SIZE alignment.
5155 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5157         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5158         into R10_LP.
5160 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5162         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5164 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5166         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5167         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5168         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5169         Likewise.
5170         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5172 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5174         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5175         (stackinfo_sub_sp): Likewise.
5177 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5179         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5180         RAX_LP.
5182 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5184         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5185         into R*_LP.
5187 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5189         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5190         sizes into R*_LP.
5192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5194         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5196 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5198         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5199         into R11_LP and load __x86_64_shared_cache_size_half into
5200         R8_LP.
5202 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5204         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5205         R8_LP.
5207 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5209         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5210         logb for POWER7.
5211         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5212         logbf for POWER7.
5213         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5214         logbl for POWER7.
5215         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5216         powerpc32/power7/fpu/s_logb.c via #include.
5217         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5218         powerpc32/power7/fpu/s_logbf.c via #include.
5219         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5220         powerpc32/power7/fpu/s_logbl.c via #include.
5222 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5224         * README.libm: Remove file.
5226 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5228         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5229         count for x32.  Use R*_LP and omit operand-size suffix.
5231 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5233         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5234         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5235         * sysdeps/x86_64/x32/shlib-versions: New file.
5237 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5239         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5240         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5241         Use _dl_fatal_printf instead.
5243 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5245         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5246         set if not set by the user.  Do not allow for being unset.
5247         * sysdeps/unix/sysv/linux/configure: Regenerated.
5249 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5251         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5252         the `q' suffix from lea and replace .quad with ASM_ADDR.
5254 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5256         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5257         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5258         instead of $17.
5259         (PTR_DEMANGLE): Likewise.
5261 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5263         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5264         (LP_OP): Likewise.
5265         (ASM_ADDR): Likewise.
5266         (RAX_LP): Likewise.
5267         (RBP_LP): Likewise.
5268         (RBX_LP): Likewise.
5269         (RCX_LP): Likewise.
5270         (RDI_LP): Likewise.
5271         (RSI_LP): Likewise.
5272         (RSP_LP): Likewise.
5273         (R8_LP): Likewise.
5274         (R9_LP): Likewise.
5275         (R10_LP): Likewise.
5276         (R10_LP): Likewise.
5277         (R11_LP): Likewise.
5278         (R12_LP): Likewise.
5279         (R13_LP): Likewise.
5280         (R14_LP): Likewise.
5281         (R15_LP): Likewise.
5283 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5285         * sysdeps/x86_64/x32/dl-machine.h: New file.
5287 2012-05-14  Andreas Jaeger  <aj@suse.de>
5289         * manual/Makefile (subdir): Remove export of subdir.
5290         (all): Remove target.
5291         (.PHONY): Remove all from list.
5292         (mkinstalldirs): Remove.
5293         (.PHONY): Remove installdirs from list.
5294         ($(inst_infodir)/libc.info): Use make-target-directory.
5295         (installdirs): Remove.
5296         (subdir_%): Remove.
5297         (glibc-targets): Remove.
5298         (lib): Remove.
5299         (stubs): Remove.
5300         ($(objpfx)stubs ../po/manual.pot): Remove.
5301         ($(objpfx)stamp%): Remove.
5302         (make-target-directory): Remove.
5303         (subdir_install): Remove.
5304         (routines): Remove.
5305         (aux): Remove.
5306         (sources): Remove.
5307         (objects): Remove.
5308         (headers): Remove.
5310         [BZ #13750]
5311         * manual/.gitignore: Remove, it's not needed anymore.
5312         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5313         all files in it.
5314         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5315         directory.
5316         (texis): Renamed to $(objpfx)texis.
5317         (texis-path): New, contains path to generated files.
5318         (chapters.%): Use texis-path for complete path, add extra argument
5319         libc-texinfo.sh.
5320         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5321         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5322         (summary,texi, stamp-summary): Use complete path of
5323         files. Generate files in build dir.
5324         (dir-add.texi): Build in build dir.
5325         (libm-err.texi,stamp-libm-err): Likewise.
5326         (version.texi, stamp-version): Likewise.
5327         (.%c.texi): Likewise.
5328         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5329         (mostlyclean): Remove target.
5330         (realclean): Remove target.
5331         (generated): Add new variable with contents from mostlyclean and
5332         realclean, remove entries duplicated in common-mostlyclean, add
5333         stamp-libm-err and stamp-version.
5334         (generated-dirs): Add libc directory.
5335         ($(inst_infodir)/libc.info): Install files from build dir.
5337         * manual/install.texi (Configuring and compiling): Adjust since
5338         the info files are not part of the tar ball anymore.
5340 2012-05-14  Andreas Jaeger  <aj@suse.de>
5342         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5343         variable.
5345 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5347         [BZ #13717]
5348         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5349         to 2.2.0 where earlier.
5350         * sysdeps/unix/sysv/linux/configure: Regenerated.
5351         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5352         Remove conditional code.
5353         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5354         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5355         Remove conditional code.
5356         [!__NR_lchown]: Likewise.
5357         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5358         [__NR_lchown]: Likewise.
5359         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5360         comment referencing __ASSUME_LCHOWN_SYSCALL.
5361         * sysdeps/unix/sysv/linux/i386/sigaction.c
5362         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5363         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5364         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5365         Remove conditional code.
5366         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5367         (__protocol_available): Remove #if 0 code.
5368         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5369         conditional code.
5370         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5371         * sysdeps/unix/sysv/linux/kernel-features.h
5372         (__ASSUME_GETCWD_SYSCALL): Don't define.
5373         (__ASSUME_REALTIME_SIGNALS): Likewise.
5374         (__ASSUME_PREAD_SYSCALL): Likewise.
5375         (__ASSUME_PWRITE_SYSCALL): Likewise.
5376         (__ASSUME_POLL_SYSCALL): Likewise.
5377         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5378         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5379         non-SPARC.
5380         (__ASSUME_SIOCGIFNAME): Don't define.
5381         (__ASSUME_MSG_NOSIGNAL): Likewise.
5382         (__ASSUME_SENDFILE): Define unconditionally.
5383         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5384         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5385         conditional code.
5386         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5387         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5388         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5389         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5390         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5391         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5392         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5394         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5395         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5397         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5398         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5400         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5401         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5403         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5404         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5406         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5407         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5409         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5410         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5412         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5413         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5415         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5416         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5417         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5418         Remove conditional code.
5419         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5420         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5421         Remove conditional code.
5422         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5423         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5424         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5425         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5426         Remove conditional code.
5427         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5428         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5429         Remove conditional code.
5430         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5431         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5432         Remove conditional code.
5433         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5434         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5435         Remove conditional code.
5436         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5437         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5438         Remove conditional code.
5439         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5440         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5441         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5442         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5443         * sysdeps/unix/sysv/linux/sigaction.c
5444         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5445         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5446         * sysdeps/unix/sysv/linux/sigpending.c
5447         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5448         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5449         * sysdeps/unix/sysv/linux/sigprocmask.c
5450         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5451         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5452         * sysdeps/unix/sysv/linux/sigsuspend.c
5453         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5454         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5455         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5456         (__libc_missing_rt_sigs): Remove.
5457         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5458         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5459         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5460         Remove conditional code.
5461         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5462         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5463         return 1.
5464         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5465         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5466         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5467         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5469 2012-05-14  Andreas Jaeger  <aj@suse.de>
5471         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5472         it's not used in glibc.
5473         (__coshm1): Likewise.
5474         (__acosh1p): Likewise.
5475         (__sgn): Likewise.
5477         * manual/string.texi (Copying and Concatenation): Add missing
5478         variable in concat example.
5479         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5481 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5483         [BZ #14103]
5484         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5485         __builtin_clzl with __builtin_clzll.
5487 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5489         [BZ #14104]
5490         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5491         libc_freeres_ptr.
5493 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5495         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5496         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5497         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5498         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5500 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5502         * NEWS: Update ia64 info.
5504 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5506         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5507         used as bcopy.
5509 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5511         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5512         * sysdeps/unix/syscalls.list (dup3): Likewise.
5513         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5514         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5516 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5518         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5519         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5521 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5523         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5524         thread pointer.
5525         (TLS_IE): Use mov/add instead of movq/addq to load thread
5526         pointer.
5527         (TLS_GD_PREFIX): New.
5528         (TLS_GD): Use it.
5530 2012-05-11  David S. Miller  <davem@davemloft.net>
5532         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5533         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5534         (_FPU_SETCW): Likewise.
5536 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5538         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5539         is 32-byte aligned.
5541 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5543         [BZ #11837]
5544         * iconvdata/gb18030.c: Update tables.
5545         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5546         characters specially.
5547         (BODY for TO_LOOP): Add encoding of missing ranges.
5549 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5551         [BZ #13673]
5552         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5553         * sysdeps/mach/hurd/dup3.c: Likewise.
5554         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5555         * sysdeps/powerpc/memmove.c:: Likewise.
5557 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5559         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5560         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5562 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5564         * elf/elf.h (R_X86_64_RELATIVE64): New.
5565         (R_X86_64_NUM): Updated.
5566         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5567         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5568         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5569         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5570         tst-quad1pie tst-quad2pie
5571         (modules-names): Add tst-quadmod1 tst-quadmod2.
5572         ($(objpfx)tst-quad1): New dependency.
5573         ($(objpfx)tst-quad2): Likewise.
5574         ($(objpfx)tst-quad1pie): Likewise.
5575         ($(objpfx)tst-quad2pie): Likewise.
5576         * sysdeps/x86_64/tst-quad1.c: New file.
5577         * sysdeps/x86_64/tst-quad1pie.c: New file.
5578         * sysdeps/x86_64/tst-quad2.c: Likewise.
5579         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5580         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5581         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5582         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5583         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5585 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5587         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5588         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5589         * streams/stropts.h (t_scalar_t): Define type.
5591         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5592         (_PATH_PRESERVE): Set to "/var/lib".
5593         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5595         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5596         instead of int.
5598         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5599         if __dir_mkfile succeeded.
5601         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5602         checking for _hurd_dtablesize.  Unlock it right after having
5603         finished _hurd_dtable allocation.
5605 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5607         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5608         * sysdeps/mach/hurd/configure: Regenerated.
5609         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5610         special-casing to...
5611         * sysdeps/gnu/configure.in: ... this new file.
5612         * sysdeps/unix/sysv/linux/configure: Regenerated.
5613         * sysdeps/gnu/configure: New generated file.
5615         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5616         for Linux: use nsec instead of usec, as well as:
5617         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5618         members of type struct timespec.
5619         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5620         New macros.
5621         (struct stat64): Likewise.
5622         (_STATBUF_ST_NSEC): New macro.
5623         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5625         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5626         __strtoul_internal rather than strtoul.
5628 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5630         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5631         and reject them.
5633 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5635         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5636         which preserves existing values.
5637         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5639 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5641         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5642         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5643         greater than FD_SETSIZE.
5645 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5647         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5648         allocated, call __vm_protect to finish enabling the existing space, and
5649         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5650         allocate the remainder.
5652 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5654         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5655         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5657 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5659         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5660         sysdeps/mach/hurd/readlink.c.
5662         * posix/tst-sysconf.c (posix_options): Only use
5663         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5664         _POSIX_SYNCHRONIZED_IO when they are defined
5665         * sysdeps/mach/hurd/bits/posix_opt.h:
5666         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5667         (_XOPEN_REALTIME): Undefine macro.
5668         (_XOPEN_REALTIME_THREADS): Undefine macro.
5669         (_XOPEN_SHM): Undefine macro.
5670         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5671         macro to -1.
5672         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5673         macro to -1.
5674         (_POSIX_ASYNC_IO): Undefine macro.
5675         (_POSIX_PRIORITIZED_IO): Undefine macro.
5676         (_POSIX_SPIN_LOCKS): Define macro to -1.
5678         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5679         SA_NODEFER, SA_RESETHAND.
5680         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5681         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5682         F_DUPFD_CLOEXEC.
5684 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5686         * elf/Makefile (pldd-modules): Define unconditionally.
5688 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5690         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5692 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5694         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5695         Return ENOENT when name is empty.
5696         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5698 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5700         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5702         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5704 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5706         Fix mlock in all cases except non-readable pages.
5707         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5708         instead of VM_PROT_ALL as parameter to __vm_wire function.
5710         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5711         (__mkdir): When path is `/', just fail with EEXIST.
5712         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5714 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5716         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5717         <sys/uio.h> (for writev).
5718         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5719         and <sys/param.h> (for MIN).
5721 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5723         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5724         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5725         if interrupted.
5727 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5729         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5730         Depend on against $(link-rpcuserlibs).
5732 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5734         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5735         (__libc_stack_end): Do not use attribute_relro.
5736         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5737         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5738         to libthread-provided value.
5739         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5740         attribute_relro.
5742 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5744         [BZ #3748]
5745         * bits/libc-lock.h (__libc_once_get): New macro.
5746         * sysdeps/mach/bits/libc-lock.h: Likewise.
5747         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5748         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5749         instead of using implementation details.
5751         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5752         * libio/freopen.c: Likewise.
5753         * libio/freopen64.c: Likewise.
5754         * misc/syslog.c: Likewise.
5755         * nscd/connections.c: Likewise.
5756         * nscd/netgroupcache.c: Likewise.
5757         * sysdeps/posix/getcwd.c: Likewise.
5759 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5761         * math/w_ilogbf.c: Add #include <limits.h>.
5763 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5765         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5766         path instead of returning without unlocking.
5768         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5769         immediate-write ioctls.
5770         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5772 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5774         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5775         __builtin_frame_address instead of making assumptions about the
5776         location of the return address relative to DATA.  Force early load of
5777         the return address.
5778         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5779         __builtin_frame_address.
5781         dup3 for GNU Hurd.
5782         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5783         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5784         implement dup3 and do some further code clean-ups.
5785         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5786         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5788 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5790         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5792         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5793         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5794         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5795         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5796         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5797         d->port.lock.
5799         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5800         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5801         when handler == SIG_ERR, not when handler != SIG_ERR.
5803 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5805         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5806         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5807         definitions.
5809         accept4 for GNU Hurd.
5810         * include/sys/socket.h (__libc_accept4): New prototype.
5811         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5812         to implement __libc_accept4.
5813         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5814         __libc_accept4.
5815         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5817         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5818         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5819         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5820         signal-defines.sym.
5822 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5824         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5826 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5828         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5829         assertion on O_CLOEXEC flag.
5830         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5831         * hurd/intern-fd.c: Likewise.
5832         * hurd/port2fd.c: Likewise.
5834 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5836         [BZ #3906]
5837         * bits/in.h (IPV6_PKTINFO): Define new macro.
5838         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5840 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5842         [BZ #13954]
5843         [BZ #13955]
5844         [BZ #13956]
5845         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5846         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5847         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5848         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5849         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5850         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5851         * math/libm-test.inc (logb_test) : Additional logb tests.
5853 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5854             Andreas Jaeger  <aj@suse.de>
5856         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5857         * configure: Regenerated.
5858         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5859         * config.make.in (link-obsolete-rpc): New substituted variable.
5860         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5861         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5862         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5863         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5864         so that libc.a contains the symbols.
5865         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5866         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5867         * sunrpc/auth_none.c: Likewise.
5868         * sunrpc/auth_unix.c: Likewise.
5869         * sunrpc/authdes_prot.c: Likewise.
5870         * sunrpc/authuxprot.c: Likewise.
5871         * sunrpc/clnt_gen.c: Likewise.
5872         * sunrpc/clnt_perr.c: Likewise.
5873         * sunrpc/clnt_raw.c: Likewise.
5874         * sunrpc/clnt_simp.c: Likewise.
5875         * sunrpc/clnt_tcp.c: Likewise.
5876         * sunrpc/clnt_udp.c: Likewise.
5877         * sunrpc/clnt_unix.c: Likewise.
5878         * sunrpc/des_crypt.c: Likewise.
5879         * sunrpc/des_soft.c: Likewise.
5880         * sunrpc/get_myaddr.c: Likewise.
5881         * sunrpc/key_call.c: Likewise.
5882         * sunrpc/key_prot.c: Likewise.
5883         * sunrpc/netname.c: Likewise.
5884         * sunrpc/pm_getmaps.c: Likewise.
5885         * sunrpc/pm_getport.c: Likewise.
5886         * sunrpc/pmap_clnt.c: Likewise.
5887         * sunrpc/pmap_prot.c: Likewise.
5888         * sunrpc/pmap_prot2.c: Likewise.
5889         * sunrpc/pmap_rmt.c: Likewise.
5890         * sunrpc/publickey.c: Likewise.
5891         * sunrpc/rpc_cmsg.c: Likewise.
5892         * sunrpc/rpc_common.c: Likewise.
5893         * sunrpc/rpc_dtable.c: Likewise.
5894         * sunrpc/rpc_prot.c: Likewise.
5895         * sunrpc/rpc_thread.c: Likewise.
5896         * sunrpc/rtime.c: Likewise.
5897         * sunrpc/svc.c: Likewise.
5898         * sunrpc/svc_auth.c: Likewise.
5899         * sunrpc/svc_raw.c: Likewise.
5900         * sunrpc/svc_run.c: Likewise.
5901         * sunrpc/svc_tcp.c: Likewise.
5902         * sunrpc/svc_udp.c: Likewise.
5903         * sunrpc/svc_unix.c: Likewise.
5904         * sunrpc/svcauth_des.c: Likewise.
5905         * sunrpc/xcrypt.c: Likewise.
5906         * sunrpc/xdr.c: Likewise.
5907         * sunrpc/xdr_array.c: Likewise.
5908         * sunrpc/xdr_float.c: Likewise.
5909         * sunrpc/xdr_intXX_t.c: Likewise.
5910         * sunrpc/xdr_mem.c: Likewise.
5911         * sunrpc/xdr_rec.c: Likewise.
5912         * sunrpc/xdr_ref.c: Likewise.
5913         * sunrpc/xdr_sizeof.c: Likewise.
5914         * sunrpc/xdr_stdio.c: Likewise.
5916 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5918         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5919         change.  Update copyright years.
5921 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5923         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5925 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5926             Joseph Myers  <joseph@codesourcery.com>
5927             Paul Pluzhnikov  <ppluzhnikov@google.com>
5929         [BZ #14012]
5930         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5931         requiring rpcgen.
5932         [cross-compiling] (extra-libs): Likewise.
5933         [cross-compiling] (extra-libs-others): Likewise.
5934         [cross-compiling] (librpcsvc-routines): Likewise.
5935         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5936         [cross-compiling] (omit-deps): Likewise.
5937         (sunrpc-CPPFLAGS): New variable.
5938         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5939         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5940         (cross-rpcgen-objs): New variable.
5941         (extra-objs): Append $(cross-rpcgen-objs).
5942         ($(cross-rpcgen-objs)): New rule.
5943         ($(objpfx)cross-rpcgen): Likewise.
5944         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5945         comment.
5946         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5947         ($(objpfx)x%.stmp): Likewise.
5948         * sunrpc/proto.h [IS_IN_build] (_): Define.
5949         [IS_IN_build] (_libc_intl_domainname): Likewise.
5951 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5953         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5954         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5955         and R_X86_64_TPOFF64.
5957 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5959         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5960         sysdeps/unix/sysv/syscalls.list.
5961         (stime): Likewise.
5962         (utime): Likewise.
5963         * sysdeps/unix/sysv/syscalls.list: Remove file.
5965 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5967         [BZ #3440]
5968         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5969         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5970         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5971         (__LC_IDENTIFICATION): Make these macros useful in #if
5972         expressions, as required by C99.
5974 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5976         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5977         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5978         after this.
5980 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5982         * stdlib/longlong.h: Updated from GCC.
5984 2012-05-09  Andreas Jaeger  <aj@suse.de>
5986         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5987         default is first entry.
5988         (run_mode): Set type.
5989         (main): Remove informal message about syslog.
5990         (options): Fix typo.
5992         [BZ #14053]
5993         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5994         to asm.
5995         (lrint): Likewise.
5996         (llrintf): Likewise.
5997         (llrint): Likewise.
5998         (rint): Likewise.
5999         (rintf): Likewise.
6000         (nearbyint): Likewise.
6001         (nearbyintf): Likewise.
6003 2012-05-09  Andreas Jaeger  <aj@suse.de>
6004             Pedro Alves  <palves@redhat.com>
6006         * nscd/nscd.c (run_mode): Use enum.
6007         (main): Cleanup coding style issue.
6009 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6010             Andreas Jaeger  <aj@suse.de>
6012         * nscd/nscd.c (go_background): Replaced with...
6013         (run_mode): ... this.
6014         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6015         (options): Add -F --foreground.
6016         (main): Implement it.
6017         (parse_opt): Parse it.
6019 2012-05-09  Andreas Jaeger  <aj@suse.de>
6021         [BZ #14083]
6022         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6023         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6024         -Wconversion warning.
6025         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6026         Likewise.
6028 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6030         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6031         == 0.
6032         (LC_ALL): Use macro-int-constant.
6033         (LC_COLLATE): Likewise.
6034         (LC_CTYPE): Likewise.
6035         (LC_MESSAGES): Likewise.
6036         (LC_MONETARY): Likewise.
6037         (LC_NUMERIC): Likewise.
6038         (LC_TIME): Likewise.
6039         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6040         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6041         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6042         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6043         Specify type.
6044         [C99-based standards] (float_t): Expect type.
6045         [C99-based standards] (double_t): Expect type.
6046         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6047         type.
6048         [C99-based standards] (HUGE_VALL): Likewise.
6049         [C99-based standards] (INFINITY): Likewise.
6050         [C99-based standards] (NAN): Likewise.
6051         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6052         [C99-based standards] (FP_NAN): Likewise.
6053         [C99-based standards] (FP_NORMAL): Likewise.
6054         [C99-based standards] (FP_SUBNORMAL): Likewise.
6055         [C99-based standards] (FP_ZERO): Likewise.
6056         [C99-based standards] (FP_FAST_FMA): Use
6057         optional-macro-int-constant.  Specify type.  Require == 1.
6058         [C99-based standards] (FP_FAST_FMAF): Likewise.
6059         [C99-based standards] (FP_FAST_FMAL): Likewise.
6060         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6061         [C99-based standards] (FP_ILOGBNAN): Likewise.
6062         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6063         Specify type.
6064         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6065         [C99-based standards] (math_errhandling): Specify type.
6066         [ISO99 || ISO11] (signgam): Do not allow.
6067         [non-C99-based standards] (copysignf): Do not allow.
6068         [non-C99-based standards] (exp2f): Likewise.
6069         [non-C99-based standards] (log2f): Likewise.
6070         [non-C99-based standards] (modff): Allow.
6071         [non-C99-based standards] (erff): Do not allow.
6072         [non-C99-based standards] (erfcf): Likewise.
6073         [non-C99-based standards] (gammaf): Likewise.
6074         [non-C99-based standards] (hypotf): Likewise.
6075         [non-C99-based standards] (j0f): Likewise.
6076         [non-C99-based standards] (j1f): Likewise.
6077         [non-C99-based standards] (jnf): Likewise.
6078         [non-C99-based standards] (lgammaf): Likewise.
6079         [non-C99-based standards] (tgammaf): Likewise.
6080         [non-C99-based standards] (y0f): Likewise.
6081         [non-C99-based standards] (y1f): Likewise.
6082         [non-C99-based standards] (ynf): Likewise.
6083         [non-C99-based standards] (isnanf): Likewise.
6084         [non-C99-based standards] (acoshf): Likewise.
6085         [non-C99-based standards] (asinhf): Likewise.
6086         [non-C99-based standards] (atanhf): Likewise.
6087         [non-C99-based standards] (cbrtf): Likewise.
6088         [non-C99-based standards] (expm1f): Likewise.
6089         [non-C99-based standards] (ilogbf): Likewise.
6090         [non-C99-based standards] (log1pf): Likewise.
6091         [non-C99-based standards] (logbf): Likewise.
6092         [non-C99-based standards] (nextafterf): Likewise.
6093         [non-C99-based standards] (remainderf): Likewise.
6094         [non-C99-based standards] (rintf): Likewise.
6095         [non-C99-based standards] (scalbf): Likewise.
6096         [non-C99-based standards] (copysignl): Likewise.
6097         [non-C99-based standards] (exp2l): Likewise.
6098         [non-C99-based standards] (log2l): Likewise.
6099         [non-C99-based standards] (modfl): Allow.
6100         [non-C99-based standards] (erfl): Do not allow.
6101         [non-C99-based standards] (erfcl): Likewise.
6102         [non-C99-based standards] (gammal): Likewise.
6103         [non-C99-based standards] (hypotl): Likewise.
6104         [non-C99-based standards] (j0l): Likewise.
6105         [non-C99-based standards] (j1l): Likewise.
6106         [non-C99-based standards] (jnl): Likewise.
6107         [non-C99-based standards] (lgammal): Likewise.
6108         [non-C99-based standards] (tgammal): Likewise.
6109         [non-C99-based standards] (y0l): Likewise.
6110         [non-C99-based standards] (y1l): Likewise.
6111         [non-C99-based standards] (ynl): Likewise.
6112         [non-C99-based standards] (isnanl): Likewise.
6113         [non-C99-based standards] (acoshl): Likewise.
6114         [non-C99-based standards] (asinhl): Likewise.
6115         [non-C99-based standards] (atanhl): Likewise.
6116         [non-C99-based standards] (cbrtl): Likewise.
6117         [non-C99-based standards] (expm1l): Likewise.
6118         [non-C99-based standards] (ilogbl): Likewise.
6119         [non-C99-based standards] (log1pl): Likewise.
6120         [non-C99-based standards] (logbl): Likewise.
6121         [non-C99-based standards] (nextafterl): Likewise.
6122         [non-C99-based standards] (remainderl): Likewise.
6123         [non-C99-based standards] (rintl): Likewise.
6124         [non-C99-based standards] (scalbl): Likewise.
6125         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6126         [non-C99-based standards] (FP_*): Do not allow.
6127         [C99-based standards] (FP_*): Change to
6128         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6129         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6130         allow.
6131         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6132         (SIG_ERR): Likewise.
6133         [X/Open-based standards] (SIG_HOLD): Likewise.
6134         (SIG_IGN): Likewise.
6135         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6136         positive value.
6137         (SIGFPE): Likewise.
6138         (SIGILL): Likewise.
6139         (SIGINT): Likewise.
6140         (SIGSEGV): Likewise.
6141         (SIGTER): Likewise.
6142         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6143         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6144         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6145         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6146         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6147         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6148         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6149         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6150         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6151         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6152         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6153         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6154         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6155         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6156         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6157         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6158         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6159         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6160         [X/Open-based standards] (SIGTRAP): Likewise.
6161         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6162         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6163         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6164         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6165         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6166         allow.
6168 2012-05-08  Ian Wienand  <ianw@vmware.com>
6170         [BZ #14080]
6171         * time/tzset.c (__tzset_parse_tz): Update default rules for
6172         daylight time changes in the Energy Policy Act of 2005.
6174 2012-05-09  Andreas Jaeger  <aj@suse.de>
6176         [BZ #13983]
6177         * elf/ldconfig.c (parse_conf): Change string to make clear that
6178         ldconfig only issued a warning if ld.so.conf does not exist.
6180 2012-05-08  David S. Miller  <davem@davemloft.net>
6182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6183         movxtod instead of popping the value on the stack.
6185         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6187 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6189         * config.h.in: Add HAVE_ARM_PCS_VFP.
6191 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6193         [BZ #13979]
6194         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6195         checking but the checks are disabled for any reason.
6197 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6199         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6200         and ELF64_R_TYPE with ELFW(R_TYPE).
6202 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6204         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6205         (ulimit): Likewise.
6207         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6208         (settimeofday): Likewise.
6210 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6212         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6213         a struct th_u2 inside the union, and move tu_block/tu_code into
6214         a new th_u3 union of tu_block/tu_code inside of that.  Move
6215         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6216         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6217         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6218         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6219         (th_stuff): Change to th_u1.tu_stuff.
6220         (th_data): Define.
6221         (th_msg): Change to th_u1.th_u2.tu_data.
6223 2012-05-07  David S. Miller  <davem@davemloft.net>
6225         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6227         [BZ #14074]
6228         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6229         (SETUP_PIC_REG): Use it.
6230         (SETUP_PIC_REG_LEAF): Use it.
6232 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6234         [BZ #13885]
6235         [BZ #13923]
6236         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6237         USE_AS_EXPM1L.
6238         (EXPL_FINITE): Likewise.
6239         (FLDLOG): Likewise.
6240         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6241         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6242         e_expl.S.
6243         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6244         USE_AS_EXPM1L.
6245         (EXPL_FINITE): Likewise.
6246         (FLDLOG): Likewise.
6247         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6248         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6249         e_expl.S.
6250         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6251         test of -max_value argument for long double.
6252         * sysdeps/i386/fpu/libm-test-ulps: Update.
6253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6255 2012-05-06  David S. Miller  <davem@davemloft.net>
6257         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6258         quad soft-float symbols whose references which are compiler
6259         generated.
6260         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6262 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6264         [BZ #13884]
6265         [BZ #13914]
6266         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6267         USE_AS_EXP10L.
6268         (EXPL_FINITE): Likewise.
6269         (FLDLOG): Likewise.
6270         (c0): Likewise.
6271         (c1): Likewise.
6272         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6273         Adjust comments for base varying.
6274         (__expl_finite): Change alias to EXPL_FINITE.
6275         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6276         e_expl.S.
6277         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6278         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6279         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6280         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6281         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6282         USE_AS_EXP10L.
6283         (EXPL_FINITE): Likewise.
6284         (FLDLOG): Likewise.
6285         (c0): Likewise.
6286         (c1): Likewise.
6287         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6288         Adjust comments for base varying.
6289         (__expl_finite): Change alias to EXPL_FINITE.
6290         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6291         tests for bugs.
6292         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6294         [BZ #14064]
6295         * math/libm-test.inc (check_float_internal): Correct ulp
6296         calculation for subnormal expected results.
6298 2012-05-06  Andreas Jaeger  <aj@suse.de>
6300         * Makeconfig (+math-flags): New, set to -frounding-math.
6301         (+cflags): Add +math-flags so that all of glibc gets compiled with
6302         it.
6304         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6306 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6308         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6309         Disable one test.
6311         [BZ #13787]
6312         [BZ #13922]
6313         [BZ #14036]
6314         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6315         (__ieee754_expl): Allow for and saturate large arguments.
6316         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6317         (u_threshold): Likewise.
6318         (__exp): Call __ieee754_exp before checking for overflow and
6319         underflow.
6320         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6321         (u_threshold): Likewise.
6322         (__expf): Call __ieee754_expf before checking for overflow and
6323         underflow.
6324         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6325         (u_threshold): Likewise.
6326         (__expl): Call __ieee754_expl before checking for overflow and
6327         underflow.
6328         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6329         (__ieee754_expl): Allow for and saturate large arguments.
6330         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6331         missing overflow exception on overflow.
6332         (expm1_test): Do not allow missing overflow exception on overflow.
6334         * sysdeps/i386/fpu/e_expl.c: Move to ...
6335         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6336         rather than using inline asm.
6337         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6338         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6339         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6341         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6342         (nice): Likewise.
6343         (poll): Likewise.
6344         (signal): Likewise.
6345         (time): Likewise.
6346         (times): Likewise.
6348 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6350         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6351         sysdeps/unix/common/syscalls.list.
6352         (fchmod): Likewise.
6353         (fchown): Likewise.
6354         (ftruncate): Likewise.
6355         (getrusage): Likewise.
6356         (gettimeofday): Likewise.
6357         (setpgid): Likewise.
6358         (setregid): Likewise.
6359         (setreuid): Likewise.
6360         (sigaction): Likewise.
6361         (truncate): Likewise.
6362         (vhangup): Likewise.
6363         * sysdeps/unix/common/syscalls.list: Remove file.
6364         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6365         * sysdeps/unix/sysv/linux/Implies: Likewise.
6367 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6369         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6370         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6371         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6372         Moved to ...
6373         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6374         Here.
6375         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6376         to ...
6377         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6378         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6379         to ...
6380         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6381         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6382         to ...
6383         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6384         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6385         to ...
6386         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6387         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6388         to ...
6389         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6390         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6391         to ...
6392         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6393         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6394         to ...
6395         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6396         Here.
6397         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6398         to ...
6399         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6400         Here.
6401         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6402         to ...
6403         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6404         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6405         Moved to ...
6406         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6407         Here.
6408         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6409         to ...
6410         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6412 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6414         * sysdeps/unix/common/bits/dirent.h: Remove file.
6415         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6417         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6418         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6419         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6420         * sysdeps/unix/bsd/isatty.c: Likewise.
6421         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6422         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6423         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6425 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6427         [BZ #13563]
6428         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6429         long double comparison inaccuracies.
6430         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6433 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6435         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6436         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6438 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6440         [BZ #14049]
6441         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6442         nonzero digits before rounding a hex value.
6443         * stdlib/tst-strtod.c (tests): Add another test.
6445 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6447         * sysdeps/s390/fpu/libm-test-ulps: Update.
6449 2012-05-03  Andreas Jaeger  <aj@suse.de>
6451         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6452         does not get optimized out.
6453         (malloc_opt_barrier): New.
6455 2012-05-03  Andreas Jaeger  <aj@suse.de>
6456             Roland McGrath  <roland@hack.frob.com>
6458         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6459         intermediate file deletion.
6460         (generated): Add .symlist files.
6462 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6464         [BZ #13775]
6465         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6466         Redirect under this condition.
6467         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6468         [__USE_GNU] (__dprintf_chk): Not under this condition.
6469         [__USE_GNU] (__vdprintf_chk): Likewise.
6470         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6471         under this condition.
6472         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6473         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6474         [__USE_XOPEN2K8] (vdprintf): Likewise.
6475         [__USE_GNU] (__dprintf_chk): Not under this condition.
6476         [__USE_GNU] (__vdprintf_chk): Likewise.
6477         [__USE_GNU] (dprintf): Likewise.
6478         [__USE_GNU] (vdprintf): Likewise.
6480 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6482         * elf/Makefile (common-generated): Set this instead of generated for
6483         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6484         $(all-built-dso)-derived lists.
6486 2012-05-03  Andreas Jaeger  <aj@suse.de>
6488         * sysdeps/i386/fpu/libm-test-ulps: Update.
6490         * FAQ: Removed.
6491         * FAQ.in: Likewise.
6492         * scripts/gen-FAQ.pl: Likewise.
6493         * manual/install.texi (Installation): Point to online location of
6494         FAQ.
6495         * Makefile (files-for-dist): Remove FAQ.
6496         (FAQ): Remove.
6498 2012-05-02  Allan McRae  <allan@archlinux.org>
6500         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6501         (LDFLAGS-reldepmod5.so): Likewise.
6502         (LDFLAGS-reldep6mod1.so): Likewise.
6503         (LDFLAGS-reldep6mod4.so): Likewise.
6504         (LDFLAGS-reldep8mod3.so): Likewise.
6505         (LDFLAGS-unload4mod1.so): Likewise.
6506         (LDFLAGS-unload4mod2.so): Likewise.
6507         (LDFLAGS-tst-initorder): Likewise.
6508         (LDFLAGS-tst-initordera2.so): Likewise.
6509         (LDFLAGS-tst-initordera3.so): Likewise.
6510         (LDFLAGS-tst-initordera4.so): Likewise.
6511         (LDFLAGS-tst-initorderb2.so): Likewise.
6512         (LDFLAGS-noload): Likewise.
6513         (LDFLAGS-next): Likewise.
6514         (LDFLAGS-order2mod1.so): Likewise.
6515         (LDFLAGS-order2mod2.so): Likewise.
6516         (LDFLAGS-tst-initorder2): Likewise.
6517         (LDFLAGS-tst-initorder2a.so): Likewise.
6518         (LDFLAGS-tst-initorder2b.so): Likewise.
6519         (LDFLAGS-tst-initorder2c.so): Likewise.
6520         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6522 2012-05-02  David S. Miller  <davem@davemloft.net>
6524         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6526 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6528         [BZ #14055]
6529         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6531 2012-05-02  Andreas Jaeger  <aj@suse.de>
6533         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6534         since we manipulate rounding mode.
6535         (CPPFLAGS-test-idouble.c): Likewise.
6536         (CPPFLAGS-test-ifloat.c): Likewise.
6537         (CFLAGS-test-ldouble.c): Likewise.
6538         (CFLAGS-test-double.c): Likewise.
6539         (CFLAGS-test-float.c): Likewise.
6540         (CFLAGS-test-misc.c): Likewise.
6541         (CFLAGS-test-test-fenv.c): Likewise.
6543 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6545         [BZ #2550]
6546         [BZ #2570]
6547         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6548         comparisons to determine direction to adjust input.
6550 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6552         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6553         output to the target.
6555         * scripts/localplt.awk: New file.
6556         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6557         (check-localplt-CFLAGS): Variable removed.
6558         ($(all-built-dso:=.jmprel)): New static pattern rule.
6559         (generated): Add those targets.
6560         (localplt-built-dso): New variable.
6561         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6563         * elf/check-localplt.c: File removed.
6565         * scripts/check-execstack.awk: New file.
6566         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6567         (check-execstack-CFLAGS): Variable removed.
6568         ($(objpfx)check-execstack.h): Target removed.
6569         ($(objpfx)execstack-default): New target.
6570         (generated): Add that instead of check-execstack.h.
6571         ($(all-built-dso:=.phdr)): New static pattern rule.
6572         (generated): Add those targets.
6573         * elf/check-execstack.c: File removed.
6575         * scripts/check-textrel.awk: New file.
6576         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6577         (check-textrel-CFLAGS): Variable removed.
6578         (all-built-dso): Use := to define.o
6579         ($(all-built-dso:=.dyn)): New static pattern rule.
6580         (generated): Add those targets.
6581         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6582         * config.make.in (READELF): New substituted variable.
6583         * elf/check-textrel.c: File removed.
6585 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6587         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6588         allow.
6589         * conform/data/ctype.h-data [C99-based standards] (isblank):
6590         Expect function.
6591         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6592         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6593         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6594         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6595         Specify type.  Require positive value.
6596         (EILSEQ): Likewise.
6597         (ERANGE): Likewise.
6598         [ISO || POSIX] (EILSEQ): Do not expect.
6599         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6600         Specify type.  Require positive value.
6601         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6602         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6603         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6604         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6605         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6606         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6607         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6608         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6609         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6610         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6611         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6612         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6613         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6614         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6615         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6616         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6617         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6618         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6619         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6620         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6621         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6622         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6623         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6624         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6625         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6626         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6627         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6628         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6629         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6630         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6631         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6632         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6633         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6634         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6635         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6636         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6637         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6638         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6639         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6640         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6641         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6642         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6643         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6644         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6645         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6646         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6647         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6648         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6649         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6650         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6651         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6652         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6653         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6654         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6655         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6656         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6657         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6658         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6659         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6660         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6661         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6662         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6663         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6664         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6665         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6666         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6667         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6668         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6669         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6670         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6671         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6672         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6673         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6674         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6675         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6676         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6677         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6678         Require >= 2.
6679         (FLT_ROUNDS): Expect as macro, not constant.
6680         (FLT_MANT_DIG): Use macro-int-constant.
6681         (DBL_MANT_DIG): Likewise.
6682         (LDBL_MANT_DIG): Likewise.
6683         (FLT_DIG): Likewise.
6684         (DBL_DIG): Likewise.
6685         (LDBL_DIG): Likewise.
6686         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6687         (DBL_MIN_EXP): Likewise.
6688         (LDBL_MIN_EXP): Likewise.
6689         (FLT_MAX_EXP): Use macro-int-constant.
6690         (DBL_MAX_EXP): Likewise.
6691         (LDBL_MAX_EXP): Likewise.
6692         (FLT_MAX_10_EXP): Likewise.
6693         (DBL_MAX_10_EXP): Likewise.
6694         (LDBL_MAX_10_EXP): Likewise.
6695         (FLT_MAX): Use macro-constant.
6696         (DBL_MAX): Likewise.
6697         (LDBL_MAX): Likewise.
6698         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6699         (DBL_EPSILON): Likewise.
6700         (LDBL_EPSILON): Likewise.
6701         (FLT_MIN): Likewise.
6702         (DBL_MIN): Likewise.
6703         (LDBL_MIN): Likewise.
6704         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6705         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6706         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6707         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6708         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6709         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6710         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6711         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6712         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6713         [ISO11] (FLT_TRUE_MIN): Likewise.
6714         [ISO11] (LDBL_TRUE_MIN): Likewise.
6715         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6716         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6717         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6718         (SCHAR_MAX): Likewise.
6719         (UCHAR_MAX): Likewise.
6720         (CHAR_MIN): Likewise.
6721         (CHAR_MAX): Likewise.
6722         (MB_LEN_MAX): Use macro-int-constant.
6723         (SHRT_MIN): Use macro-int-constant.  Specify type.
6724         (SHRT_MAX): Likewise.
6725         (USHRT_MAX): Likewise.
6726         (INT_MAX): Likewise.
6727         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6728         bound negative.
6729         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6730         bound with "U".
6731         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6732         bound with "L".
6733         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6734         bound negative.  Suffix upper bound with "L".
6735         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6736         bound with "UL".
6737         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6738         Specify type.
6739         [C99-based standards] (LLONG_MAX): Likewise.
6740         [C99-based standards] (ULLONG_MAX): Likewise.
6741         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6742         == 0.
6743         [ISO11] (max_align_t): Require type.
6744         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6746         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6747         from $CFLAGS, without defining away __attribute__ calls.
6748         (checknamespace): Use $CFLAGS_namespace.
6750         * conform/conformtest.pl (@keywords): Only include C99 keywords
6751         for standards based on C99 or C11.
6753         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6754         Disable tests.
6755         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6756         UNIX98]: Likewise.
6758         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6759         usability of symbols in #if.
6761         * conform/conformtest.pl: If macro or constant types start
6762         "promoted:", expect the symbol to be of the following type
6763         promoted by the integer promotions.
6765         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6766         in one place.  Also handle "macro-constant".
6768         * conform/conformtest.pl: Only accept expected macro values with
6769         "==".  Parse all "macro" lines in one place.
6770         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6772         * conform/conformtest.pl: Handle braced types on "constant" lines
6773         instead of handling "typed-constant".
6774         * conform/data/signal.h-data: Use "constant" instead of
6775         "typed-constant".
6777         * conform/conformtest.pl: Handle "optional-" at start of lines in
6778         one place rather than duplicating several cases.  Handle each
6779         format of "macro" line with initial "optional-".
6781         * conform/conformtest.pl: Only accept expected constant or
6782         optional-constant values with "==".  Parse all "constant" lines in
6783         one place.  Parse all "optional-constant" lines in one place.
6784         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6785         * conform/data/fmtmsg.h-data: Likewise.
6786         * conform/data/netinet/in.h-data: Likewise.
6787         * conform/data/tar.h-data: Likewise.
6788         * conform/data/limits.h-data: Use "==" form on "constant" and
6789         "optional-constant" lines.
6791         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6792         Use -std=c99 for XOPEN2K.
6793         (@knownproblems): Remove.
6794         (newtoken): Don't check %isknown.
6796         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6797         Do not expect macro.
6798         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6799         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6800         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6801         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6802         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6803         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6804         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6805         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6806         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6807         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6808         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6809         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6810         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6811         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6812         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6813         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6814         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6815         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6816         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6817         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6818         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6819         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6820         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6821         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6822         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6823         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6824         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6825         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6826         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6827         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6828         [XPG3] (acosh): Likewise.
6829         [XPG3] (asinh): Likewise.
6830         [XPG3] (atanh): Likewise.
6831         [XPG3] (cbrt): Likewise.
6832         [XPG3] (expm1): Likewise.
6833         [XPG3] (ilogb): Likewise.
6834         [XPG3] (log1p): Likewise.
6835         [XPG3] (logb): Likewise.
6836         [XPG3] (nextafter): Likewise.
6837         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6838         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6839         [XPG3] (remainder): Likewise.
6840         [XPG3] (rint): Likewise.
6841         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6842         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6843         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6844         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6845         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6846         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6847         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6848         [UNIX98 || XOPEN2K] (scalb): Expect.
6849         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6850         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6851         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6852         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6853         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6854         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6855         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6856         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6857         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6858         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6859         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6860         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6861         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6862         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6863         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6864         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6865         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6866         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6867         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6868         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6869         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6870         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6871         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6872         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6873         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6874         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6875         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6876         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6877         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6878         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6879         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6880         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6881         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6882         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6883         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6884         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6885         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6886         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6887         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6888         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6889         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6890         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6891         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6892         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6893         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6894         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6895         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6896         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6897         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6898         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6899         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6900         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6901         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6902         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6903         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6904         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6905         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6906         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6907         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6908         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6909         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6910         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6911         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6912         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6913         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6914         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6915         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6916         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6917         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6918         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6919         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6920         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6921         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6922         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6923         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6924         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6925         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6926         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6927         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6928         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6929         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6930         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6931         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6932         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6933         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6934         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6935         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6936         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6937         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6938         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6939         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6940         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6941         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6942         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6943         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6944         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6945         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6946         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6947         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6948         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6949         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6950         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6951         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6952         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6953         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6954         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6955         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6956         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6957         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6958         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6959         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6960         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6961         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6962         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6963         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6964         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6965         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6966         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6967         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6968         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6969         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6970         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6971         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6972         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6973         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6974         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6975         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6976         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6977         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6978         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6979         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6980         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6981         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6982         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6983         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6984         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6985         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6987         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6988         _XOPEN_SOURCE_EXTENDED for XPG4.
6990         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6992         * Makeconfig (localtime): Remove variable.
6993         (inst_localtime-file): Likewise.
6995 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6998         Update.
6999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7000         Update.
7001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7002         Update.
7003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7004         Update.
7005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7006         Update.
7007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7008         Update.
7009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7010         Update.
7011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7012         Update.
7013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7014         Update.
7016 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7018         [BZ #2550]
7019         [BZ #2570]
7020         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7021         comparisons to determine direction to adjust input.
7022         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7023         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7024         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7025         Likewise.
7026         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7027         Likewise.
7028         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7029         Likewise.
7030         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7031         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7032         Likewise.
7033         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7034         Likewise.
7035         * math/libm-test.inc (nexttoward_test): Add more tests.
7037 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7039         [BZ #14040]
7040         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7041         in version GLIBC_2.1, not GLIBC_2.0.
7042         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7043         Likewise.
7045 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7047         [BZ #13942]
7048         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7049         (1 - x) * (1 + x).
7050         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7051         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7052         * math/libm-test.inc (acos_test): Add more tests.
7053         (asin_test): Likewise.
7054         * sysdeps/i386/fpu/libm-test-ulps: Update.
7055         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7057         [BZ #14034]
7058         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7059         of square root.
7060         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7061         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7062         * math/libm-test.inc (acos_test_tonearest): New function.
7063         (acos_test_towardzero): Likewise.
7064         (acos_test_downward): Likewise.
7065         (acos_test_upward): Likewise.
7066         (asin_test_tonearest): Likewise.
7067         (asin_test_towardzero): Likewise.
7068         (asin_test_downward): Likewise.
7069         (asin_test_upward): Likewise.
7070         (main): Call the new functions.
7071         * sysdeps/i386/fpu/libm-test-ulps: Update.
7072         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7074         [BZ #13884]
7075         [BZ #13924]
7076         * math/e_exp10.c: Include <float.h>.
7077         (__ieee754_exp10): Handle underflow here rather than multiplying
7078         large negative argument by M_LN10.
7079         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7080         of __ieee754_expf.
7081         * math/e_exp10l.c: Include <float.h>.
7082         (__ieee754_exp10l): Handle underflow here rather than multiplying
7083         large negative argument by M_LN10l.
7084         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7085         spurious overflow exception on underflow.
7087 2012-04-29  Marek Polacek  <polacek@redhat.com>
7089         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7090         (__fortify_function): New macro.
7091         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7092         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7093         __extern_always_inline.
7094         * libio/bits/stdio2.h: Likewise.
7095         * libio/bits/stdio.h: Likewise.
7096         * string/string.h: Likewise.
7097         * string/bits/string3.h: Likewise.
7098         * include/stdio.h: Likewise.
7099         * stdlib/bits/stdlib.h: Likewise.
7100         * stdlib/stdlib.h: Likewise.
7101         * rt/bits/mqueue2.h: Likewise.
7102         * rt/mqueue.h: Likewise.
7103         * posix/bits/unistd.h: Likewise.
7104         * posix/unistd.h: Likewise.
7105         * io/bits/poll2.h: Likewise.
7106         * io/bits/fcntl2.h: Likewise.
7107         * io/fcntl.h: Likewise.
7108         * io/sys/poll.h: Likewise.
7109         * misc/bits/syslog.h: Likewise.
7110         * misc/bits/syslog-ldbl.h: Likewise.
7111         * misc/sys/syslog.h: Likewise.
7112         * socket/bits/socket2.h: Likewise.
7113         * socket/sys/socket.h: Likewise.
7114         * debug/tst-chk1.c: Likewise.
7115         * wcsmbs/bits/wchar2.h: Likewise.
7116         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7117         * wcsmbs/wchar.h: Likewise.
7119 2012-04-29  Andreas Jaeger  <aj@suse.de>
7121         * Makerules (tests): Remove enable-check-abi protection.
7122         (check-abi-warn): Remove.
7123         (check-abi-%): Remove check-abi-warn usage.
7125         * configure.in: Remove check-abi configure option.
7126         * configure: Regenerated.
7127         * config.make.in (enable-check-abi): Remove.
7129 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7131         [BZ #14033]
7132         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7133         double functions to double *_finite functions.
7135         [BZ #13941]
7136         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7137         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7138         LDBL_MIN_EXP.
7139         * stdio-common/Makefile (tests): Add tst-sprintf3.
7140         * stdio-common/tst-sprintf3.c: New file.
7142         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7143         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7145 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7147         * conform/conformtest.pl: Remove duplicate typed-constant
7148         handling.
7150 2012-04-28  David S. Miller  <davem@davemloft.net>
7152         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7153         (check-abi-%): Remove AWK script prerequisite and explicit
7154         abilist directory.
7155         (check-abi): Rewrite to just diff the symlist with the abilist.
7156         (config-tls, config-abi-config): Delete, no longer used.
7157         (update-abi-%): Remove AWK script and explicit abilist directory.
7158         (update-abi): Rewrite to simply compare and conditionally copy the
7159         symlist and the sysdep abilist file.  Remove update-abi-config
7160         checks.
7161         * abilist/ld.abilist: Remove.
7162         * abilist/libBrokenLocale.abilist: Remove.
7163         * abilist/libanl.abilist: Remove.
7164         * abilist/libcrypt.abilist: Remove.
7165         * abilist/libdl.abilist: Remove.
7166         * abilist/librt.abilist: Remove.
7167         * abilist/libthread_db.abilist: Remove.
7168         * abilist/libutil.abilist: Remove.
7169         * scripts/extract-abilist.awk: Remove.
7170         * scripts/merge-abilist.awk: Remove.
7171         * sysdeps/generic/libcidn.abilist: New file.
7172         * sysdeps/generic/libnss_compat.abilist: New file.
7173         * sysdeps/generic/libnss_db.abilist: New file.
7174         * sysdeps/generic/libnss_dns.abilist: New file.
7175         * sysdeps/generic/libnss_files.abilist: New file.
7176         * sysdeps/generic/libnss_hesiod.abilist: New file.
7177         * sysdeps/generic/libnss_nis.abilist: New file.
7178         * sysdeps/generic/libnss_nisplus.abilist: New file.
7179         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7180         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7181         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7182         file.
7183         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7184         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7185         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7186         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7187         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7188         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7189         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7190         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7191         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7192         file.
7193         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7194         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7195         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7196         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7197         file.
7198         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7199         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7200         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7201         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7202         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7203         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7204         file.
7205         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7206         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7207         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7208         file.
7209         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7210         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7211         New file.
7212         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7213         New file.
7214         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7215         New file.
7216         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7217         New file.
7218         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7219         New file.
7220         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7221         New file.
7222         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7223         New file.
7224         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7225         New file.
7226         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7227         New file.
7228         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7229         New file.
7230         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7231         New file.
7232         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7233         New file.
7234         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7235         New file.
7236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7237         file.
7238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7239         New file.
7240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7241         New file.
7242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7243         file.
7244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7245         New file.
7246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7247         New file.
7248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7249         file.
7250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7251         New file.
7252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7253         New file.
7254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7255         New file.
7256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7257         New file.
7258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7259         New file.
7260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7261         New file.
7262         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7263         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7264         file.
7265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7266         New file.
7267         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7268         file.
7269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7270         file.
7271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7272         file.
7273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7274         file.
7275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7276         file.
7277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7278         New file.
7279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7280         file.
7281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7282         file.
7283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7284         New file.
7285         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7286         file.
7287         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7288         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7289         file.
7290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7291         New file.
7292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7293         file.
7294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7295         file.
7296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7297         file.
7298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7299         file.
7300         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7301         file.
7302         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7303         New file.
7304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7305         file.
7306         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7307         file.
7308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7309         New file.
7310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7311         file.
7312         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7313         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7314         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7315         file.
7316         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7317         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7318         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7319         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7320         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7321         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7322         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7323         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7324         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7325         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7326         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7327         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7328         file.
7329         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7330         New file.
7331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7332         file.
7333         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7334         file.
7335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7336         file.
7337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7338         file.
7339         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7340         file.
7341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7342         New file.
7343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7344         New file.
7345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7346         file.
7347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7348         New file.
7349         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7350         file.
7351         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7352         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7353         file.
7354         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7355         New file.
7356         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7357         file.
7358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7359         file.
7360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7361         file.
7362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7363         file.
7364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7365         file.
7366         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7367         New file.
7368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7369         New file.
7370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7371         file.
7372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7373         New file.
7374         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7375         file.
7377 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7379         * conform/conformtest.pl: Fix typo in handling typed-constant from
7380         allow-header.
7382 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7384         * README: Cut down references to pre-2.6 Linux kernels and
7385         Linuxthreads.  Update lists of configurations in libc and ports
7386         and sort alphabetically.  Say "or newer" with Linux kernel version
7387         requirements.
7389         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7391 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7393         [BZ #887]
7394         * math/libm-test.inc (logb_test_downward): New test to expose
7395         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7396         rounding mode.
7398 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7400         [BZ #14027]
7401         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7402         to be done.
7403         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7404         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7406 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7408         * sysdeps/unix/i386/brk.S: Remove file.
7409         * sysdeps/unix/i386/dl-brk.S: Likewise.
7410         * sysdeps/unix/i386/pipe.S: Likewise.
7411         * sysdeps/unix/i386/sigreturn.S: Likewise.
7412         * sysdeps/unix/i386/syscall.S: Likewise.
7413         * sysdeps/unix/i386/vfork.S: Likewise.
7414         * sysdeps/unix/i386/wait.S: Likewise.
7416         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7417         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7419         * configure.in (arm*-none*): Do not allow without
7420         --enable-hacker-mode.
7421         (netbsd*): Remove case setting base_os.
7422         (386bsd*): Likewise.
7423         (freebsd*): Likewise.
7424         (bsdi*): Likewise.
7425         (osf*): Likewise.
7426         (sunos*): Likewise.
7427         (ultrix*): Likewise.
7428         (newsos*): Likewise.
7429         (dynix*): Likewise.
7430         (*bsd*): Likewise.
7431         (sysv*): Likewise.
7432         (isc*): Likewise.
7433         (esix*): Likewise.
7434         (sco*): Likewise.
7435         (minix*): Likewise.
7436         (irix4*): Likewise.
7437         (irix6*): Likewise.
7438         (solaris[2-9]*): Likewise.
7439         (none): Likewise.
7440         * configure: Regenerated.
7442 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7444         [BZ #11521]
7445         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7446         overflow or cancellation in calculating denominator.
7447         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7448         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7449         down expression to avoid unexpected rounding in newer GCCs.
7450         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7452 2012-04-26  David S. Miller  <davem@davemloft.net>
7454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7455         long-double compat symbols.
7456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7466         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7467         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7468         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7470 2012-04-25  David S. Miller  <davem@davemloft.net>
7472         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7473         HWCAP_* values only after the memory barriers have been defined.
7474         (atomic_full_barrier): Define.
7475         (atomic_read_barrier): Define.
7476         (atomic_write_barrier): Define.
7478 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7480         * shlib-versions: Add libgcc_s version information.
7481         * sysdeps/generic/libgcc_s.h: Remove.
7482         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7483         libgcc_s.h.
7484         * sysdeps/gnu/unwind-resume.c: Likewise.
7485         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7487 2012-04-25  David S. Miller  <davem@davemloft.net>
7489         * sysdeps/unix/sparc/brk.S: Delete.
7490         * sysdeps/unix/sparc/dl-brk.S: Delete.
7491         * sysdeps/unix/sparc/pipe.S: Delete.
7492         * sysdeps/unix/sparc/sysdep.S: Delete.
7493         * sysdeps/unix/sparc/sysdep.h: Delete.
7494         * sysdeps/unix/sparc/vfork.S: Delete.
7495         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7496         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7497         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7498         ret_ERRVAL, r0, r1, MOVE): Define.
7499         (JUMPTARGET): Remove.
7500         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7501         sysdeps/unix/sparc/sysdep.h
7502         (ENTRY, END): Remove.
7503         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7505 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7507         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7508         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7509         -DIS_IN_build.
7511         * timezone/README: Update upstream location and email address for
7512         tzcode and tzdata.
7513         * timezone/zdump.c: Update from tzcode 2012b.
7514         * timezone/zic.c: Likewise.
7516         * configure.in (libc_cv_as_needed): Remove test.
7517         * configure: Regenerated.
7518         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7519         conditional definition.
7520         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7521         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7522         * config.make.in (have-as-needed): Remove variable.
7524 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7525             Paul Pluzhnikov  <ppluzhnikov@google.com>
7527         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7528         strings correctly.
7530 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7532         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7533         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7534         * sysdeps/sh/strlen.S: Likewise.
7536 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7538         * sysdeps/unix/fork.S: Remove file.
7539         * sysdeps/unix/i386/fork.S: Likewise.
7540         * sysdeps/unix/sparc/fork.S: Likewise.
7542         * sysdeps/unix/system.c: Remove file.
7543         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7545         * sysdeps/unix/getegid.S: Remove file.
7546         * sysdeps/unix/geteuid.S: Likewise.
7548 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7550         * scripts/check-localplt.awk: New file.
7551         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7552         of diff.
7553         * scripts/data/localplt-generic.data: Add a comment.
7555         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7556         NODE when __dir_mkfile failed.
7557         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7558         Reported by Ludovic Courtès <ludo@gnu.org>.
7560 2012-04-24  Andreas Jaeger  <aj@suse.de>
7562         * Makerules (common-clean): Also remove gen-as-const-headers
7563         files.
7565 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7567         * Makerules (native-compile): Do not change working directory for
7568         build.  Use $(OUTPUT_OPTION) in command.
7569         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7571 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7573         [BZ #13886]
7574         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7575         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7576         * math/libm-test.inc (floor_test): Add more tests.
7577         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7579 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7581         * sysdeps/unix/getdents.c: Remove file.
7582         * sysdeps/unix/sysv/getdents.c: Likewise.
7583         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7585         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7586         sysdeps/unix/mman/syscalls.list.
7587         (mmap): Likewise.
7588         (mprotect): Likewise.
7589         (msync): Likewise.
7590         (munmap): Likewise.
7591         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7592         * sysdeps/unix/mman/syscalls.list: Remove.
7593         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7595         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7596         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7597         * configure: Regenerated.
7598         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7599         $(libgcc_s_suffix).
7600         * config.make.in (libgcc_s_suffix): Remove variable.
7602 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7604         * sysdeps/unix/sysv/gethostname.c: Move to ...
7605         * sysdeps/posix/gethostname.c: ... here.
7607         * sysdeps/unix/execve.S: Remove file.
7609         * sysdeps/unix/_exit.S: Remove file.
7611 2012-04-23  Andreas Jaeger  <aj@suse.de>
7613         [BZ #13739]
7614         * manual/Makefile: Remove make dist support, there's no
7615         need for a stand-alone documentation tar ball.
7616         (TEXI2DVI): Define always, it's not in Makeconfig.
7617         (dist): Removed.
7618         (tar-it): Removed.
7619         (edition): Removed.
7620         (glibc-doc-$(edition).tar): Removed
7621         (%.Z): Removed.
7622         (%.gz): Removed.
7623         (%.uu): Removed.
7624         (ETAGS): Remove, it's in Makeconfig.
7625         (move-if-change): Remove, it's in Makeconfig.
7627 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7629         [BZ #13970]
7630         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7631         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7632         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7633         (strtod_l, strtof_l, strtold_l): Remove __wur.
7634         It is not necessarily an error to ignore strtol's return value.
7635         One can reliably look at the stored endptr to decide whether
7636         the number had valid syntax.
7638 2012-04-21  Andreas Jaeger  <aj@suse.de>
7640         [BZ #13739]
7641         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7643 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7645         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7646         * sysdeps/unix/sysv/Versions: Remove file.
7648 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7650         [BZ #13927]
7651         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7653 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7655         [BZ #7064]
7656         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7657         version from __vm86.
7659 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7661         * sysdeps/unix/common/lxstat.c: Remove file.
7662         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7664         * sysdeps/unix/sysv/Makefile: Remove file.
7666         * sysdeps/unix/sysv/direct.h: Remove file.
7668         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7669         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7670         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7671         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7672         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7673         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7674         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7676         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7678         * sysdeps/unix/xmknod.c: Remove file.
7679         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7681         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7683         * sysdeps/unix/sysv/i386/time.S: Remove file.
7685         * sysdeps/unix/fxstat.c: Remove file.
7686         * sysdeps/unix/xstat.c: Likewise.
7687         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7689         * sysdeps/unix/sysv/sigaction.c: Remove file.
7691         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7692         (sysdep_headers): Remove variable.
7693         [termio.h not in sysdep_headers] (generated): Likewise.
7694         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7695         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7696         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7697         * sysdeps/unix/sysv/tcflow.c: Likewise.
7698         * sysdeps/unix/sysv/tcflush.c: Likewise.
7699         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7700         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7701         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7702         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7703         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7705         * sysdeps/unix/siglist.c: Remove file.
7707         * sysdeps/unix/getppid.S: Remove file.
7709         * sysdeps/unix/mkdir.c: Remove file.
7710         * sysdeps/unix/rmdir.c: Likewise.
7712 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7714         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7715         ERR_MAX value.
7716         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7717         errlist-compat value.
7719 2012-04-18  David S. Miller  <davem@davemloft.net>
7721         * sysdeps/generic/memcopy.h (reg_char): Delete.
7722         * debug/strcat_chk.c: Use char, not reg_char.
7723         * debug/strcpy_chk.c: Likewise.
7724         * debug/strncat_chk.c: Likewise.
7725         * debug/strncpy_chk.c: Likewise.
7726         * string/memchr.c: Likewise.
7727         * string/memrchr.c: Likewise.
7728         * string/rawmemchr.c: Likewise.
7729         * string/strcat.c: Likewise.
7730         * string/strchr.c: Likewise.
7731         * string/strchrnul.c: Likewise.
7732         * string/strcmp.c: Likewise.
7733         * string/strcpy.c: Likewise.
7734         * string/strncat.c: Likewise.
7735         * string/strncmp.c: Likewise.
7736         * string/strncpy.c: Likewise.
7738 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7740         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7741         __builtin_memcopy is called when src and dest ranges are known to not
7742         overlap.
7744 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7746         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7747         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7748         fwd_align_merge macro call.
7749         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7750         bwd_align_merge macro call.
7751         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7753 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7755         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7756         bwd_align_merge macros.
7757         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7758         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7759         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7761 2012-04-18  David S. Miller  <davem@davemloft.net>
7763         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7765 2012-04-18  Andreas Jaeger  <aj@suse.de>
7767         [BZ# 6794]
7768         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7769         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7770         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7772         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7773         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7774         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7776         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7777         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7778         Adjust for changed ldbl-128 files.
7780         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7781         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7782         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7784 2012-04-17  David S. Miller  <davem@davemloft.net>
7786         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7788 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7790         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7791         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7792         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7793         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7794         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7795         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7797 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7799         [BZ #6794]
7800         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7801         * math/libm-test.inc: Add ilogb errno and exception tests.
7802         * math/w_ilogb.c: New file: ilogb wrapper.
7803         * math/w_ilogbf.c: New file: ilogbf wrapper.
7804         * math/w_ilogbl.c: New file: ilogbl wrapper.
7805         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7806         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7807         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7808         exception being thrown with 0.0 as argument.
7809         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7810         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7811         exception being thrown with 0.0 as argument.
7812         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7813         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7814         exception being thrown with 0.0 as argument.
7815         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7816         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7817         exception being thrown with 0.0 as argument.
7818         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7819         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7820         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7821         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7822         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7823         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7824         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7825         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7826         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7828 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7830         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7831         with altivec.
7833 2012-04-16  Marek Polacek  <polacek@redhat.com>
7835         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7837 2012-04-16  Marek Polacek  <polacek@redhat.com>
7839         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7840         operands of fdivp instruction.
7842 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7844         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7845         * elf/tst-auditmod3b.c: Likewise.
7846         * elf/tst-auditmod4b.c: Likewise.
7847         * elf/tst-auditmod5b.c: Likewise.
7848         * elf/tst-auditmod6b.c: Likewise.
7849         * elf/tst-auditmod6c.c: Likewise.
7850         * elf/tst-auditmod7b.c: Likewise.
7851         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7852         * sysdeps/x86_64/preconfigure.in: Likewise.
7853         * sysdeps/x86_64/preconfigure: Regenerated.
7855 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7857         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7858         __ILP32__.
7860 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7862         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7863         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7865 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7867         [BZ #13973]
7868         * locale/iso-639.def: Fix gl language name. Spotted by
7869         Yaron Shahrabani.
7871 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7873         [BZ #2074]
7874         * libio/libio.h (__io_write_fn): Update comment.
7876 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7878         [BZ #2074]
7879         * stdio.texi (Hook Functions): The user provided writer function
7880         is not allowed to return -1.
7882 2012-04-11  David S. Miller  <davem@davemloft.net>
7884         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7886 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7888         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7889         Add a leading slash to rtkaio.
7891 2012-04-11  Jim Meyering  <meyering@redhat.com>
7893         [BZ #11959]
7894         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7895         It is not necessarily an error to ignore fwrite's return
7896         value.  One can reliably use ferror to test for errors after
7897         the fact.
7899 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7901         * bits/types.h (__snseconds_t): New type.
7902         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7904         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7905         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7906         (__SNSECONDS_T_TYPE): Likewise.
7907         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7908         (__SNSECONDS_T_TYPE): Likewise.
7909         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7910         (__SNSECONDS_T_TYPE): Likewise.
7912 2012-04-10  Andreas Jaeger  <aj@suse.de>
7914         [BZ #2636]
7915         * manual/time.texi (Processor Time): Return type of times is
7916         elapsed real time since an arbitrary point in the past.
7917         (CPU Time): Move CLK_TCK from here...
7918         (Processor Time): ...to here.  Correct description.
7919         * manual/conf.texi (Constants for Sysconf): Correct description of
7920         _SC_CLK_TCK.
7922 2012-04-10  David S. Miller  <davem@davemloft.net>
7924         [BZ #13967]
7925         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7926         where the is a gap between DT_REL(A) and DT_JMPREL.
7928 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7930         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7931         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7932         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7934 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7936         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7937         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7938         (dl_main): Handle --inhibit-cache.
7939         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7940         _dl_inhibit_cache.
7941         * elf/dl-load.c (_dl_map_object): Use it.
7942         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7944 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7946         [BZ #13872]
7947         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7948         (__ieee754_powl): Saturate large exponents rather than testing for
7949         overflow of y*log2(x).
7950         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7951         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7952         exceptions.
7954         [BZ #11521]
7955         * math/s_ctan.c: Include <float.h>.
7956         (__ctan): Avoid internal overflow or cancellation in calculating
7957         denominator.
7958         * math/s_ctanf.c: Likewise.
7959         * math/s_ctanl.c: Likewise.
7960         * math/s_ctanh.c: Likewise.
7961         * math/s_ctanhf.c: Likewise.
7962         * math/s_ctanhl.c: Likewise.
7963         * math/libm-test.inc (ctan_test): Add more tests.
7964         (ctanh_test): Likewise.
7965         * sysdeps/i386/fpu/libm-test-ulps: Update.
7966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7968 2012-04-09  Andreas Jaeger  <aj@suse.de>
7970         [BZ #6894]
7971         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7972         is an optional BSD extension.
7974         [BZ #10254]
7975         * manual/stdio.texi (Opening Streams): Document additional fopen
7976         parameters.
7978 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7980         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7981         %eax without telling the compiler.
7983 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7985         [BZ # 13963]
7986         * manual/install.texi: Use sourceware.org.
7988 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7990         [BZ #13873]
7991         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7992         (__ieee754_pow): Generate overflow and underflow using huge*huge
7993         and tiny*tiny rather than just returning constant infinity or zero
7994         for large exponents.
7995         * math/libm-test.inc (pow_test): Require overflow exceptions for
7996         applicable cases of large exponents.
7998         [BZ #706]
7999         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8000         (__ieee754_pow): Use iterative multiplication algorithm only for
8001         integer exponents with absolute value below 1024.  Check for odd
8002         integer exponents when using algorithm for real exponents.
8003         * math/libm-test.inc (pow_test): Add more tests.
8004         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8006 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8008         [BZ #13705]
8009         * math/libm-test.inc (exp_test): Do not allow overflow exception
8010         on underflow test.
8012 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8014         [BZ #13705]
8015         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8016         instead of __kernel_standard_f.
8018 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8020         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8021         * sysdeps/x86_64/memset_chk.S: Likewise.
8023 2012-04-08  Andreas Jaeger  <aj@suse.de>
8025         [BZ #10153]
8026         * manual/startup.texi (Environment Access): Describe return value
8027         for putenv and setenv.
8029         [BZ #6895]
8030         * manual/filesys.texi (Directory Entries): Add description for
8031         DT_LNK.
8033         [BZ #6890]
8034         * manual/filesys.texi (Directory Entries): Clarify that it's file
8035         system not operating system in the description of DT_UNKNOWN.
8037         [BZ #6578]
8038         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8040 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8042         [BZ #6649]
8043         * manual/llio.texi (Opening and Closing Files): Add cross
8044         reference to explain mode argument.
8046 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8048         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8049         * sysdeps/x86_64/memset_chk.S: Likewise.
8051 2012-04-07  David S. Miller  <davem@davemloft.net>
8053         * elf/elf.h (R_SPARC_WDISP10): Define.
8054         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8055         R_SPARC_SIZE32.
8056         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8057         R_SPARC_SIZE64 and R_SPARC_H34.
8059 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8061         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8062         conditions and remove no longer applicable assertion.
8064 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8066         * bits/byteswap.h: Include <features.h>.
8067         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8068         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8070 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8072         * bits/byteswap.h (__bswap_16): Removed.
8073         Include <bits/byteswap-16.h> to get __bswap_16.
8074         * sysdeps/i386/bits/byteswap.h: Likewise.
8075         * sysdeps/s390/bits/byteswap.h: Likewise.
8076         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8077         * bits/byteswap-16.h: New file.
8078         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8079         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8080         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8081         * string/Makefile (headers): Add bits/byteswap-16.h.
8083 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8085         [BZ #13895]
8086         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8087         extra indirection.
8088         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8089         * nss/tst-nss-static.c: New.
8091 2012-04-06  Robert Millan  <rmh@gnu.org>
8093         [BZ #6486]
8094         * manual/llio.texi (File Position Primitive): lseek
8095         refers to WHENCE when it really means OFFSET.
8097 2012-04-06  Andreas Jaeger  <aj@suse.de>
8099         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8100         strncmp declarations.
8102         * abilist/libc.abilist: Add __poll and __ppoll.
8104 2012-04-05  David S. Miller  <davem@davemloft.net>
8106         * scripts/check-local-headers.sh: Accept a host triplet in the
8107         path matched by the exclude regexp.
8109         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8110         definition.
8111         * sysdeps/powerpc/powerpc32/dl-machine.h
8112         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8113         * sysdeps/s390/s390-32/dl-machine.h
8114         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8115         * sysdeps/sparc/sparc32/dl-machine.h
8116         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8117         * sysdeps/sparc/sparc64/dl-machine.h
8118         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8120         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8121         lazy binding.
8122         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8123         undefined symbol errors.
8125         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8126         DT_NEEDED entries.
8128 2012-04-05  Michael Matz  <matz@suse.de>
8130         [BZ #13592]
8131         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8133 2012-04-05  Andreas Jaeger  <aj@suse.de>
8135         [BZ #13908]
8136         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8137         comment.
8139 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8141         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8142         which ROUND is no valid rounding mode.
8144 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8146         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8147         read again.
8148         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8150 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8152         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8153         an exception using FPU order intentionally.
8155 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8157         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8158         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8159         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8160         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8162 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8164         [BZ #12340]
8165         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8166         EINVAL when BUFLEN is too smal.
8168 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8170         [BZ #13553]
8171         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8172         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8174 2012-04-03  Andreas Jaeger  <aj@suse.de>
8176         [BZ #13938]
8177         * manual/setjmp.texi (System V contexts): Fix sentence.
8179         [BZ #13926]
8180         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8181         New macro for this case.
8182         [!__GNUC__] (__bswap_64): New inline function for this case.
8183         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8184         * bits/byteswap.h: Likewise.
8185         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8186         ull, guard with __GLIBC_HAVE_LONG_LONG.
8188         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8189         __GLIBC_HAVE_LONG_LONG.
8191         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8192         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8194 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8196         [BZ #13691]
8197         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8198         inptr and inend, rather than using last_ch.
8200 2012-04-02  David S. Miller  <davem@davemloft.net>
8202         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8203         * stdio-common/printf-parse.h (read_int): Change return type to
8204         'int', return -1 on INT_MAX overflow.
8205         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8206         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8207         overflows INT_MAX.  Check for overflow of in-format-string precision
8208         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8209         SIZE_MAX not INT_MAX for integer overflow test.
8210         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8211         skip the construct in the format string but do not record anything.
8212         * stdio-common/bug22.c: Adjust to test both width/prevision
8213         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8214         explicitly for proper errno values.
8216 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8218         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8219         CHAR_MAX.
8220         * string/test-strcmp.c [! WIDE]: Likewise.
8221         * time/tst-mktime2.c: Likewise for INT_MAX.
8222         * string/test-string.h: #include <sys/param.h> for MIN.
8224         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8225         * sysdeps/i386/init-first.c (init): Likewise.
8226         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8227         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8228         * sysdeps/sh/init-first.c (init): Likewise.
8230 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8232         * po/ru.po: Update from translation team.
8233         * po/vi.po: Likewise.
8235 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8237         * resolv/nss_dns/dns-host.c: Merge copyright years.
8239 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8241         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8242         Optimize memcpy with prefetch if
8243         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8244         src, dst pointers have unequal 16 byte alignments.
8246 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8248         [BZ #13928]
8249         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8250         from a CNAME entry and return the minimum ttl for the query.
8251         (gaih_getanswer_slice): Likewise.
8253 2012-03-30  Jeff Law  <law@redhat.com>
8255         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8256         due to long keys.
8257         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8258         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8260         * resolv/nss_dns/dns-host.c: Update copyright year.
8262 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8264         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8265         requests to save a system call.  Fix check that all bytes are sent.
8267         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8268         comments for sendmmsg.
8270 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8272         [BZ #13691]
8273         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8274         with only 1 character between 0x0041 and 0x01b0.
8275         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8276         * wcsmbs/tst-mbsnrtowcs.c: New file.
8278 2012-03-29  David S. Miller  <davem@davemloft.net>
8280         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8281         small copies by hand.
8283 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8285         [BZ #13761]
8286         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8287         _nss_compat_initgroups_dyn): Fall back to malloc/free
8288         for large group memberships.
8290 2012-03-28  David S. Miller  <davem@davemloft.net>
8292         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8293         that branches into memcpy.
8294         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8295         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8296         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8297         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8298         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8299         bits.
8300         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8301         implementation too.
8302         * sysdeps/sparc/mempcpy.S: New file.
8304         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8305         the IFUNC routine in the libc case.
8306         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8308         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8309         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8310         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8311         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8312         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8313         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8314         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8315         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8317         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8318         loop to 256 bytes instead of 64 bytes and fix test signedness.
8320         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8321         * sysdeps/sparc/sparc32/Makefile: rather than here...
8322         * sysdeps/sparc/sparc64/Makefile: and here.
8324 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8326         * malloc/mallocbug.c: Avoid warnings about unused variables.
8328 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8330         [BZ #13760]
8331         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8332         in the right place. Discard and retry query if response is
8333         larger than input buffer size.
8335 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8337         [BZ #369]
8338         [BZ #2678]
8339         [BZ #3866]
8340         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8341         x for large integer exponent.
8342         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8343         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8344         sign of result as needed afterwards.
8345         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8346         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8347         result for underflowing pow the same as for overflow.
8348         (__kernel_standard_l): Handle powl overflow and underflow here
8349         rather than calling __kernel_standard.
8350         * math/libm-test.inc (pow_test): Add more tests.
8352         [BZ #3868]
8353         [BZ #13879]
8354         [BZ #13910]
8355         [BZ #13911]
8356         [BZ #13912]
8357         [BZ #13913]
8358         [BZ #13915]
8359         [BZ #13916]
8360         [BZ #13917]
8361         [BZ #13918]
8362         [BZ #13919]
8363         [BZ #13920]
8364         [BZ #13921]
8365         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8366         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8367         (__kernel_standard_l): New function.
8368         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8369         __kernel_standard.
8370         * math/w_acosl.c (__acosl): Likewise.
8371         * math/w_asinl.c (__asinl): Likewise.
8372         * math/w_atan2l.c (__atan2l): Likewise.
8373         * math/w_atanhl.c (__atanhl): Likewise.
8374         * math/w_coshl.c (__coshl): Likewise.
8375         * math/w_exp10l.c (__exp10l): Likewise.
8376         * math/w_exp2l.c (__exp2l): Likewise.
8377         * math/w_fmodl.c (__fmodl): Likewise.
8378         * math/w_hypotl.c (__hypotl): Likewise.
8379         * math/w_j0l.c (__j0l, __y0l): Likewise.
8380         * math/w_j1l.c (__j1l, __y1l): Likewise.
8381         * math/w_jnl.c (__jnl, __ynl): Likewise.
8382         * math/w_lgammal.c (__lgammal): Likewise.
8383         * math/w_log10l.c (__log10l): Likewise.
8384         * math/w_log2l.c (__log2l): Likewise.
8385         * math/w_logl.c (__logl): Likewise.
8386         * math/w_powl.c (__powl): Likewise.
8387         * math/w_remainderl.c (__remainderl): Likewise.
8388         * math/w_scalbl.c (sysv_scalbl): Likewise.
8389         * math/w_sinhl.c (__sinhl): Likewise.
8390         * math/w_sqrtl.c (__sqrtl): Likewise.
8391         * math/w_tgammal.c (__tgammal): Likewise.
8392         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8393         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8394         * math/libm-test.inc (acos_test): Add more tests.
8395         (acosh_test): Likewise.
8396         (asin_test): Likewise.
8397         (atanh_test): Likewise.
8398         (exp_test): Likewise.
8399         (exp10_test): Likewise.
8400         (exp2_test): Likewise.
8401         (expm1_test): Likewise.
8402         (lgamma_test): Likewise.
8403         (log_test): Likewise.
8404         (log10_test): Likewise.
8405         (log1p_test): Likewise.
8406         (log2_test): Likewise.
8407         (pow_test): Do not allow some spurious overflow exceptions.
8408         (sqrt_test): Add more tests.
8409         (tgamma_test): Likewise.
8410         (y0_test): Likewise.
8411         (y1_test): Likewise.
8412         (yn_test): Likewise.
8414 2012-03-27  Anton Blanchard  <anton@samba.org>
8416         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8417         MAP_HUGETLB.
8418         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8419         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8420         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8422 2012-03-27  David S. Miller  <davem@davemloft.net>
8424         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8426         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8427         have-as-vis3 check.
8429 2012-03-27  Andreas Jaeger  <aj@suse.de>
8431         * sysdeps/x86_64/elf/configure.in: Moved to ...
8432         * sysdeps/x86_64/configure.in: ... here.
8433         * sysdeps/x86_64/elf/start.S: Moved to ...
8434         * sysdeps/x86_64/start.S: ... here.
8435         * sysdeps/x86_64/elf/configure: Delete.
8437         * sysdeps/x86_64/configure.in: Merge contents from
8438         sysdeps/i386/configure.in (without i686 check).
8440         * sysdeps/i386/elf/Versions: Merge into ...
8441         * sysdeps/i386/Versions: ... this.
8442         * sysdeps/i386/elf/Versions: Delete file.
8443         * sysdeps/i386/elf/start.S: Moved to ...
8444         * sysdeps/i386/start.S: ...here.
8445         * sysdeps/i386/elf/configure.in: Merge into...
8446         * sysdeps/i386/configure.in: ...here.
8447         * sysdeps/i386/elf/configure.in: Delete file.
8448         * sysdeps/i386/elf/configure: Delete file.
8450         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8451         * debug/backtracesyms.c: ... here.
8452         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8453         * debug/backtracesymsfd.c: ... here.
8454         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8455         * sysdeps/generic/ifunc-sel.h: ... here.
8457         * sysdeps/unix/i386/start.c: Delete file.
8458         * sysdeps/unix/sparc/start.c: Delete file.
8459         * sysdeps/unix/start.c: Delete file.
8461         * sysdeps/sh/elf/configure.in: Moved to ...
8462         * sysdeps/sh/configure.in: ... here.
8463         * sysdeps/sh/elf/start.S: Moved to ...
8464         * sysdeps/sh/start.S: ... here.
8465         * sysdeps/sh/elf/configure: Delete file.
8467         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8468         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8469         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8470         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8471         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8472         * sysdeps/powerpc/powerpc64/start.S: here.
8473         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8474         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8475         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8476         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8477         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8479         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8480         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8481         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8482         * sysdeps/powerpc/powerpc32/start.S: ... here.
8483         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8484         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8485         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8487         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8488         * sysdeps/powerpc/ifunc-sel.h: ... here.
8489         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8490         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8492         * sysdeps/sparc/elf/configure.in: Moved to ...
8493         * sysdeps/sparc/configure.in: ... here.
8494         * sysdeps/sparc/elf/configure: Delete file.
8495         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8496         * sysdeps/sparc/sparc32/start.S: ... here.
8497         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8498         * sysdeps/sparc/sparc64/start.S: ... here.
8499         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8500         * sysdeps/sparc/sparc32/Makefile: ... this.
8501         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8502         * sysdeps/sparc/sparc64/Makefile: ... this.
8504         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8505         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8506         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8507         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8508         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8509         * sysdeps/s390/s390-32/setjmp.S: ... here.
8510         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8511         * sysdeps/s390/s390-32/configure.in: ... here.
8512         * sysdeps/s390/s390-32/elf/configure: Delete file.
8513         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8514         * sysdeps/s390/s390-32/start.S: ... here.
8516         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8517         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8518         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8519         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8520         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8521         * sysdeps/s390/s390-64/setjmp.S: ... here.
8522         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8523         * sysdeps/s390/s390-64/configure.in: ... here
8524         * sysdeps/s390/s390-64/elf/configure: Delete file.
8525         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8526         * sysdeps/s390/s390-64/start.S: ... here.
8527         * sysdeps/s390/s390-64/elf/configure: Delete.
8529         * configure.in: Remove support for elf directories in sysdeps.
8531         * configure: Regenerated.
8532         * sysdeps/i386/configure: Regenerated.
8533         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8534         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8535         * sysdeps/s390/s390-32/configure: Regenerated.
8536         * sysdeps/s390/s390-64/configure: Regenerated.
8537         * sysdeps/sh/configure: Regenerated.
8538         * sysdeps/sparc/configure: Regenerated.
8539         * sysdeps/x86_64/configure: Regenerated.
8541 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8543         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8545         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8546         denormal result into account.
8548 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8550         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8551         Reported by Allan McRae <allan@archlinux.org>.
8553 2012-03-23  Jeff Law  <law@redhat.com>
8555         * nss/getnssent.c (__nss_getent): Fix typo.
8557 2012-03-23  David S. Miller  <davem@davemloft.net>
8559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8561 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8563         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8564         to pad to uint64_t for each field.
8565         (dl_tls_index): Replace unsigned long with uint64_t.
8567 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8568         Paul Pluzhnikov  <ppluzhnikov@google.com>
8570         [BZ #6528]
8571         * grp/Makefile (otherlibs): Don't set it.
8572         * inet/Makefile (otherlibs): Likewise.
8573         * login/Makefile (otherlibs): Likewise.
8574         * nscd/Makefile (otherlibs): Likewise.
8575         * posix/Makefile (otherlibs): Likewise.
8576         * pwd/Makefile (otherlibs): Likewise.
8577         * rt/Makefile (otherlibs): Likewise.
8578         * sunrpc/Makefile (otherlibs): Likewise.
8579         * nss/Makefile (otherlibs): Likewise.
8580         Add libnss_files to routines and static-only-routines.
8581         ($(objpfx)getent): Remove rule.
8582         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8583         static-only-routines.
8585 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8587         [BZ #13892]
8588         * math/s_cexp.c: Include <float.h>.
8589         (__cexp): Handle exp result overflowing not necessarily
8590         overflowing both real and imaginary parts of result.
8591         * math/s_cexpf.c: Likewise.
8592         * math/s_cexpl.c: Likewise.
8593         * math/libm-test.inc (cexp_test): Add more tests.
8594         * sysdeps/i386/fpu/libm-test-ulps: Update.
8595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8597 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8599         * include/link.h (ELFW): New macro.
8600         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8601         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8603 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8605         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8606         with uint64_t.
8608 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8610         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8611         declaration.
8612         (struct La_x32_retval): Likewise.
8614 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8616         * sysdeps/x86_64/preconfigure.in: New file.
8617         * sysdeps/x86_64/preconfigure: New generated file.
8619 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8621         [BZ #13824]
8622         * math/e_exp2l.c: Include <float.h>.
8623         (__ieee754_exp2l): Handle overflow and underflow cases
8624         separately.  Only pass fractional part of argument to
8625         __ieee754_expl.
8626         * math/libm-test.inc (exp2_test): Add more tests.
8628         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8629         negating x to take absolute value.
8630         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8631         Likewise.
8632         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8633         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8634         Likewise.
8635         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8636         computing low part if x was negated.
8637         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8639 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8641         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8642         la_x32_gnu_pltexit.
8643         (pltexit): Cast int_retval to ptrdiff_t.
8644         * elf/tst-auditmod3b.c: Likewise.
8645         * elf/tst-auditmod4b.c: Likewise.
8646         * elf/tst-auditmod5b.c: Likewise.
8647         * elf/tst-auditmod6b.c: Likewise.
8648         * elf/tst-auditmod6c.c: Likewise.
8649         * elf/tst-auditmod7b.c: Likewise.
8651         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8652         and x32_gnu_pltexit.
8654         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8655         __ELF_NATIVE_CLASS.
8656         (La_x32_regs): New macro.
8657         (La_x32_retval): Likewise.
8658         (la_x32_gnu_pltenter): New function prototype.
8659         (la_x32_gnu_pltexit): Likewise.
8661 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8663         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8664         exponent.
8666         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8668         * configure.in (libc_cv_cc_nofma): Check for option to disable
8669         generation of FMA instructions.
8670         * configure: Regenerate.
8671         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8672         * sysdeps/ieee754/dbl-64/Makefile: New file.
8673         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8674         Remove brandred-fma4.
8675         (CFLAGS-brandred-fma4.c): Remove.
8676         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8677         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8678         define.
8679         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8680         define.
8682 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8684         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8685         LLONG_MAX != LONG_MAX.
8686         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8687         (_fitoa_word): Likewise.
8688         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8689         LLONG_MAX != LONG_MAX.
8690         * stdio-common/_itowa.h: Include <_itoa.h>.
8691         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8692         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8693         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8694         only if not defined.
8695         (_ITOA_WORD_TYPE): Likewise.
8696         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8697         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8699 2012-03-21  David S. Miller  <davem@davemloft.net>
8701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8703 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8705         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8706         of x86_64 when setting libc_cv_slibdir, libdir and
8707         libc_cv_localedir.
8708         * sysdeps/unix/sysv/linux/configure: Regenerated.
8710 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8712         * manual/lang.texi (Old Varargs): Remove section.
8713         (How Variadic): Update menu.
8714         (va_start): Do not mention varargs.h.
8716 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8717             Joseph Myers  <joseph@codesourcery.com>
8719         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8720         link test.
8721         * configure: Regenerated.
8723 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8725         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8726         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8727         conformtest.pl
8729 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8731         * NOTES: Remove.
8732         * Makefile (files-for-dist): Remove NOTES.
8733         (NOTES): Remove rule.
8734         * README: Don't refer to NOTES.
8735         * manual/creature.texi: Don't include macros.texi.
8736         * manual/intro.texi (creature.texi): Remove comment referring to
8737         NOTES.
8739         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8740         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8741         * configure: Regenerated.
8742         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8743         LIBC_TRY_CC_OPTION.
8744         (libc_cv_as_i686): Likewise.
8745         (libc_cv_cc_avx): Likewise.
8746         (libc_cv_cc_sse2avx): Likewise.
8747         (libc_cv_cc_fma4): Likewise.
8748         (libc_cv_cc_novzeroupper): Likewise.
8749         * sysdeps/i386/configure: Regenerated.
8751         [BZ #13883]
8752         * sysdeps/i386/fpu/s_cexp.S: Remove.
8753         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8754         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8755         * math/libm-test.inc (cexp_test): Add more tests.
8756         * sysdeps/i386/fpu/libm-test-ulps: Update.
8757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8759 2012-03-21  Allan McRae  <allan@archlinux.org>
8761         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8763 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8765         [BZ #13871]
8766         * math/w_exp2.c: Do not include <float.h>.
8767         (o_threshold, u_threshold): Remove.
8768         (__exp2): Calculate result before checking finiteness and calling
8769         __kernel_standard.
8770         * math/w_exp2f.c: Likewise.
8771         * math/w_exp2l.c: Likewise.
8772         * math/libm-test.inc (exp2_test): Require overflow exception for
8773         1e6 input.
8775         [BZ #3866]
8776         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8777         range of signed 64-bit integers before using fistpll.  Remove
8778         checks for whether integers fit in mantissa bits.
8779         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8780         the range of signed 32-bit integers before using fistpl.  Remove
8781         checks for whether integers fit in mantissa bits.
8782         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8783         (__ieee754_powl): Test for y outside the range of signed 64-bit
8784         integers before using fistpll.  Reduce 64-bit values to 63-bit
8785         ones as needed.
8786         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8787         divide-by-zero is raised for zero to large negative powers.
8788         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8789         (__ieee754_powl): Test for y outside the range of signed 64-bit
8790         integers before using fistpll.  Reduce 64-bit values to 63-bit
8791         ones as needed.
8792         * math/libm-test.inc (pow_test): Add more tests.
8794 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8796         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8797         <stdio-common/_itoa.h>.
8798         * debug/segfault.c: Likewise.
8799         * elf/dl-cache.c: Likewise.
8800         * elf/dl-minimal.c: Likewise.
8801         * elf/dl-misc.c: Likewise.
8802         * elf/dl-sysdep.c: Likewise.
8803         * elf/dl-version.c: Likewise.
8804         * elf/rtld.c: Likewise.
8805         * hurd/hurdsock.c: Likewise.
8806         * hurd/lookup-retry.c: Likewise.
8807         * malloc/malloc.c: Likewise.
8808         * malloc/mtrace.c: Likewise.
8809         * nscd/nscd_getgr_r.c: Likewise.
8810         * nscd/nscd_getpw_r.c: Likewise.
8811         * nscd/nscd_getserv_r.c: Likewise.
8812         * posix/getopt_init.c: Likewise.
8813         * posix/wordexp.c: Likewise.
8814         * stdio-common/_itoa.c: Likewise.
8815         * stdio-common/printf_fphex.c: Likewise.
8816         * stdio-common/vfprintf.c: Likewise.
8817         * string/_strerror.c: Likewise.
8818         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8819         * sysdeps/i386/i686/hp-timing.h: Likewise.
8820         * sysdeps/mach/_strerror.c: Likewise.
8821         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8822         * sysdeps/mach/hurd/sethostid.c: Likewise.
8823         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8824         * sysdeps/mach/xpg-strerror.c: Likewise.
8825         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8826         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8827         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8828         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8829         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8830         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8831         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8832         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8833         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8834         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8835         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8836         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8837         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8838         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8839         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8840         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8841         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8842         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8843         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8844         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8845         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8847         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8849         * stdio-common/_itoa.h: Moved to ...
8850         * sysdeps/generic/_itoa.h: Here.
8852         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8854         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8855         instead of "_itoa.h" and "_itowa.h".
8856         * stdio-common/vfprintf.: Likewise.
8858 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8860         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8861         <bits/wordsize.h>.
8862         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8863         (__signbit): Likwise.
8864         (llrintf): Likwise.
8865         (llrint): Likwise.
8867 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8869         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8870         __WORDSIZE != 64.
8872 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8874         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8875         OVERFLOW_EXCEPTION_OK.
8876         * math/libm-test.inc ("Philosophy"): Update comment about
8877         exception testing.
8878         (OVERFLOW_EXCEPTION): Define.
8879         (OVERFLOW_EXCEPTION_OK): Likewise.
8880         (INVALID_EXCEPTION_OK): Renumber.
8881         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8882         (IGNORE_ZERO_INF_SIGN): Likewise.
8883         (test_exceptions): Handle FE_OVERFLOW.
8884         (exp10_test): Expect overflow exceptions.
8885         (exp2_test): Likewise.
8886         (expm1_test): Likewise.
8887         (nextafter_test): Likewise.
8888         (pow_test): Likewise.
8889         (scalbn_test): Likewise.
8890         (scalbln_test): Likewise.
8892 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8894         * sysdeps/x86_64/bits/atomic.h
8895         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8896         64bit integer.
8897         (atomic_exchange_acq): Likewise.
8898         (__arch_exchange_and_add_body): Likewise.
8899         (__arch_add_body): Likewise.
8900         (atomic_add_negative): Likewise.
8901         (atomic_add_zero): Likewise.
8903 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8905         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8906         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8908 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8910         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8911         Check __x86_64__ instead of __WORDSIZE.
8913 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8915         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8917 2012-03-19  David S. Miller  <davem@davemloft.net>
8919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8921         * sysdeps/sparc/fpu/fenv_private.h: New file.
8922         * sysdeps/sparc/fpu/math_private.h: Use it.
8923         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8924         Remove.
8925         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8926         (libc_feholdexcept_setroundl): Remove.
8927         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8928         Remove.
8929         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8930         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8932 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8934         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8935         int64_t instead of long int.
8936         (INSERT_WORDS64): Likwise.
8938 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8940         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8941         _Unwind_GetCFA return to _Unwind_Ptr first.
8943 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8945         [BZ #13629]
8946         * math/s_clog.c: Include <float.h>.
8947         (__clog): Scale large or subnormal inputs.
8948         * math/s_clogf.c: Likewise.
8949         * math/s_clogl.c: Likewise.
8950         * math/s_clog10.c: Include <float.h>.
8951         (M_LOG10_2): Define.
8952         (__clog10): Scale large or subnormal inputs.
8953         * math/s_clog10f.c: Likewise.
8954         * math/s_clog10l.c: Likewise.
8955         * math/libm-test.inc (clog_test): Add more tests.
8956         (clog10_test): Likewise.
8957         * sysdeps/i386/fpu/libm-test-ulps: Update.
8958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8960         [BZ #11451]
8961         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8962         x and y.
8963         * math/libm-test.inc (atan2_test): Add another test.
8965         * Makerules (common-objdir-compile): Remove.
8966         * sysdeps/unix/Makefile (config-generated): Do not add
8967         $(unix-generated) to variable.
8968         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8969         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8970         Remove rule.
8971         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8972         Likewise.
8973         [generic bits/local_lim.h] (before-compile): Do not append to
8974         variable.
8975         [generic bits/local_lim.h] (common-generated): Likewise.
8976         [generic sys/param.h] (before-compile): Do not append to variable.
8977         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8978         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8979         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8980         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8981         include.
8982         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8983         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8984         [generic sys/param.h] ($(addprefix
8985         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8986         [generic sys/param.h] (common-generated): Do not append to
8987         variable.
8988         [generic sys/param.h] (sysdep_headers): Likewise.
8989         [generic bits/errno.h] (before-compile): Do not append to
8990         variable.
8991         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8992         rule.
8993         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8994         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8995         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8996         [generic bits/errno.h] (common-generated): Do not append to
8997         variable.
8998         [generic bits/ioctls.h] (before-compile): Do not append to
8999         variable.
9000         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9001         rule.
9002         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9003         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9004         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9005         rule.
9006         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9007         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9008         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9009         [generic bits/ioctls.h] (common-generated): Do not append to
9010         variable.
9011         [generic sys/syscall.h] (syscall.h): Remove variable.
9012         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9013         rule.
9014         [generic sys/syscall.h] (before-compile): Do not append to
9015         variable.
9016         [generic sys/syscall.h] (common-generated): Likewise.
9017         * sysdeps/unix/errnos-tmpl.c: Remove file.
9018         * sysdeps/unix/errnos.awk: Likewise.
9019         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9020         * sysdeps/unix/ioctls.awk: Likewise.
9021         * sysdeps/unix/mk-local_lim.c: Likewise.
9022         * sysdeps/unix/snarf-ioctls: Likewise.
9024 2012-03-19  Richard Henderson  <rth@twiddle.net>
9026         * sysdeps/i386/fpu/fenv_private.h: New file.
9027         * sysdeps/i386/fpu/math_private.h: Use it.
9028         (math_opt_barrier, math_force_eval): Remove.
9029         (libc_feholdexcept_setround_53bit): Remove.
9030         (libc_feupdateenv_53bit): Remove.
9031         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9032         (math_opt_barrier, math_force_eval): Remove.
9033         (libc_feholdexcept): Remove.
9034         (libc_feholdexcept_setround): Remove.
9035         (libc_fetestexcept, libc_fesetenv): Remove.
9036         (libc_feupdateenv_test): Remove.
9037         (libc_feupdateenv, libc_feholdsetround): Remove.
9038         (libc_feresetround): Remove.
9040         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9041         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9043         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9044         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9045         (libc_feupdateenv_testl): New.
9046         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9047         (libc_feupdateenv_testf): New.
9048         (libc_feupdateenv): Use libc_feupdateenv_test.
9049         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9050         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9052         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9053         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9054         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9055         (libc_feresetround_noex): New.
9056         (libc_feresetround_noexf): New.
9057         (libc_feresetround_noexl): New.
9058         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9059         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9060         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9061         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9062         SET_RESTORE_ROUND.
9063         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9064         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9065         (__cos): Likewise.
9066         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9067         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9068         SET_RESTORE_ROUND_NOEX.
9069         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9070         SET_RESTORE_ROUND_NOEXF.
9071         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9072         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9073         (libc_feholdsetroundf): New.
9074         (libc_feresetround, libc_feresetroundf): New.
9076         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9077         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9078         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9080         * sysdeps/generic/math_private.h: Include <fenv.h>.
9081         (default_libc_feholdexcept): New.
9082         (default_libc_feholdexcept_setround): New.
9083         (default_libc_fesetenv, default_libc_feupdateenv): New.
9084         (libc_feholdexcept): Only define if undefined.
9085         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9086         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9087         (libc_feholdexcept_setroundl): Likewise.
9088         (libc_feholdexcept_setround_53bit): Likewise.
9089         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9090         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9091         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9092         (libc_feupdateenv_53bit): Likewise.
9093         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9094         (libc_feholdexcept): Convert from macro to inline function.
9095         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9096         (libc_fesetenv, libc_feupdateenv): Likewise.
9098         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9099         not previously defined.
9100         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9101         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9102         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9103         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9104         * sysdeps/ieee754/flt-32/math_private.h: New file.
9105         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9106         math_private.h below SET_FLOAT_WORD.
9107         (__isnan, __isinf_ns, __finite): Remove.
9108         (__isnanf, __isinf_nsf, __finitef): Remove.
9110 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9112         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9114 2012-03-17  David S. Miller  <davem@davemloft.net>
9116         [BZ #6471]
9117         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9118         for 2.16.
9120 2012-03-16  David S. Miller  <davem@davemloft.net>
9122         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9123         warnings.
9125         [BZ #6471]
9126         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9127         properly.
9128         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9129         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9130         sysdep_routines when subdir is sysvipc.
9131         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9132         __getshmlba helper.
9134         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9136 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9138         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9139         [__LP64__].
9141 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9143         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9144         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9145         (__lround): Renamed to ...
9146         (__llround): This.  Replace long int with long long int.
9147         Define lround functions as aliases of llround functions.
9148         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9150 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9152         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9153         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9154         adresses to uintptr_t.  Replace "long int" and "unsigned long
9155         int" with "greg_t" on va_arg.
9157 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9159         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9160         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9162         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9163         Move e_machine check before EI_CLASS check.  Handle x32
9164         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9165         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9166         SKIP_EM_IA_64 and include
9167         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9169         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9170         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9171         (add_system_dir): New macro.
9173         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9174         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9176 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9178         [BZ #2551]
9179         [BZ #2552]
9180         [BZ #2553]
9181         [BZ #2554]
9182         [BZ #2562]
9183         [BZ #2563]
9184         [BZ #2565]
9185         [BZ #2566]
9186         [BZ #2576]
9187         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9188         (y0): Likewise.
9189         * math/w_j0f.c (j0f): Likewise.
9190         (y0f): Likewise.
9191         * math/w_j0l.c (__j0l): Likewise.
9192         (__y0l): Likewise.
9193         * math/w_j1.c (j1): Likewise.
9194         (y1): Likewise.
9195         * math/w_j1f.c (j1f): Likewise.
9196         (y1f): Likewise.
9197         * math/w_j1l.c (__j1l): Likewise.
9198         (__y1l): Likewise.
9199         * math/w_jn.c (jn): Likewise.
9200         (yn): Likewise.
9201         * math/w_jnf.c (jnf): Likewise.
9202         (ynf): Likewise.
9203         * math/w_jnl.c (__jnl): Likewise.
9204         (__ynl): Likewise.
9205         * math/libm-test.inc (j0_test): Add more tests.
9206         (j1_test): Likewise.
9207         (jn_test): Likewise.  Add trailing semicolon to existing test.
9208         (y0_test): Likewise.
9209         (y1_test): Likewise.
9210         * sysdeps/i386/fpu/libm-test-ulps: Update.
9211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9213         [BZ #13851]
9214         [BZ #13854]
9215         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9216         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9217         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9218         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9219         (__tanl): Set errno for infinite argument.
9220         * sysdeps/i386/fpu/mptan.c: Remove.
9221         * sysdeps/i386/fpu/s_tan.S: Likewise.
9222         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9223         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9224         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9225         * math/libm-test.inc (tan_test): Add more tests and enable more
9226         tests for double and long double.
9227         * sysdeps/i386/fpu/libm-test-ulps: Update.
9228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9230 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9232         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9233         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9235 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9237         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9238         * configure.in: Use it for both main tree and add-ons.
9239         * configure: Regenerated.
9241 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9243         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9245 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9247         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9248         in comment.
9250         [BZ #13851]
9251         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9252         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9253         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9254         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9255         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9256         infinite argument.
9257         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9258         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9259         != 0 for prec == 2.
9260         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9261         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9262         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9263         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9264         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9265         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9266         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9267         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9268         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9269         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9270         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9271         * math/libm-test.inc (cos_test): Add more tests and enable more
9272         tests for long double.
9273         (sin_test): Likewise.
9274         (sincos_test): Likewise.
9275         * sysdeps/i386/fpu/libm-test-ulps: Update.
9276         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9278 2012-03-16  David S. Miller  <davem@davemloft.net>
9280         * sysdeps/sparc/fpu/math_private.h: New file.
9282 2012-03-15  David S. Miller  <davem@davemloft.net>
9284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9285         file.
9286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9288         file.
9289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9290         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9291         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9292         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9293         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9294         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9295         sysdep routines.
9296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9298         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9299         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9301         * sysdeps/sparc/sparc-ifunc.h: New file.
9302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9303         sparc-ifunc.h
9304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9306         Likewise.
9307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9308         Likewise.
9309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9313         Likewise.
9314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9319         Likewise.
9320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9321         Likewise.
9322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9326         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9327         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9328         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9329         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9330         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9331         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9332         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9333         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9334         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9335         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9336         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9337         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9338         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9339         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9340         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9341         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9342         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9343         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9344         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9345         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9347 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9349         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9350         scaling.
9351         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9353 2012-03-15  Andreas Jaeger  <aj@suse.de>
9355         [BZ #13852]
9356         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9357         ieee754/flt-32 implementation for sin, cos and sincos.
9358         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9359         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9360         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9361         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9362         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9363         ieee754/flt-32 implementation for tan.
9365         * math/libm-test.inc (cos_test): Enable some large input tests for
9366         float as well
9367         (sin_test): Likewise.
9368         (sincos_test): Likewise.
9369         (tan_test): Add tests for large input.
9371         * sysdeps/i386/fpu/libm-test-ulps: Update.
9373 2012-03-15  Andreas Jaeger  <aj@suse.de>
9375         [BZ #13658]
9376         * math/libm-test.inc (cos_test): Add more test cases.
9377         (sin_test): Likewise.
9378         (sincos_test): Likewise.
9380 2012-03-15  Andreas Jaeger  <aj@suse.de>
9382         [BZ #13837]
9383         * math/libm-test.inc (cos_test): Add a test case for large input
9384         value.
9385         (sin_test): Likewise.
9386         (sincos_test): Likewise.
9388 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9389         Joseph Myers  <joseph@codesourcery.com>
9391         [BZ #13658]
9392         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9393         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9394         * sysdeps/i386/fpu/branred.c: Likewise.
9395         * sysdeps/i386/fpu/dosincos.c: Likewise.
9396         * sysdeps/i386/fpu/mpa.c: Likewise.
9397         * sysdeps/i386/fpu/s_cos.S: Likewise.
9398         * sysdeps/i386/fpu/s_sin.S: Likewise.
9399         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9400         * sysdeps/i386/fpu/sincos32.c: Likewise.
9402         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9403         Define.
9404         (libc_feupdateenv_53bit): Define.
9405         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9406         Define.
9407         (libc_feupdateenv_53bit): Define.
9409         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9410         53 bit (without extend i386 double precision).
9412         * math/libm-test.inc (sincos_test): Add tests for large input.
9413         (sin): Likewise.
9414         (cos): Likewise.
9416         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9418 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9420         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9422 2012-03-15  David S. Miller  <davem@davemloft.net>
9424         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9425         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9426         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9427         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9428         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9429         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9430         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9431         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9435         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9436         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9437         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9438         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9440         file.
9441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9443         file.
9444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9446         file.
9447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9449         file.
9450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9451         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9452         fmin/fmax sysdep routines.
9453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9455 2012-03-14  David S. Miller  <davem@davemloft.net>
9457         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9458         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9459         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9460         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9461         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9462         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9463         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9464         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9465         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9466         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9467         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9468         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9469         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9470         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9471         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9472         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9473         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9474         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9475         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9476         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9477         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9478         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9479         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9480         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9481         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9482         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9483         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9484         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9485         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9486         routines.
9487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9488         file.
9489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9491         file.
9492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9494         file.
9495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9497         file.
9498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9500         file.
9501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9503         file.
9504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9505         file.
9506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9507         file.
9508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9509         file.
9510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9511         New file.
9512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9513         file.
9514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9515         file.
9516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9518         file.
9519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9521         file.
9522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9524         file.
9525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9527         VIS3 routines.
9529         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9530         New file.
9532         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9534         * sysdeps/sparc/configure.in: New file.
9535         * sysdeps/sparc/configure: Generate.
9536         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9537         * configure: Regenerate.
9538         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9539         * config.make.in (have-as-vis3): New.
9540         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9541         available use -Av9d instead of -Av9a.
9542         * sysdeps/sparc/sparc64/Makefile: Likewise.
9543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9545         New file.
9546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9547         file.
9548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9549         New file.
9550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9551         file.
9552         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9553         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9554         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9555         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9556         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9558         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9559         fzeros/fnegs to load 0x80000000 into a float register instead of
9560         using the stack.
9561         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9563 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9565         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9566         bits/syscall.h.
9567         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9568         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9569         ($(inst_includedir)/bits/syscall.h): Remove rule.
9570         ($(objpfx)bits/syscall.d): Include instead of
9571         $(objpfx)syscall-list.d.
9572         (generated): Change syscall-list.h and syscall-list.d to
9573         bits/syscall.h and bits/syscall.d.
9575 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9577         [BZ #13846]
9578         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9580 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9582         [BZ #13841]
9583         * math/s_csqrt.c: Include <float.h>.
9584         (__csqrt): Scale large or subnormal inputs.
9585         * math/s_csqrtf.c: Likewise.
9586         * math/s_csqrtl.c: Likewise.
9587         * math/libm-test.inc (csqrt_test): Add more tests.
9588         * sysdeps/i386/fpu/libm-test-ulps: Update.
9589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9591         [BZ #13840]
9592         * math/libm-test.inc (hypot_test): Add more tests.
9594 2012-03-13  David S. Miller  <davem@davemloft.net>
9596         [BZ #13840]
9597         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9598         double-precision for the calculation instead of scaling.
9600 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9602         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9603         manipulate bits before adding and subtracting TWO52[sx].
9604         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9605         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9606         Likewise.
9607         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9609 2012-03-13  David S. Miller  <davem@davemloft.net>
9611         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9612         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9613         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9614         rtld-global-offsets.h
9615         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9617         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9618         large parameters.
9620         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9622         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9623         'err' in the ifdef scope in which it is actually used.
9625         * nss/nss_db/db-init.c: Include string.h
9627 2012-03-12  David S. Miller  <davem@davemloft.net>
9629         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9630         masking out of the most significant byte of random value used.
9631         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9632         Fix coding style in previous change.
9634         * sysdeps/unix/sysv/linux/kernel-features.h
9635         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9636         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9637         expression.
9638         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9639         later.
9641 2012-03-11  David S. Miller  <davem@davemloft.net>
9643         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9644         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9645         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9646         for 'resultvar' otherwise things get truncated on 64-bit.
9648         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9649         Fix masking out of the most significant byte of random value used.
9651         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9653 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9655         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9657 2012-03-09  David S. Miller  <davem@davemloft.net>
9659         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9660         variables with appropriate CPP guards.
9661         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9662         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9663         on resulting framesize and the management of the outregs buffer for pltexit.
9664         Preserve floating point return values across _dl_call_pltexit call.
9665         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9666         framesize and the management of the outregs buffer for pltexit.
9667         Preserve floating point return values across _dl_call_pltexit
9668         call.
9669         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9670         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9671         (print_exit): Fix format string for return register value.
9673 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9675         * sunrpc/Makefile (others): Add rpcgen.
9676         ($(objpfx)rpcgen): Remove special build rule and dependency on
9677         libc.
9678         * sunrpc/rpcgen.c: New file.
9680 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9682         [BZ #13673]
9683         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9684         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9685         * sysdeps/i386/crti.S: Likewise.
9686         * sysdeps/i386/crtn.S: Likewise.
9687         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9688         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9689         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9690         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9691         * sysdeps/sh/crti.S: Likewise.
9692         * sysdeps/sh/crtn.S: Likewise.
9693         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9695         [BZ #13673]
9696         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9697         with URL.
9698         * locale/programs/locfile-kw.gperf: Likewise.
9699         * locale/programs/charmap-kw.h: Regenerated.
9700         * locale/programs/locfile-kw.h: Likewise.
9702         [BZ #13673]
9703         * intl/plural.y: Replace FSF snail mail address with URL.
9704         * intl/plural.c: Regenerated.
9706 2012-03-09  Richard Henderson  <rth@twiddle.net>
9708         * include/math_private.h: Remove file.
9709         * math/math_private.h: Move file ...
9710         * sysdeps/generic/math_private.h: ... here.
9712         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9713         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9714         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9716         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9717         and <math_private.h>.
9718         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9719         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9720         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9721         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9722         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9723         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9724         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9725         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9726         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9727         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9728         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9729         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9730         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9731         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9732         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9733         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9734         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9735         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9736         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9737         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9738         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9739         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9740         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9741         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9742         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9743         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9744         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9745         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9746         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9747         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9748         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9749         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9750         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9751         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9752         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9753         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9754         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9755         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9756         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9757         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9758         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9759         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9760         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9761         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9762         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9763         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9764         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9765         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9766         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9767         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9768         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9769         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9770         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9771         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9772         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9773         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9774         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9775         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9776         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9777         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9778         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9779         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9780         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9781         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9782         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9783         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9784         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9785         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9786         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9787         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9788         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9789         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9790         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9791         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9792         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9793         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9794         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9795         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9796         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9797         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9798         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9799         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9800         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9801         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9802         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9803         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9804         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9805         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9806         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9807         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9808         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9809         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9810         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9811         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9812         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9813         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9814         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9815         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9816         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9817         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9818         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9819         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9820         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9821         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9822         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9823         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9824         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9825         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9826         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9827         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9828         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9829         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9830         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9831         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9832         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9833         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9834         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9835         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9836         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9837         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9838         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9839         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9840         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9841         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9842         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9843         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9844         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9845         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9846         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9847         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9848         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9849         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9850         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9851         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9852         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9853         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9854         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9855         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9856         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9857         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9858         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9859         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9860         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9861         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9862         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9863         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9864         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9865         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9866         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9867         * sysdeps/ieee754/k_standard.c: Likewise.
9868         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9869         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9870         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9871         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9872         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9873         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9874         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9875         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9876         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9877         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9878         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9879         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9880         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9881         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9882         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9883         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9884         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9885         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9886         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9887         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9888         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9889         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9890         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9891         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9892         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9893         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9894         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9895         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9896         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9897         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9898         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9899         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9900         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9901         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9902         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9903         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9904         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9905         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9906         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9907         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9908         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9909         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9910         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9911         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9912         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9913         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9914         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9915         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9916         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9917         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9918         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9919         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9920         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9921         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9922         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9923         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9924         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9925         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9926         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9927         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9928         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9929         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9930         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9931         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9932         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9933         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9934         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9935         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9936         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9937         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9938         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9939         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9940         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9941         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9942         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9943         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9944         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9945         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9946         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9947         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9948         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9949         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9950         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9951         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9952         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9953         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9954         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9955         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9956         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9957         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9958         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9959         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9960         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9961         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9962         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9963         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9964         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9965         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9966         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9967         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9968         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9969         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9970         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9971         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9972         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9973         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9974         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9975         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9976         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9977         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9978         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9979         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9980         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9981         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9982         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9983         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9984         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9985         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9986         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9987         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9988         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9989         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9990         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9991         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9992         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9993         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9994         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9995         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9996         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9997         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9998         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9999         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10000         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10001         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10002         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10003         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10004         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10005         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10006         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10007         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10008         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10009         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10010         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10011         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10012         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10013         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10014         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10015         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10016         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10017         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10018         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10019         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10020         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10021         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10022         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10023         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10024         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10025         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10026         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10027         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10028         * sysdeps/ieee754/s_lib_version.c: Likewise.
10029         * sysdeps/ieee754/s_matherr.c: Likewise.
10030         * sysdeps/ieee754/s_signgam.c: Likewise.
10031         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10032         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10033         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10034         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10035         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10036         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10037         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10038         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10039         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10040         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10041         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10042         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10043         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10044         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10045         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10046         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10047         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10048         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10049         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10050         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10051         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10053 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10055         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10056         * sunrpc/rpc_main.c: Likewise.
10057         * sunrpc/rpc_svcout.c: Likewise.
10059 2012-03-09  David S. Miller  <davem@davemloft.net>
10061         * include/math_private.h: New file.
10063 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10065         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10066         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10067         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10068         from <bits/socket_type.h>.
10069         (enum __socket_type): Don't define here.
10070         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10071         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10072         bits/socket_type.h.
10074         [BZ #13566]
10075         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10076         checking __USE_GNU.
10078         * Makerules ($(inst_includedir)/%.h): New rule.
10079         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10080         (install-others): Remove variable setting.
10081         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10083 2012-03-08  Richard Henderson  <rth@twiddle.net>
10085         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10086         from macro to inline function; merge with the
10087         !__LIBC_INTERNAL_MATH_INLINES version.
10088         (__ieee754_sqrtf): Likewise.
10090         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10091         to inline function.
10092         (__rintf, __floor, __floorf): Likewise.
10094         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10095         macro to inline function.
10096         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10098         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10099         not <math/math_private.h>.
10101 2012-03-08  David S. Miller  <davem@davemloft.net>
10103         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10104         copyright year.
10105         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10107 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10109         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10110         normalization.
10111         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10112         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10114 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10116         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10117         be defined individually, they must be defined as a block.  Define
10118         S for printing a string instead of hidint the different by using a
10119         macro for adding the 'l'.
10120         * stdio-common/tst-fphex-wide.c: Adjust.
10122 2012-03-07  Marek Polacek  <polacek@redhat.com>
10124         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10126 2012-03-08  Marek Polacek  <polacek@redhat.com>
10128         [BZ #13806]
10129         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10130         * stdio-common/tst-fphex.c: Define a few macros to make the
10131         test reusable.  Use them.
10132         * stdio-common/tst-fphex-wide.c: New file.
10134 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10136         [BZ #6911]
10137         * manual/macros.texi (gnusystems): New macro.
10138         (nongnusystems): Likewise.
10139         (gnulinuxhurdsystems): Likewise.
10140         (gnuhurdsystems): Likewise..
10141         (gnulinuxsystems): Likewise.
10142         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10143         variants of the GNU system, not "GNU system".
10144         * manual/conf.texi: Likewise.
10145         * manual/errno.texi: Likewise.  Update example of errno macro
10146         expansion.
10147         * manual/filesys.texi: Likewise.
10148         (getumask): Document as specific to GNU/Hurd.
10149         * manual/install.texi: Likewise.  Reword some references to
10150         GNU/Linux.
10151         * manual/intro.texi: Likewise.
10152         * manual/io.texi: Likewise.
10153         (File Name Portability): Detail which constraints are inapplicable
10154         to all GNU systems and which are only inapplicable to GNU/Hurd.
10155         * manual/job.texi: Likewise.
10156         * manual/llio.texi: Likewise.
10157         (O_NOCTTY): Document as present on GNU/Linux.
10158         * manual/maint.texi: Likewise.
10159         * manual/memory.texi: Likewise.
10160         * manual/pattern.texi: Likewise.
10161         * manual/pipe.texi: Likewise.
10162         * manual/process.texi: Likewise.
10163         * manual/resource.texi: Likewise.
10164         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10165         child on GNU/Hurd.
10166         * manual/setjmp.texi: Likewise.
10167         * manual/signal.texi: Likewise.
10168         * manual/startup.texi: Likewise.
10169         * manual/stdio.texi: Likewise.
10170         * manual/terminal.texi: Likewise.
10171         (ONLCR): Document as POSIX.
10172         (OXTABS): Document availability on GNU/Linux as XTABS.
10173         (ONOEOT): Document availability separately from other bits.
10174         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10175         * manual/time.texi: Likewise.
10176         * manual/users.texi: Likewise.
10177         * INSTALL: Regenerated.
10178         * sysdeps/gnu/errlist.c: Regenerated.
10180         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10181         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10182         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10183         puts.
10184         * configure: Regenerated.
10186 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10188         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10189         default includes instead of AC_HEADER_CHECK.
10190         * sysdeps/i386/configure: Regenerated.
10192         [BZ #10716]
10193         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10194         * math/s_cacoshf.c (__cacoshf): Likewise.
10195         * math/s_cacoshl.c (__cacoshl): Likewise.
10196         * math/s_casinh.c (__casinh): Set signs of result from argument.
10197         * math/s_casinhf.c (__casinhf): Likewise.
10198         * math/s_casinhl.c (__casinhl): Likewise.
10199         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10200         (casinh_test): Add more tests.
10201         * sysdeps/i386/fpu/libm-test-ulps: Update.
10202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10204 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10206         * po/zh_TW.po: Update from translation team.
10208         * login/Makefile (distribute): Remove variable.
10209         * catgets/Makefile: Likewise.
10210         * mach/Makefile: Likewise.
10211         * malloc/Makefile: Likewise.
10212         * misc/Makefile: Likewise.
10213         * iconv/Makefile: Likewise.
10214         * nscd/Makefile: Likewise.
10215         * hurd/Makefile: Likewise.
10216         * manual/Makefile: Likewise.
10217         * locale/Makefile: Likewise.
10218         * intl/Makefile: Likewise.
10219         * conform/Makefile: Likewise.
10220         * nss/Makefile: Likewise.
10221         * time/Makefile: Likewise.
10222         * soft-fp/Makefile: Likewise.
10223         * dirent/Makefile: Likewise.
10224         * gmon/Makefile: Likewise.
10225         * po/Makefile: Likewise.
10226         * rt/Makefile: Likewise.
10227         * socket/Makefile: Likewise.
10228         * math/Makefile: Likewise.
10229         * signal/Makefile: Likewise.
10230         * debug/Makefile: Likewise.
10231         * elf/Makefile: Likewise.
10232         * timezone/Makefile: Likewise.
10233         * stdlib/Makefile: Likewise.
10234         * iconvdata/Makefile: Likewise.
10235         * sunrpc/Makefile: Likewise.
10236         * io/Makefile: Likewise.
10237         * argp/Makefile: Likewise.
10238         * inet/Makefile: Likewise.
10239         * hesiod/Makefile: Likewise.
10240         * grp/Makefile: Likewise.
10241         * csu/Makefile: Likewise.
10242         * wctype/Makefile: Likewise.
10243         * crypt/Makefile: Likewise.
10244         * libio/Makefile: Likewise.
10245         * string/Makefile: Likewise.
10246         * nis/Makefile: Likewise.
10247         * resolv/Makefile: Likewise.
10248         * stdio-common/Makefile: Likewise.
10249         * wcsmbs/Makefile: Likewise.
10250         * dlfcn/Makefile: Likewise.
10251         * posix/Makefile: Likewise.
10253         [BZ #6959]
10254         * timezone/Makefile: Don't install timezone files, just the programs
10255         and scripts.
10257 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10259         * nss/databases.def: Add missing gshadow entry.
10261         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10263 2012-03-06  Marek Polacek  <polacek@redhat.com>
10265         [BZ #13726]
10266         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10267         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10268         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10269         * stdio-common/tst-long-dbl-fphex.c: New file.
10271 2012-03-06  David S. Miller  <davem@davemloft.net>
10273         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10274         (set_obp_int): New function.
10275         (get_obp_int): New function.
10276         (__get_clockfreq_via_dev_openprom): Likewise.
10277         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10278         Avoid unused variable warnings on 'val' and use builtin_expect.
10279         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10280         __builtin_expect.
10281         (INLINE_CLONE_SYSCALL): Likewise.
10283 2012-03-05  David S. Miller  <davem@davemloft.net>
10285         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10287 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10289         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10291         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10292         only for |x| >= 40.
10293         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10295 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10297         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10298         Replace gettimeofday with __vdso_gettimeofday.
10300         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10301         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10302         __vdso_clock_gettime and __vdso_getcpu.
10304         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10305         time with __vdso_time.
10307 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10309         * manual/lang.texi (size_t): Note types to which size_t may be
10310         equivalent with the GNU C Library, but do not describe when
10311         differences between them are significant.
10313 2012-03-05  Andreas Jaeger  <aj@suse.de>
10315         * sysdeps/i386/fpu/libm-test-ulps: Update.
10317 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10319         [BZ #3976]
10320         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10321         (__ieee754_pow): Save and restore rounding mode and use
10322         round-to-nearest for main computations.
10323         * math/libm-test.inc (pow_test_tonearest): New function.
10324         (pow_test_towardzero): Likewise.
10325         (pow_test_downward): Likewise.
10326         (pow_test_upward): Likewise.
10327         (main): Call the new functions.
10328         * sysdeps/i386/fpu/libm-test-ulps: Update.
10329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10331         [BZ #3976]
10332         * math/libm-test.inc (cosh_test_tonearest): New function.
10333         (cosh_test_towardzero): Likewise.
10334         (cosh_test_downward): Likewise.
10335         (cosh_test_upward): Likewise.
10336         (sinh_test_tonearest): Likewise.
10337         (sinh_test_towardzero): Likewise.
10338         (sinh_test_downward): Likewise.
10339         (sinh_test_upward): Likewise.
10340         (main): Call the new functions.
10341         * sysdeps/i386/fpu/libm-test-ulps: Update.
10342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10344 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10346         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10347         default stack guard is set in last bytes.
10348         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10350 2012-03-05  Kees Cook  <keescook@chromium.org>
10352         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10354         [BZ #13656]
10355         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10356         possibly allocate from heap instead of stack.
10357         * stdio-common/bug-vfprintf-nargs.c: New file.
10358         * stdio-common/Makefile (tests): Add nargs overflow test.
10360 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10362         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10364 2012-03-03  Marek Polacek  <polacek@redhat.com>
10366         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10367         * math/math_private.h: Likewise.
10368         * stdlib/tst-strtod.c: Likewise.
10369         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10370         * sysdeps/x86_64/bits/atomic.h: Likewise.
10372 2012-03-02  David S. Miller  <davem@davemloft.net>
10374         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10375         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10376         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10377         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10378         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10379         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10380         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10381         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10383 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10385         [BZ #13792]
10386         * manual/examples/README: New file, says the example source files
10387         can be used under GPL>=2.
10388         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10389         line containing just "*/".
10390         * manual/examples/add.c: Add copyright header (GPL>=2).
10391         * manual/examples/argp-ex1.c: Likewise.
10392         * manual/examples/argp-ex2.c: Likewise.
10393         * manual/examples/argp-ex3.c: Likewise.
10394         * manual/examples/argp-ex4.c: Likewise.
10395         * manual/examples/atexit.c: Likewise.
10396         * manual/examples/db.c: Likewise.
10397         * manual/examples/dir.c: Likewise.
10398         * manual/examples/dir2.c: Likewise.
10399         * manual/examples/execinfo.c: Likewise.
10400         * manual/examples/filecli.c: Likewise.
10401         * manual/examples/filesrv.c: Likewise.
10402         * manual/examples/fmtmsgexpl.c: Likewise.
10403         * manual/examples/genpass.c: Likewise.
10404         * manual/examples/inetcli.c: Likewise.
10405         * manual/examples/inetsrv.c: Likewise.
10406         * manual/examples/isockad.c: Likewise.
10407         * manual/examples/longopt.c: Likewise.
10408         * manual/examples/memopen.c: Likewise.
10409         * manual/examples/memstrm.c: Likewise.
10410         * manual/examples/mkfsock.c: Likewise.
10411         * manual/examples/mkisock.c: Likewise.
10412         * manual/examples/mygetpass.c: Likewise.
10413         * manual/examples/pipe.c: Likewise.
10414         * manual/examples/popen.c: Likewise.
10415         * manual/examples/rprintf.c: Likewise.
10416         * manual/examples/search.c: Likewise.
10417         * manual/examples/select.c: Likewise.
10418         * manual/examples/setjmp.c: Likewise.
10419         * manual/examples/sigh1.c: Likewise.
10420         * manual/examples/sigusr.c: Likewise.
10421         * manual/examples/stpcpy.c: Likewise.
10422         * manual/examples/strdupa.c: Likewise.
10423         * manual/examples/strftim.c: Likewise.
10424         * manual/examples/strncat.c: Likewise.
10425         * manual/examples/subopt.c: Likewise.
10426         * manual/examples/swapcontext.c: Likewise.
10427         * manual/examples/termios.c: Likewise.
10428         * manual/examples/testopt.c: Likewise.
10429         * manual/examples/testpass.c: Likewise.
10430         * manual/examples/timeval_subtract.c: Likewise.
10432         [BZ #13792]
10433         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10434         function to ...
10435         * manual/timeval_subtract.c.texi: ... here, new file.
10437 2012-03-02  David S. Miller  <davem@davemloft.net>
10439         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10441 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10443         [BZ #3976]
10444         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10445         (__sin): Save and restore rounding mode and use round-to-nearest
10446         for all computations.
10447         (__cos): Save and restore rounding mode and use round-to-nearest
10448         for all computations.
10449         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10450         <fenv.h>.
10451         (tan): Save and restore rounding mode and use round-to-nearest for
10452         all computations.
10453         * math/libm-test.inc (cos_test_tonearest): New function.
10454         (cos_test_towardzero): Likewise.
10455         (cos_test_downward): Likewise.
10456         (cos_test_upward): Likewise.
10457         (sin_test_tonearest): Likewise.
10458         (sin_test_towardzero): Likewise.
10459         (sin_test_downward): Likewise.
10460         (sin_test_upward): Likewise.
10461         (tan_test_tonearest): Likewise.
10462         (tan_test_towardzero): Likewise.
10463         (tan_test_downward): Likewise.
10464         (tan_test_upward): Likewise.
10465         (main): Call the new functions.
10466         * sysdeps/i386/fpu/libm-test-ulps: Update.
10467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10469         [BZ #10135]
10470         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10471         small n, then large n, before computing and testing k+n.
10472         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10473         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10474         Likewise.
10475         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10476         Likewise.
10477         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10478         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10479         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10480         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10481         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10482         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10483         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10484         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10485         * math/libm-test.inc (scalbn_test): Add more tests.
10486         (scalbln_test): Likewise.
10488         * manual/filesys.texi (mode_t): Describe constraints on size and
10489         signedness, not exact equivalence to a particular type.
10490         (ino_t): Likewise.
10491         (ino64_t): Likewise.
10492         (dev_t): Likewise.
10493         (nlink_t): Likewise.
10494         (blkcnt_t): Likewise.
10495         (blkcnt64_t): Likewise.
10496         * manual/llio.texi (off_t): Likewise.
10498         [BZ #3976]
10499         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10500         (__ieee754_exp): Save and restore rounding mode and use
10501         round-to-nearest for all computations.
10502         * math/libm-test.inc (exp_test_tonearest): New function.
10503         (exp_test_towardzero): Likewise.
10504         (exp_test_downward): Likewise.
10505         (exp_test_upward): Likewise.
10506         (main): Call the new functions.
10507         * sysdeps/i386/fpu/libm-test-ulps: Update.
10508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10510 2012-03-01  Chris Demetriou  <cgd@google.com>
10512         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10513         have predictable order.
10515 2012-03-01  David S. Miller  <davem@davemloft.net>
10517         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10519         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10520         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10521         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10522         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10524         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10525         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10526         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10527         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10528         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10529         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10530         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10531         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10532         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10534         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10536         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10537         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10538         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10540         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10541         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10542         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10543         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10544         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10545         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10546         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10547         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10548         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10549         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10550         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10551         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10552         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10553         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10554         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10555         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10556         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10557         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10558         * sysdeps/sparc/elf/configure: Regenerated.
10560 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10562         * configure.in (AS, LD): Require binutils 2.20 or later.
10563         * configure: Regenerated.
10564         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10565         as required minimum version.
10566         * INSTALL: Regenerated.
10568         [BZ #2541]
10569         [BZ #4108]
10570         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10571         before squaring exponent.
10572         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10573         bottom long double and 27 bits of top long double before squaring
10574         exponent.
10575         * math/libm-test.inc (erfc_test): Add more tests.
10576         * sysdeps/i386/fpu/libm-test-ulps: Update.
10577         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10580 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10582         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10583         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10584         containing bit-fields.
10585         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10586         * soft-fp/single.h (_FP_UNION_S): Likewise.
10587         * soft-fp/double.h (_FP_UNION_D): Likewise.
10589 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10591         [BZ #13786]
10592         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10593         not include ../strcmp.S.
10594         [USE_AS_STRNCASECMP_L]: Likewise.
10595         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10596         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10597         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10598         (__strncasecmp_l_ia32): Define as alias to
10599         __strncasecmp_l_nonascii.
10601         [BZ #5794]
10602         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10603         * sysdeps/i386/fpu/libm-test-ulps: Update.
10604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10606         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10609 2012-02-29  Jeff Law  <law@redhat.com>
10611         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10612         out of bounds read.
10614 2012-02-29  Marek Polacek  <polacek@redhat.com>
10616         [BZ #13706]
10617         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10618         * elf/Makefile: Add rules to run tst-unused-dep.out.
10620 2012-02-28  David S. Miller  <davem@davemloft.net>
10622         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10623         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10624         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10625         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10626         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10627         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10629 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10631         * math/libm-test.inc (llround_test): Move one test from
10632         lround_test.  Use TEST_f_L in moved test.
10633         (lround_test): Move misplaced test to llround_test.  Add testcase
10634         from bug 2561.
10636 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10638         * sysdeps/x86_64/fpu/e_expf.S: New file.
10639         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10641 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10643         [BZ #13637]
10644         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10645         of remain_len that may cause incomplete multi-byte character and
10646         false match.
10647         * posix/bug-regex33.c: New file.
10648         * posix/Makefile (tests): Add bug-regex33.
10650 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10652         * manual/macros.texi: New file.
10653         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10654         * manual/libc.texinfo: Include macros.texi.
10655         * manual/creatute.texi: Likewise.
10656         * manual/install.texi: Likewise.
10657         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10658         @glibcadj{} in references to the GNU C Library.
10659         * manual/charset.texi: Likewise.
10660         * manual/conf.texi: Likewise.
10661         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10662         when not using those macros.
10663         * manual/creature.texi: Likewise.
10664         * manual/crypt.texi: Likewise.
10665         * manual/errno.texi: Likewise.
10666         * manual/filesys.texi: Likewise.
10667         * manual/header.texi: Likewise.
10668         * manual/install.texi: Likewise.
10669         * manual/intro.texi: Likewise.
10670         * manual/io.texi: Likewise.
10671         * manual/job.texi: Likewise.
10672         * manual/lang.texi: Likewise.
10673         * manual/libc.texiinfo: Likewise.
10674         * manual/llio.texi: Likewise.
10675         * manual/locale.texi: Likewise.
10676         * manual/maint.texi: Likewise.
10677         * manual/math.texi: Likewise.
10678         * manual/memory.texi: Likewise.
10679         * manual/message.texi: Likewise.
10680         * manual/nss.texi: Likewise.
10681         * manual/pattern.texi: Likewise.
10682         * manual/process.texi: Likewise.
10683         * manual/resource.texi: Likewise.
10684         * manual/search.texi: Likewise.
10685         * manual/setjmp.texi: Likewise.
10686         * manual/signal.texi: Likewise.
10687         * manual/socket.texi: Likewise.
10688         * manual/startup.texi: Likewise.
10689         * manual/stdio.texi: Likewise.
10690         * manual/string.texi: Likewise.
10691         * manual/sysinfo.texi: Likewise.
10692         * manual/syslog.texi: Likewise.
10693         * manual/terminal.texi: Likewise.
10694         * manual/time.texi: Likewise.
10695         * manual/users.texi: Likewise.
10696         * INSTALL: Regenerated.
10697         * NOTES: Regenerated.
10698         * sysdeps/gnu/errlist.c: Regenerated.
10700 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10702         * include/dirent.h: Include <dirstream.h> before
10703         <dirent/dirent.h>.
10705 2012-02-28  David S. Miller  <davem@davemloft.net>
10707         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10708         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10709         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10710         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10712 2012-02-27  David S. Miller  <davem@davemloft.net>
10714         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10715         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10716         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10717         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10719         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10720         frame pointer instead of stack pointer relative arg slot.
10721         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10722         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10723         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10725 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10727         [BZ #3992]
10728         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10730 2012-02-27  David S. Miller  <davem@davemloft.net>
10732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10736         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10737         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10738         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10739         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10741 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10743         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10744         later.  Allow versions 5-9.
10745         * configure: Regenerated.
10746         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10747         required minimum version and 4.6 as recommended version.  Do not
10748         mention bugs in GCC 2.7 and 2.8.
10749         * INSTALL: Regenerated.
10751 2012-02-27  David S. Miller  <davem@davemloft.net>
10753         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10755         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10756         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10757         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10758         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10759         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10760         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10762         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10763         manipulate bits before adding and subtracting TWO112[sx].
10764         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10766 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10768         [BZ #13775]
10769         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10770         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10771         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10772         being in POSIX, because they are in 1003.1-2008.
10774         * rt/tst-aio.c: Include <fcntl.h>.
10775         * rt/tst-aio7.c: Likewise.
10776         * rt/tst-aio64.c: Likewise.
10778         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10780 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10782         * manual/install.texi (--with-headers): Describe headers as
10783         interface headers, not private headers.
10784         (Specific advice for GNU/Linux systems): Describe use of headers
10785         from "make headers_install", not private headers from older
10786         kernels.
10787         * INSTALL: Regenerated.
10788         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10789         Change to 2.6.19.
10790         * sysdeps/unix/sysv/linux/configure: Regenerated.
10792         * manual/llio.texi (fclean): Remove documentation.
10794         * manual/Makefile (libc-texi-generated): New variable.  Include
10795         version.texi.
10796         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10797         $(libc-texi-generated), not duplicated list of files.
10798         (version.texi, stamp-version): New rules.
10799         (realclean): Remove $(libc-texi-generated), not individual files
10800         from that list.  Do not remove dir-add.texinfo.
10801         * manual/libc.texinfo: Comment out uses of edition numbers and
10802         references to printed manual.  Remove last-updated dates.
10803         (EDITION): Comment out.
10804         (ISBN): Likewise.
10805         (VERSION, UPDATED): Remove.
10806         (version.texi): Include.
10808 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10810         * sysdeps/posix/spawni.c: Include <signal.h>.
10811         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10812         * sysdeps/pthread/aio_fsync.c: Likewise.
10814 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10816         * conform/Makefile (tests): Run only when not cross-compiling and
10817         when fast-check is not defined.
10819         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10820         * conform/data/limits.h-data: Fixes for POSIX2008.
10821         * conform/run-conformtest.sh: Run all tests.
10822         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10823         headers.
10824         * include/bits/dlfcn.h: Likewise.
10825         * include/langinfo.h: Likewise.
10826         * include/monetary.h: Likewise.
10827         * include/sys/poll.h: Likewise.
10829         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10830         for __USE_GNU.
10831         * posix/spawn.h: Define __need_sigset_t.
10832         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10833         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10834         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10835         to get sigevent_t only.
10836         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10837         only for __USE_GNU.
10838         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10839         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10840         process_vm_writev only for __USE_GNU.
10841         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10843         * conform/Makefile: For now ignore errors from run-conformtest.
10844         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10845         POSIX to avoid namespace pollution.  Don't prepend headers.
10846         * conform/data/aio.h-data: Fixes for POSIX testing.
10847         * conform/data/fcntl.h-data: Likewise.
10848         * conform/data/glob.h-data: Likewise.
10849         * conform/data/grp.h-data: Likewise.
10850         * conform/data/pthread.h-data: Likewise.
10851         * conform/data/pwd.h-data: Likewise.
10852         * conform/data/signal.h-data: Likewise.
10853         * conform/data/spawn.h-data: Likewise.
10854         * conform/data/stdio.h-data: Likewise.
10855         * conform/data/stdlib.h-data: Likewise.
10856         * conform/data/stropts.h-data: Likewise.
10857         * conform/data/sys/mman.h-data: Likewise.
10858         * conform/data/sys/stat.h-data: Likewise.
10859         * conform/data/sys/types.h-data: Likewise.
10860         * conform/data/sys/wait.h-data: Likewise.
10861         * conform/data/time.h-data: Likewise.
10862         * conform/data/unistd.h-data: Likewise.
10863         * conform/data/utime.h-data: Likewise.
10865         * io/sys/stat.h: fchmod was always in POSIX.
10866         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10867         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10868         * rt/aio.h: Define __need_timespec before including <time.h>.
10869         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10870         struct.  Add forward declaration of pthread_attr_t and use it in
10871         sigevent.
10872         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10873         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10874         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10875         always remove CLK_TCK definition.
10877 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10879         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10881 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10883         * conform/run-conformtest.sh: New file.
10884         * conform/Makefile: Run run-conformtest for tests.
10885         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10886         support.
10888         * conform/data/uchar.h-data: New file.
10889         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10890         * conform/data/arpa/inet.h-data: Likewise.
10891         * conform/data/assert.h-data: Likewise.
10892         * conform/data/complex.h-data: Likewise.
10893         * conform/data/cpio.h-data: Likewise.
10894         * conform/data/ctype.h-data: Likewise.
10895         * conform/data/dirent.h-data: Likewise.
10896         * conform/data/dlfcn.h-data: Likewise.
10897         * conform/data/errno.h-data: Likewise.
10898         * conform/data/fcntl.h-data: Likewise.
10899         * conform/data/float.h-data: Likewise.
10900         * conform/data/fmtmsg.h-data: Likewise.
10901         * conform/data/fnmatch.h-data: Likewise.
10902         * conform/data/ftw.h-data: Likewise.
10903         * conform/data/glob.h-data: Likewise.
10904         * conform/data/grp.h-data: Likewise.
10905         * conform/data/iconv.h-data: Likewise.
10906         * conform/data/inttypes.h-data: Likewise.
10907         * conform/data/langinfo.h-data: Likewise.
10908         * conform/data/libgen.h-data: Likewise.
10909         * conform/data/limits.h-data: Likewise.
10910         * conform/data/locale.h-data: Likewise.
10911         * conform/data/math.h-data: Likewise.
10912         * conform/data/monetary.h-data: Likewise.
10913         * conform/data/mqueue.h-data: Likewise.
10914         * conform/data/ndbm.h-data: Likewise.
10915         * conform/data/net/if.h-data: Likewise.
10916         * conform/data/netdb.h-data: Likewise.
10917         * conform/data/netinet/in.h-data: Likewise.
10918         * conform/data/nl_types.h-data: Likewise.
10919         * conform/data/poll.h-data: Likewise.
10920         * conform/data/pthread.h-data: Likewise.
10921         * conform/data/pwd.h-data: Likewise.
10922         * conform/data/regex.h-data: Likewise.
10923         * conform/data/sched.h-data: Likewise.
10924         * conform/data/search.h-data: Likewise.
10925         * conform/data/semaphore.h-data: Likewise.
10926         * conform/data/setjmp.h-data: Likewise.
10927         * conform/data/signal.h-data: Likewise.
10928         * conform/data/spawn.h-data: Likewise.
10929         * conform/data/stdarg.h-data: Likewise.
10930         * conform/data/stdio.h-data: Likewise.
10931         * conform/data/stdlib.h-data: Likewise.
10932         * conform/data/string.h-data: Likewise.
10933         * conform/data/strings.h-data: Likewise.
10934         * conform/data/stropts.h-data: Likewise.
10935         * conform/data/sys/ipc.h-data: Likewise.
10936         * conform/data/sys/mman.h-data: Likewise.
10937         * conform/data/sys/msg.h-data: Likewise.
10938         * conform/data/sys/resource.h-data: Likewise.
10939         * conform/data/sys/select.h-data: Likewise.
10940         * conform/data/sys/sem.h-data: Likewise.
10941         * conform/data/sys/shm.h-data: Likewise.
10942         * conform/data/sys/socket.h-data: Likewise.
10943         * conform/data/sys/stat.h-data: Likewise.
10944         * conform/data/sys/statvfs.h-data: Likewise.
10945         * conform/data/sys/time.h-data: Likewise.
10946         * conform/data/sys/timeb.h-data: Likewise.
10947         * conform/data/sys/times.h-data: Likewise.
10948         * conform/data/sys/types.h-data: Likewise.
10949         * conform/data/sys/uio.h-data: Likewise.
10950         * conform/data/sys/un.h-data: Likewise.
10951         * conform/data/sys/utsname.h-data: Likewise.
10952         * conform/data/sys/wait.h-data: Likewise.
10953         * conform/data/syslog.h-data: Likewise.
10954         * conform/data/tar.h-data: Likewise.
10955         * conform/data/termios.h-data: Likewise.
10956         * conform/data/utime.h-data: Likewise.
10957         * conform/data/utmpx.h-data: Likewise.
10958         * conform/data/varargs.h-data: Likewise.
10959         * conform/data/wchar.h-data: Likewise.
10960         * conform/data/wctype.h-data: Likewise.
10961         * conform/data/wordexp.h-data: Likewise.
10963         * include/stropts.h: New file.
10964         * include/uchar.h: New file.
10965         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10966         * include/assert.h: Likewise.
10967         * include/ctype.h: Likewise.
10968         * include/dirent.h: Likewise.
10969         * include/dlfcn.h: Likewise.
10970         * include/fcntl.h: Likewise.
10971         * include/fnmatch.h: Likewise.
10972         * include/glob.h: Likewise.
10973         * include/grp.h: Likewise.
10974         * include/libio.h: Likewise.
10975         * include/locale.h: Likewise.
10976         * include/math.h: Likewise.
10977         * include/net/if.h: Likewise.
10978         * include/netdb.h: Likewise.
10979         * include/netinet/in.h: Likewise.
10980         * include/pthread.h: Likewise.
10981         * include/pwd.h: Likewise.
10982         * include/regex.h: Likewise.
10983         * include/sched.h: Likewise.
10984         * include/search.h: Likewise.
10985         * include/setjmp.h: Likewise.
10986         * include/signal.h: Likewise.
10987         * include/stdio.h: Likewise.
10988         * include/stdlib.h: Likewise.
10989         * include/string.h: Likewise.
10990         * include/sys/cdefs.h: Likewise.
10991         * include/sys/mman.h: Likewise.
10992         * include/sys/msg.h: Likewise.
10993         * include/sys/resource.h: Likewise.
10994         * include/sys/select.h: Likewise.
10995         * include/sys/socket.h: Likewise.
10996         * include/sys/stat.h: Likewise.
10997         * include/sys/statvfs.h: Likewise.
10998         * include/sys/time.h: Likewise.
10999         * include/sys/times.h: Likewise.
11000         * include/sys/uio.h: Likewise.
11001         * include/sys/utsname.h: Likewise.
11002         * include/sys/wait.h: Likewise.
11003         * include/termios.h: Likewise.
11004         * include/time.h: Likewise.
11005         * include/ulimit.h: Likewise.
11006         * include/unistd.h: Likewise.
11007         * include/utime.h: Likewise.
11008         * include/wchar.h: Likewise.
11009         * include/wctype.h: Likewise.
11010         * include/wordexp.h: Likewise.
11012         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11014         * time/time.h: TIME_UTC must be a macro.
11015         Make timespec_get available for ISO C11 only as well.
11017 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11019         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11020         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11022 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11024         * configure.in: Use -o not -a in test for unsupported multi-arch.
11026 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11028         * manual/texinfo.tex: Update to version 2012-01-19.16.
11030 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11032         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11034 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11036         [BZ #13738]
11037         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11038         * manual/fdl-1.3.texi: New file.
11039         * manual/fdl-1.1.texi: File removed.
11041         [BZ #13738]
11042         * manual/libc.texinfo (FDL_VERSION): New @set.
11043         Use it for mention of FDL in cover text.
11044         (Documentation License): Use it in @include file name.
11046 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11047             Roland McGrath  <roland@hack.frob.com>
11049         [BZ #5461]
11050         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11051         not LONG_LONG_MAX and LONG_LONG_MIN.
11052         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11053         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11054         name.
11055         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11057 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11059         [BZ #2547]
11060         [BZ #11365]
11061         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11062         manipulate bits before adding and subtracting TWO23[sx].
11063         * math/libm-test.inc (nearbyint_test): Add more tests.
11065 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11067         [BZ #2548]
11068         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11069         bits before adding and subtracting TWO23[sx].
11070         * math/libm-test.inc (rint_test): Add more tests.
11071         (rint_test_tonearest): Likewise.
11072         (rint_test_towardzero): Likewise.
11073         (rint_test_downward): Likewise.
11074         (rint_test_upward: Likewise.
11076 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11078         [BZ #10110]
11079         * include/stdc-predef.h: New file.  Extracted from features.h.
11080         * include/features.h: Include stdc-predef.h.
11081         * Makefile (headers): Add stdc-predef.h.
11082         * CONFORMANCE (Compiler limitations): Update.
11084 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11086         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11088 2012-02-21  David S. Miller  <davem@davemloft.net>
11090         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11091         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11093 2012-02-20  David S. Miller  <davem@davemloft.net>
11095         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11096         using a normal save/restore sequence, rather than allocating a
11097         dummy stack frame just to store a frame pointer and restore.
11098         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11100 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11102         * manual/install.texi: Fix stray word in line-wrapped comment.
11104 2012-02-20  David S. Miller  <davem@davemloft.net>
11106         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11107         both binutils and gcc support GOTDATA.
11109         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11110         "rd %pc" in the PIC register setup sequences.
11112         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11113         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11114         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11115         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11116         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11117         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11118         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11119         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11120         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11121         (SYSCALL_ERROR_HANDLER): Likewise.
11122         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11123         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11124         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11125         (SYSCALL_ERROR_HANDLER): Likewise.
11127         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11128         (HAVE_GCC_GOTDATA): New.
11129         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11130         relocation support in both binutils and gcc.
11131         * sysdeps/sparc/elf/configure: Regenerate.
11133         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11134         * sysdeps/sparc/sparc32/elf/configure: Delete.
11135         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11136         * sysdeps/sparc/sparc64/elf/configure: Delete.
11137         * sysdeps/sparc/elf/configure.in: New file.
11138         * sysdeps/sparc/elf/configure: Generate.
11140         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11141         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11142         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11143         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11144         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11146 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11148         * manual/install.texi: Do not mention specific glibc version
11149         numbers.
11150         * manual/libc.texinfo (VERSION, UPDATED): Update.
11151         (@copying): Use @copyright{} and range of years.
11153 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11155         [BZ #13695]
11156         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11157         [crti.S not in sysdirs] (generated): Do not append.
11158         [crti.S not in sysdirs] (omit-deps): Likewise.
11159         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11160         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11161         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11162         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11163         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11164         Likewise.
11165         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11166         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11167         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11168         * csu/defs.awk: Remove file.
11169         * sysdeps/generic/initfini.c: Likewise.
11170         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11171         variable.
11172         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11173         Likewise.
11175 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11177         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11178         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11179         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11180         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11181         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11182         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11183         <bits/epoll.h>.
11184         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11185         (__EPOLL_PACKED): Define to empty if not defined by
11186         <bits/epoll.h>.
11187         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11188         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11189         bits/epoll.h.
11191 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11193         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11194         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11195         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11196         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11197         <bits/timerfd.h>.
11198         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11199         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11200         bits/timerfd.h.
11202 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11204         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11205         in C locale.
11206         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11207         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11208         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11211 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11213         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11214         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11216 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11218         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11219         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11220         defined.
11221         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11222         Likewise.
11223         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11224         entry for 2.16.
11226 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11228         * math/w_acos.c: Use non-signaling floating-point comparisons.
11229         * math/w_acosf.c: Likewise.
11230         * math/w_acosh.c: Likewise.
11231         * math/w_acoshf.c: Likewise.
11232         * math/w_acoshl.c: Likewise.
11233         * math/w_acosl.c: Likewise.
11234         * math/w_asin.c: Likewise.
11235         * math/w_asinf.c: Likewise.
11236         * math/w_asinl.c: Likewise.
11237         * math/w_atanh.c: Likewise.
11238         * math/w_atanhf.c: Likewise.
11239         * math/w_atanhl.c: Likewise.
11240         * math/w_exp2.c: Likewise.
11241         * math/w_exp2f.c: Likewise.
11242         * math/w_exp2l.c: Likewise.
11243         * math/w_j0.c: Likewise.
11244         * math/w_j0f.c: Likewise.
11245         * math/w_j0l.c: Likewise.
11246         * math/w_j1.c: Likewise.
11247         * math/w_j1f.c: Likewise.
11248         * math/w_j1l.c: Likewise.
11249         * math/w_jn.c: Likewise.
11250         * math/w_jnf.c: Likewise.
11251         * math/w_log.c: Likewise.
11252         * math/w_log10.c: Likewise.
11253         * math/w_log10f.c: Likewise.
11254         * math/w_log10l.c: Likewise.
11255         * math/w_log2.c: Likewise.
11256         * math/w_log2f.c: Likewise.
11257         * math/w_log2l.c: Likewise.
11258         * math/w_logf.c: Likewise.
11259         * math/w_logl.c: Likewise.
11260         * math/w_sqrt.c: Likewise.
11261         * math/w_sqrtf.c: Likewise.
11262         * math/w_sqrtl.c: Likewise.
11263         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11264         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11265         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11266         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11267         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11269 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11271         [BZ #9739]
11272         * manual/string.texi (strnlen): Use correct parameter name in
11273         equivalent expression.
11275 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11277         [BZ #11174]
11278         * manual/users.texi (seteuid): Consistently use neweuid for
11279         argument name.
11281 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11283         [BZ #13704]
11284         * manual/nss.texi (Services in the NSS configuration): Correct
11285         list of services in example configuration file.
11287 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11289         [BZ #11322]
11290         * manual/arith.texi: Remove statements about negative zero
11291         behaving identically to zero.
11293 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11295         [BZ #5993]
11296         * manual/install.texi: Do not document upgrading from libc5.
11298 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11300         [BZ #4596]
11301         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11303 2012-02-18  David S. Miller  <davem@davemloft.net>
11305         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11306         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11307         %o7 across the call.
11308         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11309         instead.
11310         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11311         SETUP_PIC_REG_LEAF.
11312         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11313         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11314         * sysdeps/sparc/crtn.S: Likewise.
11316 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11318         * aout/Makefile: Remove.
11320 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11322         [BZ #13058]
11323         * manual/examples/argp-ex1.c (main): Format definition in GNU
11324         style.
11325         * manual/examples/argp-ex2.c (main): Likewise.
11326         * manual/examples/argp-ex3.c (main): Likewise.
11327         * manual/examples/argp-ex4.c (main): Likewise.
11328         * manual/examples/longopt.c (main): Use new-style prototype
11329         definition.
11330         * manual/examples/strncat.c (main): Specify return type and use
11331         (void) for arguments.
11332         * manual/examples/subopt.c (main): Use char **argv argument.
11334 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11336         [BZ #5077]
11337         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11338         rounding modes.
11340 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11342         [BZ #6907]
11343         * manual/string.texi (strchr): Change when strchrnul is
11344         recommended.
11346 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11348         [BZ #174]
11349         * manual/locale.texi (setlocale): Document LOCPATH.
11351 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11353         [BZ #10210]
11354         * manual/process.texi (execle): Move @dots{} before last argument.
11356 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11358         [BZ #12047]
11359         * manual/charset.texi (Generic Charset Conversion): Fix typo
11360         (LC_TYPE -> LC_CTYPE).
11362 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11364         [BZ #5805]
11365         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11366         (scalbnf): Likewise.
11367         (scalbnl): Likewise.
11368         (scalbln): Likewise.
11369         (scalblnf): Likewise.
11370         (scalblnl): Likewise.
11371         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11372         (vwarnx): Likewise.
11373         (verr): Likewise.
11374         (verrx): Likewise.
11375         * manual/filesys.texi (telldir): Use braces around return type.
11376         * manual/llio.texi (mmap): Add space after comma.
11377         (mmap64): Likewise.
11378         * manual/math.texi (jn): Use @var{} on parameter names.
11379         (jnf): Likewise.
11380         (jnl): Likewise.
11381         (yn): Likewise.
11382         (ynf): Likewise.
11383         (ynl): Likewise.
11384         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11385         line.
11386         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11387         "...".
11388         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11389         (sched_get_priority_max): Likewise.
11390         * manual/signal.texi (sigvec): Add space after comma.
11391         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11392         names.
11393         (if_indextoname): Likewise.
11394         (if_freenameindex): Likewise.
11395         (sendto): Use ',' instead of '.' in prototype.
11396         * manual/startup.texi (syscall): Use @dots{} instead of literal
11397         "...".
11398         * manual/stdio.texi (__fpending): Separate initial words of
11399         paragraph from @deftypefun line.
11400         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11401         "...".
11402         (vsyslog): Use @var{} on parameter names.
11403         * manual/terminal.texi (stty): Use @var{} on parameter names.
11404         * manual/users.texi (getutmp): Use @var{} on parameter names.
11405         (getutmpx): Likewise.
11407 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11409         [BZ #6884]
11410         * manual/stdio.texi (fopen): Fix typos in description of
11411         ",ccs=STRING".
11413 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11415         [BZ #4026]
11416         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11417         get clock_id definition.
11419 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11421         [BZ #4822]
11422         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11423         (madvise): Cast every argument to void on its own.
11425 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11427         [BZ #9902]
11428         * manual/startup.texi (Exit Status): Fix typo.
11430 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11432         [BZ #10140]
11433         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11434         * manual/examples/argp-ex2.c: Likewise.
11435         * manual/examples/argp-ex3.c: Likewise.
11437 2012-02-16  Richard Henderson  <rth@redhat.com>
11439         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11440         * sysdeps/s390/s390-32/initfini.c: Remove.
11441         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11442         * sysdeps/s390/s390-64/initfini.c: Remove.
11444 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11446         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11447         compiler output for sysdeps/generic/initfini.c.
11448         * sysdeps/sh/elf/initfini.c: Remove file.
11450 2012-02-16  David S. Miller  <davem@davemloft.net>
11452         [BZ #11494]
11453         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11455         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11456         * sysdeps/sparc/crti.S: New file.
11457         * sysdeps/sparc/crtn.S: New file.
11458         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11459         * sysdeps/sparc/sparc64/Makefile: Likewise.
11461 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11463         [BZ #3335]
11464         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11466 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11468         [BZ #4822]
11469         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11471         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11472         (write, read, close): Likewise.
11473         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11475 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11477         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11478         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11479         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11480         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11481         <bits/signalfd.h>.
11482         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11483         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11484         bits/signalfd.h.
11486 2012-02-14  Marek Polacek  <polacek@redhat.com>
11488         * sysdeps/x86_64/crti.S: New file.
11489         * sysdeps/x86_64/crtn.S: New file.
11490         * sysdeps/x86_64/elf/initfini.c: Remove file.
11492 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11494         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11495         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11496         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11497         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11498         <bits/inotify.h>.
11499         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11500         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11501         bits/inotify.h.
11503 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11505         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11506         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11507         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11508         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11509         <bits/eventfd.h>.
11510         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11511         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11512         bits/eventfd.h.
11514 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11516         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11517         __feraiseexcept instead of feraiseexcept.
11519         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11520         nanosleep invocations.
11521         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11522         strings, and add error checking for a nanosleep invocations.
11524 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11526         Replace FSF snail mail address with URLs, as per GNU coding standards.
11527         Most of the snail mail addresses were wrong anyway, and omitting
11528         them makes the source code easier to maintain.  Almost all of the
11529         changes are to license notices and to locale LC_IDENTIFICATION
11530         addresses, except for this one:
11531         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11532         not its snail mail address.
11534 2012-02-09  Richard Henderson  <rth@twiddle.net>
11536         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11537         of kernel-features.h.
11539         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11541 2012-02-08  Marek Polacek  <polacek@redhat.com>
11543         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11544         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11545         * sysdeps/gnu/_G_config.h: Likewise.
11546         * sysdeps/generic/_G_config.h: Likewise.
11548 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11550         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11551         tests.
11552         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11554         * sysdeps/powerpc/powerpc32/crti.S: New file.
11555         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11556         * sysdeps/powerpc/powerpc64/crti.S: New file.
11557         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11559         * Makeconfig (have-initfini): Don't set.
11560         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11561         * configure.in (nopic_initfini): Don't substitute.
11562         * config.h.in (HAVE_INITFINI): Don't #undef.
11563         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11564         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11566 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11568         Support crti.S and crtn.S provided directly by architectures.
11569         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11570         [crti.S in sysdirs] (omit-deps): Likewise.
11571         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11572         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11573         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11574         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11575         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11576         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11577         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11578         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11579         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11580         compiler output for sysdeps/generic/initfini.c.
11581         * sysdeps/i386/elf/Makefile: Remove file.
11582         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11584 2012-02-07  Marek Polacek  <polacek@redhat.com>
11586         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11587         * sysdeps/gnu/_G_config.h: Likewise.
11588         * sysdeps/mach/hurd/_G_config.h: Likewise.
11590 2012-02-07  Marek Polacek  <polacek@redhat.com>
11592         * math/Makefile (tests): Add tst-CMPLX2.
11593         * math/tst-CMPLX2.c: New file.
11595 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11597         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11599         * math/libm-test.inc (jn_test): Add missing L suffix.
11601 2012-02-06  Marek Polacek  <polacek@redhat.com>
11603         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11604         * sysdeps/i386/fpu/e_powf.S: Likewise.
11605         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11606         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11607         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11608         * sysdeps/i386/fpu/e_pow.S: Likewise.
11609         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11610         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11611         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11612         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11613         * sysdeps/i386/fpu/e_log2.S: Likewise.
11614         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11615         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11616         * sysdeps/i386/fpu/e_powl.S: Likewise.
11617         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11618         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11619         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11620         * sysdeps/i386/fpu/e_logl.S: Likewise.
11621         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11622         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11623         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11624         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11625         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11626         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11627         * sysdeps/i386/fpu/e_log.S: Likewise.
11628         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11629         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11630         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11631         * sysdeps/i386/fpu/e_logf.S: Likewise.
11632         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11633         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11634         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11635         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11636         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11637         * sysdeps/i386/fpu/e_log10.S: Likewise.
11638         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11639         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11640         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11641         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11642         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11643         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11644         * sysdeps/i386/asm-syntax.h: Likewise.
11645         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11646         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11647         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11648         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11649         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11650         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11651         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11652         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11653         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11654         * sysdeps/powerpc/sysdep.h: Likewise.
11655         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11656         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11658 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11660         [BZ #411]
11661         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11663 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11665         * sysdeps/i386/sysdep.h: Include <features.h>.
11666         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11667         version.
11669 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11671         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11672         Define.
11673         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11674         LOAD_PIC_REG_STR.
11676 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11678         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11679         (SETUP_PIC_REG): Use GET_PC_THUNK.
11680         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11681         macro.
11683 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11685         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11686         for non-PIC compilation.
11687         (SETUP_PIC_REG): Add .p2align directive.
11688         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11689         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11690         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11691         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11692         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11693         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11694         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11695         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11696         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11697         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11698         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11699         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11700         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11701         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11702         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11703         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11704         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11705         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11706         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11707         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11708         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11709         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11710         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11711         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11712         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11713         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11714         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11715         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11716         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11717         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11718         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11719         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11720         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11721         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11722         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11723         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11724         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11725         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11726         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11727         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11728         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11730 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11732         * math/tst-CMPLX.c: Include <stdio.h>.
11734 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11736         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11737         float.
11738         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11739         * sysdeps/sparc/bits/mathdef.h: Likewise.
11741 2012-01-31  Marek Polacek  <polacek@redhat.com>
11743         * libio/libio.h: Don't define _PARAMS.
11744         * locale/programs/config.h: Don't define PARAMS.
11745         * stdlib/strtol_l.c: Likewise.
11746         (__strtol_l): Remove PARAMS from the prototype.
11748 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11750         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11751         names.  Just use the correct names.  Remove unnecessary wrapper
11752         functions.
11753         * malloc/arena.c: Likewise.
11754         * malloc/hooks.c: Likewise.
11756         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11757         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11758         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11760 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11762         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11763         into tail calls.
11764         (update_get_addr): New function.
11765         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11766         GET_ADDR_MODULE parameter.
11768 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11770         * crypt/cert.c: Remove __STDC__ conditionals.
11771         * crypt/crypt-entry.c: Likewise.
11772         * crypt/crypt_util.c: Likewise.
11773         * libio/filedoalloc.c: Likewise.
11774         * libio/fileops.c: Likewise.
11775         * libio/genops.c: Likewise.
11776         * libio/iofclose.c: Likewise.
11777         * libio/iofdopen.c: Likewise.
11778         * libio/iofopen.c: Likewise.
11779         * libio/iofopen64.c: Likewise.
11780         * libio/iogetdelim.c: Likewise.
11781         * libio/iopopen.c: Likewise.
11782         * libio/obprintf.c: Likewise.
11783         * libio/oldfileops.c: Likewise.
11784         * libio/oldiofclose.c: Likewise.
11785         * libio/oldiofdopen.c: Likewise.
11786         * libio/oldiofopen.c: Likewise.
11787         * libio/oldiopopen.c: Likewise.
11788         * libio/wfiledoalloc.c: Likewise.
11789         * libio/wgenops.c: Likewise.
11790         * locale/programs/xmalloc.c: Likewise.
11791         * misc/syslog.c: Likewise.
11792         * stdio-common/xbug.c: Likewise.
11793         * string/memchr.c: Likewise.
11794         * string/memcmp.c: Likewise.
11795         * string/memrchr.c: Likewise.
11796         * string/rawmemchr.c: Likewise.
11797         * sysdeps/posix/getcwd.c: Likewise.
11798         * time/strftime_l.c: Likewise.
11800 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11802         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11803         * config.make.in (config-cflags-sse2avx): Define.
11804         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11805         Fix typo.
11807 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11809         * scripts/config.guess: Update from upstream config git repository.
11810         * scripts/config.sub: Likewise.
11812 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11814         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11815         (EM_NUM): Update.
11816         (R_TILEPRO_*, R_TILEGX_*): New macros.
11818         * scripts/firstversions.awk: Fix bug in version range handling.
11820         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11822         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11824         * include/sys/epoll.h: New file.
11825         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11826         libc_hidden_def.
11828 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11830         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11831         Avoid unnecessary __WORDSIZE == 64 test.
11832         (fmaxf): Use VEX format if possible.
11833         (fmax): Likewise.
11834         (fminf): Likewise.
11835         (fmin): Likewise.
11837         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11838         * math/math_private.h: Remove libc_fegetround* and
11839         libc_fesetround*.
11840         * sysdeps/i386/configure.in: Check for -msse2avx.
11841         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11842         also if SSE2AVX is defined.
11843         Remove libc_fegetround* and libc_fesetround*.
11844         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11845         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11846         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11847         of HAS_YMM_USABLE.
11848         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11849         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11850         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11851         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11852         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11854         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11856 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11858         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11859         size is not set.
11860         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11862 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11864         [BZ #13618]
11865         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11866         relocation.
11867         * Makeconfig (libm): Define.
11868         * elf/Makefile: Add rules to build and run tst-relsort1.
11869         * elf/tst-relsort1.c: New file.
11870         * elf/tst-relsort1mod1.c: New file.
11871         * elf/tst-relsort1mod2.c: New file.
11873 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11875         * math/s_ldexp.c: Remove __STDC__ conditionals.
11876         * math/s_ldexpf.c: Likewise.
11877         * math/s_ldexpl.c: Likewise.
11878         * math/s_nextafter.c: Likewise.
11879         * math/s_nexttowardf.c: Likewise.
11880         * math/s_significand.c: Likewise.
11881         * math/s_significandf.c: Likewise.
11882         * math/s_significandl.c: Likewise.
11883         * math/w_jnl.c: Likewise.
11884         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11885         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11886         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11887         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11888         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11889         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11890         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11891         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11892         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11893         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11894         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11895         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11896         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11897         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11898         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11899         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11900         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11901         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11902         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11903         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11904         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11905         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11906         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11907         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11908         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11909         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11910         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11911         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11912         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11913         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11914         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11915         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11916         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11917         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11918         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11919         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11920         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11921         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11922         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11923         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11924         * sysdeps/ieee754/k_standard.c: Likewise.
11925         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11926         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11927         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11928         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11929         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11930         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11931         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11932         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11933         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11934         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11935         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11936         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11937         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11938         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11939         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11940         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11941         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11942         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11943         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11944         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11945         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11946         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11947         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11948         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11949         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11950         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11951         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11952         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11953         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11954         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11955         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11956         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11957         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11958         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11959         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11960         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11961         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11962         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11963         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11964         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11965         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11966         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11967         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11968         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11969         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11970         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11971         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11972         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11973         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11974         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11975         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11976         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11977         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11978         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11979         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11980         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11981         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11982         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11983         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11984         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11985         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11986         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11987         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11988         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11989         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11990         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11991         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11992         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11993         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11994         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11995         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11996         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11997         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11998         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11999         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12000         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12001         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12002         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12003         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12004         * sysdeps/ieee754/s_matherr.c: Likewise.
12005         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12006         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12007         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12008         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12010 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12012         * crypt/md5.h: Remove __STDC__ conditionals.
12013         * libio/libioP.h: Likewise.
12014         * locale/programs/config.h: Likewise.
12015         * sysdeps/generic/sysdep.h: Likewise.
12016         * sysdeps/i386/asm-syntax.h: Likewise.
12017         * sysdeps/s390/asm-syntax.h: Likewise.
12018         * sysdeps/unix/sysdep.h: Likewise.
12019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12022 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12024         * libio/libio.h: Remove __STDC__ conditionals.
12025         * malloc/obstack.h: Likewise.
12026         * math/complex.h: Likewise.
12027         * math/math.h: Likewise.
12028         * sysdeps/generic/_G_config.h: Likewise.
12029         * sysdeps/gnu/_G_config.h: Likewise.
12030         * sysdeps/mach/hurd/_G_config.h: Likewise.
12031         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12032         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12033         * sysdeps/sparc/bits/mathdef.h: Likewise.
12035 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12037         [BZ #13583]
12038         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12039         Clean up HAS_* macros.
12040         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12041         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12042         possible.
12043         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12044         HAS_AVX.
12045         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12046         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12047         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12048         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12049         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12051 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12053         * elf/tst-unique3.cc (gets): Remove declaration.
12054         * elf/tst-unique3lib.cc (gets): Likewise.
12055         * elf/tst-unique3lib2.cc (gets): Likewise.
12056         * elf/tst-unique4.cc (gets): Likewise.
12058 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12060         * include/stdio.h: Add C++ protection.  Add gets declarations and
12061         definitions.
12062         * debug/tst-chk1.c: Don't declare gets here.
12063         * stdio-common/tst-gets.c: Likewise.
12065 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12067         * posix/glob: Remove directory.
12069 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12071         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12073 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12075         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12076         of the non-standard EPFNOSUPPORT.
12078 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12080         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12081         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12082         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12084 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12086         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12088 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12090         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12091         transient errors.
12092         * nscd/grpcache.c (cache_addgr): Likewise.
12093         * nscd/hstcache.c (cache_addhst): Likewise.
12094         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12095         * nscd/pwdcache.c (cache_addpw): Likewise.
12096         * nscd/servicescache.c (cache_addserv): Likewise.
12098 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12100         * malloc/malloc.c: Various cleanups.
12101         * malloc/hooks.c: Likewise.
12103         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12104         * stdlib/bug-fmtmsg1.c: New file.
12106         * stdlib/fmtmsg.c (init): Add missing unlock.
12107         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12109 2012-01-12  Marek Polacek  <polacek@redhat.com>
12111         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12112         and _GNU_SOURCE.
12114 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12116         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12117         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12118         macro to ensure uniqueness of label name.
12119         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12120         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12122 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12124         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12126         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12127         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12128         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12129         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12131 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12133         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12135         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12136         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12137         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12139         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12141         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12142         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12143         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12144         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12146         * math/bits/math-finite.h: Add ldexp support.
12148 2012-01-10  Marek Polacek  <polacek@redhat.com>
12150         * locale/programs/localedef.h (show_archive_content): Add noreturn
12151         attribute.
12153 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12155         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12157 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12159         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12161         * io/Makefile (headers): Add bits/poll2.h.
12163 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12166         typo #include statement.
12168 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12170         * include/sys/cdefs.h: Define __attribute_alloc_size.
12171         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12172         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12173         * elf/pldd.c: Likewise.
12174         * iconv/iconv_charmap.c: Likewise.
12175         * iconv/iconvconfig.c: Likewise.
12176         * iconv/strtab.c: Likewise.
12177         * locale/programs/locale.c: Likewise.
12178         * locale/programs/localedef.h: Likewise.
12179         * locale/programs/simple-hash.c: Likewise.
12180         * nscd/nscd.h: Likewise.
12181         * nss/makedb.c: Likewise.
12182         * sysdeps/generic/ldconfig.h: Likewise.
12183         * locale/programs/localedef.c: Remove xmalloc prototype.
12184         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12186 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12188         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12189         appropriate.
12191 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12193         * math/Makefile (tests): Add tst-CMPLX.
12194         * math/tst-CMPLX.c: New file.
12196         * math/complex.h (CMPLXL): Fix typo.
12198         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12199         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12200         GLIBC_2.16.
12201         * debug/tst-chk1.c: Add poll and ppoll tests.
12202         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12203         * include/sys/poll.h: Add hidden proto for ppoll.
12204         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12205         * sysdeps/mach/hurd/ppoll.c: Likewise.
12206         * io/ppoll.c: Likewise.
12207         * debug/poll_chk.c: New file.
12208         * debug/ppoll_chk.c: New file.
12209         * include/bits/poll2.h: New file.
12210         * io/bits/poll2.h: New file.
12212         [BZ #1350]
12213         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12215         * configure.in: static is always set to yes.  Remove.
12216         * config.make.in: Don't set build-static.
12217         * Makeconfig: Remove use of build-static.
12218         * dlfcn/Makefile: Likewise.
12219         * elf/Makefile: Likewise.
12220         * math/Makefile: Likewise.
12221         * misc/Makefile: Likewise.
12222         * nptl/Makefile: Likewise.
12223         * sysdeps/mach/hurd/Makefile: Likewise.
12225         * configure.in: PWD_P is not used anymore.
12226         * config.make.in: Remove PWD_P entry.
12228         * configure.in: Remove last remnants of RANLIB.
12229         No need to check for signed size_t anymore.
12230         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12231         and IA-64.
12232         Remove __builtin_expect test because we require at least gcc 3.4.
12233         * aclocal.m4: Likewise.
12235         * wcsmbs/mbrtoc16.c: Implement using towc function.
12236         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12237         * wcsmbs/wcsmbsload.c: Likewise.
12238         * iconv/gconv_simple.c: Likewise.
12239         * iconv/gconv_int.h: Likewise.
12240         * iconv/gconv_builtin.h: Likewise.
12241         * iconv/iconv_prog.c: Remove CHAR16 handling.
12243         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12245         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12247         * configure.in: Remove --with-elf and --enable-bounded options.
12248         Dont set base_machine for ia64.  More non-ELF conditions removed.
12249         Remove testing and setting of leading underscore information.
12250         * config.make.in (build-bounded): Set to no.
12251         * config.h.in: Remove NO_UNDERSCORES entry.
12252         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12253         them.
12254         * csu/start.c: Remove !NO_UNDERSCORE code.
12255         * locale/localeinfo.h: Likewise.
12256         * sysdeps/generic/machine-gmon.h: Likewise.
12257         * sysdeps/generic/sysdep.h: Likewise.
12258         * sysdeps/i386/sysdep.h: Likewise.
12259         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12260         * sysdeps/mach/sysdep.h: Likewise.
12261         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12262         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12263         * sysdeps/sh/sysdep.h: Likewise.
12264         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12265         * sysdeps/unix/i386/sysdep.S: Likewise.
12266         * sysdeps/unix/sparc/start.c: Likewise.
12267         * sysdeps/unix/sparc/sysdep.S: Likewise.
12268         * sysdeps/unix/sparc/sysdep.h: Likewise.
12269         * sysdeps/unix/start.c: Likewise.
12270         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12271         * sysdeps/x86_64/sysdep.h: Likewise.
12273 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12275         [BZ #13553]
12276         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12277         for non-gcc.
12278         * argp/argp-fmtstream.h: Use const instead __const.
12279         * argp/argp.h: Likewise.
12280         * assert/assert.h: Likewise.
12281         * bits/fenv.h: Likewise.
12282         * bits/sched.h: Likewise.
12283         * bits/sigset.h: Likewise.
12284         * bits/sigthread.h: Likewise.
12285         * catgets/nl_types.h: Likewise.
12286         * conform/data/pthread.h-data: Likewise.
12287         * crypt/crypt-private.h: Likewise.
12288         * crypt/crypt.h: Likewise.
12289         * crypt/crypt_util.c: Likewise.
12290         * ctype/ctype.h: Likewise.
12291         * debug/execinfo.h: Likewise.
12292         * debug/mbsnrtowcs_chk.c: Likewise.
12293         * debug/mbsrtowcs_chk.c: Likewise.
12294         * debug/wcsnrtombs_chk.c: Likewise.
12295         * debug/wcsrtombs_chk.c: Likewise.
12296         * debug/wcstombs_chk.c: Likewise.
12297         * dirent/dirent.h: Likewise.
12298         * dlfcn/dlfcn.h: Likewise.
12299         * elf/neededtest4.c: Likewise.
12300         * grp/grp.h: Likewise.
12301         * gshadow/gshadow.h: Likewise.
12302         * iconv/gconv.h: Likewise.
12303         * iconv/gconv_int.h: Likewise.
12304         * iconv/gconv_simple.c: Likewise.
12305         * iconv/iconv.h: Likewise.
12306         * iconv/loop.c: Likewise.
12307         * iconv/skeleton.c: Likewise.
12308         * include/aio.h: Likewise.
12309         * include/aliases.h: Likewise.
12310         * include/argz.h: Likewise.
12311         * include/arpa/inet.h: Likewise.
12312         * include/assert.h: Likewise.
12313         * include/dirent.h: Likewise.
12314         * include/dlfcn.h: Likewise.
12315         * include/execinfo.h: Likewise.
12316         * include/fcntl.h: Likewise.
12317         * include/fenv.h: Likewise.
12318         * include/glob.h: Likewise.
12319         * include/grp.h: Likewise.
12320         * include/libintl.h: Likewise.
12321         * include/mntent.h: Likewise.
12322         * include/netdb.h: Likewise.
12323         * include/pwd.h: Likewise.
12324         * include/rpc/netdb.h: Likewise.
12325         * include/sched.h: Likewise.
12326         * include/search.h: Likewise.
12327         * include/shadow.h: Likewise.
12328         * include/signal.h: Likewise.
12329         * include/stdio.h: Likewise.
12330         * include/stdlib.h: Likewise.
12331         * include/string.h: Likewise.
12332         * include/sys/socket.h: Likewise.
12333         * include/sys/stat.h: Likewise.
12334         * include/sys/statfs.h: Likewise.
12335         * include/sys/statvfs.h: Likewise.
12336         * include/sys/syslog.h: Likewise.
12337         * include/sys/time.h: Likewise.
12338         * include/sys/uio.h: Likewise.
12339         * include/time.h: Likewise.
12340         * include/unistd.h: Likewise.
12341         * include/utmp.h: Likewise.
12342         * include/wchar.h: Likewise.
12343         * include/wctype.h: Likewise.
12344         * inet/aliases.h: Likewise.
12345         * inet/arpa/inet.h: Likewise.
12346         * inet/netinet/ether.h: Likewise.
12347         * inet/netinet/in.h: Likewise.
12348         * intl/libintl.h: Likewise.
12349         * io/bits/fcntl2.h: Likewise.
12350         * io/fcntl.h: Likewise.
12351         * io/ftw.h: Likewise.
12352         * io/sys/poll.h: Likewise.
12353         * io/sys/stat.h: Likewise.
12354         * io/sys/statfs.h: Likewise.
12355         * io/sys/statvfs.h: Likewise.
12356         * io/utime.h: Likewise.
12357         * libio/bits/stdio.h: Likewise.
12358         * libio/bits/stdio2.h: Likewise.
12359         * libio/libio.h: Likewise.
12360         * libio/libioP.h: Likewise.
12361         * libio/stdio.h: Likewise.
12362         * locale/lc-ctype.c: Likewise.
12363         * locale/locale.h: Likewise.
12364         * login/utmp.h: Likewise.
12365         * malloc/arena.c: Likewise.
12366         * malloc/malloc.c: Likewise.
12367         * malloc/malloc.h: Likewise.
12368         * malloc/mcheck.c: Likewise.
12369         * malloc/mtrace.c: Likewise.
12370         * math/bits/mathcalls.h: Likewise.
12371         * math/fenv.h: Likewise.
12372         * math/math_private.h: Likewise.
12373         * misc/bits/error.h: Likewise.
12374         * misc/bits/syslog.h: Likewise.
12375         * misc/err.h: Likewise.
12376         * misc/error.h: Likewise.
12377         * misc/fstab.h: Likewise.
12378         * misc/mntent.h: Likewise.
12379         * misc/regexp.h: Likewise.
12380         * misc/search.h: Likewise.
12381         * misc/sgtty.h: Likewise.
12382         * misc/sys/mman.h: Likewise.
12383         * misc/sys/syslog.h: Likewise.
12384         * misc/sys/uio.h: Likewise.
12385         * misc/sys/xattr.h: Likewise.
12386         * misc/ttyent.h: Likewise.
12387         * nis/rpcsvc/ypclnt.h: Likewise.
12388         * nss/nss.h: Likewise.
12389         * posix/bits/unistd.h: Likewise.
12390         * posix/fnmatch.h: Likewise.
12391         * posix/glob.h: Likewise.
12392         * posix/sched.h: Likewise.
12393         * posix/spawn.h: Likewise.
12394         * posix/sys/wait.h: Likewise.
12395         * posix/unistd.h: Likewise.
12396         * posix/wordexp.h: Likewise.
12397         * pwd/pwd.h: Likewise.
12398         * resolv/netdb.h: Likewise.
12399         * resource/sys/resource.h: Likewise.
12400         * rt/aio.h: Likewise.
12401         * rt/bits/mqueue2.h: Likewise.
12402         * rt/mqueue.h: Likewise.
12403         * shadow/shadow.h: Likewise.
12404         * signal/signal.h: Likewise.
12405         * socket/send.c: Likewise.
12406         * socket/sendto.c: Likewise.
12407         * socket/sys/socket.h: Likewise.
12408         * stdio-common/printf.h: Likewise.
12409         * stdlib/bits/stdlib.h: Likewise.
12410         * stdlib/fmtmsg.h: Likewise.
12411         * stdlib/monetary.h: Likewise.
12412         * stdlib/stdlib.h: Likewise.
12413         * stdlib/ucontext.h: Likewise.
12414         * streams/stropts.h: Likewise.
12415         * string/argz.h: Likewise.
12416         * string/bits/string2.h: Likewise.
12417         * string/string.h: Likewise.
12418         * string/strings.h: Likewise.
12419         * sunrpc/rpc/auth.h: Likewise.
12420         * sunrpc/rpc/auth_des.h: Likewise.
12421         * sunrpc/rpc/clnt.h: Likewise.
12422         * sunrpc/rpc/netdb.h: Likewise.
12423         * sunrpc/rpc/pmap_clnt.h: Likewise.
12424         * sunrpc/rpc/xdr.h: Likewise.
12425         * sysdeps/generic/inttypes.h: Likewise.
12426         * sysdeps/generic/net/if.h: Likewise.
12427         * sysdeps/generic/sys/swap.h: Likewise.
12428         * sysdeps/gnu/net/if.h: Likewise.
12429         * sysdeps/gnu/utmpx.h: Likewise.
12430         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12431         * sysdeps/i386/i486/bits/string.h: Likewise.
12432         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12433         * sysdeps/s390/bits/string.h: Likewise.
12434         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12435         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12436         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12437         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12438         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12439         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12440         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12441         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12442         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12443         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12444         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12445         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12446         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12447         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12448         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12449         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12450         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12451         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12452         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12453         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12454         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12455         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12456         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12457         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12458         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12459         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12460         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12461         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12462         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12463         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12464         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12465         * sysvipc/sys/ipc.h: Likewise.
12466         * sysvipc/sys/msg.h: Likewise.
12467         * sysvipc/sys/sem.h: Likewise.
12468         * sysvipc/sys/shm.h: Likewise.
12469         * termios/termios.h: Likewise.
12470         * time/sys/time.h: Likewise.
12471         * time/time.h: Likewise.
12472         * wcsmbs/bits/wchar2.h: Likewise.
12473         * wcsmbs/uchar.h: Likewise.
12474         * wcsmbs/wchar.h: Likewise.
12475         * wctype/wctype.h: Likewise.
12477         [BZ #13551]
12478         * Makeconfig: Remove all but ELF support including AIX support.
12479         * Makerules: Likewise.
12480         * config.h.in: Likewise.
12481         * config.make.in: Likewise.
12482         * configure: Likewise.
12483         * configure.in: Likewise.
12484         * csu/Makefile: Likewise.
12485         * csu/version.c: Likewise.
12486         * debug/Makefile: Likewise.
12487         * dlfcn/Makefile: Likewise.
12488         * elf/Makefile: Likewise.
12489         * extra-lib.mk: Likewise.
12490         * iconv/Makefile: Likewise.
12491         * include/libc-symbols.h: Likewise.
12492         * include/shlib-compat.h: Likewise.
12493         * resolv/Makefile: Likewise.
12494         * resolv/res_libc.c: Likewise.
12495         * rt/Makefile: Likewise.
12496         * sysdeps/i386/asm-syntax.h: Likewise.
12497         * sysdeps/i386/sysdep.h: Likewise.
12498         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12499         * sysdeps/mach/sysdep.h: Likewise.
12500         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12501         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12502         * sysdeps/s390/asm-syntax.h: Likewise.
12503         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12504         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12505         * sysdeps/sh/sysdep.h: Likewise.
12506         * sysdeps/unix/sparc/sysdep.h: Likewise.
12507         * sysdeps/wordsize-32/divdi3.c: Likewise.
12508         * sysdeps/x86_64/sysdep.h: Likewise.
12510         * argp/Versions: Remove _argp_unlock_xxx.
12512         [BZ #13559]
12513         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12514         * abilist/libBrokenLocale.abilist: Likewise.
12515         * abilist/libanl.abilist: Likewise.
12516         * abilist/libc.abilist: Likewise.
12517         * abilist/libcrypt.abilist: Likewise.
12518         * abilist/libdl.abilist: Likewise.
12519         * abilist/libm.abilist: Likewise.
12520         * abilist/libnsl.abilist: Likewise.
12521         * abilist/libpthread.abilist: Likewise.
12522         * abilist/libresolv.abilist: Likewise.
12523         * abilist/librt.abilist: Likewise.
12524         * abilist/libthread_db.abilist: Likewise.
12525         * abilist/libutil.abilist: Likewise.
12526         * abilist/libnss_db.abilist: New file.
12528         * scripts/abilist.awk: Add support for indirect functions.
12530         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12532         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12534         * shlib-versions: Remove entries for ports architectures.
12536         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12537         files in ports.
12538         * elf/stackguard-macros.h: Remove support for IA-64.
12539         * elf/tst-auditmod1.c: Likewise.
12540         * sysdeps/generic/ldsodefs.h: Likewise.
12542         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12543         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12544         configure files.
12546         [BZ #13552]
12547         * configure.in: Remove --enable-omitfp support.
12548         * FAQ.in: Adjust.
12549         * config.make.in: Likewise.
12550         * Makeconfig: Likewise.
12551         * manual/install.texi: Likewise.
12553         In case anyone cares, the IA-64 architecture could move to ports.
12554         * sysdeps/ia64/*: Removed.
12555         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12556         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12558         [BZ #13555]
12559         * configure.in: Remove entries for unsupported architectures.
12561         [BZ #13533]
12562         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12563         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12564         routines.
12565         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12566         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12567         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12568         fall back to using wcrtomb.
12569         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12570         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12571         renaming.
12572         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12573         * wcsmbs/tst-c16c32-1.c: New file.
12575         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12576         local variable.
12578         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12580         * elf/tst-unique3.cc: Add explicit declaration of gets.
12581         * elf/tst-unique3lib.cc: Likewise.
12582         * elf/tst-unique3lib2.cc: Likewise.
12583         * elf/tst-unique4.cc: Likewise.
12585         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12587 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12589         [BZ #13566]
12590         * assert/assert.h (static_assert): Don't define for C++.
12591         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12592         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12594 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12596         * iconv/loop.c (single loop): Fix assertion in storing of
12597         remaining bytes.
12599         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12601 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12603         * posix/getconf.c: Update copyright year.
12604         * nss/getent.c: Likewise.
12605         * nss/makedb.c: Likewise.
12606         * iconv/iconvconfig.c: Likewise.
12607         * iconv/iconv_prog.c: Likewise.
12608         * elf/ldconfig.c: Likewise.
12609         * elf/pldd.c: Likewise.
12610         * elf/sotruss.ksh: Likewise.
12611         * catgets/gencat.c: Likewise.
12612         * csu/version.c: Likewise.
12613         * elf/ldd.bash.in: Likewise.
12614         * elf/sprof.c (print_version): Likewise.
12615         * locale/programs/locale.c: Likewise.
12616         * locale/programs/localedef.c: Likewise.
12617         * login/programs/pt_chown.c: Likewise.
12618         * nscd/nscd.c (print_version): Likewise.
12619         * debug/xtrace.sh: Likewise.
12620         * malloc/memusage.sh: Likewise.
12621         * malloc/mtrace.pl: Likewise.
12622         * debug/catchsegv.sh: Likewise.
12624 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12626         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12627         pure attribute.
12629 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12631         [BZ #13533]
12632         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12633         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12634         transformations.
12635         * iconv/gconv_int.h: Likewise.
12636         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12637         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12638         from libc for GLIBC_2.16.
12639         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12640         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12641         * wcsmbs/uchar.h: Really define mbstate_t.
12642         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12643         * wcsmbs/c16rtomb.c: New file.
12644         * wcsmbs/mbrtoc16.c: New file.
12645         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12646         for C/POSIX locale.
12647         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12648         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12650         * wcsmbs/wchar.h: Add missing __restrict.
12652 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12654         [BZ #13532]
12655         * time/Makefile (routines): Add timespec_get.
12656         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12657         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12658         timespec for ISO C11.
12659         * time/timespec_get.c: New file.
12660         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12661         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12663         [BZ #13531]
12664         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12665         * stdlib/stdlib.h: Declare aligned_alloc.
12666         * Versions.def: Add GLIBC_2.16 for libc.
12667         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12669         [BZ 13527]
12670         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12671         ISO C11.
12673         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12674         code.
12676         [BZ #13528]
12677         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12679         [BZ #13529]
12680         * assert/assert.h (static_assert): Define.
12682         * version.h: Update for 2.16 development version.
12684         [BZ #13526]
12685         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12686         _ISOC11_SOURCE.
12688         * version.h (RELEASE): Bump for 2.15 release.
12689         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12691         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12692         Patch by Marek Polacek <mpolacek@redhat.com>.
12694         * bits/byteswap.h: Protect long long constants with __extension__.
12695         * sysdeps/i386/bits/byteswap.h: Likewise.
12696         * sysdeps/ia64/bits/byteswap.h: Likewise.
12697         * sysdeps/s390/bits/byteswap.h: Likewise.
12698         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12700 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12702         [BZ #13540]
12703         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12704         destination buffer.
12705         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12707 2011-12-23  Marek Polacek  <polacek@redhat.com>
12709         * elf/dl-addr.c (determine_info): Add inline keyword.
12710         * elf/tst-auditmod4b.c (check_avx): Likewise.
12711         * elf/tst-auditmod6b.c (check_avx): Likewise.
12712         * elf/tst-auditmod6c.c (check_avx): Likewise.
12713         * elf/tst-auditmod7b.c (check_avx): Likewise.
12715 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12717         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12718         !__SSE_MATH__.
12720 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12722         [BZ #13540]
12723         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12724         processing for last bytes.
12726 2011-08-06  Bruno Haible  <bruno@clisp.org>
12728         [BZ #13061]
12729         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12730         U+0385, not to U+1FEE.
12732         [BZ #13062]
12733         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12734         entry for U+00A5 U+0301.
12736 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12738         [BZ #13166]
12739         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12740         buffer for the output is too small.
12742         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12743         optimization.
12745         [BZ #13185]
12746         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12747         SSE flags if possible.
12749 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12751         [BZ #13540]
12752         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12753         processing for last bytes.
12755 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12757         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12758         (syscall-list-default-options, syscall-list-default-condition)
12759         (syscall-list-includes): Define.
12760         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12761         list of ABIs and options and #if conditions for each ABI.  Do not
12762         handle common syscalls between ABIs specially.
12763         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12764         Remove.
12765         (syscall-list-variants, syscall-list-32bit-options)
12766         (syscall-list-32bit-condition, syscall-list-64bit-options)
12767         (syscall-list-64bit-condition): Define.
12768         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12769         (syscall-list-variants, syscall-list-32bit-options)
12770         (syscall-list-32bit-condition, syscall-list-64bit-options)
12771         (syscall-list-64bit-condition): Define.
12772         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12773         Remove.
12774         (syscall-list-variants, syscall-list-32bit-options)
12775         (syscall-list-32bit-condition, syscall-list-64bit-options)
12776         (syscall-list-64bit-condition): Define.
12777         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12778         Remove.
12779         (syscall-list-variants, syscall-list-32bit-options)
12780         (syscall-list-32bit-condition, syscall-list-64bit-options)
12781         (syscall-list-64bit-condition): Define.
12783 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12785         * locale/iso-639.def: Add brx entry.
12787         [BZ #13328]
12788         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12789         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12791         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12792         __feraiseexcept_renamed.
12794 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12796         [BZ #13538]
12797         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12798         EPOLLET with unsigned values.
12799         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12800         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12802         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12803         to large cancellation.
12804         * math/s_cacoshf.c: Likewise.
12805         * math/s_cacoshl.c: Likewise.
12807 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12809         [BZ #13305]
12810         [BZ #12786]
12811         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12812         * math/s_cacoshf.c: Likewise.
12813         * math/s_cacoshl.c: Likewise.
12815 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12817         [BZ #13439]
12818         * iconv/gconv.h: Define __GCONV_SWAP.
12819         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12820         * iconvdata/utf-16.c: Likewise.
12821         * iconvdata/utf-32.c: Likewise.
12823 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12825         [BZ #13524]
12826         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12827         numerator after shifting it by one limb.
12829 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12831         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12832         under [__USE_EXTERN_INLINES].
12834 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12836         [BZ #13446]
12837         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12839 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12841         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12842         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12843         optimized code.
12844         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12845         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12846         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12847         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12848         for strncasecmp/strncasecmp_l compilation.
12849         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12850         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12852 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12854         [BZ #13484]
12855         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12856         of __asm__.
12858 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12860         [BZ #13506]
12861         * time/tzfile.c (__tzfile_read): Check values from file header.
12863 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12865         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12866         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12867         * powerpc/powerpc32/dl-start.S: Likewise.
12868         * powerpc/powerpc32/elf/start.S: Likewise.
12869         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12870         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12871         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12872         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12873         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12874         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12875         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12876         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12877         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12878         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12879         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12880         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12881         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12882         * powerpc/powerpc32/memset.S: Likewise.
12883         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12884         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12885         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12886         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12887         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12888         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12889         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12890         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12891         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12892         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12893         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12894         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12895         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12897 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12899         * math/libm-test.inc: Added more nearbyint tests.
12900         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12901         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12902         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12903         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12905 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12907         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12908         FD_CLOEXEC.
12910 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12912         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12913         Add wcscpy-ssse3 wcscpy-c.
12914         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12915         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12916         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12917         * sysdeps/x86_64/wcschr.S: New file.
12918         * sysdeps/x86_64/wcsrchr.S: New file.
12919         * string/test-strcmp.c: Remove checking of wcscmp function for
12920         wrong alignments.
12921         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12922         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12923         wcsrchr-sse2 wcsrchr-c.
12924         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12925         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12926         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12927         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12928         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12929         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12930         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12931         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12932         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12933         * wcsmbc/wcschr.c (WCSCHR): New macro.
12935 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12937         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12938         * wcsmbs/test-wcsrchr.c: New file.
12939         * string/test-strrchr.c: Add wcsrchr support.
12940         (WIDE): New macro.
12941         * wcsmbs/test-wcscpy.c: New file.
12942         * string/test-strcpy.c: Add wcscpy support.
12943         (WIDE): New macro.
12945 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12947         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12948         the inner loop.
12950 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12952         [BZ #13472]
12953         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12955 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12957         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12958         Minor optimizations.
12960         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12961         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12962         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12964 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12966         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12967         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12968         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12969         for gcc to avoid warnings.
12970         * inet/Makefile (tests): Add tst-checks.
12971         * inet/tst-checks.c: New file.
12973         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12974         warning.
12976         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12977         __wmemcmp_sse2.
12979         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12980         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12982         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12984 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12986         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12987         problem.
12989         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12991 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12993         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12994         conditional on GCC version.
12995         (__arch_compare_and_exchange_val_8_acq)
12996         (__arch_compare_and_exchange_val_16_acq)
12997         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12998         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12999         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13001 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13003         * sysdeps/sh/backtrace.c: New file.
13005 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13007         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13008         parenthesis.
13010 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13012         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13013         falling back to utime.
13015 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13017         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13018         expectations for float.
13020 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13022         * locale/weight.h (findidx): Add parameter len.
13023         * locale/weightwc.h (findidx): Likewise.
13024         * posix/fnmatch_loop.c (FCT): Adjust caller.
13025         * posix/regcomp.c (build_equiv_class): Likewise.
13026         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13027         * posix/regexec.c (check_node_accept_bytes): Likewise.
13028         * string/strcoll_l.c (STRCOLL): Likewise.
13029         * string/strxfrm_l.c (STRXFRM): Likewise.
13031 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13033         * Makefile.in: Remove CVSOPT handling.
13034         * configure.in: Remove use of AC_REVISION.
13035         * iconvdata/Makefile (distribute): No need to filter out CVS.
13036         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13037         handling.
13039 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13041         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13042         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13043         [USE_AS_STRNCASECMP_L]: Likewise.
13044         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13045         NO_TLS_DIRECT_SEG_REFS.
13046         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13047         Fix argument offsets for non-PIC.
13048         [USE_AS_STRNCASECMP_L]: Likewise.
13049         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13050         NO_TLS_DIRECT_SEG_REFS.
13052 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13054         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13055         O_CLOEXEC.
13056         * locale/loadlocale.c (_nl_load_locale): Likewise.
13058 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13060         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13061         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13062         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13063         (SYSCALL_GETTIME): Set errno on error.
13065         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13066         count references to noai6ai_cached.
13068 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13070         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13072         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13073         FD_CLOEXEC for /proc/self/maps.
13075         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13076         FD_CLOEXEC for /proc/meminfo.
13078         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13079         gai.conf.
13081         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13082         FD_CLOEXEC for given file.
13084         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13086         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13087         FD_CLOEXEC for /etc/hosts.
13088         (_gethtent): Likewise.
13090         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13092         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13093         cancellation and set FD_CLOEXEC for /etc/netgroup.
13095         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13096         reading /etc/publickey.
13098         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13099         allow cancellation when reading /etc/group.
13101         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13102         cancellation.
13103         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13105         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13106         when using data file.
13108         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13110         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13111         (write_nis_obj): Use "c" and "e" in fopen.
13113         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13115         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13117         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13119         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13121         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13122         locale.alias.
13124         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13126         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13128         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13130         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13131         file parsing and set FD_CLOEXEC.
13133 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13135         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13137 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13139         * malloc/arena.c (arena_get2): Don't call reused_arena when
13140         _int_new_arena failed.
13142 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13144         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13145         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13146         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13147         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13148         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13149         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13150         to compile strcasecmp and strncasecmp.
13151         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13152         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13154         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13156 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13158         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13159         locale-defines.sym to gen-as-const-headers.
13160         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13161         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13162         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13163         to compile strcasecmp and strncasecmp.
13164         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13165         strcasecmp_l and strncasecmp_l.
13166         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13167         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13168         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13169         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13170         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13171         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13172         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13173         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13174         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13175         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13176         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13178 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13180         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13181         result of SYSDEP_GETTIME_CPU to retval.
13182         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13183         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13185         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13186         variable.
13188         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13189         mantissa words.
13190         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13192         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13193         from unused variable.
13195         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13196         DWARF definitions.
13197         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13198         for assembling.
13200         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13201         over namespaces.
13203         * sunrpc/rpc_prot.c (rejected): Fix case value.
13205         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13206         unsigned long long int to avoid warnings in shift.
13208         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13209         of use of trans.
13210         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13211         variable tmp.
13213         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13214         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13215         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13217         * nis/nis_table.c (nis_list): Use variable of correct type for
13218         result of __follow_path call.
13220 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13222         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13223         of math functions ceil, trunc, floor, round, and sqrt, when
13224         avaliable on the platform.
13225         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13226         name clash.
13227         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13228         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13229         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13231 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13233         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13234         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13236 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13238         * include/unistd.h: Fix __readlink return type.
13239         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13241 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13243         * stdlib/ucontext.h: Undo last change for makecontext.
13245 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13247         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13249         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13250         * setjmp/setjmp.h: Mark functions as non-leaf.
13251         * setjmp/bits/setjmp2.h: Likewise.
13252         * stdlib/ucontext.h: Likewise.
13254 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13256         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13257         (reused_arena): Don't check arena limit.
13258         (arena_get2): Atomically check arena limit.
13260 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13262         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13263         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13265         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13266         instructions.
13268 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13270         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13271         handler when locking.
13273         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13274         Fix size of allocated buffer.
13276 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13278         [BZ #10103]
13279         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13280         declarations for long double functions.
13281         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13283         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13285 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13287         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13288         installed.
13290         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13291         is disabled.
13293 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13295         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13297 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13299         * include/alloca.h (stackinfo_alloca_round): Define.
13300         (extend_alloca): Use it.
13301         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13302         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13303         here.
13305         * scripts/check-local-headers.sh: Ignore libaudit.h.
13307         * nscd/Makefile (extra-objs): Make recursively expanded.
13309 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13311         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13312         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13314         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13315         * posix/tst-rfc3484-2.c: Likewise.
13316         * posix/tst-rfc3484-3.c: Likewise.
13318         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13319         process_vm_writev.
13320         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13321         process_vm_writev.
13322         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13323         process_vm_writev from libc using GLIBC_2.15 version.
13325         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13327 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13329         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13330         stack usage.
13332 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13334         [BZ #13367]
13335         * nss/getent.c (initgroups_keys): Show error message in case no group
13336         names are given.
13338         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13339         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13340         __bump_nl_timestamp.
13341         * nscd/connections (nscd_init): When host database is served open
13342         netlink socket and request notification about configuration changes.
13343         (main_loop_poll): Track netlink file descriptor and bump timestamp
13344         in case data becomes available.
13345         (main_loop_epoll): Likewise.
13346         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13347         (database_pers_head): Add extra_data fileds.
13348         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13349         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13350         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13351         Adjust caller.
13352         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13353         in6ai data, call __free_in6ai.
13354         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13355         Add -DHAVE_NETLINK.
13356         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13357         interface information.  Reuse previous data if netlink timestamp
13358         is not changed.
13359         (__bump_nl_timestamp): New function.
13360         (__free_in6ai): New function.
13362 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13364         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13365         close_not_cancel_no_status here.
13366         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13368 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13370         [BZ #13276]
13371         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13372         return value.
13374         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13375         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13376         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13378 2011-07-03  Andreas Jaeger  <aj@suse.de>
13380         [BZ #10709]
13381         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13382         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13383         * math/libm-test.inc (sin_test): Add test case.
13385 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13387         [BZ #13337]
13388         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13389         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13391         * elf/chroot_canon.c (chroot_canon): Cleanups.
13393         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13395         [BZ #13335]
13396         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13397         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13399         * string/test-strchr.c: Make usable for strchrnul testing.
13400         * string/test-strchrnul.c: New file.
13401         * string/Makefile (strop-tests): Add strchrnul.
13403         * po/it.po: Update from translation team.
13404         * po/es.po: Likewise.
13406 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13408         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13409         the three constants needed as parameters.  Drop the others.
13410         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13411         __m128i_strloadu_tolower.
13412         Create and initialize variable zero and use it in all the places
13413         where _mm_setzero_si128 was used.
13415         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13416         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13417         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13418         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13419         anymore.
13420         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13421         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13422         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13423         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13424         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13425         __mpranred, __mptan.
13426         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13427         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13428         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13429         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13430         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13431         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13432         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13433         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13434         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13436 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13438         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13439         redefine if SHARED.
13440         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13442         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13443         wide char related routines to wcsmbs subdir.
13445 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13447         [BZ #13344]
13448         * misc/sys/cdefs.h (__THROWNL): Define.
13449         * posix/unistd.h: Use __THREADNL instead of __THREAD
13450         for memory synchronization functions.
13452 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13454         [BZ #13349]
13455         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13456         doesn't exist.
13457         * manual/stdio.texi (Obstack Streams): Node removed.
13459 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13461         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13462         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13463         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13465         * math/math_private.h (math_force_eval): Allow non-addressable
13466         arguments.
13467         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13469 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13471         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13472         file is not needed.
13474         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13475         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13476         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13477         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13478         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13479         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13480         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13481         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13482         Add AVX variants.
13483         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13484         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13485         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13486         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13487         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13488         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13489         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13490         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13491         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13492         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13493         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13494         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13495         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13496         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13497         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13498         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13499         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13500         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13501         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13503         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13504         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13506         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13507         place.  Use VEX encoding when compiling for AVX.
13509 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13511         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13512         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13514         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13516 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13518         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13519         useless if() expression.
13520         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13521         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13522         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13523         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13524         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13525         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13526         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13527         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13528         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13529         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13530         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13531         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13532         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13533         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13534         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13535         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13536         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13537         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13538         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13540         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13542 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13544         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13545         condition.
13546         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13548 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13550         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13551         .text section.  Avoid duplicate constants.
13552         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13553         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13554         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13555         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13556         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13557         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13558         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13559         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13560         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13561         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13562         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13563         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13564         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13565         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13566         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13567         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13568         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13569         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13570         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13571         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13572         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13573         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13574         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13575         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13576         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13577         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13578         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13579         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13580         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13581         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13582         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13583         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13584         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13585         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13586         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13587         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13588         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13589         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13590         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13591         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13592         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13593         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13594         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13595         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13596         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13598 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13600         * sysdeps/x86_64/dla.h: Move to ...
13601         * sysdeps/x86_64/fpu/dla.h: ...here.
13602         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13603         situations.  Use __builtin_fma only for gcc 4.6 and up.
13605         * config.make.in: Add have-mfma4 entry.
13606         * configure.in: Substitute libc_cv_cc_fma4.
13607         * math/Makefile (dbl-only-routines): Add sincostab.
13608         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13609         Use __sincostab not sincos.
13610         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13611         name is a macro.
13612         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13613         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13614         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13615         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13616         using __copysign.
13617         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13618         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13619         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13620         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13621         and __inv.
13622         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13623         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13624         __copysign.
13625         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13626         define aliases when function name is a macro.
13627         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13628         sysdeps/ieee754/dbl-64/sincos.tbl.
13629         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13630         fma4-enabled routines.
13631         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13632         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13633         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13634         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13635         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13636         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13637         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13638         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13639         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13640         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13641         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13642         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13643         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13644         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13645         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13646         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13647         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13648         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13649         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13650         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13651         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13652         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13653         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13654         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13655         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13656         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13657         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13658         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13659         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13660         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13662         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13663         rename.
13664         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13665         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13666         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13667         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13668         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13669         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13670         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13671         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13673 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13675         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13677 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13679         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13681         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13682         prediction.
13683         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13685         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13686         Remove unused variable magic_bits.
13687         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13689         * string/strnlen.c: Define and use STRNLEN macro.
13690         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13691         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13692         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13693         * wcsmbs/wcslen.c: Define and use WCSLEN.
13694         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13695         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13696         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13697         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13698         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13699         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13700         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13702 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13704         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13705         strnlen-sse2-no-bsf.
13706         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13707         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13708         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13709         Add strnlen support.
13710         (USE_AS_STRNLEN): New macro.
13711         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13712         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13713         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13714         * sysdeps/x86_64/wcslen.S: New file.
13716 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13718         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13719         XMM-moves are used for copying on small sizes.
13721 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13723         * wcsmbs/Makefile (strop-tests): Add wcschr.
13724         * wcsmbs/test-wcschr.c: New file.
13725         * string/test-strchr.c: Update.
13726         Add wcschr support.
13727         (WIDE): New macro.
13729 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13731         * wcsmbs/Makefile (strop-tests): Add wcslen.
13732         * wcsmbs/test-wcslen.c: New file.
13733         * string/test-strlen.c: Update.
13734         Add wcslen support.
13735         (WIDE): New macro.
13737 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13739         * po/it.po: Update from translation team.
13741 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13743         * sysdeps/x86_64/wcscmp.S: Update.
13744         Fix wrong comparison semantics.
13745         wcscmp shall use signed comparison not unsigned.
13746         Don't use substraction to avoid overflow bug.
13747         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13748         * wcsmbc/wcscmp.c: Likewise.
13749         * string/test-strcmp.c: Likewise.
13750         Add new tests to check cases with negative values.
13752 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13754         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13755         * sysdeps/x86_64/dla.h: ...here.  New file.
13756         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13757         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13758         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13759         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13760         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13761         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13762         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13763         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13764         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13766 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13768         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13769         __ynl_finite aliases.
13771 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13773         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13775         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13776         define DLA_FMA.
13777         [DLA_FMA] (EMULV): Use DLA_FMA.
13778         [DLA_FMA] (MUL12): Use EMULV.
13779         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13780         that are not needed.
13781         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13782         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13783         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13784         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13785         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13786         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13787         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13789 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13791         * math/s_nan.c: Undef __nan.
13792         * math/s_nanf.c: Undef __nanf.
13793         * math/s_nanl.c: Undef __nanl.
13794         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13795         "math_private.h".
13797 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13799         * math/s_catan.c: Add branch predictions.
13800         * math/s_catanf.c: Likewise.
13801         * math/s_catanh.c: Likewise.
13802         * math/s_catanhf.c: Likewise.
13803         * math/s_catanhl.c: Likewise.
13804         * math/s_catanl.c: Likewise.
13805         * math/s_cexp.c: Likewise.
13806         * math/s_cexpf.c: Likewise.
13807         * math/s_cexpl.c: Likewise.
13808         * math/s_clog.c: Likewise.
13809         * math/s_clog10.c: Likewise.
13810         * math/s_clog10f.c: Likewise.
13811         * math/s_clog10l.c: Likewise.
13812         * math/s_clogf.c: Likewise.
13813         * math/s_clogl.c: Likewise.
13814         * math/s_csqrt.c: Likewise.
13815         * math/s_csqrtf.c: Likewise.
13816         * math/s_csqrtl.c: Likewise.
13817         * math/s_ctanf.c: Likewise.
13818         * math/s_ctanh.c: Likewise.
13819         * math/s_ctanhf.c: Likewise.
13820         * math/s_ctanhl.c: Likewise.
13821         * math/s_ctanl.c: Likewise.
13823         * math/math_private.h: Define __nan, __nanf, __nanl.
13824         * math/s_cacosh.c: Include <math_private.h>.
13825         * math/s_cacoshl.c: Likewise.
13826         * math/s_casinh.c: Likewise.
13827         * math/s_casinhf.c: Likewise.
13828         * math/s_casinhl.c: Likewise.
13829         * math/s_ccos.c: Rely entire on ccosh.
13830         * math/s_ccosf.c: Rely entire on ccoshf.
13831         * math/s_ccosl.c: Rely entirely on ccoshl.
13832         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13833         Remove tests for FE_INVALID.
13834         * math/s_ccoshf.c: Likewise.
13835         * math/s_ccoshl.c: Likewise.
13836         * math/s_csin.c: Likewise.
13837         * math/s_csinf.c: Likewise.
13838         * math/s_csinh.c Likewise.
13839         * math/s_csinhf.c: Likewise.
13840         * math/s_csinhl.c: Likewise.
13841         * math/s_csinl.c: Likewise.
13842         * math/s_ctan.c: Likewise.
13843         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13844         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13845         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13847 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13849         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13850         compilation problems.
13852         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13853         __builtin_expect.
13855 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13857         * sysdeps/i386/configure.in: Test for -mfma4 option.
13858         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13859         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13860         COMMON_CPUID_INDEX_80000001.
13861         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13862         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13863         use it if FMA3 is not supported.
13864         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13866         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13867         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13869 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13871         [BZ #12892]
13872         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13873         it would create a cycle with a link time dependency.
13875 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13877         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13878         instruction.
13879         * string/Makefile (strop-tests): Add rawmemchr.
13880         * string/test-rawmemchr.c: New file.
13882         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13883         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13884         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13885         when compiling str{,n}casecmp and when AVX is available.  Hook up
13886         new optimized code in initializers.
13888 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13890         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13891         __feraiseexcept instead of feraiseexcept.
13893 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13895         * math/math_private.h: Define defaults for libc_fetestexcept and
13896         libc_feupdateenv.
13897         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13898         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13899         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13900         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13901         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13902         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13903         libc_fetestexcept and libc_feupdateenv.
13905         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13906         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13907         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13908         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13909         libc_feholdexcept_setround.
13911         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13912         Add s_nearbyint-c and s_nearbyintf-c.
13913         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13914         nearbyintf inlines.
13915         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13916         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13917         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13918         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13920         * math/math_private.h: Define defaults for libc_fegetround,
13921         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13922         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13923         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13924         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13925         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13926         standard functions.
13927         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13928         Remove comments and hacks for old compiler versions.
13929         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13930         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13931         libc_feholdexceptl.
13933 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13935         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13936         (__feraiseexcept_renamed): Add __NTH.
13937         (feraiseexcept): Add __NTH.  Rename local variables to fix
13938         namespace violations.
13940 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13942         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13944         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13946         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13947         recently added interfaces.
13948         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13950         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13951         about macro parameter expansion.
13953         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13954         __NO_MATH_INLINES is defined.  Cleanups.
13956         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13957         and __floorf is target has SSE4.1.
13958         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13959         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13960         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13961         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13963         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13964         name.
13965         (floorf): Likewise.
13967         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13969 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13971         * misc/sys/cdefs.h: Fix last change.
13973         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13974         database lookup.
13976 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13978         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13980         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13981         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13982         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13983         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13984         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13985         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13986         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13987         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13988         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13989         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13990         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13991         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13992         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13993         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13994         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13995         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13996         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13997         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13998         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13999         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14000         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14001         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14003         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14004         ceil, ceilf, floor, floorf.
14006         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14007         Perform IRELATIVE relocations last.
14009         * elf/do-rel.h: Add another parameter nrelative, replacing the
14010         local variable with the same name.  Change name of the function
14011         to end in Rel or Rela (uppercase).
14012         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14013         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14014         elf_dynamic_do_##reloc function.
14016 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14018         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14019         is sufficient, at least on modern CPUs.
14021         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14023         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14024         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14026         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14027         __expl_finite.
14028         * math/bits/math-finite.h: Add entries for exp.
14029         * math/e_expl.c: Add __*_finite alias.
14030         * sysdeps/i386/fpu/e_exp.S: Likewise.
14031         * sysdeps/i386/fpu/e_expf.S: Likewise.
14032         * sysdeps/i386/fpu/e_expl.c: Likewise.
14033         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14034         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14035         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14036         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14037         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14038         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14039         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14041         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14042         is sufficient, at least on modern CPUs.
14044         * ctype/ctype-info.c (__ctype_init): Define.
14045         * include/ctype.h (__ctype_init): Declare.
14046         (__ctype_b_loc): The variable is always initialized.
14047         (__ctype_toupper_loc): Likewise.
14048         (__ctype_tolower_loc): Likewise.
14049         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14050         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14052 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14054         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14056         * configure.in: Also look in $cxxmachine/include for C++ system
14057         headers.
14059 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14061         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14062         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14063         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14064         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14065         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14066         (USE_AS_WMEMCMP): New macro.
14067         Fixing indents.
14068         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14069         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14070         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14071         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14072         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14073         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14074         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14075         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14076         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14077         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14078         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14079         (USE_AS_WMEMCMP): New macro.
14080         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14081         * sysdeps/string/test-memcmp.c: Update.
14082         Fix simple_wmemcmp.
14083         Add new tests.
14084         * wcsmbs/wmemcmp.c: Update.
14085         (WMEMCMP): New macro.
14086         Fix overflow bug.
14088 2011-10-12  Andreas Jaeger  <aj@suse.de>
14090         [BZ #13268]
14091         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14093 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14095         * libio/iofwide.c (do_length): Avoid warning.
14097         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14099 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14101         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14103         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14104         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14105         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14106         * sysdeps/i386/i686/fpu/e_log.S: New file.
14107         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14108         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14110         * ctype/ctype.h: Add support for inlined isXXX functions when
14111         compiling C++ code.
14113 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14115         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14117         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14119 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14121         [BZ #13291]
14122         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14124 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14126         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14127         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14128         feraiseexcept.
14130         * sysdeps/x86_64/memrchr.S: Check for zero size.
14132         * string/stratcliff.c: Add memrchr tests.
14134 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14136         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14137         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14138         rawmemchr-sse2 rawmemchr-sse2-bsf.
14139         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14140         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14141         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14142         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14143         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14144         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14145         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14146         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14147         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14148         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14149         * string/memrchr.c (MEMRCHR): New macro.
14151 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14153         Add integration with gcc's -ffinite-math-only and optimize wrapper
14154         functions in libm.
14155         * Versions.def: Define GLIBC_2.15 version for libm.
14156         * math/Makefile (headers): Add bits/math-finite.h.
14157         * math/bits/math-finite.h: New file.
14158         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14159         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14160         * math/e_acoshl.c: Add __*_finite alias.
14161         * math/e_acosl.c: Likewise.
14162         * math/e_asinl.c: Likewise.
14163         * math/e_atan2l.c: Likewise.
14164         * math/e_atanhl.c: Likewise.
14165         * math/e_coshl.c: Likewise.
14166         * math/e_exp10.c: Likewise.
14167         * math/e_exp10f.c: Likewise.
14168         * math/e_exp10l.c: Likewise.
14169         * math/e_exp2l.c: Likewise.
14170         * math/e_fmodl.c: Likewise.
14171         * math/e_gammal_r.c: Likewise.
14172         * math/e_hypotl.c: Likewise.
14173         * math/e_j0l.c: Likewise.
14174         * math/e_j1l.c: Likewise.
14175         * math/e_jnl.c: Likewise.
14176         * math/e_lgammal_r.c: Likewise.
14177         * math/e_log10l.c: Likewise.
14178         * math/e_log2l.c: Likewise.
14179         * math/e_logl.c: Likewise.
14180         * math/e_powl.c: Likewise.
14181         * math/e_sinhl.c: Likewise.
14182         * math/e_sqrtl.c: Likewise.
14183         * math/e_scalb.c: Completely rewritten and optimized.
14184         * math/e_scalbf.c: Likewise.
14185         * math/e_scalbl.c: Likewise.
14186         * math/w_acos.c: Likewise.
14187         * math/w_acosf.c: Likewise.
14188         * math/w_acosl.c: Likewise.
14189         * math/w_acosh.c: Likewise.
14190         * math/w_acoshf.c: Likewise.
14191         * math/w_acoshl.c: Likewise.
14192         * math/w_asin.c: Likewise.
14193         * math/w_asinf.c: Likewise.
14194         * math/w_asinl.c: Likewise.
14195         * math/w_atan2.c: Likewise.
14196         * math/w_atan2f.c: Likewise.
14197         * math/w_atan2l.c: Likewise.
14198         * math/w_atanh.c: Likewise.
14199         * math/w_atanhf.c: Likewise.
14200         * math/w_atanhl.c: Likewise.
14201         * math/w_exp10.c: Likewise.
14202         * math/w_exp10f.c: Likewise.
14203         * math/w_exp10l.c: Likewise.
14204         * math/w_fmod.c: Likewise.
14205         * math/w_fmodf.c: Likewise.
14206         * math/w_fmodl.c: Likewise.
14207         * math/w_j0.c: Likewise.
14208         * math/w_j0f.c: Likewise.
14209         * math/w_j0l.c: Likewise.
14210         * math/w_j1.c: Likewise.
14211         * math/w_j1f.c: Likewise.
14212         * math/w_j1l.c: Likewise.
14213         * math/w_jn.c: Likewise.
14214         * math/w_jnf.c: Likewise.
14215         * math/w_log.c: Likewise.
14216         * math/w_logf.c: Likewise.
14217         * math/w_logl.c: Likewise.
14218         * math/w_log10.c: Likewise.
14219         * math/w_log10f.c: Likewise.
14220         * math/w_log10l.c: Likewise.
14221         * math/w_log2.c: Likewise.
14222         * math/w_log2f.c: Likewise.
14223         * math/w_log2l.c: Likewise.
14224         * math/w_pow.c: Likewise.
14225         * math/w_powf.c: Likewise.
14226         * math/w_powl.c: Likewise.
14227         * math/w_remainder.c: Likewise.
14228         * math/w_remainderf.c: Likewise.
14229         * math/w_remainderl.c: Likewise.
14230         * math/w_scalb.c: Likewise.
14231         * math/w_scalbf.c: Likewise.
14232         * math/w_scalbl.c: Likewise.
14233         * math/w_sqrt.c: Likewise.
14234         * math/w_sqrtf.c: Likewise.
14235         * math/w_sqrtl.c: Likewise.
14236         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14237         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14238         used.
14239         * math/math_private.h: Declare __kernel_standard_f.
14240         * math/w_cosh.c: Remove cruft and optimize a bit.
14241         * math/w_coshf.c: Likewise.
14242         * math/w_coshl.c: Likewise.
14243         * math/w_exp2.c: Likewise.
14244         * math/w_exp2f.c: Likewise.
14245         * math/w_exp2l.c: Likewise.
14246         * math/w_hypot.c: Likewise.
14247         * math/w_hypotf.c: Likewise.
14248         * math/w_hypotl.c: Likewise.
14249         * math/w_lgamma.c: Likewise.
14250         * math/w_lgamma_r.c: Likewise.
14251         * math/w_lgammaf.c: Likewise.
14252         * math/w_lgammaf_r.c: Likewise.
14253         * math/w_lgammal.c: Likewise.
14254         * math/w_lgammal_r.c: Likewise.
14255         * math/w_sinh.c: Likewise.
14256         * math/w_sinhf.c: Likewise.
14257         * math/w_sinhl.c: Likewise.
14258         * math/w_tgamma.c: Likewise.
14259         * math/w_tgammaf.c: Likewise.
14260         * math/w_tgammal.c: Likewise.
14261         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14262         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14263         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14264         Minor optimizations.  Pretty printing.  Remove cruft.
14265         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14266         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14267         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14268         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14269         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14270         * sysdeps/i386/fpu/e_asin.S: Likewise.
14271         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14272         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14273         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14274         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14275         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14276         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14277         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14278         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14279         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14280         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14281         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14282         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14283         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14284         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14285         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14286         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14287         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14288         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14289         * sysdeps/i386/fpu/e_log.S: Likewise.
14290         * sysdeps/i386/fpu/e_log10.S: Likewise.
14291         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14292         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14293         * sysdeps/i386/fpu/e_log2.S: Likewise.
14294         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14295         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14296         * sysdeps/i386/fpu/e_logf.S: Likewise.
14297         * sysdeps/i386/fpu/e_logl.S: Likewise.
14298         * sysdeps/i386/fpu/e_pow.S: Likewise.
14299         * sysdeps/i386/fpu/e_powf.S: Likewise.
14300         * sysdeps/i386/fpu/e_powl.S: Likewise.
14301         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14302         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14303         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14304         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14305         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14306         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14307         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14308         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14309         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14310         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14311         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14312         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14313         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14314         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14315         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14316         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14317         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14318         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14319         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14320         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14321         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14322         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14323         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14324         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14325         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14326         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14327         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14328         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14329         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14330         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14331         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14332         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14333         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14334         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14335         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14336         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14337         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14338         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14339         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14340         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14341         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14342         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14343         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14344         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14345         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14346         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14347         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14348         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14349         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14350         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14351         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14352         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14353         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14354         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14355         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14356         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14357         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14358         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14359         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14360         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14361         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14362         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14363         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14364         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14365         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14366         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14367         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14368         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14369         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14370         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14371         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14372         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14373         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14374         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14375         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14376         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14377         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14378         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14379         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14380         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14381         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14382         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14383         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14384         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14385         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14386         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14387         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14388         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14389         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14390         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14391         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14392         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14393         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14394         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14395         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14396         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14397         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14398         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14399         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14400         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14401         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14402         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14403         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14404         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14405         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14406         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14407         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14408         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14409         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14410         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14411         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14412         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14413         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14414         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14415         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14416         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14417         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14418         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14419         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14420         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14421         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14422         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14423         (__isnanf): Likewise.
14424         (__isinf_ns): Likewise.
14425         (__isinf_nsf): Likewise.
14426         (__finite): Likewise.
14427         (__finitef): Likewise.
14428         (__ieee754_sqrt): Define as macro.
14429         (__ieee754_sqrtf): Define as macro.
14430         (__ieee754_sqrtl): Define as macro.
14431         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14432         inlined copy.
14433         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14434         __FINITE_MATH_ONLY__ consistent.
14435         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14437 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14439         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14440         of rawmemchr.
14442         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14444 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14446         * po/ja.po: Update from translation team.
14448 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14450         * locale/programs/locarchive.c (prepare_address_space): New function.
14451         (create_archive, enlarge_archive, open_archive): Use it.
14453         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14454         inside [SHARED], where it is used.
14456         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14458         * nss/getent.c (netgroup_keys): Remove unused variable.
14459         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14461 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14463         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14464         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14465         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14466         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14467         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14468         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14469         * math/Makefile (libm-calls): Add s_isinf_ns.
14470         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14471         * math/multc3.c: Likewise.
14472         * math/s_casin.c: Likewise.
14473         * math/s_casinf.c: Likewise.
14474         * math/s_casinl.c: Likewise.
14475         * math/s_ccos.c: Likewise.
14476         * math/s_ccosf.c: Likewise.
14477         * math/s_ccosl.c: Likewise.
14478         * math/s_ctan.c: Likewise.
14479         * math/s_ctanf.c: Likewise.
14480         * math/s_ctanh.c: Likewise.
14481         * math/s_ctanhf.c: Likewise.
14482         * math/s_ctanhl.c: Likewise.
14483         * math/s_ctanl.c: Likewise.
14484         * math/w_fmod.c: Likewise.
14485         * math/w_fmodf.c: Likewise.
14486         * math/w_fmodl.c: Likewise.
14487         * math/w_remainder.c: Likewise.
14488         * math/w_remainderf.c: Likewise.
14489         * math/w_remainderl.c: Likewise.
14490         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14491         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14492         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14493         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14494         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14495         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14496         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14497         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14499         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14500         of the number.
14501         * stdio-common/printf_fphex.c: Likewise.
14502         * stdio-common/printf_size.c: Likewise.
14504         * math/e_exp10.c: Include math_private.h using <...> not "...".
14505         * math/e_exp10f.c: Likewise.
14506         * math/e_exp10l.c: Likewise.
14507         * math/e_exp2l.c: Likewise.
14508         * math/e_j0l.c: Likewise.
14509         * math/e_j1l.c: Likewise.
14510         * math/e_jnl.c: Likewise.
14511         * math/e_lgammal_r.c: Likewise.
14512         * math/e_rem_pio2l.c: Likewise.
14513         * math/e_scalb.c: Likewise.
14514         * math/e_scalbf.c: Likewise.
14515         * math/e_scalbl.c: Likewise.
14516         * math/k_cosl.c: Likewise.
14517         * math/k_sinl.c: Likewise.
14518         * math/k_tanl.c: Likewise.
14519         * math/s_cacoshf.c: Likewise.
14520         * math/s_catan.c: Likewise.
14521         * math/s_catanf.c: Likewise.
14522         * math/s_catanh.c: Likewise.
14523         * math/s_catanhf.c: Likewise.
14524         * math/s_catanhl.c: Likewise.
14525         * math/s_catanl.c: Likewise.
14526         * math/s_ccosh.c: Likewise.
14527         * math/s_ccoshf.c: Likewise.
14528         * math/s_ccoshl.c: Likewise.
14529         * math/s_cexp.c: Likewise.
14530         * math/s_cexpf.c: Likewise.
14531         * math/s_cexpl.c: Likewise.
14532         * math/s_clog.c: Likewise.
14533         * math/s_clog10.c: Likewise.
14534         * math/s_clog10f.c: Likewise.
14535         * math/s_clog10l.c: Likewise.
14536         * math/s_clogf.c: Likewise.
14537         * math/s_clogl.c: Likewise.
14538         * math/s_csin.c: Likewise.
14539         * math/s_csinf.c: Likewise.
14540         * math/s_csinh.c: Likewise.
14541         * math/s_csinhf.c: Likewise.
14542         * math/s_csinhl.c: Likewise.
14543         * math/s_csinl.c: Likewise.
14544         * math/s_csqrt.c: Likewise.
14545         * math/s_csqrtf.c: Likewise.
14546         * math/s_csqrtl.c: Likewise.
14547         * math/s_ctan.c: Likewise.
14548         * math/s_ctanf.c: Likewise.
14549         * math/s_ctanh.c: Likewise.
14550         * math/s_ctanhf.c: Likewise.
14551         * math/s_ctanhl.c: Likewise.
14552         * math/s_ctanl.c: Likewise.
14553         * math/s_ldexp.c: Likewise.
14554         * math/s_ldexpf.c: Likewise.
14555         * math/s_ldexpl.c: Likewise.
14556         * math/s_significand.c: Likewise.
14557         * math/s_significandf.c: Likewise.
14558         * math/s_significandl.c: Likewise.
14559         * math/w_acos.c: Likewise.
14560         * math/w_acosf.c: Likewise.
14561         * math/w_acosh.c: Likewise.
14562         * math/w_acoshf.c: Likewise.
14563         * math/w_acoshl.c: Likewise.
14564         * math/w_acosl.c: Likewise.
14565         * math/w_asin.c: Likewise.
14566         * math/w_asinf.c: Likewise.
14567         * math/w_asinl.c: Likewise.
14568         * math/w_atan2.c: Likewise.
14569         * math/w_atan2f.c: Likewise.
14570         * math/w_atan2l.c: Likewise.
14571         * math/w_atanh.c: Likewise.
14572         * math/w_atanhf.c: Likewise.
14573         * math/w_atanhl.c: Likewise.
14574         * math/w_cosh.c: Likewise.
14575         * math/w_coshf.c: Likewise.
14576         * math/w_coshl.c: Likewise.
14577         * math/w_dremf.c: Likewise.
14578         * math/w_exp10.c: Likewise.
14579         * math/w_exp10f.c: Likewise.
14580         * math/w_exp10l.c: Likewise.
14581         * math/w_exp2.c: Likewise.
14582         * math/w_exp2f.c: Likewise.
14583         * math/w_fmod.c: Likewise.
14584         * math/w_fmodf.c: Likewise.
14585         * math/w_fmodl.c: Likewise.
14586         * math/w_hypot.c: Likewise.
14587         * math/w_hypotf.c: Likewise.
14588         * math/w_hypotl.c: Likewise.
14589         * math/w_j0.c: Likewise.
14590         * math/w_j0f.c: Likewise.
14591         * math/w_j0l.c: Likewise.
14592         * math/w_j1.c: Likewise.
14593         * math/w_j1f.c: Likewise.
14594         * math/w_j1l.c: Likewise.
14595         * math/w_jn.c: Likewise.
14596         * math/w_jnf.c: Likewise.
14597         * math/w_jnl.c: Likewise.
14598         * math/w_lgamma.c: Likewise.
14599         * math/w_lgamma_r.c: Likewise.
14600         * math/w_lgammaf.c: Likewise.
14601         * math/w_lgammaf_r.c: Likewise.
14602         * math/w_lgammal.c: Likewise.
14603         * math/w_lgammal_r.c: Likewise.
14604         * math/w_log.c: Likewise.
14605         * math/w_log10.c: Likewise.
14606         * math/w_log10f.c: Likewise.
14607         * math/w_log10l.c: Likewise.
14608         * math/w_log2.c: Likewise.
14609         * math/w_log2f.c: Likewise.
14610         * math/w_log2l.c: Likewise.
14611         * math/w_logf.c: Likewise.
14612         * math/w_logl.c: Likewise.
14613         * math/w_pow.c: Likewise.
14614         * math/w_powf.c: Likewise.
14615         * math/w_powl.c: Likewise.
14616         * math/w_remainder.c: Likewise.
14617         * math/w_remainderf.c: Likewise.
14618         * math/w_remainderl.c: Likewise.
14619         * math/w_scalb.c: Likewise.
14620         * math/w_scalbf.c: Likewise.
14621         * math/w_scalbl.c: Likewise.
14622         * math/w_sinh.c: Likewise.
14623         * math/w_sinhf.c: Likewise.
14624         * math/w_sinhl.c: Likewise.
14625         * math/w_sqrt.c: Likewise.
14626         * math/w_sqrtf.c: Likewise.
14627         * math/w_sqrtl.c: Likewise.
14628         * math/w_tgamma.c: Likewise.
14629         * math/w_tgammaf.c: Likewise.
14630         * math/w_tgammal.c: Likewise.
14632         * po/ja.po: Update from translation team.
14634 2011-09-29  Andreas Jaeger  <aj@suse.de>
14636         [BZ #13179]
14637         * sunrpc/netname.c (netname2host): Fix logic.
14639         [BZ #6779]
14640         [BZ #6783]
14641         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14642         correctly.
14643         * math/w_remainder.c (__remainder): Likewise.
14644         * math/w_remainderf.c (__remainderf): Likewise.
14645         * math/libm-test.inc (remainder_test): Add test cases.
14647 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14649         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14650         sdiv_qrnnd.
14652 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14654         * string/test-memcmp.c: Avoid unncessary #defines.
14655         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14657 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14659         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14660         Use new sse2 version for core i3 - i7 as it's faster
14661         than sse42 version.
14662         (bit_Prefer_PMINUB_for_stringop): New.
14663         * sysdeps/x86_64/rawmemchr.S: Update.
14664         Replace with faster SSE2 version.
14665         * sysdeps/x86_64/memrchr.S: New file.
14666         * sysdeps/x86_64/memchr.S: Update.
14667         Replace with faster SSE2 version.
14669 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14671         * elf/dl-load.c (lose): Add cast to avoid warning.
14673 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14675         * po/ca.po: Update from translation team.
14677         * inet/getnetgrent_r.c: Hook up nscd.
14678         * nscd/Makefile (routines): Add nscd_netgroup.
14679         (nscd-modules): Add netgroupcache.
14680         (CFLAGS-netgroupcache.c): Define.
14681         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14682         (cache_search): Add const to second parameter.
14683         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14684         INNETGR.
14685         (dbs): Add netgrdb entry.
14686         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14687         (verify_persistent_db): Handle netgrdb.
14688         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14689         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14690         GETFDNETGR.
14691         (netgroup_response_header): Define.
14692         (innetgroup_response_header): Define.
14693         (datahead): Add netgroup_response_header and innetgroup_response_header
14694         elements.
14695         * nscd/nscd.conf: Add entries for netgroup cache.
14696         * nscd/nscd.h (dbtype): Add netgrdb.
14697         (_PATH_NSCD_NETGROUP_DB): Define.
14698         (netgroup_iov_disabled): Declare.
14699         (xmalloc, xcalloc, xrealloc): Move declarations here.
14700         (cache_search): Adjust prototype.
14701         Add netgroup-related prototypes.
14702         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14703         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14704         (__nscd_innetgr): Declare.
14705         * nscd/selinux.c (perms): Use access_vector_t as element type and
14706         add netgroup-related initializers.
14707         * nscd/netgroupcache.c: New file.
14708         * nscd/nscd_netgroup.c: New file.
14709         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14710         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14711         For four parameters use innetgr.
14712         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14713         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14714         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14715         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14717         * nscd/connections.c (register_traced_file): Don't register file
14718         for disabled databases.
14720 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14722         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14724         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14725         from tree and freeing node.
14727 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14729         * nss/nsswitch.c (__nss_database_lookup): Handle
14730         nss_parse_service_list out of memory case.
14732 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14734         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14735         out of memory case.
14737 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14739         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14740         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14741         pass it down.
14742         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14743         elf_machine_rela, elf_machine_lazy_rel.
14744         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14745         (ELF_DYNAMIC_DO_REL): Likewise.
14746         (ELF_DYNAMIC_DO_RELA): Likewise.
14747         (ELF_DYNAMIC_RELOCATE): Likewise.
14748         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14749         to ELF_DYNAMIC_DO_REL.
14750         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14751         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14752         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14753         elf_machine_rela.
14754         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14755         skip_ifunc, don't call ifunc function if non-zero.
14756         (elf_machine_rela): Likewise.
14757         (elf_machine_lazy_rel): Likewise.
14758         (elf_machine_lazy_rela): Likewise.
14759         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14760         (elf_machine_lazy_rel): Likewise.
14761         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14762         Likewise.
14763         (elf_machine_lazy_rel): Likewise.
14764         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14765         Likewise.
14766         (elf_machine_lazy_rel): Likewise.
14767         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14768         (elf_machine_lazy_rel): Likewise.
14769         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14770         (elf_machine_lazy_rel): Likewise.
14771         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14772         (elf_machine_lazy_rel): Likewise.
14773         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14774         (elf_machine_lazy_rel): Likewise.
14775         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14776         (elf_machine_lazy_rel): Likewise.
14777         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14778         (elf_machine_lazy_rel): Likewise.
14780 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14782         * nss/nss_files/files-init.c (_nss_files_init): Use static
14783         initialization for all the *_traced_file variables.
14785 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14787         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14789 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14791         [BZ #13226]
14792         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14794 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14796         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14797         Reread the line before reparsing it.
14799 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14801         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14803 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14804             Maxim Kuvyrkov  <maxim@codesourcery.com>
14805             Joseph Myers  <joseph@codesourcery.com>
14807         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14808         if needed for __stack_chk_guard.
14810 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14812         * sysdeps/posix/spawni.c (script_execute): Always define it.
14813         It will be optimized away if unused.
14814         (maybe_script_execute): New function.
14815         (__spawni): Call it.
14817         * Makerules: Don't include tls.make.
14818         (config-tls): Always set to thread.
14819         * tls.make.c: File removed.
14821 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14823         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14824         * config.make.in (CPPFLAGS-config): New substituted variable.
14826 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14828         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14830         [BZ #13192]
14831         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14832         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14834 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14836         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14837         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14838         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14839         (CALL_FAIL): Likewise.
14840         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14841         (CALL_FAIL): Macro removed.
14842         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14844 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14846         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14847         for __FINITE_MATH_ONLY__ == 1.
14849 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14851         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14852         __ieee754_sqrt instead of sqrt.
14853         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14854         __ieee754_sqrtf instead of sqrtf.
14855         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14856         __floorf instead of floorf.
14857         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14858         __floorf, __truncf instead of floorf, truncf.
14860 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14862         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14864         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14865         __extern_always_inline.
14866         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14867         32-bit.
14869 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14871         * elf/rtld.c (dl_main): Also relocate in dependency order when
14872         doing symbol dependency testing.
14874 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14876         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14877         Always define `refsym'.
14879 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14881         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14882         (__FD_ELT): Renamed from __FDELT.
14883         * misc/bits/select2.h (__FD_ELT): Likewise.
14884         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14885         __FD_MASK instead of __FDELT, __FDMASK.
14886         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14887         Likewise.
14888         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14889         Likewise.
14891         * elf/Makefile (gen-ldd): Fix pattern.
14893         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14894         (init_tls): Likewise.
14896 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14898         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14900 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14902         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14903         `struct cmsghdr *' instead of `void *'.
14904         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14905         Likewise.
14907 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14909         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14910         if non-absolute.
14911         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14912         ldd_rewrite_script.
14914 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14916         * configure.in: Remove --with-tls option.
14917         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14918         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14919         out in case it is missing.
14920         * sysdeps/ia64/elf/configure.in: Likewise.
14921         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14922         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14923         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14924         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14925         * sysdeps/sh/elf/configure.in: Likewise.
14926         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14927         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14928         * sysdeps/x86_64/elf/configure.in: Likewise.
14929         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14930         * sysdeps/mach/hurd/tls.h: Likewise.
14932         [BZ #13067]
14933         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14935         [BZ #13090]
14936         * configure.in: Fix use of AC_INIT.
14938         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14940 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14942         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14943         __set_errno.
14944         * malloc/hooks.c: Likewise.
14946         [BZ #11929]
14947         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14948         variables statically.
14949         (narenas): Initialize.
14950         (list_lock): Initialize.
14951         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14952         initializtion of main_arena and list_lock.  Small cleanups.
14953         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14954         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14955         Add initializers to main_arena and mp_.
14956         (malloc_state): Remove pagesize member.  Change all users to use
14957         GLRO(dl_pagesize).
14959         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14960         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14961         is always initialized.
14963         * malloc/malloc.c: Removed unused configurations and dead code.
14964         * malloc/arena.c: Likewise.
14965         * malloc/hooks.c: Likewise.
14966         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14968         * include/tls.h: Removed.  USE___THREAD must always be defined.
14969         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14970         * elf/dl-libc.c: Likewise.
14971         * elf/dl-tsd.c: Likewise.
14972         * include/errno.h: Likewise.
14973         * include/netdb.h: Likewise.
14974         * include/resolv.h: Likewise.
14975         * inet/herrno-loc.c: Likewise.
14976         * inet/herrno.c: Likewise.
14977         * malloc/arena.c: Likewise.
14978         * malloc/hooks.c: Likewise.
14979         * malloc/malloc.c: Likewise.
14980         * resolv/res-state.c: Likewise.
14981         * resolv/res_libc.c: Likewise.
14982         * sysdeps/i386/dl-machine.h: Likewise.
14983         * sysdeps/ia64/dl-machine.h: Likewise.
14984         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14985         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14986         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14987         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14988         * sysdeps/sh/dl-machine.h: Likewise.
14989         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14990         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14991         * sysdeps/unix/i386/sysdep.S: Likewise.
14992         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14993         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14994         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14995         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14996         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14997         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14998         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14999         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15000         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15001         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15002         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15003         * sysdeps/x86_64/dl-machine.h: Likewise.
15004         * tls.make.c: Likewise.
15006         * configure.in: Remove --with-__thread option.  Make tests for
15007         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15008         tls_model attribute fail if no support is available.  Remove
15009         USE_IN_LIBIO.
15010         * Makeconfig: Adjust for dropped configure option.  All features are
15011         now mandatory.
15012         * Makerules: Likewise.
15013         * Versions.def: Likewise.
15014         * argp/argp-fmtstream.c: Likewise.
15015         * argp/argp-fmtstream.h: Likewise.
15016         * argp/argp-help.c: Likewise.
15017         * assert/assert.c: Likewise.
15018         * config.h.in: Likewise.
15019         * config.make.in: Likewise.
15020         * configure: Likewise.
15021         * configure.in: Likewise.
15022         * csu/Versions: Likewise.
15023         * csu/init.c: Likewise.
15024         * elf/tst-audit2.c: Likewise.
15025         * elf/tst-tls10.c: Likewise.
15026         * elf/tst-tls10.h: Likewise.
15027         * elf/tst-tls11.c: Likewise.
15028         * elf/tst-tls12.c: Likewise.
15029         * elf/tst-tls14.c: Likewise.
15030         * elf/tst-tlsmod11.c: Likewise.
15031         * elf/tst-tlsmod12.c: Likewise.
15032         * elf/tst-tlsmod13.c: Likewise.
15033         * elf/tst-tlsmod13a.c: Likewise.
15034         * elf/tst-tlsmod14a.c: Likewise.
15035         * elf/tst-tlsmod15b.c: Likewise.
15036         * elf/tst-tlsmod16a.c: Likewise.
15037         * elf/tst-tlsmod16b.c: Likewise.
15038         * elf/tst-tlsmod7.c: Likewise.
15039         * elf/tst-tlsmod8.c: Likewise.
15040         * elf/tst-tlsmod9.c: Likewise.
15041         * gmon/gmon.c: Likewise.
15042         * grp/fgetgrent_r.c: Likewise.
15043         * grp/putgrent.c: Likewise.
15044         * hurd/fopenport.c: Likewise.
15045         * include/libc-symbols.h: Likewise.
15046         * include/tls.h: Likewise.
15047         * intl/gettextP.h: Likewise.
15048         * intl/loadinfo.h: Likewise.
15049         * locale/global-locale.c: Likewise.
15050         * locale/localeinfo.h: Likewise.
15051         * mach/devstream.c: Likewise.
15052         * malloc/arena.c: Likewise.
15053         * malloc/set-freeres.c: Likewise.
15054         * misc/err.c: Likewise.
15055         * misc/getttyent.c: Likewise.
15056         * misc/mntent_r.c: Likewise.
15057         * posix/getopt.c: Likewise.
15058         * posix/wordexp.c: Likewise.
15059         * pwd/fgetpwent_r.c: Likewise.
15060         * resolv/Versions: Likewise.
15061         * resolv/res_hconf.c: Likewise.
15062         * shadow/fgetspent_r.c: Likewise.
15063         * shadow/putspent.c: Likewise.
15064         * stdio-common/printf_fphex.c: Likewise.
15065         * stdio-common/tmpfile.c: Likewise.
15066         * stdlib/abort.c: Likewise.
15067         * stdlib/fmtmsg.c: Likewise.
15068         * sunrpc/auth_unix.c: Likewise.
15069         * sunrpc/clnt_perr.c: Likewise.
15070         * sunrpc/clnt_tcp.c: Likewise.
15071         * sunrpc/clnt_udp.c: Likewise.
15072         * sunrpc/clnt_unix.c: Likewise.
15073         * sunrpc/openchild.c: Likewise.
15074         * sunrpc/svc_simple.c: Likewise.
15075         * sunrpc/svc_tcp.c: Likewise.
15076         * sunrpc/svc_udp.c: Likewise.
15077         * sunrpc/svc_unix.c: Likewise.
15078         * sunrpc/xdr.c: Likewise.
15079         * sunrpc/xdr_array.c: Likewise.
15080         * sunrpc/xdr_rec.c: Likewise.
15081         * sunrpc/xdr_ref.c: Likewise.
15082         * sunrpc/xdr_stdio.c: Likewise.
15084 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15086         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15088 2011-07-03  Andreas Jaeger  <aj@suse.de>
15090         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15091         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15092         regenerate with gen-libm-tests.pl.
15094 2010-05-12  Petr Baudis  <pasky@suse.cz>
15096         [BZ #11589]
15097         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15098         around j0() zero points by switching to j1().
15099         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15100         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15101         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15102         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15104 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15106         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15107         instead of 0.
15108         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15109         instead of 0.                              .
15110         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15111         Patch in part by Pavel Roskin <proski@gnu.org>.
15113         [BZ #13138]
15114         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15115         realloc.
15116         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15117         Free memory block if necessary.
15119         [BZ #12847]
15120         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15121         be NULL.  Don't lock in this case.
15123 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15125         * elf/elf.h (ELFOSABI_GNU): New macro.
15126         (ELFOSABI_LINUX): Define to that.
15128 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15130         * string/strncat.c (strncat): Undef the symbol in case it has been
15131         defined in bits/string.h.
15133 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15135         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15137         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15138         link map.
15140 2011-08-17  Andreas Jaeger  <aj@suse.de>
15142         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15144 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15145             Ian Lance Taylor  <iant@google.com>
15147         * math/libm-test.inc (lround_test): New testcase.
15148         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15150 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15152         * Makefile: Remove support for automatic cvs check-ins.
15153         * Makerules: Likewise.
15154         * config.make.in: Likewise.
15155         * configure.in: Likewise.
15156         * intl/Makefile: Likewise.
15157         * locale/Makefile: Likewise.
15158         * po/Makefile: Likewise.
15159         * posix/Makefile: Likewise.
15160         * sysdeps/gnu/Makefile: Likewise.
15161         * sysdeps/mach/hurd/Makefile: Likewise.
15162         * sysdeps/sparc/sparc32/Makefile: Likewise.
15164         [BZ #13118]
15165         * posix/Makefile (bug-regex32-ENV): Define.
15166         Patch by John Stanley <jpsinthemix@verizon.net>.
15168         * misc/Makefile (headers): Add bits/select2.h.
15169         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15170         * misc/bits/select2.h: New file.
15171         * include/bits/select2.h: New file.
15172         * debug/Makefile (routines): Add fdelt_chk.
15173         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15174         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15175         FD_ISSET.
15176         * debug/fdelt_chk.c: New file.
15178         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15179         * wcsmbs/test-wmemcmp.c: Likewise.
15180         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15181         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15183 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15185         * string/Makefile (strop-tests): Add memcmp.
15186         * string/test-wmemcmp.c: New file.
15187         * string/test-memcmp.c: Add wmemcmp support.
15189 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15191         [BZ #13153]
15192         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15193         2011-07-19 change.
15195         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15196         garbage value in a __mach_port_mod_refs call in the cases of the
15197         task-self and thread-self ports.
15199 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15201         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15203 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15205         * elf/dl-load.c (lose): Check for non-null L.
15207 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15209         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15211         * elf/dl-libc.c (dlerror_run): Pass back error code from
15212         dl_catch_error.
15214         [BZ #13123]
15215         * elf/dl-load.c (lose): Free l_origin if it is valid.
15217         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15218         names.
15219         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15220         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15221         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15222         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15223         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15224         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15226 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15228         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15229         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15230         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15231         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15232         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15233         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15234         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15235         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15236         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15237         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15239 2011-08-15  Alan Modra  <amodra@gmail.com>
15241         [BZ #13092]
15242         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15243         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15244         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15245         ppc_mcount to static-only-routines.
15246         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15247         __mcount_internal.
15248         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15249         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15251 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15253         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15254         for finite and infinity parameters.
15256 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15258         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15259         and add nop instructions for throughput optimization.
15260         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15262 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15264         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15265         aligned copy for power7 with vector-scalar instructions.
15266         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15268 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15270         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15271         AVX check.
15273 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15275         [BZ #13144]
15276         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15277         last change.
15279 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15281         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15282         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15283         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15284         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15285         clock_gettime.
15287 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15289         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15290         Forgot to demangle the pointer.
15292         * sysdeps/i386/sysdep.h: Define atom_text_section.
15293         * sysdeps/x86_64/sysdep.h: Likewise.
15294         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15295         section with atom_text_section.
15296         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15297         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15298         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15299         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15300         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15302         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15303         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15304         already be defined.  Change to take two parameters and don't assign
15305         result to variable.  Adjust all users.
15306         Define INTERNAL_GETTIME if not already defined.
15307         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15308         call.
15309         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15310         HAVE_CLOCK_GETTIME_VSYSCALL.
15311         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15313         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15314         gettimeofday vsyscall, just use time.
15316 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15318         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15319         <errno.h>.
15321 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15323         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15324         syscall on x86-64.
15325         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15326         syscall.
15327         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15328         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15329         syscall if possible.
15331 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15333         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15334         e_ident.  Don't pass to find_mapsXX.
15335         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15337 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15339         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15340         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15341         * sysdeps/x86_64/multiarch/strchr.S: Update.
15342         Check bit_slow_BSF bit.
15343         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15344         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15345         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15347 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15349         [BZ #13134]
15350         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15351         before glibc 2.15.
15352         (tryshell): Define.
15353         (__spawni): Change last parameter to be flag.  Test
15354         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15355         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15356         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15357         * posix/spawni.c: Likewise.
15358         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15359         * posix/spawnp.c: Likewise.  Change normal version to use
15360         SPAWN_XFLAGS_USE_PATH.
15361         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15362         SPAWN_XFLAGS_TRY_SHELL.
15364         [BZ #13150]
15365         * posix/glob.h: Remove gcc 1.x support.
15367         [BZ #13068]
15368         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15370 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15372         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15373         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15374         strrchr-sse2-bsf
15375         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15376         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15377         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15378         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15379         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15380         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15382 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15384         * sysdeps/x86_64/wcscmp.S: New file.
15386         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15387         wcscmp-c wcscmp-sse2
15388         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15389         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15390         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15391         * wcsmbs/wcscmp.c: Allow renaming.
15393 2011-09-05  David S. Miller  <davem@davemloft.net>
15395         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15396         stack slot, rather than the struct return pointer slot.
15397         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15398         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15399         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15400         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15402 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15404         * po/ja.po: Update from translation team.
15406         [BZ #13144]
15407         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15408         kernel in 64-bit binaries.
15410 2011-09-01  David S. Miller  <davem@davemloft.net>
15412         * elf/elf.h (HWCAP_SPARC_*): Move to..
15413         * sysdeps/sparc/sysdep.h: this new file and add new values.
15414         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15415         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15416         _DL_HWCAP_COUNT to 24.
15417         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15418         entries.
15419         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15420         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15421         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15422         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15423         instead of magic constants.
15424         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15426 2011-08-31  David S. Miller  <davem@davemloft.net>
15428         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15429         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15430         Reimplement to do errno handling inline.
15431         (SYSCALL_ERROR_HANDLER): New macro.
15432         (__SYSCALL_STRING): Do not do errno handling in asm.
15433         (__CLONE_SYSCALL_STRING): Delete.
15434         (__INTERNAL_SYSCALL_STRING): Delete.
15435         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15436         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15437         (PSEUDO): Reimplement to do errno handling inline.
15438         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15439         (SYSCALL_ERROR_HANDLER): New macro.
15440         (__SYSCALL_STRING): Do not do errno handling in asm.
15441         (__CLONE_SYSCALL_STRING): Delete.
15442         (__INTERNAL_SYSCALL_STRING): Delete.
15443         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15444         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15445         i386.
15446         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15447         (inline_syscall*): Add 'err' argument.
15448         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15449         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15450         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15451         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15453         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15454         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15456 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15458         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15460 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15462         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15463         directive.
15465 2011-08-24  David S. Miller  <davem@davemloft.net>
15467         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15469 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15471         * elf/Makefile: Add rules to build and run unload8 test.
15472         * elf/unload8.c: New file.
15473         * elf/unload8mod1.c: New file.
15474         * elf/unload8mod1x.c: New file.
15475         * elf/unload8mod2.c: New file.
15476         * elf/unload8mod3.c: New file.
15478         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15479         it wasn't used.
15481 2011-08-23  David S. Miller  <davem@davemloft.net>
15483         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15484         subtract stack bias.
15485         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15486         %sp not %fp in calculations.
15487         (_JMPBUF_UNWINDS_ADJ): Likewise.
15489         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15490         (aio_suspend): Call it to force an exception region around the
15491         AIO_MISC_WAIT() invocation.
15493 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15495         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15496         backslash.
15498 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15500         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15501         protection macro.
15502         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15503         and <dl-machine.h>.
15504         (Elf64_FuncDesc): Remove.
15506 2011-08-22  David S. Miller  <davem@davemloft.net>
15508         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15509         sigaltstack check, add missing cfi directives.
15510         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15511         missing cfi directives, and sigaltstack handling.
15513 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15515         [BZ #11724]
15516         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15517         object is seen twice.
15518         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15520         * elf/Makefile (distribute): Add tst-initorder2.c.
15521         (tests): Add tst-initorder2.
15522         (modules-names): Add tst-initorder2a tst-initorder2b
15523         tst-initorder2c tst-initorder2d.  Add rules to build them.
15524         ($(objpfx)tst-initorder2.out): New rule.
15525         * elf/tst-initorder2.c: New file.
15526         * elf/tst-initorder2.exp: New file.
15528 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15530         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15532         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15533         dependencies back to end of function.
15535         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15536         $(elfobjdir)/ld.so.
15538 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15540         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15541         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15542         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15543         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15544         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15545         of __vdso_gettimeofday.
15546         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15547         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15548         attribute_hidden.
15549         (_libc_vdso_platform_setup): Remove initialization of
15550         __vdso_gettimeofday and __vdso_time.
15552 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15554         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15555         and fgetc_unlocked.
15556         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15557         getc_unlocked.
15559         * elf/dl-open.c (add_to_global): Report additions to the global scope
15560         for LD_DEBUG=scopes.
15561         (dl_open_worker): Also print scope of newly loaded dependencies.
15562         (_dl_show_scope): Indicate if there is no scope.
15564         [BZ #13114]
15565         * stdio-common/Makefile (tests): Add bug24.
15566         * stdio-common/bug24.c: New file.
15568 2011-08-19  Andreas Jaeger  <aj@suse.de>
15570         [BZ #13114]
15571         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15572         non-existant file when using close-on-exec mode.
15574 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15576         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15577         the very first instruction.
15579         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15580         the CFI state in the end.
15581         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15582         inclusion of dl-trampoline.h.
15583         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15585 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15587         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15588         expectations for long double.
15590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15591         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15593 2011-08-14  David S. Miller  <davem@davemloft.net>
15595         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15596         artificual limit depends upon the system page size.
15598 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15600         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15601         * resolv/Makefile: Define CFLAGS-libresolv.
15603 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15605         * nss/makedb.c (compute_tables): Make variables used in nested
15606         function static.
15608 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15610         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15611         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15612         if buffer was too small.
15614         * elf/pldd.c (main): Attach to all threads in the process.
15615         Rewrite /proc handling to use *at functions.
15617 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15619         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15620         specifies first scope to show.
15621         (dl_open_worker): Update callers.  Move printing scope of new
15622         object to before the relocation.
15623         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15624         * sysdeps/generic/ldsodefs.h: Update declaration.
15626         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15627         string for the scope number.
15629 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15631         * nscd/servicescache.c (cache_addserv): Make sure written is always
15632         initialized.
15634 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15636         * sysdeps/i386/i486/bits/atomic.h
15637         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15638         statement expression, so as to suppress "set but not used" warning.
15639         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15641         * string/strncat.c (STRNCAT): Use prototype definition.
15643         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15644         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15645         -Iprograms here.
15646         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15647         (localedef-modules): Add localedef.
15648         (locale-modules): Add locale.
15650         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15651         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15652         to avoid a warning.
15654 2011-08-14  David S. Miller  <davem@davemloft.net>
15656         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15657         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15659 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15661         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15662         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15663         * elf/rtld.c (dl_main): Set l_name of vDSO.
15664         Call _dl_show_scope when DL_DEBUG_SCOPES.
15665         (process_dl_debug): Recognize scopes flag and also set it for all.
15666         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15667         Declare _dl_show_scope.
15669         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15670         (do_dlopen): Pass caller_dlopen to dl_open.
15671         (__libc_dlopen_mode): Initialize caller_dlopen.
15673         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15674         of libc.  Make tolower call locale-independent.  Optimize a bit by
15675         using isdigit instead of isalnum.
15676         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15678 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15680         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15681         was a dependency or dynamically loaded.
15683 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15685         * intl/l10nflist.c: Allow architecture-specific pop function.
15686         * sysdeps/x86_64/l10nflist.c: New file.
15688         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15689         classification.
15691 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15693         * include/dirent.h: Add libc_hidden_proto for scandirat and
15694         scandirat64.  Don't declare __scandirat64.
15695         * dirent/scandirat.c: Add libc_hidden_def.
15696         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15697         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15699 2011-08-10  David S. Miller  <davem@davemloft.net>
15701         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15702         enum.
15703         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15704         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15705         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15707 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15709         * Versions.def [libc]: Add GLIBC_2.15.
15710         * dirent/Makefile (routines): Add scandirat and scandirat64.
15711         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15712         GLIBC_2.15.
15713         * dirent/dirent.h: Declare scandirat and scandirat64.
15714         * dirent/scandirat.c: New file.
15715         * dirent/scandirat64.c: New file.
15716         * sysdeps/wordsize-64/scandirat.c: New file.
15717         * sysdeps/wordsize-64/scandirat64.c: New file.
15718         * dirent/opendir.c: Define opendirat.
15719         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15720         using scandirat.
15721         * dirent/scandir64.c: Adjust for scandir.c change.
15722         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15723         __scandirat64, and __scandir_cancel_handler.
15724         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15725         additional parameter and use openat instead of open (outside of ld.so).
15726         Add new __opendir as wrapper around __opendirat.
15727         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15728         here without requiring old scandirat implementation.
15730 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15732         * dirent/scandir.c (cancel_handler): Renamed to
15733         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15734         defined.  Adjust users.
15735         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15736         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15738 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15740         * string/test-string.h (IMPL): Use __STRING to expand name and then
15741         stringify it.
15743         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15744         of cleanups.
15746 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15748         * string/Makefile: Update.
15749         (strop-tests): Append strncat.
15750         * string/test-wcscmp.c: New file.
15751         New comprehensive test for wcscmp.
15752         * string/test-strcmp.c: Update.
15753         (WIDE): New define.
15755 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15757         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15758         line.
15760 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15762         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15763         encoding to ACE if AI_IDN.
15765 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15767         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15768         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15770 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15772         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15773         Fix overflow bug in strncat.
15774         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15776         * string/test-strncat.c: Update.
15777         Add new tests for checking overflow bugs.
15779 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15781         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15782         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15783         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15784         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15785         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15786         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15787         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15788         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15789         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15791         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15792         (USE_AS_STRCAT): Define.
15793         Add strcat and strncat support.
15794         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15796 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15798         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15799         __n bigger than INT_MAX+1.
15800         (__strncmp_g): Likewise.
15802 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15804         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15805         * libio/stido.h: Likewise.
15807         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15808         (AF_NFC): Define.
15809         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15810         (AF_NFC): Define.
15812         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15813         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15814         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15815         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15816         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15818         [BZ #13021]
15819         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15820         installed.
15822         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15823         typo.
15824         (_dl_x86_64_save_sse): Likewise.
15826 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15828         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15829         OSXSAVE.
15830         (_dl_x86_64_save_sse): Likewise.
15832         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15834         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15836 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15838         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15839         change.
15840         (_dl_x86_64_save_sse): Use correct AVX check.
15842 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15844         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15845         bug in strncpy/strncat.
15846         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15848 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15850         * string/tester.c (test_strcat): Add tests for different alignments
15851         of source and destination.
15852         (test_strncat): Likewise.
15854 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15856         [BZ #12852]
15857         * posix/glob.c (glob): Check passed in values before using them in
15858         expressions to avoid some overflows.
15859         (glob_in_dir): Likewise.
15861         [BZ #13007]
15862         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15863         check for AVX enablement so that we don't crash with old kernels and
15864         new hardware.
15865         * elf/tst-audit4.c: Add same checks here.
15866         * elf/tst-audit6.c: Likewise.
15868         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15870 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15872         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15874 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15876         * po/cs.po: Update from translation team.
15877         * po/bg.po: Likewise.
15879 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15881         * misc/sys/cdefs.h: Add support for const attribute.
15882         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15883         to gnu_dev_{major,minor,makedev} functions.
15885 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15887         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15889 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15891         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15892         strlen results.
15894 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15896         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15897         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15898         register in order to avoid conflicts with the soft frame pointer
15899         being held in r11 when necessary.
15900         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15901         (INTERNAL_VSYSCALL_NCS): Likewise.
15903 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15905         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15906         * elf/dl-fini.c (_dl_fini): Adjust caller.
15907         * elf/dl-close.c (_dl_close_worker): Likewise.
15908         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15910 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15912         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15913         "aux_cache->nlibs < 0".
15915         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15916         in the reload-count case.
15918 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15920         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15921         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15922         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15923         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15924         * sysdeps/x86_64/multiarch/strcat.S: New file.
15925         * sysdeps/x86_64/multiarch/strncat.S: New file.
15926         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15927         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15928         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15929         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15930         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15931         (USE_AS_STRCAT): Define.
15932         Add strcat and strncat support.
15933         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15934         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15935         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15936         * string/strncat.c: Update.
15937         (USE_AS_STRNCAT): Define.
15938         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15939         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15940         and i7.
15941         * sysdeps/x86_64/multiarch/init-arch.h
15942         (bit_Prefer_PMINUB_for_stringop): New.
15943         (index_Prefer_PMINUB_for_stringop): Likewise.
15944         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15945         bit_Prefer_PMINUB_for_stringop.
15947 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15949         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15950         buffer64.
15951         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15952         of casting of buffer.
15953         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15954         buffer32 and buffer64.
15955         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15956         writes instead of casting of buffer.
15957         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15958         buffer32.
15959         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15960         casting of buffer.
15962 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15964         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15966 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15968         * nscd/nscd.c (termination_handler): Don't do anything for a database
15969         if it has not yet been initialized.
15971 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15973         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15975 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15977         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15979 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15981         * po/nl.po: Update from translation team.
15982         * po/sv.po: Likewise.
15984 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15986         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15987         now disallowed by GCC.
15989         * configure.in (use-default-link): Default to yes if a test -shared
15990         link meets our qualifications.
15991         * configure: Regenerated.
15993         * config.make.in (output-format): New variable.
15994         * configure.in: Check for ld --print-output-format support.
15995         * configure: Regenerated.
15996         * Makerules ($(common-objpfx)format.lds)
15997         [$(output-format) != unknown]: Just use $(output-format),
15998         instead of the linker-script munging.
16000 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16002         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16003         of $(common-objpfx)shlib.lds.
16004         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16006         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16007         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16009         * configure.in (-z relro check): Adjust test code to add a large
16010         writable data section after it.
16011         * configure: Regenerated.
16013 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16015         * configure.in (-z relro check): Fix test code to make the variable
16016         truly const.
16017         * configure: Regenerated.
16019 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16021         * nscd/nscd.h (struct traced_file): Define.
16022         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16023         elements.  Add traced_files.
16024         (inotify_fd): Declare.
16025         (register_traced_file): Declare.
16026         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16027         (inotify_fd): Export.
16028         (resolv_conf_descr): Remove.
16029         (nscd_init): Move inotify descriptor creation to main.
16030         Don't register files for notification here.
16031         (register_traced_file): New function.
16032         (invalidate_cache): Don't use reset_res to determine whether to call
16033         res_init, go through the list of registered files.
16034         (main_loop_poll): The inotify descriptors are now stored in the
16035         structures for the traced files.
16036         (main_loop_epoll): Likewise
16037         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16038         to __nss_disable_nscd.
16039         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16040         for a database anymore.  Check the records for all the registered
16041         files instead.
16042         * nss/Makefile (libnss_files-routines): Add files-init.
16043         (libnss_db-routines): Add db-init.
16044         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16045         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16046         * nss/nss_db/db-init.c: New file.
16047         * nss/nss_files/files-init.c: New file.
16048         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16049         __nss_lookup_function.
16050         (__nss_lookup_function): Call nss_load_library.
16051         (nss_load_all_libraries): New function.
16052         (__nss_disable_nscd): Take parameter with callback function for files
16053         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16054         used for the cached services.
16055         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16056         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16057         options for features to all the files in nscd.
16059         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16061 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16063         * csu/elf-init.c (__libc_csu_init): Comment typo.
16065 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16067         * po/pl.po: Update from translation team.
16068         * po/ja.po: Likewise.
16069         * po/ru.po: Likewise.
16070         * po/ko.po: Likewise.
16071         * po/fr.po: Likewise.
16073 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16075         * configure.in (.ctors/.dtors header and trailer check):
16076         Use an empirical test on a built program.
16077         * configure: Regenerated.
16079         * configure.in (-z relro check): Use an empirical test on a built DSO.
16080         Detect, but do not require, on ia64.
16081         * configure: Regenerated.
16083         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16084         Update tests that use readelf to use $READELF instead.
16085         * configure: Regenerated.
16087 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16089         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16090         if the result is not used.
16092 2011-07-05  Andreas Jaeger  <aj@suse.de>
16094         [BZ#9696]
16095         * stdlib/tst-strtod.c: Add testcase.
16097 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16099         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16100         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16101         The latter has a higher limit.  Take additional parameter to pass to
16102         the new function.
16103         (__pathconf): Pass file to __statfs_link_max.
16104         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16105         __statfs_link_max.
16106         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16107         __statfs_link_max.
16109         [BZ #12868]
16110         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16111         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16112         Handle Lustre.
16113         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16114         (__statfs_filesize_max): Likewise.
16115         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16117 2011-07-05  Andreas Jaeger  <aj@suse.de>
16119         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16121 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16123         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16124         `status' variable.
16125         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16126         Likewise.
16128 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16130         * Makefile (strop-tests): Add strncat.
16131         * string/test-strncat.c: New file.
16133 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16135         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16137 2011-06-21  Andreas Jaeger  <aj@suse.de>
16139         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16140         Copy rule from iconvdata/Makefile.
16142 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16144         [BZ #12922]
16145         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16146         but no long options are defined, just return 'W'.
16148 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16150         [BZ #9696]
16151         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16153 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16155         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16156         netgroups to read.
16157         (innetgr): Likewise.
16159 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16161         * config.make.in (install_root): Default to $(DESTDIR).
16163 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16165         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16167 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16169         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16171         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16172         containing directory rather than embedding absolute directory names.
16174         * scripts/check-local-headers.sh: Rewritten using awk.
16175         Match by word, not by line.  Print error messages for matches.
16176         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16178         * Makerules [shlib-lds-flags empty]:
16179         ($(common-objpfx)libc_pic.opts): New target.
16180         ($(common-objpfx)libc_pic.os.clean): New target.
16181         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16183         * config.make.in (OBJCOPY): New variable.
16184         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16185         * configure: Regenerated.
16187         * config.make.in (use-default-link): New variable.
16188         * configure.in (use_default_link): Grok --with-default-link to set it.
16189         * configure: Regenerated.
16190         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16191         (shlib-lds, shlib-lds-flags): Define to empty.
16193         * Makerules (shlib-lds): New variable.
16194         (shlib-lds-flags): New variable.
16195         (build-shlib, build-moduile, build-module-asneeded): Use it.
16196         ($(common-objpfx)libc.so): Use $(shlib-lds).
16197         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16198         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16200         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16201         DT_FLAGS/DT_FLAGS_1 with zero flags.
16203         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16204         linker script munging.
16206 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16208         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16209         as 128-bit value.
16210         * crypt/sha512.c (sha512_process_block): Perform total addition using
16211         128-bit if possible.
16212         (__sha512_finish_ctx): Likewise.
16213         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16214         as 64-bit value.
16215         * crypt/sha256.c (SWAP64): Define.
16216         (sha256_process_block): Perform total addition using 64-bit if
16217         possible.
16218         (__sha256_finish_ctx): Likewise.
16220 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16222         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16223         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16224         * nscd/hstcache.c (cache_addhst): Likewise.
16225         * nscd/grpcache.c (cache_addgr): Likewise.
16226         * nscd/aicache.c (addhstaiX): Likewise
16227         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16229 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16231         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16232         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16233         * nscd/hstcache.c (cache_addhst): Likewise.
16234         * nscd/grpcache.c (cache_addgr): Likewise.
16235         * nscd/aicache.c (addhstaiX): Likewise
16237 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16239         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16240         domain only when needed.
16242 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16244         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16245         is always restored.
16247 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16249         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16250         are re-adding the entry.
16251         * nscd/servicescache.c (cache_addserv): Likewise.
16253 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16255         * sysdeps/generic/dl-irel.h: fix protection against multiple
16256         inclusions.
16257         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16259 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16261         [BZ #12935]
16262         * malloc/memusage.sh: Fix quoting in message.
16263         * debug/xtrace.sh: Likewise.
16265         * configure.in: Remove support for --experimental-malloc option, make
16266         it the default.
16267         * config.make.in: Likewise.
16268         * malloc/Makefile: Likewise.
16270 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16272         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16273         two-byte characters.
16275 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16277         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16278         AC_CACHE_CHECK invocation.
16279         * configure: Regenerated.
16281         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16283 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16285         [BZ #12350]
16286         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16287         bit from old_res_options.
16289         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16291         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16292         value type for setfct.
16294 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16296         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16297         __gettimeofday instead of gettimeofday.
16299 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16301         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16303 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16305         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16307         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16308         info.
16310 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16312         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16313         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16314         strcpy-sse2-unaligned strncpy-sse2-unaligned
16315         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16316         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16317         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16318         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16319         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16320         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16321         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16322         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16323         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16324         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16325         (STRCPY): Support SSE2 and SSSE3 versions.
16327 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16329         [BZ #12874]
16330         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16331         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16332         kernels which artificially limit size of requests.
16334 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16336         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16337         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16338         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16339         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16340         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16341         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16342         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16343         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16344         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16345         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16346         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16347         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16348         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16349         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16350         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16351         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16352         Enable unaligned load optimization for Intel Core i3, i5 and i7
16353         processors.
16354         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16355         Define.
16356         (index_Fast_Unaligned_Load): Define.
16357         (HAS_FAST_UNALIGNED_LOAD): Define.
16359 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16361         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16363 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16365         [BZ #12907]
16366         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16367         until it is clear that the information is realy needed.
16368         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16370 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16372         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16374 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16376         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16377         /sys/devices/system/cpu/online if it is usable.
16379         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16380         reading the information from the /proc filesystem to once a second.
16382 2011-06-21  Andreas Jaeger  <aj@suse.de>
16384         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16385         NULL after inclusion of kernel headers.
16387 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16389         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16390         calls to internal_setent.
16392         [BZ #12885]
16393         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16394         addresses using gethostbyname4_r ignore IPv4 addresses.
16396         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16397         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16399         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16401 2011-06-20  David S. Miller  <davem@davemloft.net>
16403         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16404         inclusions.
16405         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16407         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16408         (elf_irel): Use it.
16409         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16410         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16411         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16412         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16413         * sysdeps/x86_64/dl-irel.h: Likewise.
16415         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16416         * elf/dl-sym.c: Likewise.
16418 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16420         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16421         need to dereference resplen2.
16423 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16425         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16427 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16429         * Makeconfig: Define vardbdir and inst_vardbdir.
16430         * nss/Makefile: Add rules to install db-Makefile.
16432         * nss/nss_db/db-XXX.c: Cleanup.
16434         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16435         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16436         GLIBC_PRIVATE.
16437         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16438         * nss/makedb.c: Implement -g option to specify that value strings
16439         are generated and should not be added to table iterated over for
16440         get*ent calls.
16441         * nss/nss_db/db-initgroups.c: New file.
16443         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16444         interface.
16446         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16447         (internal_getgrouplist): Adjust to name change.
16448         Update use_initgroups_entry if this is not the first call.
16449         * nss/databases.def: Add initgroups entry.
16451         * nss/makedb.c (compute_tables): Check result of multiple hash table
16452         sizes to minimize maximum chain length.
16454 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16456         * Versions.def: Add entry for libnss_db.
16457         * shlib-versions: Likewise.
16458         * nss/Makefile: Add rules to build libnss_db.
16459         * nss/Versions: Add libnss_db information.  Organize libnss_files
16460         entries better.
16461         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16462         makedb progra.  Some minor improvements to generate smaller files.
16463         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16464         here from...
16465         * nss/makedb.c: ...here.
16466         Improve database format to be smaller and require less memory at
16467         runtime.
16468         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16469         db anymore.
16470         * nss/nss_db/db-netgrp.c: Likewise.
16471         * nss/nss_db/db-open.c: Likewise.
16472         * nss/nss_files/flies-XXX.x: Adjust comments.
16473         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16474         * nss/nss_files/files-grp.c: Likewise.
16475         * nss/nss_files/files-hosts.c: Likewise.
16476         * nss/nss_files/files-network.c: Likewise.
16477         * nss/nss_files/files-proto.c: Likewise.
16478         * nss/nss_files/files-pwd.c: Likewise.
16479         * nss/nss_files/files-rpc.c: Likewise.
16480         * nss/nss_files/files-service.c: Likewise.
16481         * nss/nss_files/files-sgrp.c: Likewise.
16482         * nss/nss_files/files-spwd.c: Likewise.
16483         * nss/nss_db/db-alias.c: Removed.
16484         * nss/nss_db/dummy-db.h: Removed.
16486 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16488         * nss/makedb.c: Rewritten to not use database library.
16489         * nss/Makefile: Update to build new makedb program.
16491 2011-06-14  Andreas Jaeger  <aj@suse.de>
16493         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16494         memset declaration.
16496 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16498         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16499         tmpbuf.
16501 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16503         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16504         * elf/Makefile ($(objpfx)ld.so): Likewise.
16506         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16507         Don't list ld.so twice in dependencies.
16509         * posix/bug-regex31.c: Include <stdlib.h>.
16511         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16513         * nis/nss_compat/compat-spwd.c
16514         (getspent_next_nss_netgr): Remove unused variable.
16515         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16517         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16518         nonmembers" output to use the right array.
16520         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16522         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16524         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16525         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16526         * catgets/gencat.c (read_input_file): Likewise.
16527         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16529         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16530         variable definition inside #if's controlling its use.
16532         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16534         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16536         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16538         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16539         unreachable code.
16541         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16543         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16544         * configure: Regenerated.
16546         * Makerules: Revert last change.
16547         * elf/Makefile: Likewise.
16549 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16551         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16552         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16553         (reloc-link): Likewise.
16555 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16557         * elf/Makefile: Add rules to build pldd.
16558         * elf/pldd.c: New file.
16559         * elf/pldd-xx.c: New file.
16561 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16563         * version.h: Update for 2.15 development version.
16565 2011-06-07  David S. Miller  <davem@davemloft.net>
16567         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16568         ifuncs.
16569         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16570         elf_machine_lazy_rel): Likewise.
16571         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16572         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16573         elf_machine_lazy_rel): Likewise.
16574         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16575         dl_hwcap via passed in argument.
16576         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16577         Likewise.
16579 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16581         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16583 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16585         [BZ #12849]
16586         * manual/fdl-1.1.texi: New file, verbatim from:
16587         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16588         * manual/lgpl-2.1.texi: New file, verbatim from:
16589         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16590         * manual/Makefile (licenses): New variable, list those new file names.
16591         (texis): Use it.
16592         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16594         * manual/fdl.texi: File removed.
16595         * manual/lesser.texi: File removed.
16596         * manual/libc.texinfo (Copying, Documentation License):
16597         Use new @include file names, put @appendix directive before @include.
16599 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16601         [BZ #12841]
16602         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16603         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16604         (mq_open): Add __NTH.
16606 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16608         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16609         Assume Intel Core i3/i5/i7 processor if AVX is available.
16611 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16613         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16614         typo.
16616 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16618         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16619         memory.  Use alloca_account.  Fix memory leak when retrying.
16621 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16623         * version.h (RELEASE): Bump for 2.14 release.
16624         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16626         * config.make.in (RANLIB): Remove entry.
16628 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16630         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16631         (libc.pot): Work around missing support for .ksh extension in xgettext.
16633         [BZ #12684]
16634         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16635         if both request failed.
16636         (send_dg): In case of server errors clear resplen or *resplen2.
16638         [BZ #12454]
16639         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16640         when there are multiple maps.
16641         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16642         (_dl_fini): Remove test here.
16644         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16646 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16648         [BZ #12350]
16649         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16650         bit from old_res_options.
16651         (gaih_inet): Likewise.
16653         [BZ #11099]
16654         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16655         as signed.
16657         * resolv/res_init.c (res_setoptions): Make the code more compact.
16659         [BZ #11558]
16660         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16661         set RES_USEVC.
16663         [BZ #11634]
16664         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16666         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16668         [BZ #11781]
16669         * malloc/malloc.h: Declare malloc hook variables as volatile.
16671         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16672         in last patch.
16674         [BZ #11799]
16675         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16676         raise in the comment.
16677         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16678         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16679         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16681 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16683         [BZ #12811]
16684         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16685         grow the buffers more if it already has to be sufficient.
16686         (build_wcs_upper_buffer): Likewise.
16687         * posix/regexec.c (check_matching): Likewise.
16688         (clean_state_log_if_needed): Likewise.
16689         (extend_buffers): Don't enlarge buffers beyond size of the input
16690         buffer.
16691         Patches mostly by Emil Wojak <emil@wojak.eu>.
16692         * posix/bug-regex32.c: New file.
16693         * posix/Makefile (tests): Add bug-regex32.
16695         * locale/findlocale.c (_nl_find_locale): Return right away if
16696         _nl_explode_name failed.
16697         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16699         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16701         * debug/xtrace.sh: Unify messages.
16702         * malloc/memusage.sh: Likewise.
16704         [BZ #12813]
16705         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16706         time symbol from vDSO.  Substitute with vsyscall if not available.
16707         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16708         __vdso_time.
16710         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16711         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16712         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16713         Add sendmmsg and internal_sendmmsg.
16714         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16715         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16716         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16718         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16719         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16720         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16722 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16724         [BZ #12813]
16725         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16726         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16727         available.
16728         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16729         __vdso_getcpu.
16731         [BZ #12814]
16732         * iconvdata/Makefile (tests): Add bug-iconv9.
16733         * iconvdata/bug-iconv9.c: New file.
16735 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16737         [BZ #12814]
16738         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16740 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16742         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16743         (struct user_regs_struct): Change intcs field back to cs.
16745 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16747         * po/ja.po: Update from translation team.
16749 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16751         [BZ #12795]
16752         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16753         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16755 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16757         * stdlib/longlong.h: Update from GCC.
16759 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16761         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16762         parameter name.
16763         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16764         Add parameter name.
16765         (__sysconf): Pass it down.
16767 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16769         [BZ #12671]
16770         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16771         some situations.
16772         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16773         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16774         add in in __libc_use_alloca calls.  Adjust callers.
16775         (glob): Use malloc in some situations.
16777         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16778         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16779         pltexit.
16781 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16783         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16784         and CLOCK_BOOTTIME_ALARM.
16786         [BZ #12782]
16787         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16788         is returned.
16790         * string/_strerror.c (__strerror_r): Print negative errors as signed
16791         numbers.
16793         [BZ #12777]
16794         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16795         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16796         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16798         * configure.in: Fix typo in redirection and correct removal of test
16799         files in two cases.
16801         [BZ #12788]
16802         * locale/setlocale.c (new_composite_name): Fix test to check for
16803         identical name of all categories.
16805         [BZ #12792]
16806         * libio/filedoalloc.c (local_isatty): New function.
16807         (_IO_file_doallocate): Use local_isatty.
16808         * stdio-common/perror.c (perror): In case a new stream is used
16809         forward the stream error.
16810         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16811         error flag.
16813 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16815         [BZ #11869]
16816         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16817         alloca.
16818         * include/alloca.h (extend_alloca_account): Define.
16820         [BZ #11857]
16821         * posix/regex.h: Fix comments with documentation of user-accessible
16822         fields after compilation and describe correct free'ing of pattern
16823         after re_compile_pattern.
16824         Patch by Reuben Thomas <rrt@sc3d.org>.
16826 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16828         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16829         and -mno-altivec to prevent the compiler from using Altivec and/or
16830         VSX instructions when the corresponding registers are not available.
16832 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16834         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16836 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16838         * libio/freopen.c (freopen): Use __dup2, not dup2.
16839         * libio/freopen64.c (freopen64): Likewise.
16841 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16843         [BZ #12775]
16844         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16845         * math/Makefile (tests): Add test-powl.
16846         (CFLAGS-test-powl.c): Define.
16847         * math/test-powl.c: New file.
16849 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16851         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16853 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16855         [BZ #11837]
16856         * iconvdata/gb18030.c: Update to GB18020-2005.
16858 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16860         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16861         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16862         Patch by Aharon Robbins <arnold@skeeve.com>.
16864         [BZ #11892]
16865         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16866         on the stack.
16868         [BZ #11895]
16869         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16870         through underflows.
16872         [BZ #12766]
16873         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16874         point to strings before performing equality test for error_one_per_line
16875         mode.
16877         [BZ #11697]
16878         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16880         [BZ #11820]
16881         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16882         (struct user_fpregs_struct): Avoid __uint*_t types.
16884         [BZ #6420]
16885         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16886         symbol info.  Use it instead of calling _dl_addr locally.
16887         (lock_and_info): New function.
16888         (tr_freehook): Call lock_and_info and pass symbol info as additional
16889         parameter to tr_where.
16890         (tr_mallochook): Likewise.
16891         (tr_reallochook): Likewise.
16892         (tr_memalignhook): Likewise.
16894         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16895         used and couldn't be at all thread-safe.
16897 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16899         * libio/freopen.c (freopen): Don't close old file descriptor
16900         before the new one is opened.  Instead dup the new file descriptor
16901         to the old one after the new stream is created.
16902         * libio/freopen64.c (freopen64): Likewise.
16903         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16904         * libio/fileops.c (_IO_new_file_close_it): Handle new
16905         _IO_FLAGS2_NOCLOSE flag.
16906         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16907         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16908         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16909         _IO_FLAGS2_NOCLOSE flag.
16910         * include/unistd.h: Add hidden_proto for dup3.
16911         Define __have_dup3.
16912         * io/dup3.c: Define hidden symbol.
16913         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16915         [BZ #7101]
16916         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16917         when an incomplete long option is used.
16918         * posix/tst-getopt_long1.c: New file.
16919         * posix/Makefile (tests): Add tst-getopt_long1.
16921         [BZ #10138]
16922         * scripts/config.guess: Update from autoconf-2.68.
16923         * scripts/config.sub: Likewise.
16925         [BZ #10157]
16926         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16927         tests into ...
16928         (has_cpuclock): ...this.  New function.
16929         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16930         macro here based on has_cpuclock code.
16932         [BZ #10149]
16933         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16934         First byte (not low byte) is now always NUL.
16935         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16937         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16938         Use non-cancelable interfaces.
16940         [BZ #9809]
16941         * locale/iso-639.def: Add entry for Sorani.
16943         [BZ #11901]
16944         * include/stdlib.h: Move include protection to the right place.
16945         Define abort_msg_s.  Declare __abort_msg with it.
16946         * stdlib/abort.c (__abort_msg): Adjust type.
16947         * assert/assert.c (__assert_fail_base): New function.  Majority
16948         of code from __assert_fail.  Allocate memory for __abort_msg with
16949         mmap.
16950         (__assert_fail): Now call __assert_fail_base.
16951         * assert/assert-perr.c: Remove bulk of implementation.  Use
16952         __assert_fail_base.
16953         * include/assert.hL Declare __assert_fail_base.
16954         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16955         mmap.
16956         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16958 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16960         [BZ #11952]
16961         [BZ #12453]
16962         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16963         until all modules are registered in the DTV.
16964         * elf/Makefile: Add rules to build and run tst-tls19.
16965         * elf/tst-tls19.c: New file.
16966         * elf/tst-tls19mod1.c: New file.
16967         * elf/tst-tls19mod2.c: New file.
16968         * elf/tst-tls19mod3.c: New file.
16969         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16971         [BZ #12083]
16972         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16973         correctly.
16975         [BZ #12601]
16976         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16977         two-byte sequence errors.
16978         * iconvdata/Makefile (tests): Add bug-iconv8.
16979         * iconvdata/bug-iconv8.c: New file.
16981         [BZ #12626]
16982         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16983         buf2 definition.
16985         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16987         [BZ #12432]
16988         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16989         (dummy_getcfa): New function.
16990         (init): Get _Unwind_GetCFA address, use dummy if not found.
16991         (backtrace_helper): In recursion check, also check whether CFA changes.
16992         (__backtrace): Completely initialize arg.
16994         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16995         storing incomplete byte sequence in state object.  Avoid testing for
16996         guaranteed too small input if we know there is enough data available.
16998 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17000         * Makeconfig (+link-pie): Indent.
17001         * Rules (binaries-pie): Define if $(have-fpie) and
17002         $(build-shared).
17003         (binaries-shared): Also filter out $(binaries-pie).
17004         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17005         * nscd/Makefile (others-pie): Add nscd.
17006         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17007         ($(objpfx)nscd): Remove command override.
17008         * login/Makefile (others-pie): Add pt_chown.
17009         ($(objpfx)pt_chown): Remove command override.
17010         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17011         remove command overrides.
17013 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17015         * libio/tst_putwc.c: Fix error messages.
17017         [BZ #12724]
17018         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17019         currently writing and seek to current position when not.
17020         * libio/Makefile (tests): Add bug-fclose1.
17021         * libio/bug-fclose1.c: New file.
17023 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17025         [BZ #12511]
17026         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17027         don't set DF_1_NODELETE here.
17028         (do_lookup_x): When entering new entry test for copy relocation
17029         and if necessary set DF_1_NODELETE flag.
17030         * elf/tst-unique4.cc: New file.
17031         * elf/tst-unique4.h: New file.
17032         * elf/tst-unique4lib.cc: New file.
17033         * elf/Makefile: Add rules to build and run tst-unique4.
17034         Patch by Piotr Bury <pbury@goahead.com>.
17036 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17038         [BZ #12052]
17039         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17041         [BZ #12625]
17042         * misc/mntent_r.c (addmntent): Flush the stream after the output
17044         [BZ #12393]
17045         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17046         (is_trusted_path_normalize): Skip initial colon.  Append slash
17047         to empty buffer.  Duplicate is_trusted_path code but allow
17048         constructed patch to be prefix.
17049         (is_dst): Allow $ORIGIN followed by /.
17050         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17051         Correct testing of result of is_trusted_path_normalize
17052         (decompose_rpath): Fix warning.
17054 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17056         [BZ #11257]
17057         * grp/initgroups.c (internal_getgrouplist): When we found the service
17058         list through the initgroups entry in nsswitch.conf do not always
17059         continue on a successful lookup.  Don't always use the
17060         __nss_group_database value if it is set.
17061         * nss/nsswitch.conf (initgroups): Change action for successful db
17062         lookup to continue for compatibility.
17064 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17066         [BZ #11532]
17067         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17068         and CP774 modules.
17069         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17070         and CP774 modules.
17071         * iconvdata/tst-tables.sh: Likewise.
17072         * iconvdata/cp770.c: New file.
17073         * iconvdata/cp771.c: New file.
17074         * iconvdata/cp772.c: New file.
17075         * iconvdata/cp773.c: New file.
17076         * iconvdata/cp774.c: New file.
17077         * iconvdata/testdata/CP770: New file.
17078         * iconvdata/testdata/CP770..UTF8: New file.
17079         * iconvdata/testdata/CP771: New file.
17080         * iconvdata/testdata/CP771..UTF8: New file.
17081         * iconvdata/testdata/CP772: New file.
17082         * iconvdata/testdata/CP772..UTF8: New file.
17083         * iconvdata/testdata/CP773: New file.
17084         * iconvdata/testdata/CP773..UTF8: New file.
17085         * iconvdata/testdata/CP774: New file.
17086         * iconvdata/testdata/CP774..UTF8: New file.
17088         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17089         END CHARMAP line.
17090         * iconvdata/gen-8bit-gap.sh: Likewise.
17091         * iconvdata/gen-8bit.sh: Likewise.
17093         * locale/iso-639.def: Add ary entry.
17095         [BZ #11258]
17096         * locale/C-translit.h.in: Add U20A1 transliteration.
17098         [BZ #12178]
17099         * locale/iso-639.def: Add wae entry.
17100         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17102         [BZ #12545]
17103         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17104         for n.
17106         [BZ #12711]
17107         * locale/C-translit.h.in: Add entry for U20B9.
17108         Patch by pravin.d.s@gmail.com.
17110 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17112         [BZ #12713]
17113         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17114         ENAMETOOLONG use generic getcwd.
17115         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17116         in rtld.  Use *stat64.
17117         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17118         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17119         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17120         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17121         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17122         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17123         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17124         __fstatat64 macros.
17125         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17126         * dirent/rewinddir.c: Add libc_hidden_def.
17127         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17128         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17130         * include/dirent.h (__alloc_dir): Add flags parameter.
17131         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17132         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17133         __alloc_dir.
17134         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17135         from fdopendir if O_CLOEXEC is already set.
17137 2011-03-15  Alan Modra  <amodra@gmail.com>
17139         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17140         l_tls_firstbyte_offset non-zero.  Save padding offset in
17141         l_tls_firstbyte_offset for later use.
17142         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17143         freeing static tls block.
17145 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17147         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17148         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17149         being defined by the kernel headers.
17151 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17153         [BZ #12734]
17154         * resolv/resolv.h: Define RES_NOTLDQUERY.
17155         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17156         no-tld-query and set RES_NOTLDQUERY.
17157         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17158         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17159         modern BIND to search name as TLD unless forbidden.
17161 2011-05-07  Petr Baudis  <pasky@suse.cz>
17162             Ulrich Drepper  <drepper@gmail.com>
17164         [BZ #12393]
17165         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17166         (is_trusted_path): ...to here.
17167         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17168         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17169         using is_trusted_path_normalize() in setuid scripts.
17171 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17173         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17174         __BEGIN/__END_DECLS.
17176 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17178         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17179         NSS_STATUS_NOTFOUND if no record was found.
17181 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17183         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17184         (headers-not-in-tirpc): Remove rpc/netdb.h
17185         * resolv/netdb.h: Revert last change.
17187 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17189         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17190         circular dependency between libgcc.a and libc.a.
17192 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17194         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17195         * nis/Makefile: Don't install rpcsvc/*.
17196         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17197         instead of <rpc/types.h>.
17198         (MAXHOSTNAMELEN): Define.
17200 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17202         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17204 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17206         [BZ #12714]
17207         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17208         gethostbyname4_r when IPv6 results are possible.
17210 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17212         [BZ #12723]
17213         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17214         _PC_PIPE_BUF handling.
17216 2011-04-30  Bruno Haible  <bruno@clisp.org>
17218         [BZ #12717]
17219         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17220         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17221         to 'int'.
17222         * inet/getnameinfo.c (getnameinfo): Likewise.
17224 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17226         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17227         to groups setting in database lookup.
17228         * nss/nsswitch.conf: Add initgroups entry.
17230 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17232         [BZ #12685]
17233         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17234         mode string.
17235         Patch by Eric Blake <eblake@redhat.com>.
17237 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17239         * sunrpc/Makefile (need-export-routines): Add svc_run.
17240         (routines): Remove svc_run.
17241         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17242         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17243         * sunrpc/svc_run.c (svc_run): Likewise.
17244         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17246 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17248         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17249         problem in reallocation in last patch.
17251 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17253         * sunrpc/Makefile: Move inclusion of Rules.
17255 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17257         * nss/nss_files/files-initgroups.c: New file.
17258         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17259         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17260         _nss_files_initgroups_dyn.
17262 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17264         * elf/elf.h (R_ARM_IRELATIVE): Define.
17266 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17268         * po/ru.po: Update from translation team.
17270 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17272         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17273         dependencies.
17275 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17277         [BZ #12653]
17278         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17279         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17280         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17281         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17282         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17284 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17286         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17287         differing bytes.
17288         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17289         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17290         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17292 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17294         [BZ #12420]
17295         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17296         storing it.
17297         * stdlib/bug-getcontext.c: New file.
17298         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17300 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17302         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17303         instructions into .machine "z9-109".
17304         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17305         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17307 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17309         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17310         between environment variables and auxiliary vector.
17312 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17314         * Makefile: Add rules to build linkobj/libc.so.
17315         * include/libc-symbols.h: Define libc_hidden_nolink.
17316         * include/rpc/auth.h: Mark functions which are to be hidden.
17317         * include/rpc/auth_des.h: Likewise.
17318         * include/rpc/auth_unix.h: Likewise.
17319         * include/rpc/clnt.h: Likewise.
17320         * include/rpc/des_crypt.h: Likewise.
17321         * include/rpc/key_prot.h: Likewise.
17322         * include/rpc/pmap_clnt.h: Likewise.
17323         * include/rpc/pmap_prot.h: Likewise.
17324         * include/rpc/pmap_rmt.h: Likewise.
17325         * include/rpc/rpc_msg.h: Likewise.
17326         * include/rpc/svc.h: Likewise.
17327         * include/rpc/svc_auth.h: Likewise.
17328         * include/rpc/xdr.h: Likewise.
17329         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17330         * nss/Makefile: Likewise.
17331         * sunrpc/Makefile: Don't install headers.  Build library with normal
17332         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17333         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17334         for the compat linking library.  Remove use of INTDEF/INTUSE.
17335         * sunrpc/auth_none.c: Likewise.
17336         * sunrpc/auth_unix.c: Likewise.
17337         * sunrpc/authdes_prot.c: Likewise.
17338         * sunrpc/authuxprot.c: Likewise.
17339         * sunrpc/clnt_gen.c: Likewise.
17340         * sunrpc/clnt_perr.c: Likewise.
17341         * sunrpc/clnt_raw.c: Likewise.
17342         * sunrpc/clnt_simp.c: Likewise.
17343         * sunrpc/clnt_tcp.c: Likewise.
17344         * sunrpc/clnt_udp.c: Likewise.
17345         * sunrpc/clnt_unix.c: Likewise.
17346         * sunrpc/des_crypt.c: Likewise.
17347         * sunrpc/des_soft.c: Likewise.
17348         * sunrpc/get_myaddr.c: Likewise.
17349         * sunrpc/key_call.c: Likewise.
17350         * sunrpc/key_prot.c: Likewise.
17351         * sunrpc/netname.c: Likewise.
17352         * sunrpc/pm_getmaps.c: Likewise.
17353         * sunrpc/pm_getport.c: Likewise.
17354         * sunrpc/pmap_clnt.c: Likewise.
17355         * sunrpc/pmap_prot.c: Likewise.
17356         * sunrpc/pmap_prot2.c: Likewise.
17357         * sunrpc/pmap_rmt.c: Likewise.
17358         * sunrpc/publickey.c: Likewise.
17359         * sunrpc/rpc_cmsg.c: Likewise.
17360         * sunrpc/rpc_common.c: Likewise.
17361         * sunrpc/rpc_dtable.c: Likewise.
17362         * sunrpc/rpc_prot.c: Likewise.
17363         * sunrpc/rpc_thread.c: Likewise.
17364         * sunrpc/rtime.c: Likewise.
17365         * sunrpc/svc.c: Likewise.
17366         * sunrpc/svc_auth.c: Likewise.
17367         * sunrpc/svc_authux.c: Likewise.
17368         * sunrpc/svc_raw.c: Likewise.
17369         * sunrpc/svc_run.c: Likewise.
17370         * sunrpc/svc_simple.c: Likewise.
17371         * sunrpc/svc_tcp.c: Likewise.
17372         * sunrpc/svc_udp.c: Likewise.
17373         * sunrpc/svc_unix.c: Likewise.
17374         * sunrpc/svcauth_des.c: Likewise.
17375         * sunrpc/xcrypt.c: Likewise.
17376         * sunrpc/xdr.c: Likewise.
17377         * sunrpc/xdr_array.c: Likewise.
17378         * sunrpc/xdr_float.c: Likewise.
17379         * sunrpc/xdr_intXX_t.c: Likewise.
17380         * sunrpc/xdr_mem.c: Likewise.
17381         * sunrpc/xdr_rec.c: Likewise.
17382         * sunrpc/xdr_ref.c: Likewise.
17383         * sunrpc/xdr_sizeof.c: Likewise.
17384         * sunrpc/xdr_stdio.c: Likewise.
17386 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17388         [BZ #12650]
17389         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17390         * sysdeps/ia64/dl-tls.h: Likewise.
17391         * sysdeps/powerpc/dl-tls.h: Likewise.
17392         * sysdeps/s390/dl-tls.h: Likewise.
17393         * sysdeps/sh/dl-tls.h: Likewise.
17394         * sysdeps/sparc/dl-tls.h: Likewise.
17395         * sysdeps/x86_64/dl-tls.h: Likewise.
17396         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17398 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17400         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17401         rpath element also skip the following colon.
17402         (expand_dynamic_string_token): Add is_path parameter and pass
17403         down to DL_DST_REQUIRED and _dl_dst_substitute.
17404         (decompose_rpath): Call expand_dynamic_string_token with
17405         non-zero is_path.  Ignore empty rpaths.
17406         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17407         with zero is_path.
17409 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17412         Make cancelable.
17414 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17416         [BZ #12655]
17417         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17418         Patch by Filipe David Manana <fdmanana@apache.org>.
17420 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17422         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17423         Maintain aligned stack.
17424         (CHECK_RSP): Remove unused macro.
17426 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17428         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17429         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17431 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17433         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17435         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17437 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17439         [BZ #12518]
17440         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17441         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17442         * sysdeps/x86_64/memmove.c: New file.
17443         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17444         (memcpy): Renamed to ...
17445         (__new_memcpy): This.
17446         (memcpy): Provide GLIBC_2_14 memcpy.
17447         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17448         (memcpy): Provide GLIBC_2_2_5 memcpy.
17450 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17452         [BZ #12631]
17453         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17455 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17457         * misc/syncfs.c: New file.
17458         * misc/Makefile (routines): Add syncfs.
17459         * posix/unistd.h: Declare syncfs.
17460         * sysdeps/unix/syscalls.list: Add syncfs.
17462 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17464         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17465         open_by_handle_at.
17466         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17467         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17468         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17469         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17470         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17471         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17472         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17474 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17476         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17477         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17478         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17479         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17480         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17481         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17482         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17484         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17485         sync_file_range.c with -fexceptions.
17486         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17487         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17488         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17489         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17490         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17491         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17492         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17493         sync_file_range as cancellation point
17494         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17495         now a wrapper around __call_sync_file_range with cancellation handling.
17496         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17497         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17498         function name to __call_sync_file_range.
17499         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17500         Add call_sync_file_range.
17502 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17504         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17505         bits/timex.h.
17507 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17509         * iconv/iconv.h: Fix typo in comment.
17510         * io/fcntl.h: Likewise.
17511         * libio/stdio.h: Likewise.
17512         * posix/spawn.h: Likewise.
17513         * posix/unistd.h: Likewise.
17514         * stdlib/stdlib.h: Likewise.
17515         * time/time.h: Likewise.
17516         * wcsmbs/wchar.h: Likewise.
17518         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17519         open_by_handle): Add.
17520         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17521         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17522         Augment a few comments.
17523         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17524         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17525         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17526         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17527         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17528         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17529         open_by_handle.
17531         * io/fcntl.h (AT_EMPTY_PATH): Define.
17533 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17535         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17536         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17537         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17538         to...
17539         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17540         * Versions.def: Add GLIBC_2.14.
17541         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17542         Export.
17544 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17546         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17547         round counter.
17548         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17550 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17552         [BZ #12597]
17553         * string/test-strncmp.c (do_page_test): New function.
17554         (check2): Likewise.
17555         (test_main): Call check2.
17556         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17558 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17560         [BZ #12587]
17561         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17562         Handle cache information in CPU leaf 4.
17563         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17565 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17567         [BZ #12583]
17568         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17569         character representation.
17570         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17572 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17574         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17575         END(__isnan) to END(__isnanf) to match function entry point/label
17576         EALIGN(__isnanf,...).
17578 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17580         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17582 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17584         [BZ #12510]
17585         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17586         copy from the symbol referenced in the relocation to initialize the
17587         used variable.
17588         Patch by Piotr Bury <pbury@goahead.com>.
17589         * elf/Makefile: Add rules to build and tst-unique3.
17590         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17591         * elf/tst-unique3.cc: New file.
17592         * elf/tst-unique3.h: New file.
17593         * elf/tst-unique3lib.cc: New file.
17594         * elf/tst-unique3lib2.cc: New file.
17596         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17598 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17600         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17601         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17602         to _start.
17604 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17606         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17607         to-be-loaded object along a path to loader is ld.so.
17609 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17610             Ulrich Drepper  <drepper@gmail.com>
17612         * sysdeps/x86_64/memset.S: After aligning destination, code
17613         branches to different locations depending on the value of
17614         misalignment, when multiarch is enabled. Fix this.
17616 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17618         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17619         Set _x86_64_preferred_memory_instruction for AMD processsors.
17620         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17621         Set bit_Prefer_SSE_for_memop for AMD processors.
17623 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17625         * libio/fmemopen.c (fmemopen): Optimize a bit.
17627 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17629         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17631 2011-03-03  Roland McGrath  <roland@redhat.com>
17633         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17635 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17637         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17638         __bzero_ultra1 instead of __memset_ultra1.
17640 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17641             Ulrich Drepper  <drepper@gmail.com>
17643         [BZ #12509]
17644         * include/link.h (struct link_map): Add l_orig_initfini.
17645         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17646         returning unsuccessfully.
17647         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17648         close of a file loaded at startup, restore the original l_initfini
17649         list.
17650         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17651         list, store the pointer.
17652         * elf/Makefile ($(objpfx)noload-mem): New rule.
17653         (noload-ENV): Define.
17654         (tests): Add $(objpfx)noload-mem.
17655         * elf/noload.c: Include <memcheck.h>.
17656         (main): Call mtrace.  Close all opened handles.
17658 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17660         [BZ #12454]
17661         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17662         dependencies are missing.
17664 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17666         Fix __if_freereq crash: Unlike the generic version which uses free,
17667         Hurd needs munmap.
17668         * sysdeps/mach/hurd/ifreq.h: New file.
17670 2011-01-27  Petr Baudis  <pasky@suse.cz>
17671             Ulrich Drepper  <drepper@gmail.com>
17673         [BZ 12445]#
17674         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17675         to extend_alloca().
17676         * stdio-common/bug23.c: New file.
17677         * stdio-common/Makefile (tests): Add bug23.
17679 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17680             Ulrich Drepper  <drepper@gmail.com>
17682         [BZ #12489]
17683         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17684         before performing relro protection.  At old place add assertion
17685         to make sure nothing changed.
17687 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17688             Glauber de Oliveira Costa  <glommer@gmail.com>
17690         * elf/elf.h: Add new ARM TLS relocs.
17692 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17695         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17696         cast from r3.
17697         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17698         'tests' variable.
17699         * sysdeps/wordsize-64/tst-writev.c: New file.
17701 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17703         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17704         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17705         insns in _dl_start to prevent a TOC reference before relocs are
17706         resolved.
17708 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17710         [BZ #12469]
17711         * Makeconfig: Remove RANLIB definition.
17712         * Makerules: Don't use RANLIB.
17713         * aclocal.m4: Remove ranlib test.
17714         * configure.in: No need to check for ranlib.
17715         * elf/rtld-Rules: Don't use RANLIB.
17717 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17719         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17720         protection macro.
17721         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17722         inclusion protection macro.
17724         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17725         SIGRTMIN and SIGRTMAX and print information in that case only when
17726         SIGRTMIN is defined.
17728 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17730         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17731         arginfo fn returning -1.
17733         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17734         and thousands string is zero terminated.
17736 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17738         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17739         sysdeps/unix/sysv/linux/bits/socket.h.
17741 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17743         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17744         (__CPU_COUNT): Remove old macros.
17745         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17746         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17747         (__CPU_ALLOC, __CPU_FREE): Add macros.
17748         (__sched_cpualloc, __sched_cpufree): Add declarations.
17750 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17752         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17753         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17754         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17755         (readdhstai): Return value of addhstaiX call.
17756         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17757         (addgrbyX): Return value returned by cache_addgr.
17758         (readdgrbyname): Return value returned by addgrbyX.
17759         (readdgrbygid): Likewise.
17760         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17761         (addpwbyX): Return value returned by cache_addpw.
17762         (readdpwbyname): Return value returned by addhstbyX.
17763         (readdpwbyuid): Likewise.
17764         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17765         (addservbyX): Return value returned by cache_addserv.
17766         (readdservbyname): Return value returned by addservbyX:
17767         (readdservbyport): Likewise.
17768         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17769         (addhstbyX): Return value returned by cache_addhst.
17770         (readdhstbyname): Return value returned by addhstbyX.
17771         (readdhstbyaddr): Likewise.
17772         (readdhstbynamev6): Likewise.
17773         (readdhstbyaddrv6): Likewise.
17774         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17775         (readdinitgroups): Return value returned by addinitgroupsX.
17776         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17777         (prune_cache): Keep track of timeout value of re-added entries.
17778         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17779         * nscd/nscd.h: Adjust prototypes of readd* functions.
17781 2011-02-04  Roland McGrath  <roland@redhat.com>
17783         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17784         (nis_stats): Likewise.
17785         * nis/nis_modify.c (nis_modify): Likewise.
17786         * nis/nis_remove.c (nis_remove): Likewise.
17787         * nis/nis_add.c (nis_add): Likewise.
17789         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17791         * posix/fnmatch_loop.c: Add some consts.
17793         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17795 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17797         [BZ #12460]
17798         * config.make.in (config-cflags-novzeroupper): Define.
17799         * configure.in: Substitute libc_cv_cc_novzeroupper.
17800         * elf/Makefile (AVX-CFLAGS): Define.
17801         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17802         (CFLAGS-tst-auditmod4a.c): Likewise.
17803         (CFLAGS-tst-auditmod4b.c): Likewise.
17804         (CFLAGS-tst-auditmod6b.c): Likewise.
17805         (CFLAGS-tst-auditmod6c.c): Likewise.
17806         (CFLAGS-tst-auditmod7b.c): Likewise.
17807         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17809 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17811         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17812         function to the callback.
17813         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17815 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17817         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17818         of errno.
17820 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17822         [BZ #11724]
17823         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17824         of constructors.
17825         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17826         of destructors.
17827         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17829         [BZ #11724]
17830         * elf/Makefile: Add rules to build and run new test.
17831         * elf/tst-initorder.c: New file.
17832         * elf/tst-initorder.exp: New file.
17833         * elf/tst-initordera1.c: New file.
17834         * elf/tst-initordera2.c: New file.
17835         * elf/tst-initordera3.c: New file.
17836         * elf/tst-initordera4.c: New file.
17837         * elf/tst-initorderb1.c: New file.
17838         * elf/tst-initorderb2.c: New file.
17839         * elf/tst-order-a1.c: New file.
17840         * elf/tst-order-a2.c: New file.
17841         * elf/tst-order-a3.c: New file.
17842         * elf/tst-order-a4.c: New file.
17843         * elf/tst-order-b1.c: New file.
17844         * elf/tst-order-b2.c: New file.
17845         * elf/tst-order-main.c: New file.
17846         New test case by George Gensure <werkt0@gmail.com>.
17848 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17850         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17851         decoding ACE if AI_CANONIDN.
17853 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17855         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17857 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17859         * version.h (RELEASE): Bump for 2.13 release.
17860         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17862         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17864         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17865         MADV_NOHUGEPAGE.
17866         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17867         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17868         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17869         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17870         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17871         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17873         * posix/getconf.c: Update copyright year.
17874         * catgets/gencat.c: Likewise.
17875         * csu/version.c: Likewise.
17876         * debug/catchsegv.sh: Likewise.
17877         * debug/xtrace.sh: Likewise.
17878         * elf/ldconfig.c: Likewise.
17879         * elf/ldd.bash.in: Likewise.
17880         * elf/sprof.c (print_version): Likewise.
17881         * iconv/iconv_prog.c: Likewise.
17882         * iconv/iconvconfig.c: Likewise.
17883         * locale/programs/locale.c: Likewise.
17884         * locale/programs/localedef.c: Likewise.
17885         * malloc/memusage.sh: Likewise.
17886         * malloc/mtrace.pl: Likewise.
17887         * nscd/nscd.c (print_version): Likewise.
17888         * nss/getent.c: Likewise.
17890         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17891         PF_CAIF, and PF_ALG.
17892         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17894 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17896         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17897         (modules-names): Use them.
17898         (ifunc-test-modules, ifunc-pie-tests): Define.
17899         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17900         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17901         (test-extras): Likewise.
17902         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17903         $(compile-command.c).
17904         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17905         (all-built-dso): Define.
17906         (check-textrel.out, check-execstack.out): Depend on it.
17908         * configure.in: Don't override --enable-multi-arch.
17910 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17912         [BZ #6812]
17913         * nscd/hstcache.c (tryagain): Define.
17914         (cache_addhst): Return tryagain not notfound for temporary errors.
17915         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17916         failed.
17918 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17920         [BZ #10563]
17921         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17922         to make the syscall.
17923         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17925         [BZ #12378]
17926         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17927         and fall back to matching as normal character if the string ends before
17928         the matching ']' is found.  This is what POSIX requires.
17929         * posix/testfnm.c: Adjust test result.
17930         * posix/globtest.sh: Adjust test result.  Add new test.
17931         * posix/tst-fnmatch.input: Likewise.
17932         * posix/tst-fnmatch2.c: Add new test.
17934 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17936         * elf/Makefile (check-execstack): Revert last change.  Depend on
17937         check-execstack.h.
17938         (check-execstack.h): New target.
17939         (generated): Add check-execstack.h.
17940         * elf/check-execstack.c: Include "check-execstack.h".
17941         (main): Revert last change.
17942         (handle_file): Return zero if GNU_STACK is absent and
17943         DEFAULT_STACK_PERMS doesn't include PF_X.
17945 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17947         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17948         in child fails because the descriptor is already closed.
17949         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17950         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17951         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17953         [BZ #12397]
17954         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17955         syscall.
17957         [BZ #10484]
17958         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17959         temporary buffer used to handle multi lookups locally.
17960         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17962 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17964         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17965         loader is ld.so.
17967 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17969         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17970         alignment for SSE2.
17972 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17974         [BZ #12394]
17975         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17976         characters.  When rounding increased number of integer digits recompute
17977         number of groups.
17978         * stdio-common/tst-grouping.c: New file.
17979         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17981 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17983         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17984         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17986         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17987         void.
17988         * bits/select.h: Likewise.
17990 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17992         * po/ja.po: Update from translation team.
17994 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17996         [BZ #11155]
17997         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17998         implementation just like for lxstat, fxstatat, et al.
18000 2010-12-27  Jim Meyering  <meyering@redhat.com>
18002         [BZ #12348]
18003         * posix/regexec.c (build_trtable): Return failure indication upon
18004         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18006 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18008         [BZ #12201]
18009         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18010         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18011         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18012         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18014         [BZ #12207]
18015         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18017         [BZ #12204]
18018         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18019         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18021 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18023         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18024         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18025         script has SORT_BY_INIT_PRIORITY.
18026         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18027         NO_CTORS_DTORS_SECTIONS is defined.
18028         * elf/soinit.c: Likewise.
18029         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18030         NO_CTORS_DTORS_SECTIONS is defined.
18031         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18032         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18033         * sysdeps/sh/init-first.c: Likewise.
18034         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18036 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18038         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18039         always use the slow path.
18041 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18043         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18044         similar rule which adds the sysdep directories to the header search in
18045         order to pick up the correct platform stackinfo.h.
18046         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18047         perform test if it is, otherwise return successfully without testing.
18048         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18049         DEFAULT_STACK_PERMS define in stackinfo.h.
18050         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18051         defined in stackinfo.h.
18052         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18053         DEFAULT_STACK_PERMS defined in stackinfo.h.
18054         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18055         * sysdeps/ia64/stackinfo.h: Likewise.
18056         * sysdeps/s390/stackinfo.h: Likewise.
18057         * sysdeps/sh/stackinfo.h: Likewise.
18058         * sysdeps/sparc/stackinfo.h: Likewise.
18059         * sysdeps/x86_64/stackinfo.h: Likewise.
18060         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18061         PF_X for powerpc64.  Retain PF_X for powerpc32.
18063 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18065         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18066         accurately.
18067         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18068         GETDENTS_64BIT_ALIGNED.
18070 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18072         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18074 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18076         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18077         _GNU_SOURCE.
18079         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18080         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18081         Remove __restrict.
18082         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18083         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18085 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18087         [BZ #11655]
18088         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18089         are initialized.
18091 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18093         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18095 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18097         * po/it.po: Update from translation team.
18099 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18101         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18102         unused codes.
18104 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18106         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18108 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18110         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18111         specially.
18112         (gaih_getanswer_slice): Likewise.
18114 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18116         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18118 2010-05-31  Petr Baudis  <pasky@suse.cz>
18120         [BZ #11149]
18121         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18122         silently even in the chroot mode.
18124 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18126         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18127         last patch a bit.  Pretty printing
18129 2010-05-31  Petr Baudis <pasky@suse.cz>
18131         [BZ #10085]
18132         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18133         initialization of skip_initgroups_dyn.
18135 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18137         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18138         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18140 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18142         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18144 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18146         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18147         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18148         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18149         ($(objpfx)tst-fnmatch-mem): New rule.
18150         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18151         * posix/tst-fnmatch.c (main): Call mtrace.
18153 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18155         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18156         Support Intel processor model 6 and model 0x2c.
18158 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18160         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18161           signed comparison.
18163 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18165         [BZ #12205]
18166         * string/test-strncasecmp.c (check_result): New function.
18167         (do_one_test): Use it.
18168         (check1): New function.
18169         (test_main): Use it.
18170         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18171         Support strcasecmp and strncasecmp.
18173 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18175         [BZ #12194]
18176         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18177         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18179 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18181         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18182         IFUNC support.
18183         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18184         memset-x86-64.
18185         * sysdeps/x86_64/multiarch/bzero.S: New file.
18186         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18187         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18188         * sysdeps/x86_64/multiarch/memset.S: New file.
18189         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18190         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18191         Set bit_Prefer_SSE_for_memop for Intel processors.
18192         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18193         Define.
18194         (index_Prefer_SSE_for_memop): Define.
18195         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18197 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18199         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18200         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18202 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18204         [BZ #12191]
18205         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18206         (__x86_64_raw_data_cache_size_half): Likewise.
18207         (__x86_64_raw_shared_cache_size): Likewise.
18208         (__x86_64_raw_shared_cache_size_half): Likewise.
18210         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18211         (__x86_64_raw_data_cache_size_half): Likewise.
18212         (__x86_64_raw_shared_cache_size): Likewise.
18213         (__x86_64_raw_shared_cache_size_half): Likewise.
18214         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18215         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18216         and __x86_64_raw_shared_cache_size_half.  Round
18217         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18218         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18219         to multiple of 256 bytes.
18221 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18223         [BZ #12167]
18224         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18225         of inacessible symlinks.  Verify result of symlink before returning it.
18226         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18227         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18229 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18231         * math/math.h (isinf): Fix typo in comment.
18233 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18235         * po/da.po: Update from translation team.
18237 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18239         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18240         is added to the list.
18242 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18243             Ulrich Drepper  <drepper@gmail.com>
18245         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18246         the global list here.  Move code to...
18247         (_dl_add_to_namespace_list): ...here.  New function.
18248         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18249         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18250         * elf/dl-load.c (lose): Don't remove the element from the list.
18251         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18252         (_dl_map_object): Likewise.
18254 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18256         [BZ #12159]
18257         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18258         into all bytes of SSE register.
18259         Patch by Richard Li <richardpku@gmail.com>.
18261 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18263         [BZ #12140]
18264         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18265         perturbing.
18267 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18269         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18270         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18271         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18272         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18274         submachine.
18275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18277 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18279         * include/dlfcn.h (__RTLD_SECURE): Define.
18280         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18281         mode & __RTLD_SECURE instead.
18282         (open_path): Rename preloaded parameter to secure.
18283         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18284         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18285         * elf/dl-deps.c (openaux): Likewise.
18286         * elf/rtld.c (struct map_args): Remove is_preloaded.
18287         (map_doit): Don't use it.
18288         (dl_main): Likewise.
18289         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18290         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18292 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18294         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18295         (sysd-rules-targets): Remove duplicates.
18296         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18297         rtld-%.$o dependency.
18299 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18301         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18302         _dl_map_object do it.
18304 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18306         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18307         fast fma builtins, define the macros in the C99 standard.
18308         (FP_FAST_FMAF): Likewise.
18309         (FP_FAST_FMAL): Likewise.
18310         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18312         * bits/mathdef.h: Update copyright year.
18313         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18315 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18317         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18318         builtins, define the macros in the C99 standard.
18319         (FP_FAST_FMAF): Likewise.
18320         (FP_FAST_FMAL): Likewise.
18321         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18322         multiply/add.
18323         (FP_FAST_FMAF): Likewise.
18325 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18327         [BZ #3268]
18328         * math/libm-test.inc (fma_test): Some new testcases.
18329         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18330         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18331         y and infinite z.  Do multiplication by C already in long double.
18332         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18333         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18334         y and infinite z.  Do bitwise or of inexact bit into u.d.
18335         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18336         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18337         * sysdeps/i386/fpu/s_fma.S: Removed.
18338         * sysdeps/i386/fpu/s_fmal.S: Removed.
18340 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18342         [BZ #3268]
18343         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18344         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18345         computation is not scheduled after fetestexcept.  Fix value
18346         of minimum denormal long double.
18348 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18350         [BZ #3268]
18351         * math/libm-test.inc (fma_test): Add some more tests.
18352         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18353         correctly.
18355 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18357         * scripts/data/localplt-s390-linux-gnu.data: New file.
18358         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18360 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18362         [BZ #3268]
18363         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18364         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18365         instead of dbl-64.
18366         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18367         inlines.
18368         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18369         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18370         if one of x and y is very large and the other is subnormal.
18371         * sysdeps/s390/fpu/s_fmaf.c: New file.
18372         * sysdeps/s390/fpu/s_fma.c: New file.
18373         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18374         * sysdeps/powerpc/fpu/s_fma.S: New file.
18375         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18376         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18377         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18379 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18381         [BZ #3268]
18382         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18383         fma tests.
18384         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18385         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18386         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18387         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18388         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18389         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18390         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18392 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18394         [BZ #12078]
18395         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18396         * posix/bug-regex31.input: Add test case.
18398 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18400         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18401         * posix/bug-regex31.input: New file.
18403         [BZ #12078]
18404         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18405         (parse_sub_exp): Fix last change, use postorder.
18407         * posix/bug-regex31.c: New file.
18408         * posix/Makefile: Add rules to build and run bug-regex31.
18410         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18412         [BZ #12078]
18413         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18415         [BZ #12108]
18416         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18417         to have entries in sys_siglist.
18419         [BZ #12093]
18420         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18421         be NULL.
18423 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18425         [BZ #3268]
18426         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18427         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18428         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18429         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18430         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18431         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18432         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18433         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18434         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18435         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18436         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18437         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18438         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18439         * math/ftestexcept.c (fetestexcept): Likewise.
18440         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18441         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18442         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18443         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18444         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18445         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18446         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18448 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18450         [BZ #12107]
18451         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18452         newline.
18454 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18456         * string/bug-strstr1.c: New file.
18457         * string/Makefile: Add rules to build and run bug-strstr1.
18459 2010-10-05  Eric Blake  <eblake@redhat.com>
18461         [BZ #12092]
18462         * string/str-two-way.h (two_way_long_needle): Always clear memory
18463         when skipping input due to the shift table.
18465 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18467         [BZ #12005]
18468         * malloc/mcheck.c: Handle large requests.
18470         [BZ #12077]
18471         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18472         for strncmp and strncasecmp.
18473         * string/stratcliff.c: Add tests for strcmp and strncmp.
18474         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18476 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18478         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18479         __set_fpscr.
18481 2010-09-30  Andreas Jaeger  <aj@suse.de>
18483         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18484         (CGROUP_SUPER_MAGIC): Define.
18485         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18486         Handle btrfs and cgroup file systems.
18487         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18488         Likewise.
18490 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18492         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18493         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18495 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18497         [BZ #12067]
18498         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18499         trying to locate the ELF header.
18501 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18503         [BZ #11611]
18504         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18505         Mask out sign-bit copies when constructing f_fsid.
18507 2010-09-24  Petr Baudis <pasky@suse.cz>
18509         * debug/stack_chk_fail_local.c: Add missing licence exception.
18510         * debug/warning-nop.c: Likewise.
18512 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18514         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18515         implementing getdents64 using getdents syscall, set d_type if
18516         __ASSUME_GETDENTS32_D_TYPE.
18518 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18520         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18521         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18523 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18525         [BZ #12037]
18526         * posix/unistd.h: Undo change of feature selection for ftruncate from
18527         2010-01-11.
18529 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18531         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18532         detection.
18534 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18536         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18537         fanotify_mark.
18538         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18540 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18542         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18543         variables after CHECK_SP call.
18544         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18546 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18547             Ulrich Drepper  <drepper@redhat.com>
18549         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18550         re-relocationg ld.so.
18551         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18552         _dl_init_paths call.
18553         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18554         here anymore.
18556 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18558         * resolv/res_init.c (__res_vinit): Count the default server we added.
18560 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18561             Ulrich Drepper  <drepper@redhat.com>
18563         [BZ #11968]
18564         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18565         (____longjmp_chk): Use %ebx for saving value across system call.
18566         Add unwind info.
18568 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18570         * manual/Makefile: Don't mix pattern rules with normal rules.
18572 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18574         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18575         operation.
18576         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18577         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18578         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18579         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18580         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18581         Likewise.
18583 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18585         [BZ #11979]
18586         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18587         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18589 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18591         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18592         * sysdeps/x86_64/addmul_1.S: Likewise.
18593         * sysdeps/x86_64/lshift.S: Likewise.
18594         * sysdeps/x86_64/mul_1.S: Likewise.
18595         * sysdeps/x86_64/rshift.S: Likewise.
18596         * sysdeps/x86_64/sub_n.S: Likewise.
18597         * sysdeps/x86_64/submul_1.S: Likewise.
18599 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18601         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18602         Define __sched_param instead of SCHED_* and sched_param when
18603         <bits/sched.h> is included with __need_schedparam defined.
18604         * bits/sched.h [__need_schedparam]
18605         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18606         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18607         (__defined_schedparam): Define to 1.
18608         (__sched_param): New structure, identical to sched_param.
18609         (__need_schedparam): Undefine.
18611 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18613         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18614         (epoll_create1): Declare.
18616         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18618 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18620         [BZ #7066]
18621         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18622         shifting retval into place.
18624 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18626         * nis/rpcsvc/nis.h: Update copyright notice.
18627         * nis/rpcsvc/nis.x: Likewise.
18628         * nis/rpcsvc/nis_callback.h: Likewise.
18629         * nis/rpcsvc/nis_callback.x: Likewise.
18630         * nis/rpcsvc/nis_object.x: Likewise.
18631         * nis/rpcsvc/nis_tags.h: Likewise.
18632         * nis/rpcsvc/yp.h: Likewise.
18633         * nis/rpcsvc/yp.x: Likewise.
18634         * nis/rpcsvc/ypupd.h: Likewise.
18635         * nis/yp_xdr.c: Likewise.
18636         * nis/ypupdate_xdr.c: Likewise.
18638         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18639         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18640         (pmap_getport): Use __libc_rpc_getport.
18641         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18642         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18643         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18645 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18648         fanotify_mark.
18650 2010-08-27  Roland McGrath  <roland@redhat.com>
18652         * sysdeps/i386/i686/multiarch/Makefile
18653         (CFLAGS-varshift.c): New variable.
18655 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18657         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18658         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18660         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18662         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18664 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18666         * sysdeps/x86_64/strlen.S: Unroll the loop.
18667         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18668         strlen-sse2 strlen-sse2-bsf.
18669         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18670         __strlen_no_bsf if bit_Slow_BSF is set.
18671         (__strlen_sse42): Removed.
18672         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18673         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18675 2010-08-25  Roland McGrath  <roland@redhat.com>
18677         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18678         * sysdeps/x86_64/multiarch/varshift.c: New file.
18679         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18680         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18681         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18682         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18684 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18686         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18687         strlen-sse2 strlen-sse2-bsf.
18688         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18689         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18690         (__strlen_sse2): Removed.
18691         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18692         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18693         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18694         bit_Slow_BSF for Atom.
18695         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18696         (index_Slow_BSF): Define.
18697         (HAS_SLOW_BSF): Define.
18699 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18701         [BZ #10851]
18702         * resolv/res_init.c (__res_vinit): When no server address at all
18703         is given default to loopback.
18705 2010-08-24  Roland McGrath  <roland@redhat.com>
18707         * configure.in: Remove config-name.h generation.
18708         * configure: Regenerated.
18709         * config-name.in: File removed.
18710         * scripts/config-uname.sh: New file.
18711         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18712         ($(objdir)config-name.h): New target.
18714         * sunrpc/rpc_parse.h: Avoid nested comment.
18716 2010-08-24  Richard Henderson  <rth@redhat.com>
18717             Ulrich Drepper  <drepper@redhat.com>
18718             H.J. Lu  <hongjiu.lu@intel.com>
18720         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18721         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18722         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18723         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18724         _mm_alignr_epi8 with _mm_loadu_si128.
18725         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18726         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18727         (__m128i_shift_right): Removed.
18728         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18729         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18730         * sysdeps/x86_64/multiarch/varshift.h: New file.
18731         * sysdeps/x86_64/multiarch/varshift.S: New file.
18733 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18735         * configure.in: Move assembler checks to before sysdep dir checking.
18737 2010-08-20  Petr Baudis  <pasky@suse.cz>
18739         * LICENSES: Sync the sunrpc license.
18741 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18743         * sunrpc/auth_des.c: Update copyright notice once again.
18744         * sunrpc/auth_none.c: Likewise.
18745         * sunrpc/auth_unix.c: Likewise.
18746         * sunrpc/authdes_prot.c: Likewise.
18747         * sunrpc/authuxprot.c: Likewise.
18748         * sunrpc/bindrsvprt.c: Likewise.
18749         * sunrpc/clnt_gen.c: Likewise.
18750         * sunrpc/clnt_perr.c: Likewise.
18751         * sunrpc/clnt_raw.c: Likewise.
18752         * sunrpc/clnt_simp.c: Likewise.
18753         * sunrpc/clnt_tcp.c: Likewise.
18754         * sunrpc/clnt_udp.c: Likewise.
18755         * sunrpc/clnt_unix.c: Likewise.
18756         * sunrpc/des_crypt.c: Likewise.
18757         * sunrpc/des_soft.c: Likewise.
18758         * sunrpc/get_myaddr.c: Likewise.
18759         * sunrpc/getrpcport.c: Likewise.
18760         * sunrpc/key_call.c: Likewise.
18761         * sunrpc/key_prot.c: Likewise.
18762         * sunrpc/openchild.c: Likewise.
18763         * sunrpc/pm_getmaps.c: Likewise.
18764         * sunrpc/pm_getport.c: Likewise.
18765         * sunrpc/pmap_clnt.c: Likewise.
18766         * sunrpc/pmap_prot.c: Likewise.
18767         * sunrpc/pmap_prot2.c: Likewise.
18768         * sunrpc/pmap_rmt.c: Likewise.
18769         * sunrpc/rpc/auth.h: Likewise.
18770         * sunrpc/rpc/auth_unix.h: Likewise.
18771         * sunrpc/rpc/clnt.h: Likewise.
18772         * sunrpc/rpc/des_crypt.h: Likewise.
18773         * sunrpc/rpc/key_prot.h: Likewise.
18774         * sunrpc/rpc/netdb.h: Likewise.
18775         * sunrpc/rpc/pmap_clnt.h: Likewise.
18776         * sunrpc/rpc/pmap_prot.h: Likewise.
18777         * sunrpc/rpc/pmap_rmt.h: Likewise.
18778         * sunrpc/rpc/rpc.h: Likewise.
18779         * sunrpc/rpc/rpc_des.h: Likewise.
18780         * sunrpc/rpc/rpc_msg.h: Likewise.
18781         * sunrpc/rpc/svc.h: Likewise.
18782         * sunrpc/rpc/svc_auth.h: Likewise.
18783         * sunrpc/rpc/types.h: Likewise.
18784         * sunrpc/rpc/xdr.h: Likewise.
18785         * sunrpc/rpc_clntout.c: Likewise.
18786         * sunrpc/rpc_cmsg.c: Likewise.
18787         * sunrpc/rpc_common.c: Likewise.
18788         * sunrpc/rpc_cout.c: Likewise.
18789         * sunrpc/rpc_dtable.c: Likewise.
18790         * sunrpc/rpc_hout.c: Likewise.
18791         * sunrpc/rpc_main.c: Likewise.
18792         * sunrpc/rpc_parse.c: Likewise.
18793         * sunrpc/rpc_parse.h: Likewise.
18794         * sunrpc/rpc_prot.c: Likewise.
18795         * sunrpc/rpc_sample.c: Likewise.
18796         * sunrpc/rpc_scan.c: Likewise.
18797         * sunrpc/rpc_scan.h: Likewise.
18798         * sunrpc/rpc_svcout.c: Likewise.
18799         * sunrpc/rpc_tblout.c: Likewise.
18800         * sunrpc/rpc_util.c: Likewise.
18801         * sunrpc/rpc_util.h: Likewise.
18802         * sunrpc/rpcinfo.c: Likewise.
18803         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18804         * sunrpc/rpcsvc/key_prot.x: Likewise.
18805         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18806         * sunrpc/rpcsvc/mount.x: Likewise.
18807         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18808         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18809         * sunrpc/rpcsvc/rex.x: Likewise.
18810         * sunrpc/rpcsvc/rstat.x: Likewise.
18811         * sunrpc/rpcsvc/rusers.x: Likewise.
18812         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18813         * sunrpc/rpcsvc/spray.x: Likewise.
18814         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18815         * sunrpc/rtime.c: Likewise.
18816         * sunrpc/svc.c: Likewise.
18817         * sunrpc/svc_auth.c: Likewise.
18818         * sunrpc/svc_authux.c: Likewise.
18819         * sunrpc/svc_raw.c: Likewise.
18820         * sunrpc/svc_run.c: Likewise.
18821         * sunrpc/svc_simple.c: Likewise.
18822         * sunrpc/svc_tcp.c: Likewise.
18823         * sunrpc/svc_udp.c: Likewise.
18824         * sunrpc/svc_unix.c: Likewise.
18825         * sunrpc/svcauth_des.c: Likewise.
18826         * sunrpc/xcrypt.c: Likewise.
18827         * sunrpc/xdr.c: Likewise.
18828         * sunrpc/xdr_array.c: Likewise.
18829         * sunrpc/xdr_float.c: Likewise.
18830         * sunrpc/xdr_mem.c: Likewise.
18831         * sunrpc/xdr_rec.c: Likewise.
18832         * sunrpc/xdr_ref.c: Likewise.
18833         * sunrpc/xdr_sizeof.c: Likewise.
18834         * sunrpc/xdr_stdio.c: Likewise.
18836         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18837         handling.
18839 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18841         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18843 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18845         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18846         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18847         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18848         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18849         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18850         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18851         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18852         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18853         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18854         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18855         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18856         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18857         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18858         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18860 2010-07-26  Anton Blanchard  <anton@samba.org>
18862         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18863         * malloc/arena.c (heap_trim): Likewise.
18865 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18867         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18868         here.  Not...
18869         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18870         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18872 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18874         * sysdeps/i386/elf/Makefile: New file.
18876 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18878         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18879         from fanotify_init.
18880         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18881         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18883 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18885         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18886         of strncasecmp_l.
18887         * sysdeps/multiarch/strcmp.S: Likewise.
18889 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18891         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18892         strncase_l-nonascii.
18893         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18894         Add strncase_l-ssse3.
18895         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18896         * sysdeps/x86_64/strcmp.S: Likewise.
18897         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18898         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18899         * sysdeps/x86_64/strncase.S: New file.
18900         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18901         * sysdeps/x86_64/strncase_l.S: New file.
18902         * string/Makefile (strop-tests): Add strncasecmp.
18903         * string/test-strncasecmp.c: New file.
18905         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18906         warning.
18908         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18909         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18911 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18913         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18915 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18917         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18918         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18919         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18921 2010-05-01  Alan Modra  <amodra@gmail.com>
18923         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18924         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18925         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18926         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18927         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18928         tidying.  Don't tail-call __sigjmp_save for static lib.
18929         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18930         save location.
18931         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18932         (CALL_MCOUNT): Add eh info, and nop after bl.
18933         (TAIL_CALL_SYSCALL_ERROR): New macro.
18934         (PSEUDO_RET): Use it.
18935         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18936         Correct save location of integer regs and cr.
18937         (_dl_profile_resolve): Correct cr save location.  Delete nops
18938         after bl when SHARED.  Reduce cfi size a little by better
18939         placement of cfi directives.
18940         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18941         make a stack frame.  Instead use parm save area as a temp.
18942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18943         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18945         Don't make a stack frame for parent, use parm save area.
18946         Increase child stack frame to 112 bytes.  Don't save unused reg,
18947         and adjust reg usage.  Set up cfi on error recovery and
18948         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18950         (__makecontext): Add dummy nop after jump to exit.
18951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18952         Use correct parm save area and cr save, reduce stack frame.
18953         Correct cfi for possible PSEUDO_RET frame setup.
18954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18955         Branch to local label emitted by PSEUDO_RET rather than
18956         __syscall_error.
18958 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18960         [BZ #11904]
18961         * locale/programs/locale.c (print_assignment): New function.
18962         (show_locale_vars): Use it.
18964 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18966         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18967         field.
18968         (struct statfs64): Likewise.
18969         (_STATFS_F_FLAGS): Define.
18970         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18971         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18972         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18973         (ST_VALID): Define locally.
18974         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18975         __statvfs_getflags, use the provided value.
18976         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18977         __ASSUME_STATFS_F_FLAGS.
18979         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18981         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18982         Add sys/fanotify.h.
18983         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18984         fanotify_mask for GLIBC_2.13.
18985         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18986         fanotify_init and fanotify_mark.
18987         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18988         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18990         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18991         Add prlimit.
18992         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18993         prlimit64 for GLIBC_2.13.
18994         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18995         prlimit64.
18996         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18997         syscall.
18998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18999         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19000         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19001         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19002         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19003         add prlimit alias.
19004         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19006         [BZ #11903]
19007         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19008         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19010         * nss/Makefile: Add rules to build and run tst-nss-test1.
19011         * shlib-versions: Add entry for libnss_test1.
19012         * nss/nss_test1.c: New file.
19013         * nss/tst-nss-test1.c: New file.
19015         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19016         (__nss_configure_lookup): Set appropriate entry in
19017         __nss_configure_lookup to true.
19018         * nss/nsswitch.h: Define enum with indeces of databases in
19019         databases and __nss_database_custom arrays.  Declare
19020         __nss_database_custom.
19021         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19022         to avoid using nscd when custom rules are installed.
19023         * nss/getXXbyYY_r.c: Likewise.
19024         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19026         * nss/nss_files/files-parse.c: Whitespace fixes.
19028 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19030         [BZ #11883]
19031         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19032         * posix/fnmatch_loop.c: Likewise.
19034 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19036         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19037         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19038         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19039         * Versions.def [GLIBC_2.13]: Add.
19041 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19043         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19044         Also fail if tpwd after pwuid call is NULL.
19046 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19048         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19049         when converting to ms.
19051 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19053         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19054         EOPNOTSUPP errors with ENOTTY.
19055         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19056         EOPNOTSUPP errors with ENOTTY.
19058 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19060         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19061         Add strcasecmp_l-ssse3.
19062         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19063         strcasecmp.
19064         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19065         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19066         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19068 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19070         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19072         * string/Makefile (strop-tests): Add strcasecmp.
19073         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19074         strcasecmp_l-nonascii.
19075         (gen-as-const-headers): Add locale-defines.sym.
19076         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19077         * sysdeps/x86_64/strcasecmp.S: New file.
19078         * sysdeps/x86_64/strcasecmp_l.S: New file.
19079         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19080         * sysdeps/x86_64/locale-defines.sym: New file.
19081         * string/test-strcasecmp.c: New file.
19083         * string/test-strcasestr.c: Test both ends of the range of characters.
19084         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19086 2010-07-29  Roland McGrath  <roland@redhat.com>
19088         [BZ #11856]
19089         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19091 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19093         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19094         for ld.so.
19096 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19098         * manual/memory.texi (Malloc Tunable Parameters): Document
19099         M_PERTURB.
19101 2010-07-26  Roland McGrath  <roland@redhat.com>
19103         [BZ #11840]
19104         * configure.in (-fgnu89-inline check): Set and substitute
19105         gnu89_inline, not libc_cv_gnu89_inline.
19106         * configure: Regenerated.
19107         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19109 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19111         * string/test-strnlen.c: New file.
19112         * string/Makefile (strop-tests): Add strnlen.
19113         * string/tester.c (test_strnlen): Add a few more test cases.
19114         * string/tst-strlen.c: Better error reporting.
19116         * sysdeps/x86_64/strnlen.S: New file.
19118 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19120         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19121         lower-latency instructions.
19123 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19125         * string/test-strcasestr.c: New file.
19126         * string/test-strstr.c: New file.
19127         * string/Makefile (strop-tests): Add strstr and strcasestr.
19128         * string/str-two-way.h: Don't undefine MAX.
19129         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19131 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19133         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19134         strcasestr-nonascii.
19135         (CFLAGS-strcasestr-nonascii.c): Define.
19136         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19137         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19138         Remove unused attribute.
19140 2010-07-20  Roland McGrath  <roland@redhat.com>
19142         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19143         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19144         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19145         like LD_HWCAP_MASK can disable hwcaps.
19147 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19149         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19151 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19153         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19154         call in strcasestr.
19155         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19156         __strcasestr_sse42_nonascii.
19157         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19158         strcasestr-nonascii.c.
19159         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19161 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19163         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19164         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19165         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19166         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19168 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19170         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19171         fcntl.
19173 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19175         [BZ #11577]
19176         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19177         dl_signal_cerror.
19179 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19181         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19182         _PC_PIPE_BUF using F_GETPIPE_SZ.
19184 2010-07-05  Roland McGrath  <roland@redhat.com>
19186         * manual/arith.texi (Rounding Functions): Fix rint description
19187         implicit in round description.
19189 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19191         * elf/Makefile: Fix linking for a few tests to make recent linker
19192         happy.
19194 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19196         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19197         $(common-objpfx)libc_nonshared.a.
19199 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19201         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19202         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19203         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19204         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19205         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19206         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19207         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19208         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19223         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19224         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19225         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19226         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19227         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19228         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19229         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19230         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19231         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19232         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19233         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19234         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19250 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19252         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19253         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19254         * string/memmove.c (memmove): Renamed to ...
19255         (MEMMOVE): ...this.  Default to memmove.
19256         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19257         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19258         (END_CHK): Define.
19259         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19260         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19261         mempcpy-ssse3-back memmove-ssse3-back.
19262         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19263         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19264         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19265         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19266         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19267         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19268         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19269         * sysdeps/x86_64/multiarch/memmove.c: New file.
19270         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19271         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19272         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19273         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19274         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19275         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19276         Define.
19277         (index_Fast_Copy_Backward): Define.
19278         (HAS_ARCH_FEATURE): Define.
19279         (HAS_FAST_REP_STRING): Define.
19280         (HAS_FAST_COPY_BACKWARD): Define.
19282 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19284         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19285         Restore proper fallback handling.
19287 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19289         [BZ #11701]
19290         * posix/group_member.c (__group_member): Correct checking loop.
19292         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19293         OOM in getpwuid_r correctly.  Return error number when the caller
19294         should return, otherwise -1.
19295         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19296         call returning > 0 value.
19297         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19299 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19301         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19302         libc_nonshared.a from targets in modules-names.
19304 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19306         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19307         requires it.
19309 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19311         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19312         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19313         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19314         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19316 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19318         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19320 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19322         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19323         and F_GETPIPE_SZ.
19324         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19325         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19326         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19327         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19328         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19329         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19331 2010-06-14  Roland McGrath  <roland@redhat.com>
19333         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19335 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19337         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19338         __REDIRECT followed by __THROW.
19339         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19340         * posix/getopt.h (getopt): Likewise.
19342 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19344         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19345         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19346         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19347         in AT_FLAGS.
19348         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19349         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19351 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19353         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19355 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19357         [BZ #11640]
19358         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19359         Properly check family and model.
19361 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19363         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19365 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19367         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19369 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19371         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19372         symbol reference.
19374 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19376         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19377         symbol reference.
19379 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19381         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19382         and internal_recvmmsg.
19383         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19384         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19385         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19386         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19388         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19389         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19390         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19392 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19394         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19396 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19398         POWER7 optimizations.
19399         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19400         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19402 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19404         * version.h: Update for 2.13 development version.
19406 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19408         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19409         exceptions.  Return 0.
19411 2010-05-07  Roland McGrath  <roland@redhat.com>
19413         * elf/ldconfig.c (main): Add a const.
19415 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19417         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19418         (args_options): Add no-idn option.
19419         (ahosts_keys_int): Add idn_flags to ai_flags.
19420         (parse_option): Handle 'i' option to clear idn_flags.
19422         * malloc/malloc.c (_int_free): Possible race in the most recently
19423         added check.  Only act on the data if no current modification
19424         happened.
19426 See ChangeLog.17 for earlier changes.