Get rid of unused __swblk_t type.
[glibc.git] / ChangeLog
blobf5183fac7a4834d69f0b4df02894852cbe1b021e
1 2012-10-01  Roland McGrath  <roland@hack.frob.com>
3         * bits/types.h (__swblk_t): Type removed.
4         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
5         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
6         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7         (__SWBLK_T_TYPE): Likewise.
8         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9         (__SWBLK_T_TYPE): Likewise.
10         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11         (__SWBLK_T_TYPE): Likewise.
12         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13         (__SWBLK_T_TYPE): Likewise.
15 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
16             Honza Horak <hhorak@redhat.com>
18         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
19         (xdr_mapname): Use YPMAXMAP as maxsize.
20         (xdr_peername): Use YPMAXPEER as maxsize.
21         (xdr_keydat): Use YPAXRECORD as maxsize.
22         (xdr_valdat): Use YPMAXRECORD as maxsize.
24 2012-10-01  Roland McGrath  <roland@hack.frob.com>
26         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
28         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
29         * csu/init-first.c: ... here.
30         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
31         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
32         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
33         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34         * sysdeps/i386/init-first.c: File removed.
35         * sysdeps/sh/init-first.c: File removed.
37 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
39         [BZ #14645]
40         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
41         if x * y might underflow to zero and z is zero.
42         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
43         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44         * math/libm-test.inc (min_subnorm_value): New variable.
45         (fma_test): Add more tests.
46         (fma_test_towardzero): Likewise.
47         (fma_test_downward): Likewise
48         (fma_test_upward): Likewise.
49         (initialize): Set min_subnorm_value.
51 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
53         [BZ #14638]
54         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
55         0 + 0.
56         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57         mode for addition resulting in exact zero.
58         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
59         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
60         exact 0 + 0.
61         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
62         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63         * math/libm-test.inc (fma_test): Add more tests.
64         (fma_test_towardzero): New function.
65         (fma_test_downward): Likewise.
66         (fma_test_upward): Likewise.
67         (main): Call the new functions.
69 2012-09-28  David S. Miller  <davem@davemloft.net>
71         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
73 2012-09-28  Roland McGrath  <roland@hack.frob.com>
75         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
76         instead of SIGALRM.
78         * sysdeps/gnu/_G_config.h: Moved to ...
79         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
80         * sysdeps/mach/hurd/_G_config.h: Moved to ...
81         * sysdeps/generic/_G_config.h: ... here.
83         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
85         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
87         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
88         Conditionalize target on [libnss_test1.so-version].
90         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
92         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
93         (elfobjdir): Move out of conditionals.
95         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
96         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
97         (__nss_lookup_function): Conditionalize label remove_from_tree on
98         [!DO_STATIC_NSS || SHARED], matching its only use.
100 2012-09-28  David S. Miller  <davem@davemloft.net>
102         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
103         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
104         file.
105         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
106         sysdep_routines.
107         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
108         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
109         when HWCAP_SPARC_CRYPTO is present.
111 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
113         * io/tst-mknodat.c: Create a FIFO instead of a socket.
115 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
117         [BZ #6530]
118         * stdio-common/vfprintf.c (process_string_arg): Revert
119         2000-07-22 change.
121 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
123         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
124         for testcase.
125         * stdio-common/tst-sprintf.c: Include <locale.h>
126         (main): Test sprintf's handling of incomplete multibyte
127         characters.
129 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
131         * elf/dl-runtime.c (VERSYMIDX): Removed.
132         * elf/dl-version.c (VERSYMIDX): Likewise.
133         * elf/do-rel.h (VERSYMIDX): Likewise.
134         (VALIDX): Likewise.
135         * elf/dynamic-link.h (VERSYMIDX): Likewise.
136         * elf/rtld.c (VALIDX): Likewise.
137         (ADDRIDX): Likewise.
138         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
139         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
140         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
141         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
142         (VALIDX): Likewise.
143         (ADDRIDX): Likewise.
145 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
147         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
149 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
151         [BZ #11438]
152         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
153         to global scope.
154         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
155         addresses are in the same scope as 192.0.2/24.
156         * posix/gai.conf: Document new scope table defaults.
158 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
160         [BZ #5298]
161         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
162         for ftell.  Compute offsets from write pointers instead.
163         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
165 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
167         [BZ #14543]
168         * libio/Makefile (tests): New test case tst-fseek.
169         * libio/tst-fseek.c: New test case to verify that fseek/ftell
170         combination works in wide mode.
171         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
172         state when the external buffer state changes.
174 2012-09-27  David S. Miller  <davem@davemloft.net>
176         [BZ #14376]
177         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
178         pass reloc->r_addend in as the 'high' argument to
179         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
181         * sysdeps/sparc/fpu/libm-test-ulps: Update.
183 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
185         * rt/tst-aio2.c: Include <pthread.h>.
186         * rt/tst-aio3.c: Likewise.
188 2012-09-27  Steve Ellcey  <sellcey@mips.com>
190         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
192 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
194         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
195         contents on [SHARED].
197 2012-09-26  Marek Polacek  <polacek@redhat.com>
199         [BZ #14530]
200         [BZ #13741]
201         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
202         for C++ and GCC <4.3 as well as for non GCC compilers.
204 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
206         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
208 2012-09-25  Roland McGrath  <roland@hack.frob.com>
210         * Makefile.in (all, install): Declare with .PHONY.
211         Reported by Michael Hope <michael.hope@linaro.org>.
213 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
215         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
216         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
217         system header.
218         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
219         Likewise.
220         (sydep_routines): Add the new and the internal functions.
221         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
222         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
224         (GLIBC_2.17): Add the new function.
225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
226         (GLIBC_2.17): Likewise.
227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
228         (GLIBC_2.17): Likewise.
229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
230         (GLIBC_2.17): Likewise.
231         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
233 2012-09-25  Alan Modra  <amodra@gmail.com>
235         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
236         Add release barrier before setting once_control to say
237         initialisation is done.  Add hints on lwarx.  Use macro in
238         place of isync.
239         (clear_once_control): Add release barrier.
241 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
243         [BZ #13629]
244         * math/s_clog.c (__clog): Handle more values close to |z| = 1
245         specially.
246         * math/s_clog10.c (__clog10): Likewise.
247         * math/s_clog10f.c (__clog10f): Likewise.
248         * math/s_clog10l.c (__clog10l): Likewise.
249         * math/s_clogf.c (__clogf): Likewise.
250         * math/s_clogl.c (__clogl): Likewise.
251         * math/Makefile (libm-calls): Add x2y2m1.
252         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
253         (__x2y2m1): Likewise.
254         (__x2y2m1l): Likewise.
255         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
256         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
257         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
258         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
259         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
260         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
261         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
262         * sysdeps/i386/fpu/libm-test-ulps: Update.
263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
265         [BZ #14621]
266         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
267         int as type of variable DEPTH.
268         (glob): Use size_t instead of int as type of variables NEWCOUNT
269         and OLD_PATHC.
271 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
273         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
274         Add s_sincosf-sse2.
275         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
276         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
277         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
278         macros for using routine as __sincosf_ia32.
279         Use macro for function declaration and weak_alias.
280         * sysdeps/i386/fpu/libm-test-ulps: Update.
282         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
283         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
285         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
286         subnormal argument.
287         * math/s_cexpf.c (__cexpf): Likewise.
288         * math/s_csinf.c (__csinf): Likewise.
289         * math/s_csinhf.c (__csinhf): Likewise.
290         * math/s_ctanf.c (__ctanf): Likewise.
291         * math/s_ctanhf.c (__ctanhf): Likewise.
292         * math/s_ccosh.c (__ccoshf): Likewise.
293         * math/s_cexp.c (__cexpl): Likewise.
294         * math/s_csin.c (__csin): Likewise.
295         * math/s_csinh.c (__csinh): Likewise.
296         * math/s_ctan.c (__ctan): Likewise.
297         * math/s_ctanh.c (ctanh): Likewise.
298         * math/s_ccoshl.c (__ccoshl): Likewise.
299         * math/s_cexpl.c (__cexpl): Likewise.
300         * math/s_csinl.c (__csinl): Likewise.
301         * math/s_csinhl.c (__csinhl): Likewise.
302         * math/s_ctanl.c (__ctanl): Likewise.
303         * math/s_ctanhl.c (__ctanhl): Likewise.
305 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
307         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
308         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
309         (_IO_off_t): Define to __off_t, not _G_off_t.
310         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
311         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
312         (_IO_wint_t): Define to wint_t, not _G_wint_t.
313         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
314         type of __dummy and __dummy2 fields.
315         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
316         (_G_ssize_t): Likewise.
317         (_G_off_t): Likewise.
318         (_G_pid_t): Likewise.
319         (_G_uid_t): Likewise.
320         (_G_wchar_t): Likewise.
321         (_G_wint_t): Likewise.
322         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
323         (_G_ssize_t): Likewise.
324         (_G_off_t): Likewise.
325         (_G_pid_t): Likewise.
326         (_G_uid_t): Likewise.
327         (_G_wchar_t): Likewise.
328         (_G_wint_t): Likewise.
329         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
330         (_G_ssize_t): Likewise.
331         (_G_off_t): Likewise.
332         (_G_pid_t): Likewise.
333         (_G_uid_t): Likewise.
334         (_G_wchar_t): Likewise.
335         (_G_wint_t): Likewise.
337 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
339         * malloc/arena.c: Include malloc-sysdep.h.
340         (shrink_heap): Use check_may_shrink_heap to decide if madvise
341         is sufficient to shrink the heap or an unmap is needed.
342         * sysdeps/generic/malloc-sysdep.h: New file.  Define
343         new function check_may_shrink_heap.
344         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
345         new function check_may_shrink_heap.
347 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
349         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
350         comments.
352 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
354         * catgets/test-gencat.sh: Add "set -e".
355         * elf/tst-pathopt.sh: Likewise.
356         * grp/tst_fgetgrent.sh: Likewise.
357         * iconvdata/run-iconv-test.sh: Likewise.
358         * intl/tst-gettext.sh: Likewise.
359         * intl/tst-gettext2.sh: Likewise.
360         * intl/tst-gettext4.sh: Likewise.
361         * intl/tst-gettext6.sh: Likewise.
362         * intl/tst-translit.sh: Likewise.
363         * io/ftwtest-sh: Likewise.
364         * libio/test-freopen.sh: Likewise.
365         * malloc/tst-mtrace.sh: Likewise.
366         * posix/globtest.sh: Likewise.
367         * posix/tst-getconf.sh: Likewise.
368         * posix/wordexp-tst.sh: Likewise.
369         * stdio-common/tst-printf.sh: Likewise.
370         * stdio-common/tst-unbputc.sh: Likewise.
371         * stdlib/tst-fmtmsg.sh: Likewise.
372         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
373         * catgets/Makefile: Do not specify -e option when running
374         testsuite shell scripts.
375         * elf/Makefile: Likewise.
376         * grp/Makefile: Likewise.
377         * iconvdata/Makefile: Likewise.
378         * intl/Makefile: Likewise.
379         * io/Makefile: Likewise.
380         * libio/Makefile: Likewise.
381         * malloc/Makefile: Likewise.
382         * posix/Makefile: Likewise.
383         * stdio-common/Makefile: Likewise.
384         * stdlib/Makefile: Likewise.
385         * sysdeps/x86_64/Makefile: Likewise.
387         * io/ftwtest-sh: Add copyright header.
388         * posix/globtest.sh: Likewise.
389         * posix/tst-getconf.sh: Likewise.
390         * posix/wordexp-tst.sh: Likewise.
391         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
393 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
395         [BZ #13679]
396         * Makeconfig (+link): Defined as $(+link-static) if
397         $(build-shared) isn't yes.
398         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
399         isn't yes.
400         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
402         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
404         [BZ #14562]
405         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
406         new chunk size with MALLOC_ALIGN_MASK.
408 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
410         [BZ #5044]
411         * stdio-common/printf_fphex.c: Include <stdbool.h> and
412         <rounding-mode.h>.
413         (__printf_fphex): Determine rounding using get_rounding_mode and
414         round_away.
415         * stdio-common/tst-printf-round.c (struct hex_test): New
416         structure.
417         (hex_tests): New variable.
418         (test_hex_in_one_mode): New function.
419         (do_test): Also run tests for hex float output.
421 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
423         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
424         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
425         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
426         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
427         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
428         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
429         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
430         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
432 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
434         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
435         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
436         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
437         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
439 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
441         [BZ #14579]
442         * elf/rtld.c (dl_main): Limit the check for self loading to normal
443         mode only.
444         * elf/tst-rtld-load-self.sh: New test.
445         * elf/Makefile: Run it.
447 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
449         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
450         (tst-writev-ENV): Remove.
451         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
453 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
455         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
457 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
459         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
460         unconditional.
461         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
462         Likewise.
463         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
464         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
465         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
466         Likewise.
468 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
470         [BZ #14587]
471         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
472         * config.make.in (have-cpp-asm-debuginfo): Removed.
473         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
474         * configure: Regenerated.
476 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
478         [BZ #5044]
479         * stdio-common/printf_fp.c: Include <stdbool.h> and
480         <rounding-mode.h>.
481         (___printf_fp): Determine rounding using get_rounding_mode and
482         round_away.
483         * stdio-common/tst-printf-round.c: New file.
484         * stdio-common/Makefile (tests): Add tst-printf-round.
485         (link-libm): New variable.
486         ($(objpfx)tst-printf-round): Depend in $(link-libm).
488 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
490         [BZ #14576]
491         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
492         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
493         Likewise.
494         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
495         Likewise.
497 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
499         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
500         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
501         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
502         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
504 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
506         [BZ #14518]
507         * include/rounding-mode.h: New file.
508         * sysdeps/generic/get-rounding-mode.h: Likewise.
509         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
510         * stdlib/strtod_l.c: Include <rounding-mode.h>.
511         (MAX_VALUE): New macro.
512         (MIN_VALUE): Likewise.
513         (overflow_value): New function.
514         (underflow_value): Likewise.
515         (round_and_return): Use overflow_value and underflow_value to
516         determine return values in overflow and underflow cases.  Use
517         round_away to determine rounding depending on rounding mode.
518         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
519         determine return values in overflow and underflow cases.
520         * stdlib/tst-strtod-round.c: Include <fenv.h>.
521         (struct test_results): New structure.
522         (struct test): Use struct test_results to store expected results
523         for all rounding modes.
524         (TEST): Include expected results for all rounding modes.
525         (test_in_one_mode): New function.
526         (do_test): Use test_in_one_mode to compute and check results.
527         Check results for all rounding modes.
528         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
529         $(link-libm).
531 2012-12-09  Allan McRae  <allan@archlinux.org>
533         * sysdeps/i386/fpu/libm-test-ulps: Update
535 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
537         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
538         (_G_int32_t): Likewise.
539         (_G_uint16_t): Likewise.
540         (_G_uint32_t): Likewise.
541         (_G_HAVE_BOOL): Likewise.
542         (_G_HAVE_ATEXIT): Likewise.
543         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
544         (_G_HAVE_IO_FILE_OPEN): Likewise.
545         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
546         (_G_int32_t): Likewise.
547         (_G_uint16_t): Likewise.
548         (_G_uint32_t): Likewise.
549         (_G_HAVE_BOOL): Likewise.
550         (_G_HAVE_ATEXIT): Likewise.
551         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
552         (_G_HAVE_IO_FILE_OPEN): Likewise.
553         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
554         (_G_int32_t): Likewise.
555         (_G_uint16_t): Likewise.
556         (_G_uint32_t): Likewise.
557         (_G_HAVE_BOOL): Likewise.
558         (_G_HAVE_ATEXIT): Likewise.
559         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
560         (_G_HAVE_IO_FILE_OPEN): Likewise.
562 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
564         * csu/libc-tls.c: Update copyright years.
566 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
568         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
569         [!_G_USING_THUNKS]: Remove conditional code.
570         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
571         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
573         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
574         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
575         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
576         (_G_VTABLE_LABEL_PREFIX): Likewise.
577         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
578         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
579         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
580         (_G_VTABLE_LABEL_PREFIX): Likewise.
581         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
582         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
583         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
584         (_G_VTABLE_LABEL_PREFIX): Likewise.
585         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
587 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
589         * libio/Makefile: Include ../Makeconfig before tests.
590         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
591         only if $(build-shared) is yes.
593         * iconv/gconv_db.c: Update copyright years.
595 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
597         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
598         unwind info if defined PIC. Fix special cases description.
599         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
601         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
602         DP_HI_MASK entry.
603         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
605 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
607         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
609         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
610         is NULL.
612         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
613         (LDLIBS-tst-chk4): This.
614         (LDFLAGS-tst-chk5): Renamed to ...
615         (LDLIBS-tst-chk5): This.
616         (LDFLAGS-tst-chk6): Renamed to ...
617         (LDLIBS-tst-chk6): This.
618         (LDFLAGS-tst-lfschk4): Renamed to ...
619         (LDLIBS-tst-lfschk4): This.
620         (LDFLAGS-tst-lfschk5): Renamed to ...
621         (LDLIBS-tst-lfschk5): This.
622         (LDFLAGS-tst-lfschk6): Renamed to ...
623         (LDLIBS-tst-lfschk6): This.
625         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
626         on $(common-objpfx)soversions.mk.
628 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
630         [BZ #10014]
631         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
632         example host name.
634 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
636         * malloc/arena.c (arena_get_retry): New function that gets
637         another arena for the caller to try its request on.
638         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
639         current arena cannot fulfill the request.
640         (__libc_memalign): Likewise.
641         (__libc_memalign): Likewise.
642         (__libc_pvalloc): Likewise.
643         (__libc_calloc): Likewise.
645 2012-09-05  John Tobey  <john.tobey@gmail.com>
647         [BZ #13542]
648         * manual/arith.texi (Operations on Complex): Fix description
649         of carg branch cut.
651 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
653         [BZ #10014]
654         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
655         host name.
657         [BZ #10038]
658         * manual/memory.texi (Memory): Make order of menu items match
659         order of sections.
661 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
663         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
664         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
665         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
667 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
669         * csu/libc-tls.c (static_dtv): Renamed to ...
670         (_dl_static_dtv): This.  Make it global.
671         (_dl_initial_dtv): Removed.
672         (__libc_setup_tls): Updated.
673         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
674         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
675         DL_INITIAL_DTV.
677 2012-09-06  Petr Machata  <pmachata@redhat.com>
679         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
680         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
681         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
682         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
684 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
686         [BZ #14545]
687         * csu/libc-tls.c (_dl_initial_dtv): New variable.
688         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
689         freeing dtv[-1].
691 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
693         [BZ #14544]
694         * Makeconfig (link-static-before-libc): Replace $(+prector)
695         with $(+prectorT).
696         (link-static-after-libc): Replace $(+postctor) with
697         $(+postctorT).
698         (link-bounded): Replace $(+prector)/$(+postctor) with
699         $(+prectorT)/$(+postctorT).
700         (+prectorT): New macro.
701         (+postctorT): Likewise.
703 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
705         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
706         (round_str): Handle values above the maximum for IBM long double
707         as inexact.
708         * stdlib/tst-strtod-round.c (tests): Regenerated.
710 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
712         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
713         assembler flag.
714         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
715         zarch_nohighgprs around the zarch optimized routines.
716         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
717         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
718         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
719         for zarch.
721 2012-09-05  David S. Miller  <davem@davemloft.net>
723         * sysdeps/sparc/fpu/libm-test-ulps: Update.
725         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
726         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
727         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
728         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
729         entries.
731 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
733         * malloc/arena.c: Fold copyright years.
734         * malloc/mcheck.c, malloc/memusage.c: Likewise.
736 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
738         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
740 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
742         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
744 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
746         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
747         change internal state upon failure.
749 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
751         * malloc/mcheck.c (mcheck_check_all): Fix typo.
752         * malloc/memusage.c (mmap): Likewise.
753         (mmap64, mremap): Likewise.  Adjust name in comment.
755 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
757         * libio/fileops.c: Fix typos in comments.
758         * libio/oldfileops.c: Likewise.
759         * libio/wfileops.c: Likewise.
761 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
763         [BZ #1349]
764         * malloc/Makefile (tests): Add tst-malloc-usable test case.
765         (tst-malloc-usable-ENV): Set environment for test case.
766         * malloc/hooks.c (malloc_check_get_size): New function to get
767         requested size.
768         * malloc/malloc.c (musable): Use malloc_check_get_size.
769         * malloc/tst-malloc-usable.c: New test case.
771 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
773         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
775 2012-09-05  Allan McRae  <allan@archlinux.org>
777         [BZ #13966]
778         * configure.in (CXX_SYSINCLUDES): Use compiler output to
779         determine header location.
780         * configure: Regenerated.
782 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
784         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
785         float format.
786         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
787         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
788         format.
789         (test): Regenerate.
791 2012-09-04  David S. Miller  <davem@davemloft.net>
793         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
794         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
795         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
797 2012-09-04  Florian Weimer  <fweimer@redhat.com>
799         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
800         failures.
802         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
804 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
806         [BZ #9914]
807         * libio/iogetdelim.c: Include <limits.h>.
808         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
809         + len + 1 would overflow.
811 2012-09-03  Andreas Jaeger  <aj@suse.de>
813         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
814         * sysdeps/i386/fpu/libm-test-ulps: Update.
816 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
818         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
819         Add s_sinf-sse2, s_conf-sse2.
821         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
822         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
823         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
824         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
826         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
827         for using routine as __sinf_ia32.
828         Use macro for function declaration and weak_alias.
829         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
830         for using routine as __cosf_ia32.
831         Use macro for function declaration and weak_alias.
833         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
834         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
836         * sysdeps/x86_64/fpu/s_sinf.S: New file.
837         * sysdeps/x86_64/fpu/s_cosf.S: New file.
838         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
840         * math/libm-test.inc (cos_test): Add more test cases.
841         (sin_test): Likewise.
842         (sincos_test): Likewise.
844 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
846         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
847         (IFUNC_RESOLVE): Make pointers to the specialized implementations
848         hidden.
849         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
851 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
853         [BZ #14538]
854         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
855         first element of the GOT.
856         (elf_machine_load_address): Return the difference between
857         the runtime address of _DYNAMIC and elf_machine_dynamic ().
859 2012-09-01  Allan McRae  <allan@archlinux.org>
861         [BZ #13412]
862         * configure.in (AWK): Require gawk version 3.0 or later.
863         * configure: Regenerated.
865 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
867         * sysdeps/unix/sysv/linux/kernel-features.h
868         (__ASSUME_POSIX_CPU_TIMERS): Remove.
869         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
870         [__NR_clock_getres]: Make code unconditional.
871         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
872         (clock_getcpuclockid): Remove code left unreachable by removal of
873         conditionals.
874         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
875         code unconditional.
876         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
877         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
878         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
879         Make code unconditional.
880         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
881         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
882         * sysdeps/unix/sysv/linux/clock_settime.c
883         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
884         conditional code.
885         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
886         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
888 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
890         [BZ #14476]
891         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
892         scripts/test-installation.pl.
894         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
895         and $ld_so_version if it is set.
897 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
899         [BZ #14516]
900         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
901         failure if reading from procfs failed.
902         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
904 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
906         * sysdeps/unix/sysv/linux/kernel-features.h
907         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
908         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
909         Remove conditional code.
910         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
911         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
912         Remove conditional code.
913         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
914         * sysdeps/unix/sysv/linux/i386/fxstat.c
915         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
916         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
917         * sysdeps/unix/sysv/linux/i386/fxstatat.c
918         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
919         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
920         * sysdeps/unix/sysv/linux/i386/lxstat.c
921         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
922         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
923         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
924         Remove conditional code.
925         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
926         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
927         Remove conditional code.
928         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
929         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
930         <kernel-features.h>.
931         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
932         Remove.
933         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
934         Remove conditional code.
935         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
936         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
937         Remove conditional.
939 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
941         [BZ #5400]
942         * NEWS: Add fixed bug number.
944 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
946         [BZ #14519]
947         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
948         underflowing exponent in case of negative sign.
949         * stdlib/tst-strtod-round-data: Add more tests.
950         * stdlib/tst-strtod-round.c (tests): Regenerated.
952         [BZ #3479]
953         * stdlib/strtod_l.c (NDIG): Remove.
954         (HEXNDIG): Likewise.
955         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
956         smallest representable value.
957         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
958         lie within an exact representation of 1/2 ulp of the result.
959         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
960         unconditionally.
961         (TENS_P9_IDX): Define unconditionally.
962         (TENS_P9_SIZE): Likewise.
963         (TENS_P10_IDX): Likewise.
964         (TENS_P10_SIZE): Likewise.
965         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
966         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
967         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
968         entries for 10^2^13 and 10^2^14.
969         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
970         (TENS_P13_IDX): Define.
971         (TENS_P13_SIZE): Likewise.
972         (TENS_P14_IDX): Likewise.
973         (TENS_P14_SIZE): Likewise.
974         (_fpioconst_pow10): Change array size to
975         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
976         unconditional.
977         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
978         1024]: Add entries for 10^2^13 and 10^2^14.
979         [LAST_POW10 > _LAST_POW10]: Remove #error.
980         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
981         (_fpioconst_pow10): Change array size to
982         FPIOCONST_POW10_ARRAY_SIZE.
983         * stdlib/gen-fpioconst.c: New file.
984         * stdlib/gen-tst-strtod-round.c: Likewise.
985         * stdlib/tst-strtod-round-data: Likewise.
986         * stdlib/tst-strtod-round.c: Likewise.
987         * stdlib/Makefile (tests): Add tst-strtod-round.
989         [BZ #14459]
990         * stdlib/strtod_l.c: Include <stdint.h>.
991         (NDEBUG): Do not define.
992         (round_and_return): Change EXPONENT parameter to type intmax_t.
993         Rearrange calculations to avoid internal overflow possibilities.
994         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
995         Rearrange calculations to avoid internal overflow possibilities.
996         Assert that number fits inside MPNSIZE limbs.
997         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
998         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
999         calculations and add assertions to avoid internal overflow
1000         possibilities.  Add casts to avoid signed/unsigned operations.
1001         * stdlib/tst-strtod-overflow.c: New file.
1002         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1004 2012-08-25  Marek Polacek  <polacek@redhat.com>
1006         * time/time.h: Fix some typos in comments.
1008 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1010         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1011         * posix/tst-rfc3484-2.c: Likewise.
1012         * posix/tst-rfc3484-3.c: Likewise.
1014 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1016         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1017         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1019 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1021         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1022         #include of fxstatat64.c.
1024 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1026         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1027         * shadow/getspent_r.c: Likewise.
1028         * shadow/getspnam.c: Likewise.
1029         * shadow/getspnam_r.c: Likewise.
1030         * gshadow/getsgent.c: Likewise.
1031         * gshadow/getsgent_r.c: Likewise.
1032         * gshadow/getsgnam.c: Likewise.
1033         * gshadow/getsgnam_r.c: Likewise.
1034         * inet/getnetbyad.c: Likewise.
1035         * inet/getnetbyad_r.c: Likewise.
1036         * inet/getnetbynm.c: Likewise.
1037         * inet/getnetbynm_r.c: Likewise.
1038         * inet/getnetent.c: Likewise.
1039         * inet/getnetent_r.c: Likewise.
1040         * inet/getproto.c: Likewise.
1041         * inet/getproto_r.c: Likewise.
1042         * inet/getprtent.c: Likewise.
1043         * inet/getprtent_r.c: Likewise.
1044         * inet/getprtname.c: Likewise.
1045         * inet/getprtname_r.c: Likewise.
1046         * inet/getrpcbyname.c: Likewise.
1047         * inet/getrpcbyname_r.c: Likewise.
1048         * inet/getrpcbynumber.c: Likewise.
1049         * inet/getrpcbynumber_r.c: Likewise.
1050         * inet/getrpcent.c: Likewise.
1051         * inet/getrpcent_r.c: Likewise.
1052         * inet/getaliasent.c: Likewise.
1053         * inet/getaliasent_r.c: Likewise.
1054         * inet/getaliasname.c: Likewise.
1055         * inet/getaliasname_r.c: Likewise.
1056         * nscd/getgrgid_r.c: Likewise.
1057         * nscd/getgrnam_r.c: Likewise.
1058         * nscd/gethstbyad_r.c: Likewise.
1059         * nscd/gethstbynm3_r.c: Likewise.
1060         * nscd/getpwnam_r.c: Likewise.
1061         * nscd/getpwuid_r.c: Likewise.
1062         * nscd/getsrvbynm_r.c: Likewise.
1063         * nscd/getsrvbypt_r.c: Likewise.
1064         * nscd/gai.c: Likewise.
1066         * configure.in (build_nscd): New substituted variable, set
1067         by --disable-build-nscd and defaults to $use_nscd.
1068         * configure: Regenerated.
1069         * config.make.in (build-nscd): New substituted variable.
1070         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1071         Change conditional to require [$(build-nscd) = yes] as well.
1072         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1074         [BZ# 13696]
1075         * configure.in (use_nscd): New substituted variable, set by
1076         --disable-nscd.  If enabled, define USE_NSCD.
1077         * configure: Regenerated.
1078         * config.h.in: Add USE_NSCD.
1079         * config.make.in (use-nscd): New substituted variable.
1080         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1081         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1082         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1083         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1084         (CFLAGS-getgrnam_r.c): Likewise.
1085         (CFLAGS-initgroups.c): Likewise.
1086         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1087         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1088         Variables removed.
1089         * inet/getnetgrent_r.c
1090         (nscd_setnetgrent): New function, broken out of ...
1091         (setnetgrent): ... here.  Call it.
1092         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1093         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1094         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1095         * nscd/Makefile (routines, aux): Move definitions after include of
1096         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1097         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1098         Conditionalize on [USE_NSCD].
1099         (is_nscd, nscd_init_cb): Likewise.
1100         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1101         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1102         * nss/nss_db/db-init.c: Likewise.
1103         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1104         [USE_NSCD].
1105         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1106         (make_request): Use it.
1107         (cache_valid_p): New function.
1108         (__check_pf): Use it.
1109         * NEWS: Add item for --disable-nscd.
1111 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1113         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1114         to support sed >= 4.2.1-20-ga9bf076.
1115         * configure: Regenerated.
1117 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1119         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1120         Conditionalize whole body on [IREL].
1122 2012-08-22  Jeff Law <law@redhat.com>
1124         [BZ #14505]
1125         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1126         if the family is PF_UNSPEC.
1128 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1130         * Makerules (lib-version): Rename from V.
1131         (install-lib-nosubdir): Change V to lib-version.
1133 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1135         [BZ #14252]
1136         * powerpc32/power6/wcschr.c: New file.
1137         * powerpc32/power6/wcscpy.c: New file.
1138         * powerpc32/power6/wcsrchr.c: New file.
1139         * powerpc64/power6/wcschr.c: New file.
1140         * powerpc64/power6/wcscpy.c: New file.
1141         * powerpc64/power6/wcsrchr.c: New file.
1143 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1145         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1146         (two_way_short_needle): Use it.
1147         * string/strstr.c (AVAILABLE1_USES_J): Define.
1148         * string/strcasestr.c: Likewise.
1150         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1151         array references.
1152         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1154         [BZ #11607]
1155         * NEWS: Add an entry.
1156         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1157         define their defaults.
1158         (two_way_short_needle): Detect end-of-string on-the-fly.
1159         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1160         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1161         * string/bug-strcasestr1.c: New test.
1162         * string/Makefile: Run it.
1164 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1166         [BZ #11607]
1167         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1168         the first character.
1170 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1172         * csu/elf-init.c (__libc_csu_irel): Function removed.
1173         * csu/libc-start.c (apply_irel): New function.
1174         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1176 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1178         * sysdeps/unix/sysv/linux/kernel-features.h
1179         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1180         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1181         <kernel-features.h>.
1182         [__NR_fadvise64_64]: Make code unconditional.
1183         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1184         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1185         !__NR_fadvise64_64)]: Likewise.
1186         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1187         !__NR_fadvise64_64))]: Likewise.
1188         [__NR_fadvise64]: Make code unconditional.
1189         [!__NR_fadvise64]: Remove conditional code.
1190         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1191         <kernel-features.h>.
1192         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1193         unconditional.
1194         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1195         conditional code.
1196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1197         not include <kernel-features.h>.
1198         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1199         unconditional.
1200         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1201         conditional code.
1202         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1203         include <kernel-features.h>.
1204         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1205         unconditional.
1206         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1207         conditional code.
1209 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1211         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1212         slight instruction rearrangements per scrollpipe analysis.
1213         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1215 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1217         * manual/syslog.texi (syslog; vsyslog, closelog):
1218         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1219         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1221         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1222         DSOCAPS to match condition on defining it.
1224 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1226         * sysdeps/unix/sysv/linux/kernel-features.h
1227         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1229         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1230         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1232         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1233         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1235         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1236         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1238         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1239         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1241         * sysdeps/unix/sysv/linux/kernel-features.h
1242         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1243         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1244         unconditional.
1245         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1246         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1247         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1248         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1249         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1250         Make code unconditional.
1251         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1252         (__mmap64) [!__NR_mmap2]: Likewise.
1253         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1254         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1255         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1256         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1257         [__NR_mmap2]: Make code unconditional.
1258         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1259         (__mmap64) [!__NR_mmap2]: Likewise.
1261 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1263         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1265 2012-08-18  Andreas Jaeger  <aj@suse.de>
1267         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1269 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1271         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1272         * include/unistd.h (__have_sock_cloexec): Likewise.
1273         (__have_pipe2): Likewise.
1274         (__have_dup3): Likewise.
1276 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1278         [BZ #9685]
1279         * include/unistd.h (__have_pipe2): Change define into an extern int.
1280         (__have_dup3): Likewise.
1281         * socket/have_sock_cloexec.c: Include fcntl.h.
1282         (__have_pipe2): New variable.
1283         (__have_dup3): Likewise.
1285 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1287         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1289 2012-08-17  Marek Polacek  <polacek@redhat.com>
1291         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1292         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1294 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1296         * configure.in: Add AC_SUBST for sysheaders.
1297         * configure: Regenerated.
1298         * config.make.in (sysheaders): New substituted variable.
1300         * sysdeps/unix/mkfifo.c: Moved ...
1301         * sysdeps/posix/mkfifo.c: ... here.
1302         * sysdeps/unix/mkfifoat.c: Moved ...
1303         * sysdeps/posix/mkfifoat.c: ... here.
1305         * sysdeps/unix/utime.c: Moved ...
1306         * sysdeps/posix/utime.c: ... here.
1308         * sysdeps/unix/time.c: Moved ...
1309         * sysdeps/posix/time.c: ... here.
1310         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1311         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1313         * sysdeps/unix/nice.c: Moved ...
1314         * sysdeps/posix/nice.c: ... here.
1316         * sysdeps/unix/alarm.c: Moved ...
1317         * sysdeps/posix/alarm.c: ... here.
1319         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1321 2012-08-17  Jeff Law <law@redhat.com>
1323         * intl/Makefile (codeset_mo): New variable.
1324         ($(codeset_mo)): New target.
1325         (tst-codeset.out): Depend on that.  Remove explicit rule.
1326         (tst-gettext3.out, tst-gettext5.out): Likewise.
1327         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1328         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1329         * intl/tst-codeset.sh: Remove.
1330         * intl/tst-gettext3.sh: Likewise.
1331         * intl/tst-gettext5.sh: Likewise.
1333 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1335         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1336         * sysdeps/unix/syscalls.list: ... here.
1338         * sysdeps/posix/getaddrinfo.c
1339         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1340         (gaiconf_init, gaiconf_reload): Use them.
1341         [!_STATBUF_ST_NSEC]
1342         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1343         Define using time_t rather than struct timespec.
1345         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1346         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1347         Macros removed.
1348         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1349         [!NO_THREADS].
1350         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1351         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1352         Likewise.
1354         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1355         __libc_cleanup_push argument.
1357         * bits/param.h: New file.
1358         * misc/sys/param.h: New file.
1359         * include/sys/param.h: New file.
1360         * misc/Makefile (headers): Add bits/param.h.
1361         * sysdeps/generic/sys/param.h: File removed.
1362         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1363         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1364         * sysdeps/mach/hurd/bits/param.h: New file.
1365         * sysdeps/mach/hurd/sys/param.h: New file.
1367         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1368         last change.
1370         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1371         [_IO_MTSAFE_IO].
1372         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1373         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1374         New macros.
1376         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1377         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1378         rather than -D_IO_MTSAFE_IO conditionally.
1379         * stdio-common/Makefile (CPPFLAGS): Likewise.
1380         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1381         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1382         Use $(libio-mtsafe).
1383         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1384         of -D_IO_MTSAFE_IO.
1385         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1386         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1387         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1388         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1389         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1390         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1391         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1392         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1393         (CFLAGS-fread_u_chk.c): Likewise.
1394         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1395         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1396         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1397         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1398         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1399         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1400         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1401         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1402         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1404         * libio/Makefile: Test [$(libc-reentrant) = yes]
1405         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1407         * Makeconfig
1408         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1409         * sysdeps/pthread/configure: File removed.
1410         * sysdeps/pthread/Makeconfig: New file.
1411         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1412         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1414 2012-08-16  Gary Benson  <gbenson@redhat.com>
1416         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1417         unmapping the first object in a namespace.
1419 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1421         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1422         (__internal_setnetgrent): ... this.  Add internal_function to
1423         definition.  Add libc_hidden_def.
1424         (setnetgrent): Update caller.
1425         (internal_endnetgrent): Renamed to ...
1426         (__internal_endnetgrent): ... this.  Add internal_function to
1427         definition.  Add libc_hidden_def.
1428         (endnetgrent): Update caller.
1429         (internal_getnetgrent_r): Renamed to ...
1430         (__internal_getnetgrent_r): ... this.  Add internal_function to
1431         definition.  Add libc_hidden_def.
1432         (__getnetgrent_r): Update caller.
1433         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1435 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1437         * stdlib/longlong.h: Update from GCC.
1439 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1441         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1442         on _QL, which is set by umul_ppmm but never used.
1443         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1444         variables, which are set by GMP macros but never used.
1445         * stdio-common/_itowa.c (_itowa): Likewise.
1446         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1447         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1449 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1451         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1452         struct La_sh_regs is not constant.
1453         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1454         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1455         and struct La_sparc64_regs are not constant.
1457 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1459         * sysdeps/unix/sysv/linux/kernel-features.h
1460         (__ASSUME_POSIX_TIMERS): Remove.
1461         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1462         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1463         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1464         Make code unconditional.
1465         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1466         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1467         Make code unconditional.
1468         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1469         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1470         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1471         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1472         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1473         Make code unconditional.
1474         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1475         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1476         (__libc_missing_posix_timers): Remove.
1478 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1480         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1481         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1483         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1485         * elf/dl-sym.c: Include <stdlib.h>.
1487         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1488         constants, which avoids warnings in 32-bit builds.
1490         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1491         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1493         * misc/lseek.c: File moved to ...
1494         * io/lseek.c: ... here.
1496         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1498         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1499         shifting LEN more than 31 bits at once.
1501 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1503         [BZ #14195]
1504         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1505         segmentation fault for a case of two empty input strings.
1506         * string/test-strncasecmp.c (check1): Renamed to...
1507         (bz12205): ...this.
1508         (bz14195): Add new testcase for two empty input strings and N > 0.
1509         (test_main): Call new testcase, adapt for renamed function.
1511 2012-08-15  Andreas Jaeger  <aj@suse.de>
1513         [BZ #14090]
1514         * crypt/md5test2.c: New test, based on test supplied by Serge
1515         Belyshev <belyshev@depni.sinp.msu.ru>.
1516         * crypt/Makefile (xtests): Add md5test-giant..
1517         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1519 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1521         [BZ #14090]
1522         * crypt/md5.c (md5_process_block): Don't assume the buffer
1523         length is less than 2**32.
1524         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1525         length is less than 2**64.
1527 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1529         * string/str-two-way.h: Include <sys/param.h>.
1530         (MAX): Macro removed.
1532         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1533         Move #define and #undef of memmove to just before and after
1534         including <string.h>.
1536         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1537         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1538         and after including <string.h>.  Move declarations of
1539         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1540         to before #include "string/memmove.c".
1542         * include/dirent.h: Declare __getdirentries.
1544         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1545         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1547 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1549         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1550         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1551         * sysdeps/i386/configure: Regenerated.
1552         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1553         STABS_CURRENT_FILE, and STABS_FUN.
1554         (END): Remove call to STABS_FUN_END.
1555         (STABS_CURRENT_FILE1): Delete.
1556         (STABS_CURRENT_FILE): Likewise.
1557         (STABS_FUN): Likewise.
1558         (STABS_FUN_END): Likewise.
1559         (STABS_FUN2): Likewise.
1560         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1561         * sysdeps/x86_64/configure: Regenerated.
1563 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1565         * elf/dl-open.c: Include <atomic.h>.
1566         * elf/dl-lookup.c: Likewise.
1568 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1570         * sysdeps/unix/sysv/linux/kernel-features.h
1571         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1572         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1573         unconditionally.
1574         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1575         unconditionally.
1576         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1577         condition on __ASSUME_CLONE_THREAD_FLAGS.
1579 2012-08-14  Andreas Jaeger  <aj@suse.de>
1581         * sysdeps/i386/fpu/libm-test-ulps: Update.
1583 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1585         * include/atomic.h (atomic_exchange_and_add): Split into ...
1586         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1587         New atomic macros.
1589 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1591         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1593 2012-08-13  Jeff Law <law@redhat.com>
1595         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1596         null byte in the output string.
1598 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1600         * sysdeps/unix/sysv/linux/kernel-features.h
1601         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1602         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1603         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1604         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1605         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1606         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1607         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1609 2012-08-09  Jeff Law <law@redhat.com>
1611         [BZ #13939]
1612         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1613         When avoid_arena is set, don't retry in the that arena.  Pick the
1614         next one, whatever it might be.
1615         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1616         (arena_lock): Pass in new parameter to arena_get2.
1617         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1618         arena_get2.
1619         (__libc_malloc): Unify retrying after main arena failure with
1620         __libc_memalign version.
1621         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1623 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1625         [BZ #14166]
1626         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1627         to __redirect_strstr.
1628         (__strstr_sse42): Use typeof __redirect_strstr.
1629         (__strstr_ia32): Likewise.
1630         (__libc_strstr): New prototype.
1631         (strstr): Renamed to ...
1632         (__libc_strstr): This.
1633         (strstr): New strong alias of __libc_strstr.
1634         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1635         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1636         __redirect_time.
1637         Include <time.h>.
1638         (__libc_time): New prototype.
1639         (time_ifunc): Replace time with __libc_time.
1640         (time): New strong alias and hidden definition of __libc_time.
1641         (__GI_time): Remove strong alias.
1642         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1643         Include <stddef.h>.
1644         (memmove): Redefined to __redirect_memmove.
1645         (__memmove_sse2): Use typeof __redirect_memmove.
1646         (__memmove_ssse3): Likewise.
1647         (__memmove_ssse3_back): Likewise.
1648         (__libc_memmove): New prototype.
1649         (memmove): Renamed to ...
1650         (__libc_memmove): This.
1651         (memmove): New strong alias of __libc_memmove.
1653 2012-08-08  Mark Salter  <msalter@redhat.com>
1655         * elf/elf.h
1656         (R_MN10300_TLS_GD): Define.
1657         (R_MN10300_TLS_LD): Likewise.
1658         (R_MN10300_TLS_LDO): Likewise.
1659         (R_MN10300_TLS_GOTIE): Likewise.
1660         (R_MN10300_TLS_IE): Likewise.
1661         (R_MN10300_TLS_LE): Likewise.
1662         (R_MN10300_TLS_DTPMOD): Likewise.
1663         (R_MN10300_TLS_DTPOFF): Likewise.
1664         (R_MN10300_TLS_TPOFF): Likewise.
1665         (R_MN10300_SYM_DIFF): Likewise.
1666         (R_MN10300_ALIGN): Likewise.
1667         (R_MN10300_NUM): Update.
1669 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1671         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1672         Remove.
1674 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1676         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1678         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1679         sysdeps/unix -> sysdeps/posix move.
1680         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1682 2012-08-07      Allan McRae     <allan@archlinux.org>
1684         [BZ #14303]
1685         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1686         (SUNOS_CPP): Likewise.
1687         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1688         not found.
1689         (open_input): Call CPP using execvp.
1691 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1693         * sysdeps/unix/sysv/linux/kernel-features.h
1694         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1695         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1696         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1697         (__ASSUME_WAITID_SYSCALL): Likewise.
1698         * sysdeps/unix/sysv/linux/dl-execstack.c
1699         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1700         code unconditional.
1701         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1702         conditional code.
1703         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1704         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1705         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1706         code.
1707         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1708         unconditional.
1709         [__ASSUME_WAITID_SYSCALL]: Likewise.
1710         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1712 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1714         * sysdeps/unix/closedir.c: Renamed to ...
1715         * sysdeps/posix/closedir.c: ... here.
1716         * sysdeps/unix/dirfd.c: Renamed to ...
1717         * sysdeps/posix/dirfd.c: ... here.
1718         * sysdeps/unix/dirstream.h: Renamed to ...
1719         * sysdeps/posix/dirstream.h: ... here.
1720         * sysdeps/unix/fdopendir.c: Renamed to ...
1721         * sysdeps/posix/fdopendir.c: ... here.
1722         * sysdeps/unix/opendir.c: Renamed to ...
1723         * sysdeps/posix/opendir.c: ... here.
1724         * sysdeps/unix/readdir.c: Renamed to ...
1725         * sysdeps/posix/readdir.c: ... here.
1726         * sysdeps/unix/readdir_r.c: Renamed to ...
1727         * sysdeps/posix/readdir_r.c: ... here.
1728         * sysdeps/unix/rewinddir.c: Renamed to ...
1729         * sysdeps/posix/rewinddir.c: ... here.
1730         * sysdeps/unix/seekdir.c: Renamed to ...
1731         * sysdeps/posix/seekdir.c: ... here.
1732         * sysdeps/unix/telldir.c: Renamed to ...
1733         * sysdeps/posix/telldir.c: ... here.
1734         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1735         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1736         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1737         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1739         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1740         * bits/fcntl.h: ... here.
1742         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1743         not 0.
1744         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1745         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1746         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1747         (struct flock): Move l_start, l_len to the beginning.
1748         Use __pid_t for l_pid.
1749         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1750         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1751         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1752         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1753         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1754         [__USE_LARGEFILE64] (struct flock64): New type.
1755         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1757         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1758         * bits/dirent.h: ... here.
1760         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1761         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1763 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1765         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1766         Change from 2.6.0 to 2.6.16.
1767         * sysdeps/unix/sysv/linux/configure: Regenerated.
1768         * sysdeps/unix/sysv/linux/kernel-features.h
1769         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1770         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1771         version.
1772         (__ASSUME_UTIMES): Likewise.
1773         (__ASSUME_CLONE_STOPPED): Remove.
1774         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1775         architectures, not kernel version.
1776         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1777         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1778         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1779         (__ASSUME_WAITID_SYSCALL): Likewise.
1780         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1781         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1782         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1783         refer to older versions.
1785 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1787         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1788         Define alphasort64 as an alias.
1789         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1790         Define versionsort64 as an alias.
1791         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1792         Define scandir64 as an alias.
1793         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1794         Define scandirat64 as an alias.
1795         * dirent/alphasort64.c (alphasort64):
1796         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1797         * dirent/versionsort64.c: Likewise.
1798         * dirent/scandir64.c: Likewise.
1799         * dirent/scandirat64.c: Likewise.
1800         * sysdeps/wordsize-64/alphasort.c: File removed.
1801         * sysdeps/wordsize-64/alphasort64.c: File removed.
1802         * sysdeps/wordsize-64/scandir.c: File removed.
1803         * sysdeps/wordsize-64/scandir64.c: File removed.
1804         * sysdeps/wordsize-64/scandirat.c: File removed.
1805         * sysdeps/wordsize-64/scandirat64.c: File removed.
1806         * sysdeps/wordsize-64/versionsort.c: File removed.
1807         * sysdeps/wordsize-64/versionsort64.c: File removed.
1808         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1809         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1810         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1811         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1812         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1813         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1814         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1815         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1817         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1818         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1819         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1820         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1821         [defined __arch64__ || defined __sparcv9]
1822         (__INO_T_MATCHES_INO64_T): New macro.
1823         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1824         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1825         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1826         * sysdeps/unix/sysv/linux/bits/dirent.h
1827         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1828         (_DIRENT_MATCHES_DIRENT64): New macro.
1830         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1831         Define lockf64 as an alias.
1832         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1833         Define fseeko64 as an alias.
1834         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1835         Define ftello64 as an alias.
1836         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1837         Define _IO_fgetpos64 and fgetpos64 as aliases.
1838         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1839         Define _IO_fsetpos64 and fsetpos64 as aliases.
1840         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1841         Conditionalize body on this.
1842         * libio/fseeko64.c: Likewise.
1843         * libio/ftello64.c: Likewise.
1844         * libio/iofgetpos64.c: Likewise.
1845         * libio/iofsetpos64.c: Likewise.
1846         * sysdeps/wordsize-64/lockf.c: File removed.
1847         * sysdeps/wordsize-64/lockf64.c: File removed.
1848         * sysdeps/wordsize-64/fseeko.c: File removed.
1849         * sysdeps/wordsize-64/fseeko64.c: File removed.
1850         * sysdeps/wordsize-64/ftello.c: File removed.
1851         * sysdeps/wordsize-64/ftello64.c: File removed.
1852         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1853         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1854         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1855         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1856         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1857         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1858         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1859         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1860         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1861         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1862         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1863         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1864         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1865         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1867         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1868         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1869         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1870         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1871         [defined __arch64__ || defined __sparcv9]
1872         (__OFF_T_MATCHES_OFF64_T): New macro.
1873         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1874         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1875         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1876         (__OFF_T_MATCHES_OFF64_T): New macro.
1878 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1880         * stdlib/secure-getenv.c (__secure_getenv): Replace
1881         GLIBC_2_16 with GLIBC_2_17.
1883 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1885         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1886         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1888 2012-08-03  David S. Miller  <davem@davemloft.net>
1890         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1892 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1894         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1895         Remove.
1896         (__ASSUME_CORRECT_SI_PID): Likewise.
1897         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1898         (__ASSUME_TMPFS_NAME): Likewise.
1899         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1900         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1901         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1902         (HAVE_AUX_SECURE): Make definition unconditional.
1903         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1904         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1906 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1908         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1909         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1910         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1911         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1912         __eloop_threshold instead of SYMLOOP_MAX.
1914         * sysdeps/generic/eloop-threshold.h: New file.
1915         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1916         of MAXSYMLINKS.
1917         * elf/chroot_canon.c (chroot_canon): Likewise.
1919 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1921         [BZ #13717]
1922         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1923         Change to 2.6.0 everywhere.
1924         * sysdeps/unix/sysv/linux/configure: Regenerated.
1925         * sysdeps/unix/sysv/linux/kernel-features.h
1926         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1927         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1928         kernel versions.
1929         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1930         (__ASSUME_FUTEX_REQUEUE): Remove.
1931         (__ASSUME_STATFS64): Define unconditionally.
1932         (__ASSUME_AT_SECURE): Likewise.
1933         (__ASSUME_CORRECT_SI_PID): Likewise.
1934         (__ASSUME_TGKILL): Define without depending on kernel version for
1935         i386.
1936         (__ASSUME_UTIMES): Likewise.
1937         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1938         kernel version.
1939         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1940         (__ASSUME_TMPFS_NAME): Likewise.
1941         * README: Update reference to Linux kernel versions.
1943 2012-08-02  Marek Polacek  <polacek@redhat.com>
1945         [BZ# 14150]
1946         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1947         libc_cv_asm_type_prefix with %.
1948         * configure: Regenerated.
1949         * include/libc-symbols.h: Remove comment about
1950         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1951         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1952         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1953         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1954         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1955         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1956         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1957         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1958         * elf/tst-unique2mod1.c: Likewise.
1959         * elf/tst-unique1mod2.c: Likewise.
1960         * elf/tst-unique1mod1.c: Likewise.
1961         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1962         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1963         Replace ASM_TYPE_DIRECTIVE with .type.
1964         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1965         * sysdeps/i386/sysdep.h: Likewise.
1966         * sysdeps/x86_64/sysdep.h: Likewise.
1967         * sysdeps/sh/sysdep.h: Likewise.
1968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1969         Do not define ASM_TYPE_DIRECTIVE.
1970         * sysdeps/powerpc/sysdep.h: Likewise.
1971         * sysdeps/powerpc/powerpc32/sysdep.h:
1972         Replace ASM_TYPE_DIRECTIVE with .type.
1973         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1974         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1975         * sysdeps/i386/fpu/e_powf.S: Likewise.
1976         * sysdeps/i386/fpu/e_expl.S: Likewise.
1977         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1978         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1979         * sysdeps/i386/fpu/e_pow.S: Likewise.
1980         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1981         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1982         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1983         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1984         * sysdeps/i386/fpu/e_log2.S: Likewise.
1985         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1986         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1987         * sysdeps/i386/fpu/e_powl.S: Likewise.
1988         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1989         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1990         * sysdeps/i386/fpu/e_logl.S: Likewise.
1991         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1992         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1993         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1994         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1995         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1996         * sysdeps/i386/fpu/e_log.S: Likewise.
1997         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1998         * sysdeps/i386/fpu/e_logf.S: Likewise.
1999         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2000         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2001         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2002         * sysdeps/i386/fpu/e_log10.S: Likewise.
2003         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2004         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2005         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2006         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2007         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2008         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2009         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2010         * sysdeps/i386/i686/strtok.S: Likewise.
2011         * sysdeps/i386/i386-mcount.S: Likewise.
2012         * sysdeps/i386/strtok.S: Likewise.
2013         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2014         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2015         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2016         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2017         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2018         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2019         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2020         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2021         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2022         * sysdeps/x86_64/_mcount.S: Likewise.
2023         * sysdeps/x86_64/strtok.S: Likewise.
2024         * sysdeps/sh/_mcount.S: Likewise.
2026 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2028         * libio/iofopen.c: Include <fcntl.h>.
2029         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2030         (_IO_fopen64, fopen64): Define as aliases.
2031         * libio/iofopen64.c: Include <fcntl.h>.
2032         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2033         Conditionalize body on this.
2034         * sysdeps/wordsize-64/iofopen.c: File removed.
2035         * sysdeps/wordsize-64/iofopen64.c: File removed.
2037 2012-08-01  Marek Polacek  <polacek@redhat.com>
2039         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2040         Use dlfcn directly instead of a variable.
2041         (binfmt-subdir): Do not define.
2042         (dlfcn): Likewise.
2044 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2046         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2047         Remove all definitions.
2048         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2049         <kernel-features.h>.
2050         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2051         (miss_F_GETOWN_EX): Remove all definitions.
2052         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2053         macro definition.
2054         [!__ASSUME_FCNTL64]: Remove conditional code.
2055         [__ASSUME_FCNTL64]: Make code unconditional.
2056         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2057         <kernel-features.h>.
2058         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2059         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2060         (lockf64) [__NR_fcntl64]: Make code unconditional.
2061         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2063         * sysdeps/unix/sysv/linux/kernel-features.h
2064         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2065         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2066         Make code unconditional.
2067         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2068         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2070         [__NR_vfork]: Make code unconditional.
2071         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2072         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2074         [__NR_vfork]: Make code unconditional.
2075         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2076         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2078 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2080         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2081         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2083         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2084         Define mkstemp64 as an alias.
2085         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2086         Define mkstemps64 as an alias.
2087         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2088         Define mkostemp64 as an alias.
2089         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2090         Define mkostemps64 as an alias.
2091         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2092         Conditionalize body on this.
2093         * misc/mkostemp64.c: Likewise.
2094         * misc/mkostemps64.c: Likewise.
2095         * misc/mkstemps64.c: Likewise.
2096         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2097         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2098         * sysdeps/wordsize-64/mkostemp.c: File removed.
2099         * sysdeps/wordsize-64/mkstemp.c: File removed.
2100         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2101         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2102         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2103         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2105         [BZ #14138]
2106         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2107         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2108         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2109         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2111         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2112         compat_symbol macros from <shlib-compat.h> rather than the underlying
2113         default_symbol_version and symbol_version macros, so that DEFAULT
2114         lines in shlib-versions are respected.
2115         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2117 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2119         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2120         Declare with warn_unused_result.
2121         (setgid, setregid, setegid, setresgid): Likewise.
2122         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2123         Likewise.
2124         * WUR-REPORT: Remove set*id functions.
2126 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2128         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2130 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2132         * include/sys/socket.h (__libc_accept, __libc_accept4):
2133         Add attribute_hidden.
2134         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2136         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2137         use of PTR_MANGLE.
2138         * inet/getnetgrent_r.c (setup): Likewise.
2140         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2142 2012-07-31  David S. Miller  <davem@davemloft.net>
2144         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2146 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2148         [BZ #13629]
2149         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2150         value between 1.0 and 2.0 and smaller part has absolute value less
2151         than 1.0.
2152         * math/s_clog10.c (__clog10): Likewise.
2153         * math/s_clog10f.c (__clog10f): Likewise.
2154         * math/s_clog10l.c (__clog10l): Likewise.
2155         * math/s_clogf.c (__clogf): Likewise.
2156         * math/s_clogl.c (__clogl): Likewise.
2157         * math/libm-test.inc (clog_test): Add more tests.
2158         (clog10_test): Likewise.
2159         * sysdeps/i386/fpu/libm-test-ulps: Update.
2160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2162 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2164         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2165         Exit with zero in case no suitable GID is found, and write a
2166         message to standard error.
2168 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2170         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2171         rather than to 1.
2172         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2173         (MAXPATHLEN): Removed.
2174         (NOGROUP, NODEV): New macros.
2175         (setbit, clrbit, isset, isclr): New macros.
2176         (howmany, roundup, powerof2): New macros.
2177         (DEV_BSIZE): New macro.
2179         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2180         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2182         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2183         definition on [!__NO_LONG_DOUBLE_MATH].
2185         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2186         PTR_MANGLE and PTR_DEMANGLE.
2188         * socket/accept4.c (accept4): Rename to __libc_accept4.
2189         Define accept4 as a weak alias.
2191         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2192         on [_DIRENT_HAVE_D_TYPE].
2193         * io/ftw.c (ftw_dir): Likewise.
2195         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2197         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2199         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2200         Use the BSD numbers rather than the arbitrary ones we had.
2201         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2202         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2203         (SIGXCPU, SIGXFSZ): New macros.
2204         (_NSIG): Now 32.
2206         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2207         initializer on [_LIBC_REENTRANT].
2209         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2210         definitions inside [_POSIX_MAPPED_FILES].
2212         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2214         * dirent/opendir.c: Include <fcntl.h>.
2216         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2217         (__libc_getspecific): Likewise.
2218         (__libc_key_create): Likewise.
2220         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2221         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2222         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2223         (tmpfile64): Define as alias.
2224         * sysdeps/wordsize-64/tmpfile.c: File removed.
2225         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2226         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2227         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2229         * stdio-common/vfscanf.c: Include <stdbool.h>.
2230         * nss/makedb.c: Likewise.
2231         * stdio-common/_i18n_number.h: Likewise.
2232         * argp/argp-help.c: Likewise.
2233         * posix/wordexp.c: Likewise.
2234         * sysdeps/posix/spawni.c: Likewise.
2235         * nss/nss_files/files-initgroups.c: Likewise.
2236         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2237         * nss/nss_files/files-initgroups.c: Likewise.
2238         * nss/nss_db/db-netgrp.c: Likewise.
2239         * nss/nss_db/db-initgroups.c: Likewise.
2240         * io/fchmodat.c: Include <sys/stat.h>.
2242         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2243         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2245         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2246         [HAVE_MMAP].
2248         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2249         Add multiple inclusion protection.
2251 2012-07-27  David S. Miller  <davem@davemloft.net>
2253         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2255 2012-07-27  Gary Benson  <gbenson@redhat.com>
2257         [BZ #14298]
2258         * elf/rtld.c: Include <stap-probe.h>.
2259         (dl_main): Added static probes "init_start" and "init_complete".
2260         * elf/dl-load.c: Include <stap-probe.h>.
2261         (lose): Take new parameter "nsid".
2262         Added static probe "map_failed".
2263         (_dl_map_object_from_fd): Pass namespace id to lose.
2264         Added static probe "map_start".
2265         (open_verify): Pass namespace id to lose.
2266         * elf/dl-open.c: Include <stap-probe.h>.
2267         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2268         and "reloc_complete".
2269         * elf/dl-close.c: Include <stap-probe.h>.
2270         (_dl_close_worker): Added static probes "unmap_start" and
2271         "unmap_complete".
2272         * elf/rtld-debugger-interface.txt: New file documenting the above.
2274 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2276         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2277         rather than a string variable.
2278         * sunrpc/rpc_main.c (h_output): Likewise.
2279         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2281 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2283         * inet/check_native.c: New file.
2285 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2287         [BZ #13629]
2288         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2289         if larger part has absolute value 1.0.
2290         * math/s_clog10.c (__clog10): Likewise.
2291         * math/s_clog10f.c (__clog10f): Likewise.
2292         * math/s_clog10l.c (__clog10l): Likewise.
2293         * math/s_clogf.c (__clogf): Likewise.
2294         * math/s_clogl.c (__clogl): Likewise.
2295         * math/libm-test.inc (clog_test): Add more tests.
2296         (clog10_test): Likewise.
2297         * sysdeps/i386/fpu/libm-test-ulps: Update.
2298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2300         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2301         (pltexit): Likewise.
2302         (La_regs): Likewise.
2303         (La_retval): Likewise.
2304         (int_retval): Likewise.
2305         Update #error for removed macros to refer only to definitions in
2306         tst-audit.h.
2307         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2308         macro.
2309         (pltexit): Likewise.
2310         (La_regs): Likewise.
2311         (La_retval): Likewise.
2312         (int_retval): Likewise.
2313         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2314         macro.
2315         (pltexit): Likewise.
2316         (La_regs): Likewise.
2317         (La_retval): Likewise.
2318         (int_retval): Likewise.
2319         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2320         macro.
2321         (pltexit): Likewise.
2322         (La_regs): Likewise.
2323         (La_retval): Likewise.
2324         (int_retval): Likewise.
2325         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2326         macro.
2327         (pltexit): Likewise.
2328         (La_regs): Likewise.
2329         (La_retval): Likewise.
2330         (int_retval): Likewise.
2331         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2332         macro.
2333         (pltexit): Likewise.
2334         (La_regs): Likewise.
2335         (La_retval): Likewise.
2336         (int_retval): Likewise.
2337         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2338         macro.
2339         (pltexit): Likewise.
2340         (La_regs): Likewise.
2341         (La_retval): Likewise.
2342         (int_retval): Likewise.
2343         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2344         macro definitions in tst-audit.h.
2345         * sysdeps/i386/tst-audit.h: New file.
2346         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2347         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2348         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2349         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2350         * sysdeps/sh/tst-audit.h: Likewise.
2351         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2352         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2353         * sysdeps/x86_64/tst-audit.h: Likewise.
2355 2012-07-26  Andreas Jaeger  <aj@suse.de>
2357         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2358         ptrace.
2360         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2361         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2362         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2363         PTRACE_O_MASK.
2364         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2365         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2366         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2368         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2369         value.
2371         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2372         _sigsys.
2373         (si_call_addr, si_syscall, si_arch): Define new macro.
2374         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2375         _sigsys.
2376         (si_call_addr, si_syscall, si_arch): Define new marcro.
2377         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2378         _sigsys.
2379         (si_call_addr, si_syscall, si_arch): Define new macro.
2380         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2381         _sigsys.
2382         (si_call_addr, si_syscall, si_arch): Define new macro.
2384 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2386         [BZ #13717]
2387         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2388         Change to 2.4.21 where previously 2.4.1.
2389         * sysdeps/unix/sysv/linux/configure: Regenerated.
2390         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2391         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2392         Linux kernel version.
2393         (__ASSUME_STD_AUXV): Remove.
2394         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2395         kernel version.
2396         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2397         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2398         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2399         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2400         (__ASSUME_NETLINK_SUPPORT): Likewise.
2401         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2402         (__no_netlink_support): Remove conditional definition.
2403         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2404         Remove.
2405         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2406         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2407         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2408         (if_nameindex_ioctl): Remove.
2409         (if_nameindex_netlink): Do not handle __no_netlink_support.
2410         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2411         code.
2412         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2413         Remove conditional code.
2414         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2415         code.
2416         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2417         unconditional.
2418         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2419         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2420         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2421         Remove.
2422         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2423         [!__ASSUME_STD_AUXV]: Remove conditional code.
2424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2425         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2426         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2428         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2429         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2430         code.
2431         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2433         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2434         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2435         conditional code.
2436         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2438         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2439         code.
2440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2441         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2442         conditional code.
2443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2444         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2445         code unconditional.
2446         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2447         conditional code.
2448         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2449         unconditional.
2450         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2451         conditional code.
2452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2453         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2454         unconditional.
2455         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2456         conditional code.
2457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2458         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2459         code unconditional.
2460         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2461         conditional code.
2462         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2463         unconditional.
2464         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2465         conditional code.
2466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2467         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2468         code unconditional.
2469         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2470         conditional code.
2471         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2472         unconditional.
2473         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2474         conditional code.
2476 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2478         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2479         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2480         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2481         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2482         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2483         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2484         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2485         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2486         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2487         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2488         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2489         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2490         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2491         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2492         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2493         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2494         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2495         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2496         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2497         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2498         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2499         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2500         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2502 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2504         * Versions.def: Add GLIBC_2.17.
2505         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2506         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2507         Introduce __libc_secure_getenv.
2508         * stdlib/Versions (2.17): Add secure_getenv
2509         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2510         * stdlib/secure-getenv.c: Rename __secure_getenv to
2511         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2512         symbol __secure_getenv for GLIBC_2.0.
2513         * stdlib/tst-secure-getenv.c: New.
2514         * stdlib/Makefile (tests): Add testcase.
2515         * manual/startup.texi (Environment Access): Document
2516         secure_getenv.
2517         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2518         __libc_secure_getenv.
2519         * inet/ruserpass.c (ruserpass): Likewise.
2520         * malloc/mtrace.c (mtrace): Likewise.
2521         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2522         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2523         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2524         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2525         HAVE_SECURE_GETENV.
2526         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2527         __secure_getenv to __libc_secure_getenv.
2528         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2530         Likewise.
2531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2532         Likewise.
2533         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2534         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2535         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2536         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2537         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2538         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2539         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2541 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2543         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2544         (struct La_i86_retval): Likewise.
2545         (struct La_x86_64_regs): Likewise.
2546         (struct La_x86_64_retval): Likewise.
2547         (struct La_x32_regs): Likewise.
2548         (struct La_x32_retval): Likewise.
2549         (struct La_ppc32_regs): Likewise.
2550         (struct La_ppc32_retval): Likewise.
2551         (struct La_ppc64_regs): Likewise.
2552         (struct La_ppc64_retval): Likewise.
2553         (struct La_sh_regs): Likewise.
2554         (struct La_sh_retval): Likewise.
2555         (struct La_s390_32_regs): Likewise.
2556         (struct La_s390_32_retval): Likewise.
2557         (struct La_s390_64_regs): Likewise.
2558         (struct La_s390_64_retval): Likewise.
2559         (struct La_sparc32_regs): Likewise.
2560         (struct La_sparc32_retval): Likewise.
2561         (struct La_sparc64_regs): Likewise.
2562         (struct La_sparc64_retval): Likewise.
2563         (struct audit_ifaces): Remove architecture-specific pltenter and
2564         pltexit members.
2565         * sysdeps/i386/ldsodefs.h: New file.
2566         * sysdeps/powerpc/ldsodefs.h: Likewise.
2567         * sysdeps/s390/ldsodefs.h: Likewise.
2568         * sysdeps/sh/ldsodefs.h: Likewise.
2569         * sysdeps/sparc/ldsodefs.h: Likewise.
2570         * sysdeps/x86_64/ldsodefs.h: Likewise.
2572 2012-07-25  Marek Polacek  <polacek@redhat.com>
2574         [BZ #6808]
2575         * math/libm-test.inc (yn_test): Add another test.
2576         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2577         to ERANGE when the result is +-Inf.
2578         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2579         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2580         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2581         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2583 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2585         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2586         equal to 0.
2587         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2588         clock_t.
2589         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2591 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2593         * configure.in <sysdeps resolving>: Correct printing
2594         Implies_before.
2595         * configure: Regenerate.
2597 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2599         * math/w_ilogb.c: Include <limits.h>.
2600         * math/w_ilogbl.c: Likewise.
2602 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2604         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2605         va_copy.  Document allowing for unavailable va_copy only as
2606         pre-C99 compatibility.
2607         * manual/string.texi (Copying and Concatenation): Use va_copy
2608         instead of __va_copy in concat example.
2610 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2612         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2613         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2614         it if not null.
2616         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2617         with O_NOLINK passed to __file_name_lookup.
2619         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2620         with O_NOLINK passed to __file_name_lookup.
2622         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2623         negative N or less than NGIDS.
2625         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2626         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2627         enough.  Use memcpy instead of strncpy.
2629 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2631         * elf/Makefile (check-data): Remove.
2632         (localplt.data): New vpath directive.
2633         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2634         instead of $(check-data).
2635         * scripts/data/localplt-generic.data: Move to ...
2636         * sysdeps/generic/localplt.data: ... here.
2637         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2638         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2639         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2641         ... here.
2642         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2644         ... here.
2645         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2646         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2647         ... here.
2648         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2649         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2650         ... here.
2651         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2652         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2653         ... here.
2654         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2655         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2656         ... here.
2658 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2660         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2661         PPC32 and PPC64 files.
2662         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2663         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2665 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2667         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2668         __makecontext_ret to ...
2669         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2670         ... here and call exit if uc_link is NULL.  New file.
2671         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2672         __makecontext_ret.S.
2673         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2674         __makecontext_ret to ...
2675         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2676         ... here and call exit if uc_link is NULL.  New file.
2677         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2678         __makecontext_ret.S.
2680 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2682         * elf/elf.h (R_390_IRELATIVE): New definition.
2683         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2684         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2685         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2686         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2687         (elf_machine_lazy_rel): Likewise.
2688         * sysdeps/s390/dl-irel.h: New file.
2689         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2690         * sysdeps/s390/s390-64/memset.S: New asm code.
2691         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2692         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2693         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2694         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2695         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2696         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2697         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2698         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2699         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2700         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2701         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2702         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2703         * sysdeps/s390/s390-32/memset.S: New asm code.
2704         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2706 2012-07-17  Marek Polacek  <polacek@redhat.com>
2708         [BZ #14349]
2709         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2710         * sysdeps/s390/s390-64/configure.in: Likewise.
2711         * sysdeps/sparc/configure.in: Likewise.
2712         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2713         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2714         * sysdeps/i386/configure.in: Likewise.
2715         * sysdeps/x86_64/configure.in: Likewise.
2716         * sysdeps/sh/configure.in: Likewise.
2717         * sysdeps/s390/s390-32/configure: Regenerated.
2718         * sysdeps/s390/s390-64/configure: Likewise.
2719         * sysdeps/x86_64/configure: Likewise.
2720         * sysdeps/sh/configure: Likewise.
2721         * sysdeps/powerpc/powerpc64/configure: Likewise.
2722         * sysdeps/powerpc/powerpc32/configure: Likewise.
2723         * sysdeps/sparc/configure: Likwise.
2724         * sysdeps/i386/configure: Likewise.
2726         * elf/dl-open.c: Comment fixes.
2728 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2730         * Makefile [CXX] (check-data): Remove.
2731         [CXX] (c++-types.data): New vpath directive.
2732         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2733         vpath.  Do not allow for C++ type data being missing.
2734         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2735         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2736         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2737         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2738         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2739         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2740         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2742         ... here.
2743         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2745         ... here.
2746         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2748         ... here.
2749         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2750         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2751         ... here.
2752         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2753         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2754         ... here.
2755         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2756         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2757         ... here.
2758         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2759         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2760         ... here.
2761         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2762         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2764         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2765         definitions to architecture-specific files.
2766         (TLS_IE): Likewise.
2767         (TLS_LD): Likewise.
2768         (TLS_GD): Likewise.
2769         * sysdeps/i386/tls-macros.h: New file.
2770         * sysdeps/powerpc/tls-macros.h: Likewise.
2771         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2772         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2773         * sysdeps/sh/tls-macros.h: Likewise.
2774         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2775         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2776         * sysdeps/x86_64/tls-macros.h: Likewise.
2778 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2780         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2781         zero value for regular exit case.
2783         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2784         (__start_context): Preserve zero value for regular exit case.
2786 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2787             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2789         * manual/setjmp.texi (setcontext): Clarify normal process
2790         termination when uc_link is the null pointer.
2791         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2792         exit call.
2794 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2796         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2797         preprocessor.  Test for each exception mask separately.
2799 2012-07-16  Andreas Jaeger  <aj@suse.de>
2801         * po/ru.po: Update from translation team.
2803 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2805         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2806         equal to 0.
2807         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2808         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2809         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2810         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2811         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2813 2012-07-13  Andreas Jaeger  <aj@suse.de>
2815         * po/fr.po: Update from translation team.
2817 2012-07-12  Marek Polacek  <polacek@redhat.com>
2819         [BZ #14173]
2820         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2821         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2822         loop condition.
2824 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2826         [BZ #13717]
2827         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2828         Change to 2.4.1 where previously 2.4.0.
2829         * sysdeps/unix/sysv/linux/configure: Regenerated.
2830         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2831         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2832         version.
2833         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2834         (__ASSUME_AT_CLKTCK): Remove.
2835         (__ASSUME_AT_PAGESIZE): Likewise.
2836         (__ASSUME_AT_XID): Likewise.
2837         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2838         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2839         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2840         unconditionally.
2841         (HAVE_AUX_PAGESIZE): Likewise.
2842         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2843         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2844         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2846 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2848         [BZ #14307]
2849         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2850         the temporary buffer used to invoke __gethostbyname2_r,
2851         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2852         host_data / struct gaih_addrtuple.
2853         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2854         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2855         header file nss/nsswitch.h.
2856         * nss/nsswitch.h (global scope): Add definition of implementation
2857         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2858         resolv/nss_dns/dns-host.c).
2860 2012-07-11  Andreas Jaeger  <aj@suse.de>
2862         * po/fr.po: Update from translation team.
2864         * po/sv.po: Update from translation team
2865         * po/fr.po: Another update from translation team.
2867 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2869         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2870         for subnormals or multiply small sinh result by itself.
2871         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2874 2012-07-11  David S. Miller  <davem@davemloft.net>
2876         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2878 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2880         [BZ #14347]
2881         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2882         (INTERNAL_MARK): Shift it here.
2884 2012-07-10  Marek Polacek  <polacek@redhat.com>
2886         [BZ #14151]
2887         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2888         libc_cv_asm_global_directive with .globl.
2889         * configure: Regenerated.
2890         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2891         with .globl.
2892         * sysdeps/i386/configure: Regenerated.
2893         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2894         with .globl.
2895         * sysdeps/x86_64/configure: Regenerated.
2896         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2897         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2898         * elf/tst-unique2mod2.c: Likewise.
2899         * elf/tst-unique2mod1.c: Likewise.
2900         * elf/tst-unique1mod2.c: Likewise.
2901         * elf/tst-unique1mod1.c: Likewise.
2902         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2903         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2904         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2905         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2906         * sysdeps/mach/sysdep.h: Likewise.
2907         * sysdeps/i386/sysdep.h: Likewise.
2908         * sysdeps/i386/i386-mcount.S: Likewise.
2909         * sysdeps/x86_64/_mcount.S: Likewise.
2910         * sysdeps/x86_64/sysdep.h: Likewise.
2911         * sysdeps/sh/_mcount.S: Likewise.
2912         * sysdeps/sh/sysdep.h: Likewise.
2913         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2914         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2915         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2916         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2917         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2918         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2919         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2920         * locale/localeinfo.h: Likewise.
2921         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2922         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2924 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2926         [BZ #14336]
2927         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2928         system".
2929         * manual/message.texi (The Uniforum approach): Likewise.
2930         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2931         (glibc iconv Implementation): Likewise.
2933 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2935         [BZ #14337]
2936         * math/s_clog.c (__clog): Avoid scaling a value down where that
2937         could result in underflow.
2938         * math/s_clog10.c (__clog10): Likewise.
2939         * math/s_clog10f.c (__clog10f): Likewise.
2940         * math/s_clog10l.c (__clog10l): Likewise.
2941         * math/s_clogf.c (__clogf): Likewise.
2942         * math/s_clogl.c (__clogl): Likewise.
2943         * math/libm-test.inc (clog_test): Add more tests.
2944         (clog10_test): Likewise.
2945         * sysdeps/i386/fpu/libm-test-ulps: Update.
2946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2948 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2950         [BZ #14283]
2951         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2952         by 7 not 8 to examine high bit of fractional part.
2954         [BZ #14042]
2955         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2956         for call to __mcount_internal.
2957         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2958         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2959         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2961 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2963         [BZ #14154]
2964         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2965         approximation for values within 0x1p-13f of an odd multiple of
2966         pi/4.
2967         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2968         exception.  Add more tests.
2969         * sysdeps/i386/fpu/libm-test-ulps: Update.
2971         [BZ #6778]
2972         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2973         inputs and return -1 for them.  Do not check for +Inf in case not
2974         reachable for +Inf.
2975         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2976         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2977         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2978         and return -1 for them.  Do not check for +Inf in case not
2979         reachable for +Inf.
2980         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2981         define.
2982         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2983         and return -1 for them.  Do not check for +Inf in case not
2984         reachable for +Inf.
2985         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2986         spurious underflow.
2987         * sysdeps/i386/fpu/libm-test-ulps: Update.
2988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2990 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2992         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2994 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2996         [BZ #14157]
2997         [BZ #14331]
2998         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2999         could result in spurious underflow.  Scale down values above
3000         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3001         * math/s_csqrtf.c (__csqrtf): Likewise.
3002         * math/s_csqrtl.c (__csqrtl): Likewise.
3003         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3004         spurious underflow.
3005         * sysdeps/i386/fpu/libm-test-ulps: Update.
3006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3008 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3010         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3011         xopen-msg.sed.
3012         * catgets/xopen-msg.awk: New file.
3013         * catgets/xopen-msg.sed: Removed.
3015         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3016         po2text.sed.
3017         * intl/po2test.awk: New file.
3018         * intl/po2test.sed: Removed.
3020 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3022         [BZ #14328]
3023         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3024         or multiply small sinh result by itself.
3025         * math/s_ctanf.c (__ctanf): Likewise.
3026         * math/s_ctanh.c (__ctanh): Likewise.
3027         * math/s_ctanhf.c (__ctanhf): Likewise.
3028         * math/s_ctanhl.c (__ctanhl): Likewise.
3029         * math/s_ctanl.c (__ctanl): Likewise.
3030         * math/libm-test.inc (ctan_test_tonearest): New function.
3031         (ctan_test_towardzero): Likewise.
3032         (ctan_test_downward): Likewise.
3033         (ctan_test_upward): Likewise.
3034         (ctanh_test_tonearest): Likewise.
3035         (ctanh_test_towardzero): Likewise.
3036         (ctanh_test_downward): Likewise.
3037         (ctanh_test_upward): Likewise.
3038         (main): Call these new functions.
3039         * sysdeps/i386/fpu/libm-test-ulps: Update.
3040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3042 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3044         * .gitignore: Delete /ports entry.
3046 2012-07-03  Andreas Jaeger  <aj@suse.de>
3048         * po/bg.po: Update from translation team.
3049         * po/cs.po: Likewise.
3050         * po/de.po: Likewise.
3051         * po/hr.po: Likewise.
3052         * po/nl.pl: Likewise.
3053         * po/pl.po: Likewise.
3054         * po/vi.po: Likewise.
3056 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3058         * Makeconfig [!+link] (+link-before-libc): New variable.
3059         [!+link] (+link-after-libc): Likewise.
3060         [!+link] (+link-tests): Likewise.
3061         [!+link] (+link): Define in terms of $(+link-before-libc) and
3062         $(+link-after-libc).
3063         [!+link-static] (+link-static-before-libc): New variable.
3064         [!+link-static] (+link-static-after-libc): Likewise.
3065         [!+link-static] (+link-static-tests): Likewise.
3066         [!+link-static] (+link-static): Define in terms of
3067         $(+link-static-before-libc) and $(+link-static-after-libc).
3068         [build-shared] (link-libc-before-gnulib): New variable.
3069         [build-shared] (link-libc-tests): Likewise.
3070         [build-shared] (link-libc): Define in terms of
3071         $(link-libc-before-gnulib).
3072         [!build-shared] (link-libc-tests): New variable.
3073         (link-libc-static-tests): New variable.
3074         [!gnulib] (gnulib-arch): New variable.
3075         [!gnulib] (gnulib-tests): Likewise.
3076         [!gnulib] (static-gnulib-arch): Likewise.
3077         [!gnulib] (static-gnulib-tests): Likewise.
3078         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3079         Define with "=" instead of ":=".
3080         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3081         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3082         * Rules (binaries-all-notests): New variable.
3083         (binaries-all-tests): Likewise.
3084         (binaries-static-notests): Likewise.
3085         (binaries-static-tests): Likewise.
3086         (binaries-all): Define using $(binaries-all-notests) and
3087         $(binaries-all-tests).
3088         (binaries-static): Define using $(binaries-static-notests) and
3089         $(binaries-static-tests).
3090         (binaries-shared-tests): New variable.
3091         (binaries-shared-notests): Likewise.
3092         (binaries-shared): Remove variable.
3093         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3094         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3095         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3096         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3097         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3098         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3099         * elf/Makefile (sln-modules): New variable.
3100         (extra-objs): Add $(sln-modules:=.o).
3101         (ldconfig-modules): Add static-stubs.
3102         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3103         * elf/static-stubs.c: New file.
3105         [BZ #14283]
3106         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3107         by 7 not 8 to examine high bit of fractional part.  Use volatile
3108         variables when splitting into final array of floats if
3109         __FLT_EVAL_METHOD__ != 0.
3110         * math/libm-test.inc (cos_test): Add another test.
3111         (sin_test): Likewise.
3112         * sysdeps/i386/fpu/libm-test-ulps: Update.
3114         [BZ #14273]
3115         * math/libm-test.inc (cosh_test): Add more tests.
3117         * version.h (RELEASE): Set to "development".
3118         (VERSION): Set to "2.16.90".
3120 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3122         * NEWS: Update copyright. Remove last-updated date.
3123         Mention math library bug fixes and timezone data changes.
3124         * README: Mention GNU/Hurd, x32, and HPPA support status.
3126 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3128         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3130 2012-06-27  Andreas Jaeger  <aj@suse.de>
3132         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3134 2012-06-25  Andreas Jaeger  <aj@suse.de>
3136         * sysdeps/s390/fpu/libm-test-ulps: Update.
3138 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3139             Thomas Schwinge  <thomas@codesourcery.com>
3141         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3142         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3143         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3144         fanotify_mark.
3146 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3148         * sysdeps/mach/start.c: Remove file.
3149         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3150         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3151         * sysdeps/sh/init-first.c: Likewise.
3153         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3154         registers for frame unwinding purposes, add CFI directives.
3155         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3156         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3157         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3158         Likewise.
3160         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3161         __fortify_fail returning.
3162         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3164         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3165         sysdeps/sh/____longjmp_chk.S.
3166         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3167         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3168         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3169         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3171         * sysdeps/sh/abort-instr.h: New file.
3172         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3173         process in case exit returns.
3175         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3176         initialize the GOT register before use.
3178         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3179         calculation of ARGC > 4.
3181         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3182         meaningful names to some local labels.
3184 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3185             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3187         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3188         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3189         (__arch_compare_and_exchange_val_16_acq): Likewise.
3190         (__arch_compare_and_exchange_val_32_acq): Likewise.
3191         (atomic_exchange_and_add): Fix gUSA sequence.
3192         (atomic_add): Likewise.
3193         (atomic_add_negative): Likewise.
3194         (atomic_add_zero): Likewise.
3195         (atomic_bit_test_set): Likewise.
3197 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3199         [BZ #13579]
3200         * include/link.h (struct link_map): Add l_free_initfini.
3201         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3202         l_initfini.
3203         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3204         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3205         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3206         set.
3208 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3210         * configure.in: Use AC_LANG_SOURCE.
3211         * configure: Regenerate.
3213 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3215         * configure.in (libc_cv_localstatedir): New substituted variable.
3216         * configure: Regenerated.
3217         * config.make.in (localstatedir): New variable, substituted from
3218         libc_cv_localstatedir.
3219         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3220         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3221         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3222         * sysdeps/gnu/configure: Regenerated.
3224 2012-06-21  Jeff Law  <law@redhat.com>
3226         [BZ #14277]
3227         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3228         free.  Simplify list management for _LIBC case.
3230 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3232         [BZ #14273]
3233         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3234         Clear sign bit of 64-bit integer value before comparing against
3235         overflow value.
3237         * sysdeps/mach/configure: Regenerated.
3239 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3241         [BZ #14278]
3242         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3244 2012-06-21  Jeff Law  <law@redhat.com>
3246         [BZ #13882]
3247         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3248         uint16_t for elements in the "seen" array to avoid char overflows.
3249         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3250         * elf/dl-open.c (dl_open_worker): Likewise.
3252 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3254         * scripts/list-sources.sh: Scan PORTS for translations.
3255         * po/libc.pot: Regenerated.
3257 2012-06-21  Andreas Jaeger  <aj@suse.de>
3259         [BZ #12194]
3260         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3261         warning.
3262         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3263         * bits/byteswap-16.h (__bswap_16): Likewise.
3264         * bits/byteswap.h (__bswap_constant_16): Likewise.
3266 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3268         [BZ #14117]
3269         * sysdeps/i386/fpu_control.h: Removed.
3270         * sysdeps/x86_64/fpu_control.h: Moved to ...
3271         * sysdeps/x86/fpu_control.h: Here.
3273         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3274         (_FPU_SETCW): Likewise.
3276 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3278         [BZ #14117]
3279         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3280         * sysdeps/x86/fpu/bits/mathinline.h: This.
3281         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3283         [BZ #14050]
3284         [BZ #14117]
3285         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3286         functions if __x86_64__ is defined.
3288 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3290         * string/endian.h: Add !__ASSEMBLER__ condition for including
3291         conversion interfaces.
3293 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3295         [BZ #14241]
3296         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3297         of ABS(x) in calculating zero to negative powers other than odd
3298         integers.
3299         * math/libm-test.inc (pow_test): Add more tests.
3301 2012-06-15  Andreas Jaeger  <aj@suse.de>
3303         * manual/contrib.texi (Contributors): Update entry of Liubov
3304         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3305         Machado Filho.
3307 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3309         * string/string.h: Add __wur to GNU version of strerror_r.
3311 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3313         [BZ #14229]
3314         * string/Makefile (tests): Add tst-strtok_r.
3315         * string/tst-strtok_r.c: New file.
3316         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3317         RAX_LP/RDX_LP on SAVE_PTR.
3319 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3321         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3323 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3325         * libm_test.inc (csqrt_test): Allow more spurious underflow
3326         exceptions.
3327         (j0_test): Likewise.
3328         (j1_test): Likewise.
3329         (y0_test): Likewise.
3330         (y1_test): Likewise.
3332 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3334         * po/Makefile (libc.pot): Use UTF-8 charset.
3336 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3338         [BZ #14210]
3339         Suppress sign-conversion warning from FD_SET.
3340         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3341         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3342         not unsigned long int.
3343         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3345 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3347         [BZ #14050]
3348         [BZ #14117]
3349         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3350         __extern_always_inline instead of __extern_inline.
3351         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3352         (__signbit): Likewise.
3353         (__signbitl): Support C++ namespace.
3354         (lrintf): New inline function.
3355         (lrint): Likewise.
3356         (llrintf): Likewise.
3357         (llrint): Likewise.
3358         (fmaxf): Likewise.
3359         (fmax): Likewise.
3360         (fminf): Likewise.
3361         (fmin): Likewise.
3362         (rint): Likewise.
3363         (rintf): Likewise.
3364         (ceil): Likewise.
3365         (ceilf): Likewise.
3366         (floor): Likewise.
3367         (floorf): Likewise.
3368         (nearbyint): Likewise.
3369         (nearbyintf): Likewise.
3371 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3373         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3374         non-default versions.
3376 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3378         [BZ #14218]
3379         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3381 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3383         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3384         (FE_UPWARD, FE_DOWNWARD): Don't define.
3385         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3386         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3388         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3389         reading it.
3390         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3391         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3393 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3395         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3396         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3397         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3398         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3400 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3402         [BZ #14117]
3403         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3404         * sysdeps/i386/fpu/Implies: New file.
3405         * sysdeps/x86_64/fpu/Implies: Likewise.
3406         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3407         * sysdeps/x86/fpu/bits/fenv.h: This.
3409         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3410         __SSE_MATH__.
3412 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3414         [BZ #14134]
3415         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3416         character 0xffff that matches the last element of the
3417         conversion table.
3419 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3421         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3422         fmodl commit.
3424 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3426         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3427         values higher than 25.6283.
3429 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3431         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3432         subnormal exponent extraction and add some __builtin_expect.
3433         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3434         Fix for subnormal mantissa calculation.
3436 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3438         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3439         cpu2 is -1 and errno is not ENOSYS.
3441 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3443         [BZ #14117]
3444         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3445         * sysdeps/x86/bits/string.h: This.
3446         * sysdeps/x86_64/bits/string.h: Removed.
3448         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3449         if not compiling for x86-64, but compiling for >= i486.
3451         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3452         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3454         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3455         New macro from Linux kernel 3.4.0.
3456         (FP_XSTATE_MAGIC2): Likewise.
3457         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3458         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3459         (struct _fpx_sw_bytes): New struct.
3460         (struct _xsave_hdr): Likewise.
3461         (struct _ymmh_state): Likewise.
3462         (struct _xstate): Likewise.
3464         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3465         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3466         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3467         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3468         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3469         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3471         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3472         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3473         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3474         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3475         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3476         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3478 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3480         [BZ #13743]
3481         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3482         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3483         (sysdep_headers): Include sys/platform/ppc.h.
3484         * sysdeps/powerpc/test-gettimebase.c: Test for
3485         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3486         * manual/Makefile (appendices): Include platform.texi.
3487         * manual/contrib.texi (Contributors): Update @node pointers.
3488         * manual/maint.texi (Maintenance): Likewise.
3489         (Platform): New node.
3490         * manual/platform.texi: New file.  Document the new features.
3492 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3493             Jakub Jelinek  <jakub@redhat.com>
3495         [BZ #14188]
3496         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3497         where __builtin_expect is unavailable.
3499 2012-06-03  David S. Miller  <davem@davemloft.net>
3501         * stdlib/longlong.h: Updated from GCC.
3503 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3505         [BZ #14042]
3506         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3507         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3508         __mcount_internal.
3509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3510         (GLIBC_2.16): Likewise.
3512 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3514         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3516 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3519         (default-abi): New variable.
3520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3521         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3522         variable.
3523         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3524         Likewise.
3525         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3526         Likewise.
3527         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3528         Likewise.
3530         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3531         definition.  Document in comment.
3533 2012-06-01  David S. Miller  <davem@davemloft.net>
3535         * stdlib/longlong.h: Updated from GCC.
3537 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3539         [BZ #14117]
3540         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3541         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3542         sys/debugreg.h sys/io.h here.
3543         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3544         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3545         sys/io.h.
3546         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3547         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3548         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3549         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3550         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3551         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3553         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3554         Define only if __x86_64__ is defined.
3556 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3558         [BZ #14048]
3559         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3560         Use int64_t for variable i.
3561         * math/libm-test.inc (fmod_test): Add more tests.
3563         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3564         z computation is not scheduled after fetestexcept.
3565         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3566         Use math_force_eval instead of asm to ensure calculation scheduled
3567         before exception test.
3568         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3569         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3571 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3573         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3574         computation is not scheduled after fetestexcept.
3576 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3578         [BZ #14117]
3579         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3580         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3582 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3584         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3585         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3587 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3589         [BZ #14117]
3590         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3591         <bits/wordsize.h>.
3592         (__WCHAR_MIN): Support __WORDSIZE == 64.
3593         (__WCHAR_MAX): Likewise.
3595         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3596         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3598         [BZ #14183]
3599         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3600         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3602         [BZ #14117]
3603         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3604         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3606         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3607         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3609         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3610         Defined to 1 if __x86_64__ isn't defined.
3611         (_STAT_VER_LINUX_OLD): New.
3612         (st_atime): Remove duplicate.
3613         (st_mtime): Likewise.
3614         (st_ctime): Likewise.
3616 2012-05-31  David S. Miller  <davem@davemloft.net>
3618         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3619         entries.
3621 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3623         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3624         gen-libm-test.pl.
3626         [BZ #14132]
3627         * elf/dl-reloc.c: Include <_itoa.h>.
3628         (_dl_reloc_bad_type): Remove use of INTUSE.
3629         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3630         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3631         * stdio-common/psiginfo.c (psiginfo): Likewise.
3632         * stdio-common/psignal.c (psignal): Likewise.
3633         * string/strsignal.c (strsignal): Likewise.
3634         * include/signal.h (_sys_siglist): Declare hidden proto.
3635         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3636         INTVARDEF with libc_hidden_data_def.
3637         * stdio-common/itoa-udigits.c: Likewise.
3638         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3639         (_itoa_lower_digits_internal): Remove declaration.
3640         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3641         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3642         (_sys_sigabbrev_internal): Remove aliases.
3643         (_sys_siglist): Define hidden alias.
3645 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3647         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3648         bits/sysctl.h.
3650 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3652         [BZ #14117]
3653         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3654         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3656         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3657         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3658         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3659         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3660         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3661         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3663         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3664         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3665         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3667         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3668         with __addr.
3669         (insw): Likewise.
3670         (insl): Likewise.
3671         (outsb): Likewise.
3672         (outsw): Likewise.
3673         (outsl): Likewise.
3675         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3676         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3677         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3679         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3680         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3681         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3682         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3683         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3684         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3686         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3687         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3689         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3690         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3692         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3693         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3694         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3696         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3697         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3698         to ...
3699         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3701         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3702         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3703         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3705         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3706         for x86-64.
3707         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3709 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3711         * math/math.h (M_El): Use two more decimal places.
3712         (M_LOG2El): Likewise.
3713         (M_LOG10El): Likewise.
3714         (M_LN2l): Likewise.
3715         (M_LN10l): Likewise.
3716         (M_PIl): Likewise.
3717         (M_PI_2l): Likewise.
3718         (M_PI_4l): Likewise.
3719         (M_1_PIl): Likewise.
3720         (M_2_PIl): Likewise.
3721         (M_2_SQRTPIl): Likewise.
3722         (M_SQRT2l): Likewise.
3723         (M_SQRT1_2l): Likewise.
3725 2012-05-31  David S. Miller  <davem@davemloft.net>
3727         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3728         values between float registers.
3729         * sysdeps/sparc/sparc64/memset.S: Likewise.
3730         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3732 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3734         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3735         -D_FORTIFY_SOURCE=1.
3736         (CPPFLAGS-tst-longjmp_chk.c): Define.
3737         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3738         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3739         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3740         CFLAGS-tst-wchar-h.c.
3742 2012-05-31  Marek Polacek  <polacek@redhat.com>
3744         [BZ #14132]
3745         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3746         __endmntent_internal): Remove declaration.
3747         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3748         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3749         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3751 2012-05-30  David S. Miller  <davem@davemloft.net>
3753         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3754         (___Q_simulate_exceptions): Use real FP ops rather than writing
3755         into the %fsr.
3756         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3757         Likewise.
3759 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3761         [BZ #14117]
3762         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3763         * sysdeps/x86/bits/xtitypes.h: This.
3765         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3766         * sysdeps/x86/bits/wordsize.h: This.
3768         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3769         * sysdeps/x86/bits/huge_vall.h: This.
3771         * sysdeps/i386/bits/select.h: Removed.
3772         * sysdeps/x86_64/bits/select.h: Renamed to ...
3773         * sysdeps/x86/bits/select.h: This.
3775         * sysdeps/i386/bits/setjmp.h: Removed.
3776         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3777         * sysdeps/x86/bits/setjmp.h: This.
3779         * sysdeps/i386/bits/mathdef.h: Removed.
3780         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3781         * sysdeps/x86/bits/mathdef.h: This.
3783 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3785         [BZ #14132]
3786         * include/sys/socket.h (__connect_internal)
3787         (__libc_sa_len_internal): Remove declaration.
3788         (__connect, __libc_sa_len): Declare hidden_proto.
3789         (SA_LEN): Remove use of INTUSE.
3790         * socket/connect.c: Add libc_hidden_def.
3791         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3792         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3793         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3794         alias.
3795         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3796         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3797         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3798         of adding _internal alias.
3800 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3802         [BZ #14117]
3803         * sysdeps/i386/bits/link.h: Removed.
3804         * sysdeps/i386/bits/linkmap.h: Likewise.
3805         * sysdeps/x86_64/bits/link.h: Renamed to ...
3806         * sysdeps/x86/bits/link.h: This.
3807         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3808         * sysdeps/x86/bits/linkmap.h: This.
3810         * sysdeps/i386/bits/endian.h: Removed.
3811         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3812         * sysdeps/x86/bits/endian.h: This.
3814         * sysdeps/i386/bits/byteswap.h: Removed.
3815         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3816         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3817         * sysdeps/x86/bits/byteswap.h: This.
3818         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3819         * sysdeps/x86/bits/byteswap-16.h: This.
3820         * sysdeps/i386/Implies: Add x86.
3821         * sysdeps/x86_64/Implies: Likewise.
3823 2012-05-30  David S. Miller  <davem@davemloft.net>
3825         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3826         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3827         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3828         (FP_TRAPPING_EXCEPTIONS): Define.
3829         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3830         (FP_TRAPPING_EXCEPTIONS): Define.
3831         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3832         subnormals only when inexact has been signalled or underflow
3833         exceptions are enabled.
3834         (_FP_PACK_CANONICAL): Likewise.
3836 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3838         [BZ #14183]
3839         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3840         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3842 2012-05-30  Richard Henderson  <rth@twiddle.net>
3844         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3845         with #ifndef NOT_IN_libc.
3847         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3848         marked to avoid plt entry.
3850 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3852         [BZ #14112]
3853         * Makeconfig (default-abi): New macro.
3854         (abi-includes): Likewise.
3855         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3856         $(abi-$(default-abi)-lib-soname) for soname if defined.
3857         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3858         abi-variants.
3859         * Makefile (installed-stubs): Likewise.
3860         * include/stubs-biarch.h: Removed.
3861         * scripts/lib-names.awk: Only handle one library at a time.
3862         * scripts/soversions.awk: Remove WORDSIZE support.
3863         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3864         entries.
3865         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3866         Removed.
3867         (syscall-list-default-condition): Likewise.
3868         (syscall-list-default-condition): Likewise.
3869         (syscall-list-includes): Likewise.
3870         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3871         syscall-list-* with abi-*.  Handle undefined abi-variants.
3872         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3873         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3874         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3875         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3876         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3877         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3878         Removed.
3879         (syscall-list-32-options): Likewise.
3880         (syscall-list-32-condition): Likewise.
3881         (syscall-list-64-options): Likewise.
3882         (syscall-list-64-condition): Likewise.
3883         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3884         macro.
3885         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3886         Renamed to ...
3887         (abi-*): This.
3888         (abi-64-ld-soname): New macro.
3889         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3890         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3891         Renamed to ...
3892         (abi-*): This.
3893         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3894         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3896 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3898         * sysdeps/unix/sysv/linux/kernel-features.h
3899         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3900         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3901         include <kernel-features.h>.
3902         [!__NR_ftruncate64]: Remove conditional code.
3903         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3904         [__NR_ftruncate64]: Make code unconditional.
3905         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3906         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3907         include <kernel-features.h>.
3908         [!__NR_ftruncate64]: Remove conditional code.
3909         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3910         [__NR_ftruncate64]: Make code unconditional.
3911         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3913         include <kernel-features.h>.
3914         [!__NR_ftruncate64]: Remove conditional code.
3915         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3916         [__NR_ftruncate64]: Make code unconditional.
3917         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3919         include <kernel-features.h>.
3920         [!__NR_ftruncate64]: Remove conditional code.
3921         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3922         [__NR_ftruncate64]: Make code unconditional.
3923         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3925         * configure.in (libc_cv_fpie): Weaken to a compile test using
3926         LIBC_TRY_CC_OPTION.
3927         * configure: Regenerated.
3929 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3931         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3932         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3933         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3934         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3935         Refreshed.
3936         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3938         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3939         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3940         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3941         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3942         Refreshed.
3944 2012-05-27  David S. Miller  <davem@davemloft.net>
3946         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3947         (___Q_zero): New.
3948         (__Q_simulate_exceptions): Return void.  Change to simulate
3949         exceptions by writing into the %fsr.
3950         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3951         (__Qp_handle_exceptions): Likewise.
3952         (numbers): Delete.
3953         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3954         __Qp_handle_exceptions.
3955         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3956         __Qp_handle_exceptions.
3957         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3958         as unused and give dummy FP_RND_NEAREST initializer.
3959         (FP_INHIBIT_RESULTS): Define.
3960         (___Q_simulate_exceptions): Update declaration.
3961         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3962         formatting.
3963         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3964         as unused and give dummy FP_RND_NEAREST initializer.
3965         (__Qp_handle_exceptions): Update declaration.
3966         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3967         formatting.
3969 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3971         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3972         the temporary FPU control word.
3973         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3974         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3975         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3976         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3977         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3978         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3979         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3980         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3981         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3982         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3983         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3985 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3987         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3988         fields.
3990 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3992         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3993         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3994         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3995         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3996         Likewise.
3997         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3998         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3999         Likewise.
4001 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4003         * po/h.po: Update from translation team.
4005 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4007         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4009         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4010         handling of denormals.
4011         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4012         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4013         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4014         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4015         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4016         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4017         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4018         Likewise.
4020 2012-05-26  Marek Polacek  <polacek@redhat.com>
4022         [BZ #14152]
4023         * math/libm-test.inc (fma_test): Don't always expect underflow
4024         exception.
4026 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4028         [BZ #12416]
4029         * elf/tst-execstack.c: Include stackinfo.h.
4030         (do_test): Adjust test case to ensure that pthread_getattr_np
4031         behaviour remains the same after marking stack executable.
4033 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4035         * sysdeps/unix/sysv/linux/kernel-features.h
4036         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4037         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4038         kernel-features.h.
4039         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4040         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4041         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4042         kernel-features.h.
4043         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4044         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4046 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4048         * configure.in: Define the default includes to being none.
4049         * configure: Regenerated.
4051 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4053         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4054         * sysdeps/x86_64/setjmp.S: Likewise.
4055         * sysdeps/i386/bsd-setjmp.S: Likewise.
4056         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4057         * sysdeps/i386/setjmp.S: Likewise.
4058         * sysdeps/i386/__longjmp.S: Likewise.
4059         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4060         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4062         * include/stap-probe.h: New file.
4063         * configure.in: Handle --enable-systemtap.
4064         * configure: Regenerated.
4065         * config.h.in (USE_STAP_PROBE): New #undef.
4066         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4067         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4068         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4070 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4072         [BZ #13717]
4073         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4074         to 2.4.0 where earlier.
4075         * sysdeps/unix/sysv/linux/configure: Regenerated.
4076         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4077         <kernel-features.h>.
4078         [__ASSUME_32BITUIDS]: Make code unconditional.
4079         [!__ASSUME_32BITUIDS]: Remove conditional code.
4080         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4081         <kernel-features.h>.
4082         [__ASSUME_32BITUIDS]: Make code unconditional.
4083         [!__ASSUME_32BITUIDS]: Remove conditional code.
4084         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4085         [__ASSUME_32BITUIDS]: Make code unconditional.
4086         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4087         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4088         <kernel-features.h>.
4089         [__ASSUME_32BITUIDS]: Make code unconditional.
4090         [!__ASSUME_32BITUIDS]: Remove conditional code.
4091         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4092         <kernel-features.h>.
4093         [__ASSUME_32BITUIDS]: Make code unconditional.
4094         [!__ASSUME_32BITUIDS]: Remove conditional code.
4095         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4096         <kernel-features.h>.
4097         [__ASSUME_32BITUIDS]: Make code unconditional.
4098         [!__ASSUME_32BITUIDS]: Remove conditional code.
4099         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4100         <kernel-features.h>.
4101         [__ASSUME_32BITUIDS]: Make code unconditional.
4102         [!__ASSUME_32BITUIDS]: Remove conditional code.
4103         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4104         <kernel-features.h>.
4105         [__ASSUME_32BITUIDS]: Make code unconditional.
4106         [!__ASSUME_32BITUIDS]: Remove conditional code.
4107         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4108         <kernel-features.h>.
4109         [__ASSUME_32BITUIDS]: Make code unconditional.
4110         [!__ASSUME_32BITUIDS]: Remove conditional code.
4111         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4112         <kernel-features.h>.
4113         [__ASSUME_32BITUIDS]: Make code unconditional.
4114         [!__ASSUME_32BITUIDS]: Remove conditional code.
4115         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4116         <kernel-features.h>.
4117         [__ASSUME_32BITUIDS]: Make code unconditional.
4118         [!__ASSUME_32BITUIDS]: Remove conditional code.
4119         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4120         <kernel-features.h>.
4121         [__ASSUME_32BITUIDS]: Make code unconditional.
4122         [!__ASSUME_32BITUIDS]: Remove conditional code.
4123         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4124         <kernel-features.h>.
4125         [__ASSUME_32BITUIDS]: Make code unconditional.
4126         [!__ASSUME_32BITUIDS]: Remove conditional code.
4127         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4128         <kernel-features.h>.
4129         [__NR_setresgid] (__setresgid): Do not declare.
4130         [__ASSUME_32BITUIDS]: Make code unconditional.
4131         [!__ASSUME_32BITUIDS]: Remove conditional code.
4132         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4133         <kernel-features.h>.
4134         [__NR_setresuid] (__setresuid): Do not declare.
4135         [__ASSUME_32BITUIDS]: Make code unconditional.
4136         [!__ASSUME_32BITUIDS]: Remove conditional code.
4137         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4138         <kernel-features.h>.
4139         [__ASSUME_32BITUIDS]: Make code unconditional.
4140         [!__ASSUME_32BITUIDS]: Remove conditional code.
4141         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4142         <kernel-features.h>.
4143         [__ASSUME_32BITUIDS]: Make code unconditional.
4144         [!__ASSUME_32BITUIDS]: Remove conditional code.
4145         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4146         <kernel-features.h>.
4147         [__ASSUME_32BITUIDS]: Make code unconditional.
4148         [!__ASSUME_32BITUIDS]: Remove conditional code.
4149         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4150         <kernel-features.h>.
4151         [__ASSUME_32BITUIDS]: Make code unconditional.
4152         [!__ASSUME_32BITUIDS]: Remove conditional code.
4153         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4154         <kernel-features.h>.
4155         [__ASSUME_32BITUIDS]: Make code unconditional.
4156         [!__ASSUME_32BITUIDS]: Remove conditional code.
4157         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4158         <kernel-features.h>.
4159         [__ASSUME_32BITUIDS]: Make code unconditional.
4160         [!__ASSUME_32BITUIDS]: Remove conditional code.
4161         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4162         <kernel-features.h>.
4163         [__ASSUME_32BITUIDS]: Make code unconditional.
4164         [!__ASSUME_32BITUIDS]: Remove conditional code.
4165         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4166         <kernel-features.h>.
4167         [__ASSUME_32BITUIDS]: Make code unconditional.
4168         [!__ASSUME_32BITUIDS]: Remove conditional code.
4169         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4170         <kernel-features.h>.
4171         [__ASSUME_32BITUIDS]: Make code unconditional.
4172         [!__ASSUME_32BITUIDS]: Remove conditional code.
4173         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4174         <kernel-features.h>.
4175         [__ASSUME_32BITUIDS]: Make code unconditional.
4176         [!__ASSUME_32BITUIDS]: Remove conditional code.
4177         * sysdeps/unix/sysv/linux/kernel-features.h
4178         (__ASSUME_SETRESUID_SYSCALL): Remove.
4179         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4180         (__ASSUME_32BITUIDS): Likewise.
4181         (__ASSUME_LDT_WORKS): Likewise.
4182         (__ASSUME_O_DIRECTORY): Likewise.
4183         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4184         architecture but not kernel version.
4185         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4186         (__ASSUME_MMAP2_SYSCALL): Likewise.
4187         (__ASSUME_STAT64_SYSCALL): Likewise.
4188         (__ASSUME_IPC64): Likewise.
4189         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4190         <kernel-features.h>.
4191         [__ASSUME_32BITUIDS]: Make code unconditional.
4192         [!__ASSUME_32BITUIDS]: Remove conditional code.
4193         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4194         <kernel-features.h>.
4195         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4196         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4197         132096]: Remove conditional code.
4198         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4199         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4200         <kernel-features.h>.
4201         [__ASSUME_32BITUIDS]: Make code unconditional.
4202         [!__ASSUME_32BITUIDS]: Remove conditional code.
4203         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4204         <kernel-features.h>.
4205         [__ASSUME_32BITUIDS]: Make code unconditional.
4206         [!__ASSUME_32BITUIDS]: Remove conditional code.
4207         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4208         <kernel-features.h>.
4209         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4210         unconditional.
4211         (__setresgid): Do not declare.
4212         [__ASSUME_32BITUIDS]: Make code unconditional.
4213         [!__ASSUME_32BITUIDS]: Remove conditional code.
4214         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4215         <kernel-features.h>.
4216         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4217         unconditional.
4218         (__setresuid): Do not declare.
4219         [__ASSUME_32BITUIDS]: Make code unconditional.
4220         [!__ASSUME_32BITUIDS]: Remove conditional code.
4221         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4222         <kernel-features.h>.
4223         [__ASSUME_32BITUIDS]: Make code unconditional.
4224         [!__ASSUME_32BITUIDS]: Remove conditional code.
4225         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4226         <kernel-features.h>.
4227         [__ASSUME_32BITUIDS]: Make code unconditional.
4228         [!__ASSUME_32BITUIDS]: Remove conditional code.
4230 2012-05-25  Richard Henderson  <rth@twiddle.net>
4232         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4233         dl_hwcap to ifunc resolver.
4234         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4235         elf_ifunc_invoke.
4236         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4237         dl_hwcap to ifunc resolver.
4238         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4240 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4242         [BZ #14153]
4243         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4244         for |x| <= 2**-26, not 2**-57.
4245         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4246         exception.
4248 2012-05-24  Jeff Law  <law@redhat.com>
4250         * stdio-common/Makefile (tests): Add bug25.
4251         * stdio-common/bug25.c: New test.
4253 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4255         [BZ #13576]
4256         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4257         multiple of MALLOC_ALIGNMENT in size.
4258         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4260 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4262         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4263         Require >= 256.
4264         (FILENAME_MAX): Use macro-int-constant.
4265         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4266         (_IOFBF): Use macro-int-constant.
4267         (_IOLBF): Likewise.
4268         (_IONBF): Likewise.
4269         (SEEK_CUR): Likewise.
4270         (SEEK_END): Likewise.
4271         (SEEK_SET): Likewise.
4272         (TMP_MAX): Likewise.
4273         (EOF): Use macro-int-constant.  Require < 0.
4274         (NULL): Use macro-constant.  Require == 0.
4275         (stdin): Require type to be FILE *.
4276         (stdout): Likewise.
4277         (stderr): Likewise.
4278         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4279         macro-int-constant.
4280         (EXIT_SUCCESS): Likewise.
4281         (NULL): Use macro-constant.  Require == 0.
4282         (RAND_MAX): Use macro-int-constant.
4283         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4284         [C99-based standards] (strtof): Require function.
4285         [C99-based standards] (strtold): Likewise.
4286         [C99-based standards] (strtoll): Likewise.
4287         [C99-based standards] (strtoull): Likewise.
4288         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4289         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4290         [ISO || ISO99 || ISO11] (math.h): Likewise.
4291         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4292         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4293         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4295 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4297         [BZ #14132]
4298         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4299         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4300         * intl/dgettext.c (DCGETTEXT): Likewise.
4301         * intl/gettext.c (DCGETTEXT): Likewise.
4302         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4303         * posix/regex_internal.h (gettext): Likewise.
4304         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4305         Remove declaration.
4306         * include/argz.h (__argz_count_internal)
4307         (__argz_stringify_internal): Remove declaration.
4308         (__argz_count, __argz_stringify): Declare hidden proto.
4309         * intl/dcgettext.c: Remove use of INTDEF.
4310         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4311         * string/argz-stringify.c: Likewise.
4312         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4313         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4314         Declare hidden proto.
4315         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4316         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4317         Declare hidden proto.
4318         * include/stdio.h (__asprintf_internal): Don't declare.
4319         (__asprintf): Don't define as macro.  Declare hidden proto.
4320         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4321         (__fsetlocking): Declare hidden proto.
4322         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4323         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4324         hidden proto.
4325         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4326         (_IO_setlinebuf): Remove use of INTUSE.
4327         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4328         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4329         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4330         Remove declaration.
4331         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4332         (_IO_do_flush): Remove use of INTUSE.
4333         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4334         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4335         (_IO_adjust_column, _IO_least_wmarker)
4336         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4337         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4338         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4339         (_IO_default_doallocate, _IO_wdefault_doallocate)
4340         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4341         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4342         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4343         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4344         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4345         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4346         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4347         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4348         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4349         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4350         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4351         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4352         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4353         proto.
4354         (_IO_flush_all_internal, _IO_adjust_column_internal)
4355         (_IO_default_uflow_internal, _IO_default_finish_internal)
4356         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4357         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4358         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4359         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4360         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4361         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4362         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4363         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4364         (_IO_file_close_internal, _IO_file_close_it_internal)
4365         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4366         (_IO_file_init_internal, _IO_file_attach_internal)
4367         (_IO_file_fopen_internal, _IO_file_read_internal)
4368         (_IO_file_sync_internal, _IO_file_seek_internal)
4369         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4370         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4371         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4372         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4373         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4374         (_IO_list_all_internal, _IO_link_in_internal)
4375         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4376         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4377         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4378         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4379         (_IO_do_write_internal, _IO_padn_internal)
4380         (_IO_getline_info_internal, _IO_getline_internal)
4381         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4382         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4383         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4384         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4385         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4386         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4387         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4388         with libc_hidden_ver, remove use of INTUSE.
4389         * libio/genops.c: Likewise.
4390         * libio/freopen.c: Likewise.
4391         * libio/freopen64.c: Likewise.
4392         * libio/iofclose.c: Likewise.
4393         * libio/iofdopen.c: Likewise.
4394         * libio/iofflush.c: Likewise.
4395         * libio/iofflush_u.c: Likewise.
4396         * libio/iofgets.c: Likewise.
4397         * libio/iofgets_u.c: Likewise.
4398         * libio/iofopen.c: Likewise.
4399         * libio/iofopncook.c: Likewise.
4400         * libio/iofread.c: Likewise.
4401         * libio/iofread_u.c: Likewise.
4402         * libio/ioftell.c: Likewise.
4403         * libio/iofwrite.c: Likewise.
4404         * libio/iogetline.c: Likewise.
4405         * libio/iogets.c: Likewise.
4406         * libio/iogetwline.c: Likewise.
4407         * libio/iopadn.c: Likewise.
4408         * libio/iopopen.c: Likewise.
4409         * libio/ioseekoff.c: Likewise.
4410         * libio/ioseekpos.c: Likewise.
4411         * libio/iosetbuffer.c: Likewise.
4412         * libio/iosetvbuf.c: Likewise.
4413         * libio/ioungetc.c: Likewise.
4414         * libio/ioungetwc.c: Likewise.
4415         * libio/iovdprintf.c: Likewise.
4416         * libio/iovsprintf.c: Likewise.
4417         * libio/iovsscanf.c: Likewise.
4418         * libio/memstream.c: Likewise.
4419         * libio/obprintf.c: Likewise.
4420         * libio/oldfileops.c: Likewise.
4421         * libio/oldiofclose.c: Likewise.
4422         * libio/oldiofdopen.c: Likewise.
4423         * libio/oldiofopen.c: Likewise.
4424         * libio/oldiopopen.c: Likewise.
4425         * libio/oldstdfiles.c: Likewise.
4426         * libio/putc.c: Likewise.
4427         * libio/setbuf.c: Likewise.
4428         * libio/setlinebuf.c: Likewise.
4429         * libio/stdfiles.c: Likewise.
4430         * libio/strops.c: Likewise.
4431         * libio/vasprintf.c: Likewise.
4432         * libio/vscanf.c: Likewise.
4433         * libio/vsnprintf.c: Likewise.
4434         * libio/vswprintf.c: Likewise.
4435         * libio/wfiledoalloc.c: Likewise.
4436         * libio/wfileops.c: Likewise.
4437         * libio/wgenops.c: Likewise.
4438         * libio/wmemstream.c: Likewise.
4439         * libio/wstrops.c: Likewise.
4440         * libio/__fpurge.c: Likewise.
4441         * libio/__fsetlocking.c: Likewise.
4442         * assert/assert.c: Likewise.
4443         * debug/fgets_chk.c: Likewise.
4444         * debug/fgets_u_chk.c: Likewise.
4445         * debug/fread_chk.c: Likewise.
4446         * debug/fread_u_chk.c: Likewise.
4447         * debug/gets_chk.c: Likewise.
4448         * debug/obprintf_chk.c: Likewise.
4449         * debug/vasprintf_chk.c: Likewise.
4450         * debug/vdprintf_chk.c: Likewise.
4451         * debug/vsnprintf_chk.c: Likewise.
4452         * debug/vsprintf_chk.c: Likewise.
4453         * malloc/mtrace.c: Likewise.
4454         * misc/error.c: Likewise.
4455         * misc/syslog.c: Likewise.
4456         * stdio-common/asprintf.c: Likewise.
4457         * stdio-common/fxprintf.c: Likewise.
4458         * stdio-common/getw.c: Likewise.
4459         * stdio-common/isoc99_fscanf.c: Likewise.
4460         * stdio-common/isoc99_scanf.c: Likewise.
4461         * stdio-common/isoc99_vfscanf.c: Likewise.
4462         * stdio-common/isoc99_vscanf.c: Likewise.
4463         * stdio-common/isoc99_vsscanf.c: Likewise.
4464         * stdio-common/printf-prs.c: Likewise.
4465         * stdio-common/printf_fp.c: Likewise.
4466         * stdio-common/printf_fphex.c: Likewise.
4467         * stdio-common/printf_size.c: Likewise.
4468         * stdio-common/putw.c: Likewise.
4469         * stdio-common/scanf.c: Likewise.
4470         * stdio-common/sprintf.c: Likewise.
4471         * stdio-common/tmpfile.c: Likewise.
4472         * stdio-common/vfprintf.c: Likewise.
4473         * stdio-common/vfscanf.c: Likewise.
4474         * stdlib/strfmon_l.c: Likewise.
4475         * sunrpc/openchild.c: Likewise.
4476         * sunrpc/xdr_stdio.c: Likewise.
4477         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4478         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4480 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4482         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4484         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4485         in the third column, to generate for the shared library an IFUNC
4486         that uses _dl_vdso_vsym.
4487         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4488         * Makeconfig (object-suffixes-noshared): New variable.
4490         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4491         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4492         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4493         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4495         [BZ #14132]
4496         * include/sys/time.h (__gettimeofday): Remove macro.
4497         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4498         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4499         Remove INTDEF.
4500         (__gettimeofday): Add libc_hidden_def.
4501         (gettimeofday): Add libc_hidden_weak.
4502         * sysdeps/mach/gettimeofday.c: Likewise.
4503         * sysdeps/posix/gettimeofday.c: Likewise.
4504         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4505         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4506         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4507         (__gettimeofday_internal): Remove strong_alias.
4508         (__gettimeofday): Add libc_hidden_def.
4509         (gettimeofday): Add libc_hidden_weak.
4510         * sysdeps/unix/syscalls.list (gettimeofday):
4511         Remove __gettimeofday_internal alias.
4513 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4514             H.J. Lu  <hongjiu.lu@intel.com>
4516         [BZ #12495]
4517         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4518         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4519         (largebin_index_32_big): New.
4520         (largebin_index): Use it for 16-byte alignment.
4521         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4522         correction with front_misalign.
4524 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4526         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4527         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4528         Likewise.
4529         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4530         Likewise.
4531         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4532         Likewise.
4533         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4534         Likewise.
4535         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4536         Likewise.
4537         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4538         Likewise.
4539         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4540         Likewise.
4541         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4542         Likewise.
4543         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4544         Likewise.
4545         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4546         Likewise.
4547         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4548         Likewise.
4549         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4550         Likewise.
4552         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4553         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4555 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4557         [BZ #10846]
4558         [BZ #14036]
4559         * math/libm-test.inc (exp_test): Add test from bug 14036.
4560         (pow_test): Add test from bug 10846.
4562         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4563         and other flags.
4564         (special_function): Do not include flags in test name.
4565         (parse_args): Likewise.
4566         * sysdeps/i386/fpu/libm-test-ulps: Update.
4567         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4568         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4569         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4572         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4573         exceptions.
4574         * math/libm-test.inc ("Philosophy"): Update comment about
4575         exception testing.
4576         (UNDERFLOW_EXCEPTION): New macro.
4577         (UNDERFLOW_EXCEPTION_OK): Likewise.
4578         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4579         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4580         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4581         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4582         (INVALID_EXCEPTION_OK): Update value.
4583         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4584         (OVERFLOW_EXCEPTION_OK): Likewise.
4585         (IGNORE_ZERO_INF_SIGN): Likewise.
4586         (test_exceptions): Handle underflow exceptions.
4587         (acos_test): Update for underflow exception expectations.
4588         (cexp_test): Likewise.
4589         (clog_test): Likewise.
4590         (clog10_test): Likewise.
4591         (csqrt_test): Likewise.
4592         (ctan_test): Likewise.
4593         (ctanh_test): Likewise.
4594         (exp_test): Likewise.
4595         (exp10_test): Likewise.
4596         (exp2_test): Likewise.
4597         (expm1_test): Likewise.
4598         (fma_test): Likewise.
4599         (j0_test): Likewise.
4600         (jn_test): Likewise.
4601         (nexttoward_test): Likewise.
4602         (pow_test): Likewise.
4603         (scalbn_test): Likewise.
4604         (scalbln_test): Likewise.
4605         (tan_test): Likewise.
4606         (y1_test): Likewise.
4607         * sysdeps/i386/fpu/libm-test-ulps: Update.
4608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4610 2012-05-23  David S. Miller  <davem@davemloft.net>
4612         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4613         (__libc_sigaction): Remove unused local variables.
4615 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4617         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4619 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4621         mktime: avoid signed integer overflow
4622         * time/mktime.c (__mktime_internal): Do not mishandle the case
4623         where diff == INT_MIN.
4625         mktime: simplify computation of average
4626         * time/mktime.c (ranged_convert): Use new time_t_avg function
4627         instead of rolling our own (probably-slower) code.
4629         mktime: do not assume signed right shift propagates sign bit
4630         * time/mktime.c (isdst_differ): New static function.
4631         (__mktime_internal): No need to normalize tm_isdst now.
4632         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4633         tm_isdst values.
4635         mktime: merge another wrapv change from gnulib
4636         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4637         from some compilers.
4639         mktime: remove incorrect attempt at unusual arithmetics
4640         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4641         The code didn't really work on such machines anyway.
4642         (TYPE_MINIMUM): Assume two's complement.
4643         (twos_complement_arithmetic): Verify that long_int and time_t
4644         are two's complement (or unsigned, in the latter case).
4646         mktime: check signed shifts on long_int and time_t, too
4647         * time/mktime.c (SHR): Check that shifts work as desired
4648         on the types long_int and time_t too, as SHR is used on
4649         such types.
4651         mktime: do not assume 'long' is wide enough
4652         * time/mktime.c (verify): Move decl up.
4653         (long_int): New type.
4654         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4655         to remove assumption in the code that 'long' is wide enough to
4656         store year values.  This assumption is not true on x32 and on
4657         some non-glibc platforms.
4659         mktime: merge wrapv change from gnulib
4660         * time/mktime.c (WRAPV): New macro.
4661         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4662         (guess_time_tm, __mktime_internal): Do not assume that signed
4663         integer overflow wraps around; modern compilers generate code
4664         where this assumption is no longer valid.
4666 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4668         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4669         Replace "jmp L(pseudo_end)" with "ret".
4670         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4671         Likewise.
4673 2012-05-23  Andreas Jaeger  <aj@suse.de>
4675         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4676         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4678 2012-05-23  Andreas Jaeger  <aj@suse.de>
4679             Maximilian Attems  <max@stro.at>
4681         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4682         New macros.
4684 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4686         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4687         code so that pseudo_end is just ret and the stack pointer is
4688         correct also for static library in error case.
4690 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4692         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4693         move to syscalls.list.
4694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4699         * manual/install.texi (Running make install): Do not mention Linux
4700         kernel version for which pt_chown is not needed.
4701         (Linux): Do not mention problems with nscd with 2.0 kernels.
4702         * INSTALL: Regenerated.
4704 2012-05-23  Andreas Jaeger  <aj@suse.de>
4706         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4707         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4708         macro.
4709         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4710         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4711         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4712         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4713         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4714         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4715         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4716         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4717         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4718         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4719         * sysdeps/unix/sysv/linux/bits/in.h
4720         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4722 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4724         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4725         (PREPARE_VERSION): Just use assert instead, it will be elided
4726         under [NDEBUG] anyway.
4728 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4730         * sysdeps/unix/sysv/linux/Makefile: Include
4731         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4732         (sysdep_routines): Remove sysctl.
4733         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4734         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4735         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4736         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4737         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4739 2012-05-22  Andreas Jaeger  <aj@suse.de>
4741         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4742         that pseudo_end is just ret and the stack pointer is correct also
4743         for static library in error case.
4745 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4747         [BZ #14122]
4748         * nss/nsswitch.c (defconfig_entries): New variable.
4749         (__nss_database_lookup): Don't leak defconfig entries.
4750         (nss_parse_service_list): Don't leak on error paths.
4751         (free_database_entries): New function.
4752         (free_defconfig): New function.
4753         (free_mem): Move common code to free_database_entries.
4755 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4757         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4758         Add arch_prctl.
4759         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4761         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4762         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4763         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4764         New macro.
4765         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4766         (INTERNAL_SYSCALL_TYPES): Likewise.
4767         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4768         (LOAD_REGS_TYPES_[1-6]): Likewise.
4769         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4770         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4772 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4774         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4775         copysignl for GLIBC_2_0.
4776         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4777         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4778         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4779         logbl for GLIBC_2_0.
4780         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4781         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4783 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4785         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4786         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4788         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4789         Use "neg %eax".
4791         * time/mktime.c: Update copyright years.
4793 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4795         mktime: merge comment-quoting-style change from gnulib
4796         * time/mktime.c: Quote 'like this' in comments.
4797         The GNU coding standards suggest that we no longer quote `like this',
4798         as "`" and "'" are typically rendered asymmetrically nowadays.
4799         The typical gnulib style is to quote 'like this' when quoting
4800         code, and "like this" when quoting English.
4802         * time/mktime.c (compile-command): Add "-I.".
4804         mktime: merge mktime-internal.h change from gnulib
4805         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4807         mktime: merge time_r change from gnulib
4808         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4810         mktime: merge DEBUG change from gnulib
4811         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4812         case system <time.h> has a #define.
4814         mktime: merge <sys/types.h> change from gnulib
4815         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4816         since <time.t> is now guaranteed to define time_t.
4818         mktime: merge HAVE_CONFIG_H change from gnulib
4819         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4821 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4823         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4824         Use "neg %eax".
4826         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4827         __rlim_t cast.
4828         (struct rusage): Use anonymous union to pad each field to
4829         __syscall_slong_t.
4831 2012-05-21  David S. Miller  <davem@davemloft.net>
4833         * Makefules (o-iterator): Remove .s cases.
4834         (compile-command.s): Delete.
4835         (COMPILE.s): Delete.
4836         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4838 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4840         * configure.in (libc_cv_predef_stack_protector): Only consider
4841         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4842         * configure: Regenerated.
4844 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4846         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4847         New macro.  Use R*LP on int and pointer.
4848         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4849         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4850         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4851         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4853         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4854         [__WORDSIZE_TIME64_COMPAT32] instead of
4855         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4856         (struct utmp): Likewise.
4857         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4858         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4859         Renamed to ...
4860         (__WORDSIZE_TIME64_COMPAT32): This.
4861         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4862         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4863         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4864         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4865         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4866         (__WORDSIZE_TIME64_COMPAT32): New macro.
4868 2012-05-21  Andreas Jaeger  <aj@suse.de>
4870         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4871         only if [SHARED]. Add prototype for __wcschr_ia32.
4873 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4875         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4876         of %rbp unmolested in the jmp_buf while mangling the low bits.
4877         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4878         unmolested high bits of %rbp while demangling the low bits.
4879         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4881 2012-05-21  Andreas Jaeger  <aj@suse.de>
4883         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4884         * sunrpc/svc_simple.c: Use it for registerrpc.
4885         * sunrpc/xcrypt.c: Use it for passwd2des.
4887         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4889 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4891         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4892         Don't define if [__SYSCALL_WORDSIZE != 32].
4893         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4894         New macro.
4896 2012-05-21  Bruno Haible  <bruno@clisp.org>
4897             Andreas Jaeger  <aj@suse.de>
4899         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4900         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4901         inptr and inend for must_buffer_ch.
4902         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4903         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4904         * stdio-common/Makefile (tests): Remove bug15.
4905         (bug15-ENV): Remove macro.
4906         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4907         anymore.
4909 2012-05-19  Andreas Jaeger  <aj@suse.de>
4910             Roland McGrath  <roland@hack.frob.com>
4912         * manual/contrib.texi: Completely rewritten. It contains now an
4913         alphabetical list of contributors and their contributions.
4915 2012-05-21  Richard Henderson  <rth@twiddle.net>
4917         * misc/getauxval.c (__getauxval): Use unsigned long int.
4918         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4919         (getauxval): Use unsigned long int.
4921 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4923         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4925 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4927         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4928         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4929         __alignof__ (long double).
4931 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4933         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4935 2012-05-20  Richard Henderson  <rth@twiddle.net>
4937         * misc/getauxval.c: New file.
4938         * misc/sys/auxv.h: New file.
4939         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4940         (routines): Add getauxval.
4941         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4942         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4943         * elf/dl-sysdep.c (_dl_auxv): Remove.
4944         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4945         * elf/dl-support.c (_dl_auxv): New variable.
4946         (_dl_aux_init): Initialize it.
4947         * manual/startup.texi (Auxiliary Vector): New node.
4948         * sysdeps/generic/bits/hwcap.h: New file.
4949         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4950         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4951         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4952         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4953         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4954         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4956         Update.
4957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4958         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4959         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4960         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4961         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4962         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4963         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4964         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4966 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4968         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4970 2012-05-19  David S. Miller  <davem@davemloft.net>
4972         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4974 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4976         [BZ #14123]
4977         * math/s_ccosh.c: Include <float.h>
4978         (__ccosh): Avoid internal overflow calculating sinh and cosh
4979         values before multiplying by sin and cos values.
4980         * math/s_ccoshf.c: Likewise.
4981         * math/s_ccoshl.c: Likewise.
4982         * math/s_csin.c: Likewise.
4983         * math/s_csinf.c: Likewise.
4984         * math/s_csinl.c: Likewise.
4985         * math/s_csinh.c: Likewise.
4986         * math/s_csinhf.c: Likewise.
4987         * math/s_csinhl.c: Likewise.
4988         * math/libm-test.inc (ccos_test): Add more tests.
4989         (ccosh_test): Likewise.
4990         (csin_test): Likewise.
4991         (csinh_test): Likewise.
4992         * sysdeps/i386/fpu/libm-test-ulps: Update.
4993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4995 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4997         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4998         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5000         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5002 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5004         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5005         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5006         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5007         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5008         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5009         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5010         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5011         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5012         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5013         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5014         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5015         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5016         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5017         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5018         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5019         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5020         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5021         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5022         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5023         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5024         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5025         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5026         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5027         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5028         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5029         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5030         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5031         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5032         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5033         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5034         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5036 2012-05-18  Andreas Jaeger  <aj@suse.de>
5038         * csu/.gitignore: Delete.
5040 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5042         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5043         (timex): Use __syscall_slong_t.
5045 2012-05-18  Andreas Jaeger  <aj@suse.de>
5046             Carlos O'Donell  <carlos_odonell@mentor.com>
5048         * manual/install.texi (Configuring and compiling): Update
5049         description about files modified in the source directory.
5050         * INSTALL: Regenerated.
5052 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5054         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5055         value.  Use "or" to set return value to -1.
5056         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5057         negate return value.
5059 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5061         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5062         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5063         failure if the compiler has Graphite support disabled.
5064         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5065         Likewise.
5066         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5067         CFLAGS-memmove.c): Likewise.
5068         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5069         Likewise.
5071 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5073         * sysdeps/x86_64/x32/_itoa.h: New file.
5075         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5076         getdents system call only if kernel and user dirents have the
5077         same d_ino and d_off.
5079         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5080         LLONG_MAX != LONG_MAX.
5081         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5082         (_fitoa_word): Likewise.
5084         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5085         years.
5086         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5087         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5088         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5090         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5091         include <bits/wordsize.h>.  Check __x86_64__ instead of
5092         __WORDSIZE.
5093         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5094         if __x86_64__ is defined.  Use anonymous union on fpstate.
5096         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5097         anonymous union.
5099 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5101         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5102         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5103         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5104         Refer to _rtld_local_ro instead of _rtld_global_ro.
5105         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5106         Likewise.
5107         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5108         Likewise.
5109         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5110         Likewise.
5111         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5112         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5113         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5115         * sysdeps/powerpc/powerpc32/dl-machine.c
5116         (__elf_machine_runtime_setup) [PROF]: Don't reference
5117         _dl_prof_resolve.
5119 2012-05-18  Andreas Jaeger  <aj@suse.de>
5121         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5122         function only available for GCCs before 3.4 since GCC 3.4
5123         introduced a builtin.
5124         (lrint): Likewise.
5125         (llrintf): Likewise.
5126         (llrint): Likewise.
5127         (fmaxf): Likewise.
5128         (fmax): Likewise.
5129         (fminf): Likewise.
5130         (fmin): Likewise.
5131         (rint): Likewise.
5132         (rintf): Likewise.
5133         (nearbyint): Likewise.
5134         (nearbyintf): Likewise.
5135         (ceil): Likewise.
5136         (ceilf): Likewise.
5137         (floor): Likewise.
5138         (floorf): Likewise.
5140 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5142         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5143         on both fields and cast pointer to __syscall_ulong_t.
5145         * bits/types.h (__fsword_t): New type.
5146         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5147         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5148         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5149         (__FSWORD_T_TYPE): Likewise.
5150         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5151         (__FSWORD_T_TYPE): Likewise.
5152         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5153         (__FSWORD_T_TYPE): Likewise.
5154         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5155         (__FSWORD_T_TYPE): Likewise.
5156         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5157         __SWORD_TYPE with __fsword_t.
5158         (statfs64): Likewise.
5160 2012-05-17  David S. Miller  <davem@davemloft.net>
5162         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5164 2012-05-17  Andreas Jaeger  <aj@suse.de>
5166         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5167         warning.
5169 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5171         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5173 2012-05-17  Andreas Jaeger  <aj@suse.de>
5175         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5176         when it is used.
5178 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5180         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5182 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5184         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5185         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5187 2012-05-17  Andreas Jaeger  <aj@suse.de>
5188             Carlos O'Donell  <carlos_odonell@mentor.com>
5190         [BZ #14059]
5191         * sysdeps/x86_64/multiarch/init-arch.h
5192         (bit_YMM_Usable): Rename to...
5193         (bit_AVX_Usable): ... this.
5194         (bit_FMA4_Usable): New macro.
5195         (bit_XMM_state): New macro.
5196         (bit_YMM_state): New macro.
5197         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5198         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5199         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5200         (CPUID_OSXSAVE): New macro.
5201         (CPUID_AVX): New macro.
5202         (CPUID_FMA4): New macro.
5203         (index_YMM_Usable): Rename to...
5204         (index_AVX_Usable): ... this.
5205         (HAS_AVX): Use HAS_ARCH_FEATURE.
5206         (HAS_FMA4): Likewise.
5207         (HAS_YMM_USABLE): Remove.
5208         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5209         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5210         are present.
5211         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5212         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5213         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5214         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5215         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5217 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5219         * math/libm-test.c: Support platforms without multiple rounding modes.
5220         * math/bug-nextafter.c: Support platforms without FP exceptions.
5221         * math/bug-nexttoward.c: Likewise.
5222         * math/test-fenv.c: Likewise.
5223         * math/test-misc.c: Likewise.
5224         * stdlib/bug-getcontext.c: Likewise.
5226 2012-05-17  Andreas Jaeger  <aj@suse.de>
5228         * manual/examples/search.c (critter_cmp): Change signature to
5229         avoid warnings.
5230         * manual/string.texi (Collation Functions): Likewise.
5232 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5234         * bits/types.h: Fold copyright years.
5235         * bits/typesizes.h: Likewise.
5236         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5237         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5238         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5239         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5240         * time/time.h: Likewise.
5242 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5244         [BZ #208]
5245         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5246         in instead of returning them.  Return void.
5247         (__libc_mallinfo): Accumulate over all arenas.
5248         (__malloc_stats): Adjust for change in int_mallinfo interface.
5250 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5252         [BZ #10375]
5253         * configure.in (NM): Add AC_CHECK_TOOL for it.
5254         (libc_extra_cflags): New substituted variable.
5255         Check for -fstack-protector being used implicitly.
5256         * configure: Regenerated.
5257         * config.make.in (config-extra-cflags): New variable,
5258         gets @libc_extra_cflags@.
5259         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5261         [BZ #10375]
5262         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5263         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5264         * configure: Regenerated.
5265         * config.make.in (CPPUNDEFS): New substituted variable.
5266         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5267         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5268         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5270 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5272         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5273         (mq_attr): Use __syscall_slong_t.
5275 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5277         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5278         Check __x86_64__ instead of __WORDSIZE.
5279         (_STAT_VER_LINUX): Likewise.
5280         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5281         __syscall_ulong_t and __syscall_slong_t.
5282         (stat64): Likewise.
5284 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5286         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5288 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5290         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5292 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5294         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5295         __syscall_ulong_t.
5297         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5298         include <bits/wordsize.h>.  Check __x86_64__ instead of
5299         __WORDSIZE.
5300         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5301         defined.
5302         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5304         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5305         include <bits/wordsize.h>.  Check __x86_64__ instead of
5306         __WORDSIZE.
5307         (user_regs_struct): Use "__extension__ unsigned long long"
5308         instead of "unsigned long" if __x86_64__ is defined.
5309         (user): Likewise.  Pad after pointer field if __ILP32__ is
5310         defined.
5312 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5314         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5315         versions 5 to 9.
5316         * configure: Regenerated.
5317         * manual/install.texi (texinfo): Increase version requirement to
5318         4.5 or later.
5319         * INSTALL: Regenerated.
5321         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5323 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5325         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5327         * sysdeps/x86_64/x32/ffs.c: New file.
5329         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5330         __syscall_ulong_t.
5331         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5332         defined.  Use __syscall_ulong_t.
5333         (shminfo): Use __syscall_ulong_t.
5334         (shm_info): Likewise.
5336         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5337         __syscall_ulong_t.
5339         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5340         <bits/wordsize.h>.
5341         (msgqnum_t): Use __syscall_ulong_t.
5342         (msglen_t): Likewise.
5343         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5344         __syscall_ulong_t.
5346         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5347         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5349         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5351         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5352         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5354         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5355         __syscall_slong_t.
5357         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5358         include <bits/wordsize.h>.  Check __x86_64__ instead of
5359         __WORDSIZE.
5361         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5362         "unsigned long long int" if __x86_64__ is defined.
5363         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5365         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5366         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5367         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5369         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5370         <stdint.h>.
5371         (GET_PC): Cast to uintptr_t first.
5372         (GET_FRAME): Likewise.
5373         (GET_STACK): Likewise.
5375         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5376         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5377         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5378         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5379         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5380         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5381         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5382         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5383         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5384         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5385         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5386         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5387         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5388         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5389         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5390         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5391         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5392         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5393         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5394         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5395         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5396         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5397         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5398         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5399         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5400         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5401         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5402         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5403         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5405 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5407         * Makerules (+depfiles): Also collect depfiles from .oS in
5408         $(extra-objs).
5409         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5410         .oS, $(libnldbl-routines)).
5412         * Makerules (native-compile-mkdep-flags): Define.
5413         * sunrpc/Makefile (extra-objs): Add $(addprefix
5414         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5415         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5416         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5417         calling $(make-target-directory).
5419 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5421         * bits/types.h (__snseconds_t): Removed.
5422         * time/time.h (struct timespec): Replace __snseconds_t with
5423         __syscall_slong_t.
5424         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5425         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5426         Likewise.
5427         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5428         (__SNSECONDS_T_TYPE): Likewise.
5429         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5430         (__SNSECONDS_T_TYPE): Likewise.
5431         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5432         (__SNSECONDS_T_TYPE): Likewise.
5434 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5436         * sysdeps/mach/hurd/bits/typesizes.h
5437         (__SYSCALL_SLONG_TYPE): New macro.
5438         (__SYSCALL_ULONG_TYPE): Likewise.
5440 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5442         * bits/types.h (__syscall_slong_t): New type.
5443         (__syscall_ulong_t): Likewise.
5445         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5446         (__SYSCALL_ULONG_TYPE): Likewise.
5447         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5448         (__SYSCALL_SLONG_TYPE): Likewise.
5449         (__SYSCALL_ULONG_TYPE): Likewise.
5450         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5451         (__SYSCALL_SLONG_TYPE): Likewise.
5452         (__SYSCALL_ULONG_TYPE): Likewise.
5453         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5454         (__SYSCALL_SLONG_TYPE): Likewise.
5455         (__SYSCALL_ULONG_TYPE): Likewise.
5457 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5459         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5460         Add sigaltstack-offsets.sym.
5461         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5462         <sigaltstack-offsets.h>.
5463         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5464         longjmp_msg pointer.
5465         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5466         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5467         signal stack.
5468         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5470 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5472         * elf/stackguard-macros.h: Remove file.
5473         * sysdeps/generic/stackguard-macros.h: New file.
5474         * sysdeps/i386/stackguard-macros.h: Likewise.
5475         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5476         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5477         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5478         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5479         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5480         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5481         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5482         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5483         <elf/stackguard-macros.h>.
5485         [BZ #14109]
5486         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5487         __aligned__ in attribute.
5488         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5489         (gregset_t): Likewise.
5491 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5493         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5494         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5495         * sysdeps/x86_64/x32/Implies-after: New file.
5497 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5499         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5500         and access return value for _dl_profile_fixup.  Use R10_LP to
5501         load frame size.
5503 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5505         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5507 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5509         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5510         * sysdeps/x86_64/x32/sysdep.h: New file.
5512 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5514         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5515         * sysdeps/x86_64/setjmp.S: Likewise.
5517 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5519         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5520         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5521         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5522         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5523         remove unused global constant.
5525 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5527         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5528         include of <not-cancel.h>.
5530 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5532         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5534 2012-05-15  Jeff Law  <law@redhat.com>
5535             Andreas Jaeger  <aj@suse.de>
5537         [BZ #13594]
5538         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5539         out from...
5540         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5541         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5542         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5543         code changing __hst_map_handle.map.
5545 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5547         * configure.in (sysnames): Look for Implies-before and Implies-after
5548         files.
5549         * configure: Regenerated.
5551 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5553         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5554         8-byte data alignment with LP_SIZE alignment.
5556 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5558         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5559         into R10_LP.
5561 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5563         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5565 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5567         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5568         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5569         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5570         Likewise.
5571         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5573 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5575         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5576         (stackinfo_sub_sp): Likewise.
5578 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5580         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5581         RAX_LP.
5583 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5585         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5586         into R*_LP.
5588 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5590         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5591         sizes into R*_LP.
5593 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5595         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5597 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5599         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5600         into R11_LP and load __x86_64_shared_cache_size_half into
5601         R8_LP.
5603 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5605         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5606         R8_LP.
5608 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5610         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5611         logb for POWER7.
5612         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5613         logbf for POWER7.
5614         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5615         logbl for POWER7.
5616         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5617         powerpc32/power7/fpu/s_logb.c via #include.
5618         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5619         powerpc32/power7/fpu/s_logbf.c via #include.
5620         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5621         powerpc32/power7/fpu/s_logbl.c via #include.
5623 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5625         * README.libm: Remove file.
5627 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5629         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5630         count for x32.  Use R*_LP and omit operand-size suffix.
5632 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5634         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5635         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5636         * sysdeps/x86_64/x32/shlib-versions: New file.
5638 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5640         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5641         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5642         Use _dl_fatal_printf instead.
5644 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5646         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5647         set if not set by the user.  Do not allow for being unset.
5648         * sysdeps/unix/sysv/linux/configure: Regenerated.
5650 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5652         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5653         the `q' suffix from lea and replace .quad with ASM_ADDR.
5655 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5657         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5658         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5659         instead of $17.
5660         (PTR_DEMANGLE): Likewise.
5662 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5664         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5665         (LP_OP): Likewise.
5666         (ASM_ADDR): Likewise.
5667         (RAX_LP): Likewise.
5668         (RBP_LP): Likewise.
5669         (RBX_LP): Likewise.
5670         (RCX_LP): Likewise.
5671         (RDI_LP): Likewise.
5672         (RSI_LP): Likewise.
5673         (RSP_LP): Likewise.
5674         (R8_LP): Likewise.
5675         (R9_LP): Likewise.
5676         (R10_LP): Likewise.
5677         (R10_LP): Likewise.
5678         (R11_LP): Likewise.
5679         (R12_LP): Likewise.
5680         (R13_LP): Likewise.
5681         (R14_LP): Likewise.
5682         (R15_LP): Likewise.
5684 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5686         * sysdeps/x86_64/x32/dl-machine.h: New file.
5688 2012-05-14  Andreas Jaeger  <aj@suse.de>
5690         * manual/Makefile (subdir): Remove export of subdir.
5691         (all): Remove target.
5692         (.PHONY): Remove all from list.
5693         (mkinstalldirs): Remove.
5694         (.PHONY): Remove installdirs from list.
5695         ($(inst_infodir)/libc.info): Use make-target-directory.
5696         (installdirs): Remove.
5697         (subdir_%): Remove.
5698         (glibc-targets): Remove.
5699         (lib): Remove.
5700         (stubs): Remove.
5701         ($(objpfx)stubs ../po/manual.pot): Remove.
5702         ($(objpfx)stamp%): Remove.
5703         (make-target-directory): Remove.
5704         (subdir_install): Remove.
5705         (routines): Remove.
5706         (aux): Remove.
5707         (sources): Remove.
5708         (objects): Remove.
5709         (headers): Remove.
5711         [BZ #13750]
5712         * manual/.gitignore: Remove, it's not needed anymore.
5713         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5714         all files in it.
5715         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5716         directory.
5717         (texis): Renamed to $(objpfx)texis.
5718         (texis-path): New, contains path to generated files.
5719         (chapters.%): Use texis-path for complete path, add extra argument
5720         libc-texinfo.sh.
5721         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5722         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5723         (summary,texi, stamp-summary): Use complete path of
5724         files. Generate files in build dir.
5725         (dir-add.texi): Build in build dir.
5726         (libm-err.texi,stamp-libm-err): Likewise.
5727         (version.texi, stamp-version): Likewise.
5728         (.%c.texi): Likewise.
5729         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5730         (mostlyclean): Remove target.
5731         (realclean): Remove target.
5732         (generated): Add new variable with contents from mostlyclean and
5733         realclean, remove entries duplicated in common-mostlyclean, add
5734         stamp-libm-err and stamp-version.
5735         (generated-dirs): Add libc directory.
5736         ($(inst_infodir)/libc.info): Install files from build dir.
5738         * manual/install.texi (Configuring and compiling): Adjust since
5739         the info files are not part of the tar ball anymore.
5741 2012-05-14  Andreas Jaeger  <aj@suse.de>
5743         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5744         variable.
5746 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5748         [BZ #13717]
5749         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5750         to 2.2.0 where earlier.
5751         * sysdeps/unix/sysv/linux/configure: Regenerated.
5752         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5753         Remove conditional code.
5754         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5755         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5756         Remove conditional code.
5757         [!__NR_lchown]: Likewise.
5758         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5759         [__NR_lchown]: Likewise.
5760         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5761         comment referencing __ASSUME_LCHOWN_SYSCALL.
5762         * sysdeps/unix/sysv/linux/i386/sigaction.c
5763         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5764         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5765         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5766         Remove conditional code.
5767         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5768         (__protocol_available): Remove #if 0 code.
5769         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5770         conditional code.
5771         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5772         * sysdeps/unix/sysv/linux/kernel-features.h
5773         (__ASSUME_GETCWD_SYSCALL): Don't define.
5774         (__ASSUME_REALTIME_SIGNALS): Likewise.
5775         (__ASSUME_PREAD_SYSCALL): Likewise.
5776         (__ASSUME_PWRITE_SYSCALL): Likewise.
5777         (__ASSUME_POLL_SYSCALL): Likewise.
5778         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5779         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5780         non-SPARC.
5781         (__ASSUME_SIOCGIFNAME): Don't define.
5782         (__ASSUME_MSG_NOSIGNAL): Likewise.
5783         (__ASSUME_SENDFILE): Define unconditionally.
5784         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5785         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5786         conditional code.
5787         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5788         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5789         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5790         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5791         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5792         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5793         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5795         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5796         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5798         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5799         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5801         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5802         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5804         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5805         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5807         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5808         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5810         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5811         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5813         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5814         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5816         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5817         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5818         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5819         Remove conditional code.
5820         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5821         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5822         Remove conditional code.
5823         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5824         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5825         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5826         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5827         Remove conditional code.
5828         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5829         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5830         Remove conditional code.
5831         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5832         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5833         Remove conditional code.
5834         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5835         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5836         Remove conditional code.
5837         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5838         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5839         Remove conditional code.
5840         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5841         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5842         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5843         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5844         * sysdeps/unix/sysv/linux/sigaction.c
5845         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5846         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5847         * sysdeps/unix/sysv/linux/sigpending.c
5848         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5849         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5850         * sysdeps/unix/sysv/linux/sigprocmask.c
5851         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5852         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5853         * sysdeps/unix/sysv/linux/sigsuspend.c
5854         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5855         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5856         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5857         (__libc_missing_rt_sigs): Remove.
5858         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5859         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5860         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5861         Remove conditional code.
5862         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5863         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5864         return 1.
5865         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5866         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5867         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5868         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5870 2012-05-14  Andreas Jaeger  <aj@suse.de>
5872         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5873         it's not used in glibc.
5874         (__coshm1): Likewise.
5875         (__acosh1p): Likewise.
5876         (__sgn): Likewise.
5878         * manual/string.texi (Copying and Concatenation): Add missing
5879         variable in concat example.
5880         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5882 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5884         [BZ #14103]
5885         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5886         __builtin_clzl with __builtin_clzll.
5888 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5890         [BZ #14104]
5891         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5892         libc_freeres_ptr.
5894 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5896         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5897         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5898         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5899         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5901 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5903         * NEWS: Update ia64 info.
5905 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5907         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5908         used as bcopy.
5910 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5912         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5913         * sysdeps/unix/syscalls.list (dup3): Likewise.
5914         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5915         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5917 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5919         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5920         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5922 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5924         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5925         thread pointer.
5926         (TLS_IE): Use mov/add instead of movq/addq to load thread
5927         pointer.
5928         (TLS_GD_PREFIX): New.
5929         (TLS_GD): Use it.
5931 2012-05-11  David S. Miller  <davem@davemloft.net>
5933         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5934         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5935         (_FPU_SETCW): Likewise.
5937 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5939         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5940         is 32-byte aligned.
5942 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5944         [BZ #11837]
5945         * iconvdata/gb18030.c: Update tables.
5946         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5947         characters specially.
5948         (BODY for TO_LOOP): Add encoding of missing ranges.
5950 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5952         [BZ #13673]
5953         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5954         * sysdeps/mach/hurd/dup3.c: Likewise.
5955         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5956         * sysdeps/powerpc/memmove.c:: Likewise.
5958 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5960         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5961         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5963 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5965         * elf/elf.h (R_X86_64_RELATIVE64): New.
5966         (R_X86_64_NUM): Updated.
5967         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5968         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5969         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5970         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5971         tst-quad1pie tst-quad2pie
5972         (modules-names): Add tst-quadmod1 tst-quadmod2.
5973         ($(objpfx)tst-quad1): New dependency.
5974         ($(objpfx)tst-quad2): Likewise.
5975         ($(objpfx)tst-quad1pie): Likewise.
5976         ($(objpfx)tst-quad2pie): Likewise.
5977         * sysdeps/x86_64/tst-quad1.c: New file.
5978         * sysdeps/x86_64/tst-quad1pie.c: New file.
5979         * sysdeps/x86_64/tst-quad2.c: Likewise.
5980         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5981         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5982         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5983         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5984         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5986 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5988         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5989         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5990         * streams/stropts.h (t_scalar_t): Define type.
5992         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5993         (_PATH_PRESERVE): Set to "/var/lib".
5994         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5996         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5997         instead of int.
5999         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6000         if __dir_mkfile succeeded.
6002         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6003         checking for _hurd_dtablesize.  Unlock it right after having
6004         finished _hurd_dtable allocation.
6006 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6008         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6009         * sysdeps/mach/hurd/configure: Regenerated.
6010         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6011         special-casing to...
6012         * sysdeps/gnu/configure.in: ... this new file.
6013         * sysdeps/unix/sysv/linux/configure: Regenerated.
6014         * sysdeps/gnu/configure: New generated file.
6016         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6017         for Linux: use nsec instead of usec, as well as:
6018         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6019         members of type struct timespec.
6020         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6021         New macros.
6022         (struct stat64): Likewise.
6023         (_STATBUF_ST_NSEC): New macro.
6024         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6026         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6027         __strtoul_internal rather than strtoul.
6029 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6031         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6032         and reject them.
6034 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6036         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6037         which preserves existing values.
6038         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6040 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6042         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6043         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6044         greater than FD_SETSIZE.
6046 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6048         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6049         allocated, call __vm_protect to finish enabling the existing space, and
6050         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6051         allocate the remainder.
6053 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6055         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6056         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6058 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6060         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6061         sysdeps/mach/hurd/readlink.c.
6063         * posix/tst-sysconf.c (posix_options): Only use
6064         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6065         _POSIX_SYNCHRONIZED_IO when they are defined
6066         * sysdeps/mach/hurd/bits/posix_opt.h:
6067         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6068         (_XOPEN_REALTIME): Undefine macro.
6069         (_XOPEN_REALTIME_THREADS): Undefine macro.
6070         (_XOPEN_SHM): Undefine macro.
6071         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6072         macro to -1.
6073         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6074         macro to -1.
6075         (_POSIX_ASYNC_IO): Undefine macro.
6076         (_POSIX_PRIORITIZED_IO): Undefine macro.
6077         (_POSIX_SPIN_LOCKS): Define macro to -1.
6079         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6080         SA_NODEFER, SA_RESETHAND.
6081         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6082         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6083         F_DUPFD_CLOEXEC.
6085 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6087         * elf/Makefile (pldd-modules): Define unconditionally.
6089 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6091         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6093 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6095         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6096         Return ENOENT when name is empty.
6097         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6099 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6101         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6103         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6105 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6107         Fix mlock in all cases except non-readable pages.
6108         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6109         instead of VM_PROT_ALL as parameter to __vm_wire function.
6111         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6112         (__mkdir): When path is `/', just fail with EEXIST.
6113         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6115 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6117         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6118         <sys/uio.h> (for writev).
6119         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6120         and <sys/param.h> (for MIN).
6122 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6124         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6125         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6126         if interrupted.
6128 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6130         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6131         Depend on against $(link-rpcuserlibs).
6133 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6135         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6136         (__libc_stack_end): Do not use attribute_relro.
6137         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6138         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6139         to libthread-provided value.
6140         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6141         attribute_relro.
6143 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6145         [BZ #3748]
6146         * bits/libc-lock.h (__libc_once_get): New macro.
6147         * sysdeps/mach/bits/libc-lock.h: Likewise.
6148         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6149         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6150         instead of using implementation details.
6152         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6153         * libio/freopen.c: Likewise.
6154         * libio/freopen64.c: Likewise.
6155         * misc/syslog.c: Likewise.
6156         * nscd/connections.c: Likewise.
6157         * nscd/netgroupcache.c: Likewise.
6158         * sysdeps/posix/getcwd.c: Likewise.
6160 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6162         * math/w_ilogbf.c: Add #include <limits.h>.
6164 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6166         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6167         path instead of returning without unlocking.
6169         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6170         immediate-write ioctls.
6171         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6173 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6175         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6176         __builtin_frame_address instead of making assumptions about the
6177         location of the return address relative to DATA.  Force early load of
6178         the return address.
6179         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6180         __builtin_frame_address.
6182         dup3 for GNU Hurd.
6183         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6184         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6185         implement dup3 and do some further code clean-ups.
6186         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6187         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6189 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6191         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6193         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6194         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6195         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6196         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6197         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6198         d->port.lock.
6200         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6201         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6202         when handler == SIG_ERR, not when handler != SIG_ERR.
6204 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6206         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6207         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6208         definitions.
6210         accept4 for GNU Hurd.
6211         * include/sys/socket.h (__libc_accept4): New prototype.
6212         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6213         to implement __libc_accept4.
6214         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6215         __libc_accept4.
6216         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6218         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6219         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6220         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6221         signal-defines.sym.
6223 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6225         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6227 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6229         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6230         assertion on O_CLOEXEC flag.
6231         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6232         * hurd/intern-fd.c: Likewise.
6233         * hurd/port2fd.c: Likewise.
6235 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6237         [BZ #3906]
6238         * bits/in.h (IPV6_PKTINFO): Define new macro.
6239         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6241 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6243         [BZ #13954]
6244         [BZ #13955]
6245         [BZ #13956]
6246         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6247         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6248         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6249         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6250         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6251         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6252         * math/libm-test.inc (logb_test) : Additional logb tests.
6254 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6255             Andreas Jaeger  <aj@suse.de>
6257         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6258         * configure: Regenerated.
6259         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6260         * config.make.in (link-obsolete-rpc): New substituted variable.
6261         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6262         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6263         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6264         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6265         so that libc.a contains the symbols.
6266         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6267         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6268         * sunrpc/auth_none.c: Likewise.
6269         * sunrpc/auth_unix.c: Likewise.
6270         * sunrpc/authdes_prot.c: Likewise.
6271         * sunrpc/authuxprot.c: Likewise.
6272         * sunrpc/clnt_gen.c: Likewise.
6273         * sunrpc/clnt_perr.c: Likewise.
6274         * sunrpc/clnt_raw.c: Likewise.
6275         * sunrpc/clnt_simp.c: Likewise.
6276         * sunrpc/clnt_tcp.c: Likewise.
6277         * sunrpc/clnt_udp.c: Likewise.
6278         * sunrpc/clnt_unix.c: Likewise.
6279         * sunrpc/des_crypt.c: Likewise.
6280         * sunrpc/des_soft.c: Likewise.
6281         * sunrpc/get_myaddr.c: Likewise.
6282         * sunrpc/key_call.c: Likewise.
6283         * sunrpc/key_prot.c: Likewise.
6284         * sunrpc/netname.c: Likewise.
6285         * sunrpc/pm_getmaps.c: Likewise.
6286         * sunrpc/pm_getport.c: Likewise.
6287         * sunrpc/pmap_clnt.c: Likewise.
6288         * sunrpc/pmap_prot.c: Likewise.
6289         * sunrpc/pmap_prot2.c: Likewise.
6290         * sunrpc/pmap_rmt.c: Likewise.
6291         * sunrpc/publickey.c: Likewise.
6292         * sunrpc/rpc_cmsg.c: Likewise.
6293         * sunrpc/rpc_common.c: Likewise.
6294         * sunrpc/rpc_dtable.c: Likewise.
6295         * sunrpc/rpc_prot.c: Likewise.
6296         * sunrpc/rpc_thread.c: Likewise.
6297         * sunrpc/rtime.c: Likewise.
6298         * sunrpc/svc.c: Likewise.
6299         * sunrpc/svc_auth.c: Likewise.
6300         * sunrpc/svc_raw.c: Likewise.
6301         * sunrpc/svc_run.c: Likewise.
6302         * sunrpc/svc_tcp.c: Likewise.
6303         * sunrpc/svc_udp.c: Likewise.
6304         * sunrpc/svc_unix.c: Likewise.
6305         * sunrpc/svcauth_des.c: Likewise.
6306         * sunrpc/xcrypt.c: Likewise.
6307         * sunrpc/xdr.c: Likewise.
6308         * sunrpc/xdr_array.c: Likewise.
6309         * sunrpc/xdr_float.c: Likewise.
6310         * sunrpc/xdr_intXX_t.c: Likewise.
6311         * sunrpc/xdr_mem.c: Likewise.
6312         * sunrpc/xdr_rec.c: Likewise.
6313         * sunrpc/xdr_ref.c: Likewise.
6314         * sunrpc/xdr_sizeof.c: Likewise.
6315         * sunrpc/xdr_stdio.c: Likewise.
6317 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6319         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6320         change.  Update copyright years.
6322 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6324         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6326 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6327             Joseph Myers  <joseph@codesourcery.com>
6328             Paul Pluzhnikov  <ppluzhnikov@google.com>
6330         [BZ #14012]
6331         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6332         requiring rpcgen.
6333         [cross-compiling] (extra-libs): Likewise.
6334         [cross-compiling] (extra-libs-others): Likewise.
6335         [cross-compiling] (librpcsvc-routines): Likewise.
6336         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6337         [cross-compiling] (omit-deps): Likewise.
6338         (sunrpc-CPPFLAGS): New variable.
6339         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6340         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6341         (cross-rpcgen-objs): New variable.
6342         (extra-objs): Append $(cross-rpcgen-objs).
6343         ($(cross-rpcgen-objs)): New rule.
6344         ($(objpfx)cross-rpcgen): Likewise.
6345         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6346         comment.
6347         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6348         ($(objpfx)x%.stmp): Likewise.
6349         * sunrpc/proto.h [IS_IN_build] (_): Define.
6350         [IS_IN_build] (_libc_intl_domainname): Likewise.
6352 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6354         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6355         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6356         and R_X86_64_TPOFF64.
6358 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6360         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6361         sysdeps/unix/sysv/syscalls.list.
6362         (stime): Likewise.
6363         (utime): Likewise.
6364         * sysdeps/unix/sysv/syscalls.list: Remove file.
6366 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6368         [BZ #3440]
6369         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6370         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6371         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6372         (__LC_IDENTIFICATION): Make these macros useful in #if
6373         expressions, as required by C99.
6375 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6377         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6378         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6379         after this.
6381 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6383         * stdlib/longlong.h: Updated from GCC.
6385 2012-05-09  Andreas Jaeger  <aj@suse.de>
6387         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6388         default is first entry.
6389         (run_mode): Set type.
6390         (main): Remove informal message about syslog.
6391         (options): Fix typo.
6393         [BZ #14053]
6394         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6395         to asm.
6396         (lrint): Likewise.
6397         (llrintf): Likewise.
6398         (llrint): Likewise.
6399         (rint): Likewise.
6400         (rintf): Likewise.
6401         (nearbyint): Likewise.
6402         (nearbyintf): Likewise.
6404 2012-05-09  Andreas Jaeger  <aj@suse.de>
6405             Pedro Alves  <palves@redhat.com>
6407         * nscd/nscd.c (run_mode): Use enum.
6408         (main): Cleanup coding style issue.
6410 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6411             Andreas Jaeger  <aj@suse.de>
6413         * nscd/nscd.c (go_background): Replaced with...
6414         (run_mode): ... this.
6415         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6416         (options): Add -F --foreground.
6417         (main): Implement it.
6418         (parse_opt): Parse it.
6420 2012-05-09  Andreas Jaeger  <aj@suse.de>
6422         [BZ #14083]
6423         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6424         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6425         -Wconversion warning.
6426         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6427         Likewise.
6429 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6431         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6432         == 0.
6433         (LC_ALL): Use macro-int-constant.
6434         (LC_COLLATE): Likewise.
6435         (LC_CTYPE): Likewise.
6436         (LC_MESSAGES): Likewise.
6437         (LC_MONETARY): Likewise.
6438         (LC_NUMERIC): Likewise.
6439         (LC_TIME): Likewise.
6440         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6441         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6442         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6443         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6444         Specify type.
6445         [C99-based standards] (float_t): Expect type.
6446         [C99-based standards] (double_t): Expect type.
6447         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6448         type.
6449         [C99-based standards] (HUGE_VALL): Likewise.
6450         [C99-based standards] (INFINITY): Likewise.
6451         [C99-based standards] (NAN): Likewise.
6452         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6453         [C99-based standards] (FP_NAN): Likewise.
6454         [C99-based standards] (FP_NORMAL): Likewise.
6455         [C99-based standards] (FP_SUBNORMAL): Likewise.
6456         [C99-based standards] (FP_ZERO): Likewise.
6457         [C99-based standards] (FP_FAST_FMA): Use
6458         optional-macro-int-constant.  Specify type.  Require == 1.
6459         [C99-based standards] (FP_FAST_FMAF): Likewise.
6460         [C99-based standards] (FP_FAST_FMAL): Likewise.
6461         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6462         [C99-based standards] (FP_ILOGBNAN): Likewise.
6463         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6464         Specify type.
6465         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6466         [C99-based standards] (math_errhandling): Specify type.
6467         [ISO99 || ISO11] (signgam): Do not allow.
6468         [non-C99-based standards] (copysignf): Do not allow.
6469         [non-C99-based standards] (exp2f): Likewise.
6470         [non-C99-based standards] (log2f): Likewise.
6471         [non-C99-based standards] (modff): Allow.
6472         [non-C99-based standards] (erff): Do not allow.
6473         [non-C99-based standards] (erfcf): Likewise.
6474         [non-C99-based standards] (gammaf): Likewise.
6475         [non-C99-based standards] (hypotf): Likewise.
6476         [non-C99-based standards] (j0f): Likewise.
6477         [non-C99-based standards] (j1f): Likewise.
6478         [non-C99-based standards] (jnf): Likewise.
6479         [non-C99-based standards] (lgammaf): Likewise.
6480         [non-C99-based standards] (tgammaf): Likewise.
6481         [non-C99-based standards] (y0f): Likewise.
6482         [non-C99-based standards] (y1f): Likewise.
6483         [non-C99-based standards] (ynf): Likewise.
6484         [non-C99-based standards] (isnanf): Likewise.
6485         [non-C99-based standards] (acoshf): Likewise.
6486         [non-C99-based standards] (asinhf): Likewise.
6487         [non-C99-based standards] (atanhf): Likewise.
6488         [non-C99-based standards] (cbrtf): Likewise.
6489         [non-C99-based standards] (expm1f): Likewise.
6490         [non-C99-based standards] (ilogbf): Likewise.
6491         [non-C99-based standards] (log1pf): Likewise.
6492         [non-C99-based standards] (logbf): Likewise.
6493         [non-C99-based standards] (nextafterf): Likewise.
6494         [non-C99-based standards] (remainderf): Likewise.
6495         [non-C99-based standards] (rintf): Likewise.
6496         [non-C99-based standards] (scalbf): Likewise.
6497         [non-C99-based standards] (copysignl): Likewise.
6498         [non-C99-based standards] (exp2l): Likewise.
6499         [non-C99-based standards] (log2l): Likewise.
6500         [non-C99-based standards] (modfl): Allow.
6501         [non-C99-based standards] (erfl): Do not allow.
6502         [non-C99-based standards] (erfcl): Likewise.
6503         [non-C99-based standards] (gammal): Likewise.
6504         [non-C99-based standards] (hypotl): Likewise.
6505         [non-C99-based standards] (j0l): Likewise.
6506         [non-C99-based standards] (j1l): Likewise.
6507         [non-C99-based standards] (jnl): Likewise.
6508         [non-C99-based standards] (lgammal): Likewise.
6509         [non-C99-based standards] (tgammal): Likewise.
6510         [non-C99-based standards] (y0l): Likewise.
6511         [non-C99-based standards] (y1l): Likewise.
6512         [non-C99-based standards] (ynl): Likewise.
6513         [non-C99-based standards] (isnanl): Likewise.
6514         [non-C99-based standards] (acoshl): Likewise.
6515         [non-C99-based standards] (asinhl): Likewise.
6516         [non-C99-based standards] (atanhl): Likewise.
6517         [non-C99-based standards] (cbrtl): Likewise.
6518         [non-C99-based standards] (expm1l): Likewise.
6519         [non-C99-based standards] (ilogbl): Likewise.
6520         [non-C99-based standards] (log1pl): Likewise.
6521         [non-C99-based standards] (logbl): Likewise.
6522         [non-C99-based standards] (nextafterl): Likewise.
6523         [non-C99-based standards] (remainderl): Likewise.
6524         [non-C99-based standards] (rintl): Likewise.
6525         [non-C99-based standards] (scalbl): Likewise.
6526         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6527         [non-C99-based standards] (FP_*): Do not allow.
6528         [C99-based standards] (FP_*): Change to
6529         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6530         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6531         allow.
6532         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6533         (SIG_ERR): Likewise.
6534         [X/Open-based standards] (SIG_HOLD): Likewise.
6535         (SIG_IGN): Likewise.
6536         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6537         positive value.
6538         (SIGFPE): Likewise.
6539         (SIGILL): Likewise.
6540         (SIGINT): Likewise.
6541         (SIGSEGV): Likewise.
6542         (SIGTER): Likewise.
6543         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6544         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6545         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6546         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6547         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6548         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6549         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6550         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6551         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6552         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6553         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6554         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6555         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6556         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6557         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6558         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6559         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6560         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6561         [X/Open-based standards] (SIGTRAP): Likewise.
6562         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6563         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6564         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6565         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6566         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6567         allow.
6569 2012-05-08  Ian Wienand  <ianw@vmware.com>
6571         [BZ #14080]
6572         * time/tzset.c (__tzset_parse_tz): Update default rules for
6573         daylight time changes in the Energy Policy Act of 2005.
6575 2012-05-09  Andreas Jaeger  <aj@suse.de>
6577         [BZ #13983]
6578         * elf/ldconfig.c (parse_conf): Change string to make clear that
6579         ldconfig only issued a warning if ld.so.conf does not exist.
6581 2012-05-08  David S. Miller  <davem@davemloft.net>
6583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6584         movxtod instead of popping the value on the stack.
6586         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6588 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6590         * config.h.in: Add HAVE_ARM_PCS_VFP.
6592 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6594         [BZ #13979]
6595         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6596         checking but the checks are disabled for any reason.
6598 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6600         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6601         and ELF64_R_TYPE with ELFW(R_TYPE).
6603 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6605         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6606         (ulimit): Likewise.
6608         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6609         (settimeofday): Likewise.
6611 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6613         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6614         a struct th_u2 inside the union, and move tu_block/tu_code into
6615         a new th_u3 union of tu_block/tu_code inside of that.  Move
6616         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6617         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6618         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6619         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6620         (th_stuff): Change to th_u1.tu_stuff.
6621         (th_data): Define.
6622         (th_msg): Change to th_u1.th_u2.tu_data.
6624 2012-05-07  David S. Miller  <davem@davemloft.net>
6626         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6628         [BZ #14074]
6629         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6630         (SETUP_PIC_REG): Use it.
6631         (SETUP_PIC_REG_LEAF): Use it.
6633 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6635         [BZ #13885]
6636         [BZ #13923]
6637         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6638         USE_AS_EXPM1L.
6639         (EXPL_FINITE): Likewise.
6640         (FLDLOG): Likewise.
6641         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6642         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6643         e_expl.S.
6644         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6645         USE_AS_EXPM1L.
6646         (EXPL_FINITE): Likewise.
6647         (FLDLOG): Likewise.
6648         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6649         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6650         e_expl.S.
6651         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6652         test of -max_value argument for long double.
6653         * sysdeps/i386/fpu/libm-test-ulps: Update.
6654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6656 2012-05-06  David S. Miller  <davem@davemloft.net>
6658         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6659         quad soft-float symbols whose references which are compiler
6660         generated.
6661         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6663 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6665         [BZ #13884]
6666         [BZ #13914]
6667         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6668         USE_AS_EXP10L.
6669         (EXPL_FINITE): Likewise.
6670         (FLDLOG): Likewise.
6671         (c0): Likewise.
6672         (c1): Likewise.
6673         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6674         Adjust comments for base varying.
6675         (__expl_finite): Change alias to EXPL_FINITE.
6676         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6677         e_expl.S.
6678         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6679         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6680         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6681         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6682         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6683         USE_AS_EXP10L.
6684         (EXPL_FINITE): Likewise.
6685         (FLDLOG): Likewise.
6686         (c0): Likewise.
6687         (c1): Likewise.
6688         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6689         Adjust comments for base varying.
6690         (__expl_finite): Change alias to EXPL_FINITE.
6691         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6692         tests for bugs.
6693         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6695         [BZ #14064]
6696         * math/libm-test.inc (check_float_internal): Correct ulp
6697         calculation for subnormal expected results.
6699 2012-05-06  Andreas Jaeger  <aj@suse.de>
6701         * Makeconfig (+math-flags): New, set to -frounding-math.
6702         (+cflags): Add +math-flags so that all of glibc gets compiled with
6703         it.
6705         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6707 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6709         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6710         Disable one test.
6712         [BZ #13787]
6713         [BZ #13922]
6714         [BZ #14036]
6715         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6716         (__ieee754_expl): Allow for and saturate large arguments.
6717         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6718         (u_threshold): Likewise.
6719         (__exp): Call __ieee754_exp before checking for overflow and
6720         underflow.
6721         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6722         (u_threshold): Likewise.
6723         (__expf): Call __ieee754_expf before checking for overflow and
6724         underflow.
6725         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6726         (u_threshold): Likewise.
6727         (__expl): Call __ieee754_expl before checking for overflow and
6728         underflow.
6729         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6730         (__ieee754_expl): Allow for and saturate large arguments.
6731         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6732         missing overflow exception on overflow.
6733         (expm1_test): Do not allow missing overflow exception on overflow.
6735         * sysdeps/i386/fpu/e_expl.c: Move to ...
6736         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6737         rather than using inline asm.
6738         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6739         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6740         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6742         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6743         (nice): Likewise.
6744         (poll): Likewise.
6745         (signal): Likewise.
6746         (time): Likewise.
6747         (times): Likewise.
6749 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6751         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6752         sysdeps/unix/common/syscalls.list.
6753         (fchmod): Likewise.
6754         (fchown): Likewise.
6755         (ftruncate): Likewise.
6756         (getrusage): Likewise.
6757         (gettimeofday): Likewise.
6758         (setpgid): Likewise.
6759         (setregid): Likewise.
6760         (setreuid): Likewise.
6761         (sigaction): Likewise.
6762         (truncate): Likewise.
6763         (vhangup): Likewise.
6764         * sysdeps/unix/common/syscalls.list: Remove file.
6765         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6766         * sysdeps/unix/sysv/linux/Implies: Likewise.
6768 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6770         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6772         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6773         Moved to ...
6774         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6775         Here.
6776         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6777         to ...
6778         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6779         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6780         to ...
6781         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6782         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6783         to ...
6784         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6785         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6786         to ...
6787         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6788         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6789         to ...
6790         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6791         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6792         to ...
6793         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6794         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6795         to ...
6796         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6797         Here.
6798         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6799         to ...
6800         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6801         Here.
6802         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6803         to ...
6804         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6805         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6806         Moved to ...
6807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6808         Here.
6809         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6810         to ...
6811         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6813 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6815         * sysdeps/unix/common/bits/dirent.h: Remove file.
6816         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6818         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6819         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6820         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6821         * sysdeps/unix/bsd/isatty.c: Likewise.
6822         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6823         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6824         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6826 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6828         [BZ #13563]
6829         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6830         long double comparison inaccuracies.
6831         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6832         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6834 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6836         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6837         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6839 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6841         [BZ #14049]
6842         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6843         nonzero digits before rounding a hex value.
6844         * stdlib/tst-strtod.c (tests): Add another test.
6846 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6848         * sysdeps/s390/fpu/libm-test-ulps: Update.
6850 2012-05-03  Andreas Jaeger  <aj@suse.de>
6852         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6853         does not get optimized out.
6854         (malloc_opt_barrier): New.
6856 2012-05-03  Andreas Jaeger  <aj@suse.de>
6857             Roland McGrath  <roland@hack.frob.com>
6859         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6860         intermediate file deletion.
6861         (generated): Add .symlist files.
6863 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6865         [BZ #13775]
6866         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6867         Redirect under this condition.
6868         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6869         [__USE_GNU] (__dprintf_chk): Not under this condition.
6870         [__USE_GNU] (__vdprintf_chk): Likewise.
6871         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6872         under this condition.
6873         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6874         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6875         [__USE_XOPEN2K8] (vdprintf): Likewise.
6876         [__USE_GNU] (__dprintf_chk): Not under this condition.
6877         [__USE_GNU] (__vdprintf_chk): Likewise.
6878         [__USE_GNU] (dprintf): Likewise.
6879         [__USE_GNU] (vdprintf): Likewise.
6881 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6883         * elf/Makefile (common-generated): Set this instead of generated for
6884         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6885         $(all-built-dso)-derived lists.
6887 2012-05-03  Andreas Jaeger  <aj@suse.de>
6889         * sysdeps/i386/fpu/libm-test-ulps: Update.
6891         * FAQ: Removed.
6892         * FAQ.in: Likewise.
6893         * scripts/gen-FAQ.pl: Likewise.
6894         * manual/install.texi (Installation): Point to online location of
6895         FAQ.
6896         * Makefile (files-for-dist): Remove FAQ.
6897         (FAQ): Remove.
6899 2012-05-02  Allan McRae  <allan@archlinux.org>
6901         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6902         (LDFLAGS-reldepmod5.so): Likewise.
6903         (LDFLAGS-reldep6mod1.so): Likewise.
6904         (LDFLAGS-reldep6mod4.so): Likewise.
6905         (LDFLAGS-reldep8mod3.so): Likewise.
6906         (LDFLAGS-unload4mod1.so): Likewise.
6907         (LDFLAGS-unload4mod2.so): Likewise.
6908         (LDFLAGS-tst-initorder): Likewise.
6909         (LDFLAGS-tst-initordera2.so): Likewise.
6910         (LDFLAGS-tst-initordera3.so): Likewise.
6911         (LDFLAGS-tst-initordera4.so): Likewise.
6912         (LDFLAGS-tst-initorderb2.so): Likewise.
6913         (LDFLAGS-noload): Likewise.
6914         (LDFLAGS-next): Likewise.
6915         (LDFLAGS-order2mod1.so): Likewise.
6916         (LDFLAGS-order2mod2.so): Likewise.
6917         (LDFLAGS-tst-initorder2): Likewise.
6918         (LDFLAGS-tst-initorder2a.so): Likewise.
6919         (LDFLAGS-tst-initorder2b.so): Likewise.
6920         (LDFLAGS-tst-initorder2c.so): Likewise.
6921         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6923 2012-05-02  David S. Miller  <davem@davemloft.net>
6925         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6927 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6929         [BZ #14055]
6930         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6932 2012-05-02  Andreas Jaeger  <aj@suse.de>
6934         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6935         since we manipulate rounding mode.
6936         (CPPFLAGS-test-idouble.c): Likewise.
6937         (CPPFLAGS-test-ifloat.c): Likewise.
6938         (CFLAGS-test-ldouble.c): Likewise.
6939         (CFLAGS-test-double.c): Likewise.
6940         (CFLAGS-test-float.c): Likewise.
6941         (CFLAGS-test-misc.c): Likewise.
6942         (CFLAGS-test-test-fenv.c): Likewise.
6944 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6946         [BZ #2550]
6947         [BZ #2570]
6948         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6949         comparisons to determine direction to adjust input.
6951 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6953         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6954         output to the target.
6956         * scripts/localplt.awk: New file.
6957         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6958         (check-localplt-CFLAGS): Variable removed.
6959         ($(all-built-dso:=.jmprel)): New static pattern rule.
6960         (generated): Add those targets.
6961         (localplt-built-dso): New variable.
6962         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6964         * elf/check-localplt.c: File removed.
6966         * scripts/check-execstack.awk: New file.
6967         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6968         (check-execstack-CFLAGS): Variable removed.
6969         ($(objpfx)check-execstack.h): Target removed.
6970         ($(objpfx)execstack-default): New target.
6971         (generated): Add that instead of check-execstack.h.
6972         ($(all-built-dso:=.phdr)): New static pattern rule.
6973         (generated): Add those targets.
6974         * elf/check-execstack.c: File removed.
6976         * scripts/check-textrel.awk: New file.
6977         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6978         (check-textrel-CFLAGS): Variable removed.
6979         (all-built-dso): Use := to define.o
6980         ($(all-built-dso:=.dyn)): New static pattern rule.
6981         (generated): Add those targets.
6982         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6983         * config.make.in (READELF): New substituted variable.
6984         * elf/check-textrel.c: File removed.
6986 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6988         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6989         allow.
6990         * conform/data/ctype.h-data [C99-based standards] (isblank):
6991         Expect function.
6992         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6993         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6994         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6995         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6996         Specify type.  Require positive value.
6997         (EILSEQ): Likewise.
6998         (ERANGE): Likewise.
6999         [ISO || POSIX] (EILSEQ): Do not expect.
7000         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7001         Specify type.  Require positive value.
7002         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7003         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7004         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7005         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7006         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7007         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7008         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7009         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7010         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7011         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7012         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7013         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7014         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7015         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7016         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7017         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7018         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7019         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7020         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7021         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7022         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7023         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7024         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7025         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7026         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7027         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7028         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7029         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7030         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7031         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7032         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7033         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7034         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7035         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7036         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7037         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7038         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7039         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7040         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7041         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7042         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7043         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7044         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7045         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7046         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7047         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7048         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7049         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7050         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7051         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7052         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7053         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7054         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7055         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7056         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7057         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7058         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7059         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7060         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7061         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7062         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7063         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7064         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7065         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7066         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7067         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7068         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7069         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7070         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7071         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7072         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7073         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7074         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7075         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7076         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7077         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7078         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7079         Require >= 2.
7080         (FLT_ROUNDS): Expect as macro, not constant.
7081         (FLT_MANT_DIG): Use macro-int-constant.
7082         (DBL_MANT_DIG): Likewise.
7083         (LDBL_MANT_DIG): Likewise.
7084         (FLT_DIG): Likewise.
7085         (DBL_DIG): Likewise.
7086         (LDBL_DIG): Likewise.
7087         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7088         (DBL_MIN_EXP): Likewise.
7089         (LDBL_MIN_EXP): Likewise.
7090         (FLT_MAX_EXP): Use macro-int-constant.
7091         (DBL_MAX_EXP): Likewise.
7092         (LDBL_MAX_EXP): Likewise.
7093         (FLT_MAX_10_EXP): Likewise.
7094         (DBL_MAX_10_EXP): Likewise.
7095         (LDBL_MAX_10_EXP): Likewise.
7096         (FLT_MAX): Use macro-constant.
7097         (DBL_MAX): Likewise.
7098         (LDBL_MAX): Likewise.
7099         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7100         (DBL_EPSILON): Likewise.
7101         (LDBL_EPSILON): Likewise.
7102         (FLT_MIN): Likewise.
7103         (DBL_MIN): Likewise.
7104         (LDBL_MIN): Likewise.
7105         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7106         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7107         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7108         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7109         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7110         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7111         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7112         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7113         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7114         [ISO11] (FLT_TRUE_MIN): Likewise.
7115         [ISO11] (LDBL_TRUE_MIN): Likewise.
7116         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7117         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7118         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7119         (SCHAR_MAX): Likewise.
7120         (UCHAR_MAX): Likewise.
7121         (CHAR_MIN): Likewise.
7122         (CHAR_MAX): Likewise.
7123         (MB_LEN_MAX): Use macro-int-constant.
7124         (SHRT_MIN): Use macro-int-constant.  Specify type.
7125         (SHRT_MAX): Likewise.
7126         (USHRT_MAX): Likewise.
7127         (INT_MAX): Likewise.
7128         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7129         bound negative.
7130         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7131         bound with "U".
7132         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7133         bound with "L".
7134         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7135         bound negative.  Suffix upper bound with "L".
7136         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7137         bound with "UL".
7138         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7139         Specify type.
7140         [C99-based standards] (LLONG_MAX): Likewise.
7141         [C99-based standards] (ULLONG_MAX): Likewise.
7142         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7143         == 0.
7144         [ISO11] (max_align_t): Require type.
7145         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7147         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7148         from $CFLAGS, without defining away __attribute__ calls.
7149         (checknamespace): Use $CFLAGS_namespace.
7151         * conform/conformtest.pl (@keywords): Only include C99 keywords
7152         for standards based on C99 or C11.
7154         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7155         Disable tests.
7156         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7157         UNIX98]: Likewise.
7159         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7160         usability of symbols in #if.
7162         * conform/conformtest.pl: If macro or constant types start
7163         "promoted:", expect the symbol to be of the following type
7164         promoted by the integer promotions.
7166         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7167         in one place.  Also handle "macro-constant".
7169         * conform/conformtest.pl: Only accept expected macro values with
7170         "==".  Parse all "macro" lines in one place.
7171         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7173         * conform/conformtest.pl: Handle braced types on "constant" lines
7174         instead of handling "typed-constant".
7175         * conform/data/signal.h-data: Use "constant" instead of
7176         "typed-constant".
7178         * conform/conformtest.pl: Handle "optional-" at start of lines in
7179         one place rather than duplicating several cases.  Handle each
7180         format of "macro" line with initial "optional-".
7182         * conform/conformtest.pl: Only accept expected constant or
7183         optional-constant values with "==".  Parse all "constant" lines in
7184         one place.  Parse all "optional-constant" lines in one place.
7185         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7186         * conform/data/fmtmsg.h-data: Likewise.
7187         * conform/data/netinet/in.h-data: Likewise.
7188         * conform/data/tar.h-data: Likewise.
7189         * conform/data/limits.h-data: Use "==" form on "constant" and
7190         "optional-constant" lines.
7192         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7193         Use -std=c99 for XOPEN2K.
7194         (@knownproblems): Remove.
7195         (newtoken): Don't check %isknown.
7197         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7198         Do not expect macro.
7199         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7200         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7201         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7202         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7203         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7204         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7205         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7206         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7207         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7208         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7209         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7210         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7211         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7212         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7213         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7214         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7215         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7216         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7223         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7224         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7225         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7228         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7229         [XPG3] (acosh): Likewise.
7230         [XPG3] (asinh): Likewise.
7231         [XPG3] (atanh): Likewise.
7232         [XPG3] (cbrt): Likewise.
7233         [XPG3] (expm1): Likewise.
7234         [XPG3] (ilogb): Likewise.
7235         [XPG3] (log1p): Likewise.
7236         [XPG3] (logb): Likewise.
7237         [XPG3] (nextafter): Likewise.
7238         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7239         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7240         [XPG3] (remainder): Likewise.
7241         [XPG3] (rint): Likewise.
7242         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7243         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7244         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7245         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7246         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7247         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7248         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7249         [UNIX98 || XOPEN2K] (scalb): Expect.
7250         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7251         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7252         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7253         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7254         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7255         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7256         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7257         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7258         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7259         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7260         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7261         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7262         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7263         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7264         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7265         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7266         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7267         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7268         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7295         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7296         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7297         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7298         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7299         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7300         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7301         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7302         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7303         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7304         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7305         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7306         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7307         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7308         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7309         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7310         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7311         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7312         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7313         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7314         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7315         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7316         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7317         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7318         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7319         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7320         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7321         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7322         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7323         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7324         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7325         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7326         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7327         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7328         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7329         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7330         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7331         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7332         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7333         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7334         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7335         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7336         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7337         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7338         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7339         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7340         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7341         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7342         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7343         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7344         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7345         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7346         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7347         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7348         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7349         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7350         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7351         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7352         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7353         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7354         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7355         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7356         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7357         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7358         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7359         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7360         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7361         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7362         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7363         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7364         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7365         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7366         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7367         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7368         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7369         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7370         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7371         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7372         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7373         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7374         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7375         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7376         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7377         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7378         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7379         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7380         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7381         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7382         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7383         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7384         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7385         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7386         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7388         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7389         _XOPEN_SOURCE_EXTENDED for XPG4.
7391         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7393         * Makeconfig (localtime): Remove variable.
7394         (inst_localtime-file): Likewise.
7396 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7399         Update.
7400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7401         Update.
7402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7403         Update.
7404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7405         Update.
7406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7407         Update.
7408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7409         Update.
7410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7411         Update.
7412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7413         Update.
7414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7415         Update.
7417 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7419         [BZ #2550]
7420         [BZ #2570]
7421         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7422         comparisons to determine direction to adjust input.
7423         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7424         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7425         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7426         Likewise.
7427         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7428         Likewise.
7429         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7430         Likewise.
7431         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7432         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7433         Likewise.
7434         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7435         Likewise.
7436         * math/libm-test.inc (nexttoward_test): Add more tests.
7438 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7440         [BZ #14040]
7441         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7442         in version GLIBC_2.1, not GLIBC_2.0.
7443         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7444         Likewise.
7446 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7448         [BZ #13942]
7449         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7450         (1 - x) * (1 + x).
7451         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7452         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7453         * math/libm-test.inc (acos_test): Add more tests.
7454         (asin_test): Likewise.
7455         * sysdeps/i386/fpu/libm-test-ulps: Update.
7456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7458         [BZ #14034]
7459         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7460         of square root.
7461         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7462         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7463         * math/libm-test.inc (acos_test_tonearest): New function.
7464         (acos_test_towardzero): Likewise.
7465         (acos_test_downward): Likewise.
7466         (acos_test_upward): Likewise.
7467         (asin_test_tonearest): Likewise.
7468         (asin_test_towardzero): Likewise.
7469         (asin_test_downward): Likewise.
7470         (asin_test_upward): Likewise.
7471         (main): Call the new functions.
7472         * sysdeps/i386/fpu/libm-test-ulps: Update.
7473         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7475         [BZ #13884]
7476         [BZ #13924]
7477         * math/e_exp10.c: Include <float.h>.
7478         (__ieee754_exp10): Handle underflow here rather than multiplying
7479         large negative argument by M_LN10.
7480         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7481         of __ieee754_expf.
7482         * math/e_exp10l.c: Include <float.h>.
7483         (__ieee754_exp10l): Handle underflow here rather than multiplying
7484         large negative argument by M_LN10l.
7485         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7486         spurious overflow exception on underflow.
7488 2012-04-29  Marek Polacek  <polacek@redhat.com>
7490         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7491         (__fortify_function): New macro.
7492         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7493         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7494         __extern_always_inline.
7495         * libio/bits/stdio2.h: Likewise.
7496         * libio/bits/stdio.h: Likewise.
7497         * string/string.h: Likewise.
7498         * string/bits/string3.h: Likewise.
7499         * include/stdio.h: Likewise.
7500         * stdlib/bits/stdlib.h: Likewise.
7501         * stdlib/stdlib.h: Likewise.
7502         * rt/bits/mqueue2.h: Likewise.
7503         * rt/mqueue.h: Likewise.
7504         * posix/bits/unistd.h: Likewise.
7505         * posix/unistd.h: Likewise.
7506         * io/bits/poll2.h: Likewise.
7507         * io/bits/fcntl2.h: Likewise.
7508         * io/fcntl.h: Likewise.
7509         * io/sys/poll.h: Likewise.
7510         * misc/bits/syslog.h: Likewise.
7511         * misc/bits/syslog-ldbl.h: Likewise.
7512         * misc/sys/syslog.h: Likewise.
7513         * socket/bits/socket2.h: Likewise.
7514         * socket/sys/socket.h: Likewise.
7515         * debug/tst-chk1.c: Likewise.
7516         * wcsmbs/bits/wchar2.h: Likewise.
7517         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7518         * wcsmbs/wchar.h: Likewise.
7520 2012-04-29  Andreas Jaeger  <aj@suse.de>
7522         * Makerules (tests): Remove enable-check-abi protection.
7523         (check-abi-warn): Remove.
7524         (check-abi-%): Remove check-abi-warn usage.
7526         * configure.in: Remove check-abi configure option.
7527         * configure: Regenerated.
7528         * config.make.in (enable-check-abi): Remove.
7530 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7532         [BZ #14033]
7533         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7534         double functions to double *_finite functions.
7536         [BZ #13941]
7537         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7538         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7539         LDBL_MIN_EXP.
7540         * stdio-common/Makefile (tests): Add tst-sprintf3.
7541         * stdio-common/tst-sprintf3.c: New file.
7543         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7544         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7546 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7548         * conform/conformtest.pl: Remove duplicate typed-constant
7549         handling.
7551 2012-04-28  David S. Miller  <davem@davemloft.net>
7553         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7554         (check-abi-%): Remove AWK script prerequisite and explicit
7555         abilist directory.
7556         (check-abi): Rewrite to just diff the symlist with the abilist.
7557         (config-tls, config-abi-config): Delete, no longer used.
7558         (update-abi-%): Remove AWK script and explicit abilist directory.
7559         (update-abi): Rewrite to simply compare and conditionally copy the
7560         symlist and the sysdep abilist file.  Remove update-abi-config
7561         checks.
7562         * abilist/ld.abilist: Remove.
7563         * abilist/libBrokenLocale.abilist: Remove.
7564         * abilist/libanl.abilist: Remove.
7565         * abilist/libcrypt.abilist: Remove.
7566         * abilist/libdl.abilist: Remove.
7567         * abilist/librt.abilist: Remove.
7568         * abilist/libthread_db.abilist: Remove.
7569         * abilist/libutil.abilist: Remove.
7570         * scripts/extract-abilist.awk: Remove.
7571         * scripts/merge-abilist.awk: Remove.
7572         * sysdeps/generic/libcidn.abilist: New file.
7573         * sysdeps/generic/libnss_compat.abilist: New file.
7574         * sysdeps/generic/libnss_db.abilist: New file.
7575         * sysdeps/generic/libnss_dns.abilist: New file.
7576         * sysdeps/generic/libnss_files.abilist: New file.
7577         * sysdeps/generic/libnss_hesiod.abilist: New file.
7578         * sysdeps/generic/libnss_nis.abilist: New file.
7579         * sysdeps/generic/libnss_nisplus.abilist: New file.
7580         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7581         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7582         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7583         file.
7584         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7585         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7586         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7587         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7588         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7589         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7590         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7591         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7592         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7593         file.
7594         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7595         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7596         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7597         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7598         file.
7599         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7600         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7601         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7602         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7603         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7604         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7605         file.
7606         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7607         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7608         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7609         file.
7610         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7611         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7612         New file.
7613         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7614         New file.
7615         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7616         New file.
7617         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7618         New file.
7619         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7620         New file.
7621         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7622         New file.
7623         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7624         New file.
7625         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7626         New file.
7627         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7628         New file.
7629         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7630         New file.
7631         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7632         New file.
7633         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7634         New file.
7635         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7636         New file.
7637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7638         file.
7639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7640         New file.
7641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7642         New file.
7643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7644         file.
7645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7646         New file.
7647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7648         New file.
7649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7650         file.
7651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7652         New file.
7653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7654         New file.
7655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7656         New file.
7657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7658         New file.
7659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7660         New file.
7661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7662         New file.
7663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7664         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7665         file.
7666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7667         New file.
7668         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7669         file.
7670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7671         file.
7672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7673         file.
7674         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7675         file.
7676         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7677         file.
7678         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7679         New file.
7680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7681         file.
7682         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7683         file.
7684         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7685         New file.
7686         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7687         file.
7688         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7690         file.
7691         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7692         New file.
7693         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7694         file.
7695         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7696         file.
7697         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7698         file.
7699         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7700         file.
7701         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7702         file.
7703         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7704         New file.
7705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7706         file.
7707         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7708         file.
7709         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7710         New file.
7711         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7712         file.
7713         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7714         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7715         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7716         file.
7717         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7718         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7719         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7720         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7721         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7722         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7723         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7724         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7725         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7726         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7727         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7728         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7729         file.
7730         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7731         New file.
7732         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7733         file.
7734         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7735         file.
7736         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7737         file.
7738         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7739         file.
7740         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7741         file.
7742         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7743         New file.
7744         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7745         New file.
7746         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7747         file.
7748         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7749         New file.
7750         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7751         file.
7752         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7753         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7754         file.
7755         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7756         New file.
7757         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7758         file.
7759         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7760         file.
7761         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7762         file.
7763         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7764         file.
7765         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7766         file.
7767         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7768         New file.
7769         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7770         New file.
7771         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7772         file.
7773         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7774         New file.
7775         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7776         file.
7778 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7780         * conform/conformtest.pl: Fix typo in handling typed-constant from
7781         allow-header.
7783 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7785         * README: Cut down references to pre-2.6 Linux kernels and
7786         Linuxthreads.  Update lists of configurations in libc and ports
7787         and sort alphabetically.  Say "or newer" with Linux kernel version
7788         requirements.
7790         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7792 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7794         [BZ #887]
7795         * math/libm-test.inc (logb_test_downward): New test to expose
7796         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7797         rounding mode.
7799 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7801         [BZ #14027]
7802         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7803         to be done.
7804         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7805         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7807 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7809         * sysdeps/unix/i386/brk.S: Remove file.
7810         * sysdeps/unix/i386/dl-brk.S: Likewise.
7811         * sysdeps/unix/i386/pipe.S: Likewise.
7812         * sysdeps/unix/i386/sigreturn.S: Likewise.
7813         * sysdeps/unix/i386/syscall.S: Likewise.
7814         * sysdeps/unix/i386/vfork.S: Likewise.
7815         * sysdeps/unix/i386/wait.S: Likewise.
7817         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7818         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7820         * configure.in (arm*-none*): Do not allow without
7821         --enable-hacker-mode.
7822         (netbsd*): Remove case setting base_os.
7823         (386bsd*): Likewise.
7824         (freebsd*): Likewise.
7825         (bsdi*): Likewise.
7826         (osf*): Likewise.
7827         (sunos*): Likewise.
7828         (ultrix*): Likewise.
7829         (newsos*): Likewise.
7830         (dynix*): Likewise.
7831         (*bsd*): Likewise.
7832         (sysv*): Likewise.
7833         (isc*): Likewise.
7834         (esix*): Likewise.
7835         (sco*): Likewise.
7836         (minix*): Likewise.
7837         (irix4*): Likewise.
7838         (irix6*): Likewise.
7839         (solaris[2-9]*): Likewise.
7840         (none): Likewise.
7841         * configure: Regenerated.
7843 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7845         [BZ #11521]
7846         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7847         overflow or cancellation in calculating denominator.
7848         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7849         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7850         down expression to avoid unexpected rounding in newer GCCs.
7851         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7853 2012-04-26  David S. Miller  <davem@davemloft.net>
7855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7856         long-double compat symbols.
7857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7863         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7864         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7865         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7866         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7867         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7868         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7869         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7871 2012-04-25  David S. Miller  <davem@davemloft.net>
7873         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7874         HWCAP_* values only after the memory barriers have been defined.
7875         (atomic_full_barrier): Define.
7876         (atomic_read_barrier): Define.
7877         (atomic_write_barrier): Define.
7879 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7881         * shlib-versions: Add libgcc_s version information.
7882         * sysdeps/generic/libgcc_s.h: Remove.
7883         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7884         libgcc_s.h.
7885         * sysdeps/gnu/unwind-resume.c: Likewise.
7886         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7888 2012-04-25  David S. Miller  <davem@davemloft.net>
7890         * sysdeps/unix/sparc/brk.S: Delete.
7891         * sysdeps/unix/sparc/dl-brk.S: Delete.
7892         * sysdeps/unix/sparc/pipe.S: Delete.
7893         * sysdeps/unix/sparc/sysdep.S: Delete.
7894         * sysdeps/unix/sparc/sysdep.h: Delete.
7895         * sysdeps/unix/sparc/vfork.S: Delete.
7896         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7897         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7898         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7899         ret_ERRVAL, r0, r1, MOVE): Define.
7900         (JUMPTARGET): Remove.
7901         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7902         sysdeps/unix/sparc/sysdep.h
7903         (ENTRY, END): Remove.
7904         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7906 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7908         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7909         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7910         -DIS_IN_build.
7912         * timezone/README: Update upstream location and email address for
7913         tzcode and tzdata.
7914         * timezone/zdump.c: Update from tzcode 2012b.
7915         * timezone/zic.c: Likewise.
7917         * configure.in (libc_cv_as_needed): Remove test.
7918         * configure: Regenerated.
7919         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7920         conditional definition.
7921         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7922         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7923         * config.make.in (have-as-needed): Remove variable.
7925 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7926             Paul Pluzhnikov  <ppluzhnikov@google.com>
7928         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7929         strings correctly.
7931 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7933         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7934         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7935         * sysdeps/sh/strlen.S: Likewise.
7937 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7939         * sysdeps/unix/fork.S: Remove file.
7940         * sysdeps/unix/i386/fork.S: Likewise.
7941         * sysdeps/unix/sparc/fork.S: Likewise.
7943         * sysdeps/unix/system.c: Remove file.
7944         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7946         * sysdeps/unix/getegid.S: Remove file.
7947         * sysdeps/unix/geteuid.S: Likewise.
7949 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7951         * scripts/check-localplt.awk: New file.
7952         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7953         of diff.
7954         * scripts/data/localplt-generic.data: Add a comment.
7956         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7957         NODE when __dir_mkfile failed.
7958         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7959         Reported by Ludovic Courtès <ludo@gnu.org>.
7961 2012-04-24  Andreas Jaeger  <aj@suse.de>
7963         * Makerules (common-clean): Also remove gen-as-const-headers
7964         files.
7966 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7968         * Makerules (native-compile): Do not change working directory for
7969         build.  Use $(OUTPUT_OPTION) in command.
7970         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7972 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7974         [BZ #13886]
7975         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7976         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7977         * math/libm-test.inc (floor_test): Add more tests.
7978         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7980 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7982         * sysdeps/unix/getdents.c: Remove file.
7983         * sysdeps/unix/sysv/getdents.c: Likewise.
7984         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7986         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7987         sysdeps/unix/mman/syscalls.list.
7988         (mmap): Likewise.
7989         (mprotect): Likewise.
7990         (msync): Likewise.
7991         (munmap): Likewise.
7992         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7993         * sysdeps/unix/mman/syscalls.list: Remove.
7994         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7996         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7997         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7998         * configure: Regenerated.
7999         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8000         $(libgcc_s_suffix).
8001         * config.make.in (libgcc_s_suffix): Remove variable.
8003 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8005         * sysdeps/unix/sysv/gethostname.c: Move to ...
8006         * sysdeps/posix/gethostname.c: ... here.
8008         * sysdeps/unix/execve.S: Remove file.
8010         * sysdeps/unix/_exit.S: Remove file.
8012 2012-04-23  Andreas Jaeger  <aj@suse.de>
8014         [BZ #13739]
8015         * manual/Makefile: Remove make dist support, there's no
8016         need for a stand-alone documentation tar ball.
8017         (TEXI2DVI): Define always, it's not in Makeconfig.
8018         (dist): Removed.
8019         (tar-it): Removed.
8020         (edition): Removed.
8021         (glibc-doc-$(edition).tar): Removed
8022         (%.Z): Removed.
8023         (%.gz): Removed.
8024         (%.uu): Removed.
8025         (ETAGS): Remove, it's in Makeconfig.
8026         (move-if-change): Remove, it's in Makeconfig.
8028 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8030         [BZ #13970]
8031         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8032         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8033         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8034         (strtod_l, strtof_l, strtold_l): Remove __wur.
8035         It is not necessarily an error to ignore strtol's return value.
8036         One can reliably look at the stored endptr to decide whether
8037         the number had valid syntax.
8039 2012-04-21  Andreas Jaeger  <aj@suse.de>
8041         [BZ #13739]
8042         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8044 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8046         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8047         * sysdeps/unix/sysv/Versions: Remove file.
8049 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8051         [BZ #13927]
8052         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8054 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8056         [BZ #7064]
8057         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8058         version from __vm86.
8060 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8062         * sysdeps/unix/common/lxstat.c: Remove file.
8063         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8065         * sysdeps/unix/sysv/Makefile: Remove file.
8067         * sysdeps/unix/sysv/direct.h: Remove file.
8069         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8070         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8071         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8072         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8073         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8074         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8075         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8077         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8079         * sysdeps/unix/xmknod.c: Remove file.
8080         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8082         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8084         * sysdeps/unix/sysv/i386/time.S: Remove file.
8086         * sysdeps/unix/fxstat.c: Remove file.
8087         * sysdeps/unix/xstat.c: Likewise.
8088         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8090         * sysdeps/unix/sysv/sigaction.c: Remove file.
8092         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8093         (sysdep_headers): Remove variable.
8094         [termio.h not in sysdep_headers] (generated): Likewise.
8095         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8096         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8097         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8098         * sysdeps/unix/sysv/tcflow.c: Likewise.
8099         * sysdeps/unix/sysv/tcflush.c: Likewise.
8100         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8101         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8102         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8103         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8104         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8106         * sysdeps/unix/siglist.c: Remove file.
8108         * sysdeps/unix/getppid.S: Remove file.
8110         * sysdeps/unix/mkdir.c: Remove file.
8111         * sysdeps/unix/rmdir.c: Likewise.
8113 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8115         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8116         ERR_MAX value.
8117         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8118         errlist-compat value.
8120 2012-04-18  David S. Miller  <davem@davemloft.net>
8122         * sysdeps/generic/memcopy.h (reg_char): Delete.
8123         * debug/strcat_chk.c: Use char, not reg_char.
8124         * debug/strcpy_chk.c: Likewise.
8125         * debug/strncat_chk.c: Likewise.
8126         * debug/strncpy_chk.c: Likewise.
8127         * string/memchr.c: Likewise.
8128         * string/memrchr.c: Likewise.
8129         * string/rawmemchr.c: Likewise.
8130         * string/strcat.c: Likewise.
8131         * string/strchr.c: Likewise.
8132         * string/strchrnul.c: Likewise.
8133         * string/strcmp.c: Likewise.
8134         * string/strcpy.c: Likewise.
8135         * string/strncat.c: Likewise.
8136         * string/strncmp.c: Likewise.
8137         * string/strncpy.c: Likewise.
8139 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8141         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8142         __builtin_memcopy is called when src and dest ranges are known to not
8143         overlap.
8145 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8147         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8148         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8149         fwd_align_merge macro call.
8150         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8151         bwd_align_merge macro call.
8152         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8154 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8156         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8157         bwd_align_merge macros.
8158         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8159         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8160         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8162 2012-04-18  David S. Miller  <davem@davemloft.net>
8164         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8166 2012-04-18  Andreas Jaeger  <aj@suse.de>
8168         [BZ# 6794]
8169         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8170         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8171         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8173         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8174         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8175         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8177         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8178         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8179         Adjust for changed ldbl-128 files.
8181         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8182         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8183         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8185 2012-04-17  David S. Miller  <davem@davemloft.net>
8187         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8189 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8191         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8192         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8193         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8194         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8195         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8196         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8198 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8200         [BZ #6794]
8201         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8202         * math/libm-test.inc: Add ilogb errno and exception tests.
8203         * math/w_ilogb.c: New file: ilogb wrapper.
8204         * math/w_ilogbf.c: New file: ilogbf wrapper.
8205         * math/w_ilogbl.c: New file: ilogbl wrapper.
8206         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8207         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8208         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8209         exception being thrown with 0.0 as argument.
8210         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8211         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8212         exception being thrown with 0.0 as argument.
8213         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8214         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8215         exception being thrown with 0.0 as argument.
8216         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8217         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8218         exception being thrown with 0.0 as argument.
8219         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8220         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8221         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8222         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8223         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8224         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8225         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8226         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8227         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8229 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8231         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8232         with altivec.
8234 2012-04-16  Marek Polacek  <polacek@redhat.com>
8236         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8238 2012-04-16  Marek Polacek  <polacek@redhat.com>
8240         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8241         operands of fdivp instruction.
8243 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8245         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8246         * elf/tst-auditmod3b.c: Likewise.
8247         * elf/tst-auditmod4b.c: Likewise.
8248         * elf/tst-auditmod5b.c: Likewise.
8249         * elf/tst-auditmod6b.c: Likewise.
8250         * elf/tst-auditmod6c.c: Likewise.
8251         * elf/tst-auditmod7b.c: Likewise.
8252         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8253         * sysdeps/x86_64/preconfigure.in: Likewise.
8254         * sysdeps/x86_64/preconfigure: Regenerated.
8256 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8258         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8259         __ILP32__.
8261 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8263         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8264         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8266 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8268         [BZ #13973]
8269         * locale/iso-639.def: Fix gl language name. Spotted by
8270         Yaron Shahrabani.
8272 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8274         [BZ #2074]
8275         * libio/libio.h (__io_write_fn): Update comment.
8277 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8279         [BZ #2074]
8280         * stdio.texi (Hook Functions): The user provided writer function
8281         is not allowed to return -1.
8283 2012-04-11  David S. Miller  <davem@davemloft.net>
8285         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8287 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8289         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8290         Add a leading slash to rtkaio.
8292 2012-04-11  Jim Meyering  <meyering@redhat.com>
8294         [BZ #11959]
8295         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8296         It is not necessarily an error to ignore fwrite's return
8297         value.  One can reliably use ferror to test for errors after
8298         the fact.
8300 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8302         * bits/types.h (__snseconds_t): New type.
8303         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8305         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8306         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8307         (__SNSECONDS_T_TYPE): Likewise.
8308         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8309         (__SNSECONDS_T_TYPE): Likewise.
8310         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8311         (__SNSECONDS_T_TYPE): Likewise.
8313 2012-04-10  Andreas Jaeger  <aj@suse.de>
8315         [BZ #2636]
8316         * manual/time.texi (Processor Time): Return type of times is
8317         elapsed real time since an arbitrary point in the past.
8318         (CPU Time): Move CLK_TCK from here...
8319         (Processor Time): ...to here.  Correct description.
8320         * manual/conf.texi (Constants for Sysconf): Correct description of
8321         _SC_CLK_TCK.
8323 2012-04-10  David S. Miller  <davem@davemloft.net>
8325         [BZ #13967]
8326         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8327         where the is a gap between DT_REL(A) and DT_JMPREL.
8329 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8331         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8332         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8333         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8335 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8337         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8338         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8339         (dl_main): Handle --inhibit-cache.
8340         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8341         _dl_inhibit_cache.
8342         * elf/dl-load.c (_dl_map_object): Use it.
8343         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8345 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8347         [BZ #13872]
8348         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8349         (__ieee754_powl): Saturate large exponents rather than testing for
8350         overflow of y*log2(x).
8351         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8352         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8353         exceptions.
8355         [BZ #11521]
8356         * math/s_ctan.c: Include <float.h>.
8357         (__ctan): Avoid internal overflow or cancellation in calculating
8358         denominator.
8359         * math/s_ctanf.c: Likewise.
8360         * math/s_ctanl.c: Likewise.
8361         * math/s_ctanh.c: Likewise.
8362         * math/s_ctanhf.c: Likewise.
8363         * math/s_ctanhl.c: Likewise.
8364         * math/libm-test.inc (ctan_test): Add more tests.
8365         (ctanh_test): Likewise.
8366         * sysdeps/i386/fpu/libm-test-ulps: Update.
8367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8369 2012-04-09  Andreas Jaeger  <aj@suse.de>
8371         [BZ #6894]
8372         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8373         is an optional BSD extension.
8375         [BZ #10254]
8376         * manual/stdio.texi (Opening Streams): Document additional fopen
8377         parameters.
8379 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8381         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8382         %eax without telling the compiler.
8384 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8386         [BZ # 13963]
8387         * manual/install.texi: Use sourceware.org.
8389 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8391         [BZ #13873]
8392         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8393         (__ieee754_pow): Generate overflow and underflow using huge*huge
8394         and tiny*tiny rather than just returning constant infinity or zero
8395         for large exponents.
8396         * math/libm-test.inc (pow_test): Require overflow exceptions for
8397         applicable cases of large exponents.
8399         [BZ #706]
8400         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8401         (__ieee754_pow): Use iterative multiplication algorithm only for
8402         integer exponents with absolute value below 1024.  Check for odd
8403         integer exponents when using algorithm for real exponents.
8404         * math/libm-test.inc (pow_test): Add more tests.
8405         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8407 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8409         [BZ #13705]
8410         * math/libm-test.inc (exp_test): Do not allow overflow exception
8411         on underflow test.
8413 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8415         [BZ #13705]
8416         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8417         instead of __kernel_standard_f.
8419 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8421         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8422         * sysdeps/x86_64/memset_chk.S: Likewise.
8424 2012-04-08  Andreas Jaeger  <aj@suse.de>
8426         [BZ #10153]
8427         * manual/startup.texi (Environment Access): Describe return value
8428         for putenv and setenv.
8430         [BZ #6895]
8431         * manual/filesys.texi (Directory Entries): Add description for
8432         DT_LNK.
8434         [BZ #6890]
8435         * manual/filesys.texi (Directory Entries): Clarify that it's file
8436         system not operating system in the description of DT_UNKNOWN.
8438         [BZ #6578]
8439         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8441 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8443         [BZ #6649]
8444         * manual/llio.texi (Opening and Closing Files): Add cross
8445         reference to explain mode argument.
8447 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8449         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8450         * sysdeps/x86_64/memset_chk.S: Likewise.
8452 2012-04-07  David S. Miller  <davem@davemloft.net>
8454         * elf/elf.h (R_SPARC_WDISP10): Define.
8455         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8456         R_SPARC_SIZE32.
8457         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8458         R_SPARC_SIZE64 and R_SPARC_H34.
8460 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8462         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8463         conditions and remove no longer applicable assertion.
8465 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8467         * bits/byteswap.h: Include <features.h>.
8468         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8469         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8471 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8473         * bits/byteswap.h (__bswap_16): Removed.
8474         Include <bits/byteswap-16.h> to get __bswap_16.
8475         * sysdeps/i386/bits/byteswap.h: Likewise.
8476         * sysdeps/s390/bits/byteswap.h: Likewise.
8477         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8478         * bits/byteswap-16.h: New file.
8479         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8480         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8481         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8482         * string/Makefile (headers): Add bits/byteswap-16.h.
8484 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8486         [BZ #13895]
8487         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8488         extra indirection.
8489         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8490         * nss/tst-nss-static.c: New.
8492 2012-04-06  Robert Millan  <rmh@gnu.org>
8494         [BZ #6486]
8495         * manual/llio.texi (File Position Primitive): lseek
8496         refers to WHENCE when it really means OFFSET.
8498 2012-04-06  Andreas Jaeger  <aj@suse.de>
8500         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8501         strncmp declarations.
8503         * abilist/libc.abilist: Add __poll and __ppoll.
8505 2012-04-05  David S. Miller  <davem@davemloft.net>
8507         * scripts/check-local-headers.sh: Accept a host triplet in the
8508         path matched by the exclude regexp.
8510         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8511         definition.
8512         * sysdeps/powerpc/powerpc32/dl-machine.h
8513         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8514         * sysdeps/s390/s390-32/dl-machine.h
8515         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8516         * sysdeps/sparc/sparc32/dl-machine.h
8517         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8518         * sysdeps/sparc/sparc64/dl-machine.h
8519         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8521         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8522         lazy binding.
8523         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8524         undefined symbol errors.
8526         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8527         DT_NEEDED entries.
8529 2012-04-05  Michael Matz  <matz@suse.de>
8531         [BZ #13592]
8532         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8534 2012-04-05  Andreas Jaeger  <aj@suse.de>
8536         [BZ #13908]
8537         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8538         comment.
8540 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8542         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8543         which ROUND is no valid rounding mode.
8545 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8547         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8548         read again.
8549         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8551 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8553         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8554         an exception using FPU order intentionally.
8556 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8558         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8559         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8560         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8561         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8563 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8565         [BZ #12340]
8566         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8567         EINVAL when BUFLEN is too smal.
8569 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8571         [BZ #13553]
8572         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8573         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8575 2012-04-03  Andreas Jaeger  <aj@suse.de>
8577         [BZ #13938]
8578         * manual/setjmp.texi (System V contexts): Fix sentence.
8580         [BZ #13926]
8581         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8582         New macro for this case.
8583         [!__GNUC__] (__bswap_64): New inline function for this case.
8584         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8585         * bits/byteswap.h: Likewise.
8586         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8587         ull, guard with __GLIBC_HAVE_LONG_LONG.
8589         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8590         __GLIBC_HAVE_LONG_LONG.
8592         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8593         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8595 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8597         [BZ #13691]
8598         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8599         inptr and inend, rather than using last_ch.
8601 2012-04-02  David S. Miller  <davem@davemloft.net>
8603         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8604         * stdio-common/printf-parse.h (read_int): Change return type to
8605         'int', return -1 on INT_MAX overflow.
8606         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8607         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8608         overflows INT_MAX.  Check for overflow of in-format-string precision
8609         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8610         SIZE_MAX not INT_MAX for integer overflow test.
8611         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8612         skip the construct in the format string but do not record anything.
8613         * stdio-common/bug22.c: Adjust to test both width/prevision
8614         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8615         explicitly for proper errno values.
8617 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8619         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8620         CHAR_MAX.
8621         * string/test-strcmp.c [! WIDE]: Likewise.
8622         * time/tst-mktime2.c: Likewise for INT_MAX.
8623         * string/test-string.h: #include <sys/param.h> for MIN.
8625         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8626         * sysdeps/i386/init-first.c (init): Likewise.
8627         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8628         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8629         * sysdeps/sh/init-first.c (init): Likewise.
8631 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8633         * po/ru.po: Update from translation team.
8634         * po/vi.po: Likewise.
8636 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8638         * resolv/nss_dns/dns-host.c: Merge copyright years.
8640 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8642         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8643         Optimize memcpy with prefetch if
8644         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8645         src, dst pointers have unequal 16 byte alignments.
8647 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8649         [BZ #13928]
8650         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8651         from a CNAME entry and return the minimum ttl for the query.
8652         (gaih_getanswer_slice): Likewise.
8654 2012-03-30  Jeff Law  <law@redhat.com>
8656         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8657         due to long keys.
8658         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8659         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8661         * resolv/nss_dns/dns-host.c: Update copyright year.
8663 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8665         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8666         requests to save a system call.  Fix check that all bytes are sent.
8668         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8669         comments for sendmmsg.
8671 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8673         [BZ #13691]
8674         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8675         with only 1 character between 0x0041 and 0x01b0.
8676         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8677         * wcsmbs/tst-mbsnrtowcs.c: New file.
8679 2012-03-29  David S. Miller  <davem@davemloft.net>
8681         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8682         small copies by hand.
8684 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8686         [BZ #13761]
8687         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8688         _nss_compat_initgroups_dyn): Fall back to malloc/free
8689         for large group memberships.
8691 2012-03-28  David S. Miller  <davem@davemloft.net>
8693         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8694         that branches into memcpy.
8695         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8696         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8697         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8698         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8699         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8700         bits.
8701         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8702         implementation too.
8703         * sysdeps/sparc/mempcpy.S: New file.
8705         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8706         the IFUNC routine in the libc case.
8707         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8709         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8710         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8711         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8712         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8713         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8714         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8715         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8716         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8718         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8719         loop to 256 bytes instead of 64 bytes and fix test signedness.
8721         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8722         * sysdeps/sparc/sparc32/Makefile: rather than here...
8723         * sysdeps/sparc/sparc64/Makefile: and here.
8725 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8727         * malloc/mallocbug.c: Avoid warnings about unused variables.
8729 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8731         [BZ #13760]
8732         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8733         in the right place. Discard and retry query if response is
8734         larger than input buffer size.
8736 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8738         [BZ #369]
8739         [BZ #2678]
8740         [BZ #3866]
8741         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8742         x for large integer exponent.
8743         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8744         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8745         sign of result as needed afterwards.
8746         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8747         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8748         result for underflowing pow the same as for overflow.
8749         (__kernel_standard_l): Handle powl overflow and underflow here
8750         rather than calling __kernel_standard.
8751         * math/libm-test.inc (pow_test): Add more tests.
8753         [BZ #3868]
8754         [BZ #13879]
8755         [BZ #13910]
8756         [BZ #13911]
8757         [BZ #13912]
8758         [BZ #13913]
8759         [BZ #13915]
8760         [BZ #13916]
8761         [BZ #13917]
8762         [BZ #13918]
8763         [BZ #13919]
8764         [BZ #13920]
8765         [BZ #13921]
8766         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8767         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8768         (__kernel_standard_l): New function.
8769         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8770         __kernel_standard.
8771         * math/w_acosl.c (__acosl): Likewise.
8772         * math/w_asinl.c (__asinl): Likewise.
8773         * math/w_atan2l.c (__atan2l): Likewise.
8774         * math/w_atanhl.c (__atanhl): Likewise.
8775         * math/w_coshl.c (__coshl): Likewise.
8776         * math/w_exp10l.c (__exp10l): Likewise.
8777         * math/w_exp2l.c (__exp2l): Likewise.
8778         * math/w_fmodl.c (__fmodl): Likewise.
8779         * math/w_hypotl.c (__hypotl): Likewise.
8780         * math/w_j0l.c (__j0l, __y0l): Likewise.
8781         * math/w_j1l.c (__j1l, __y1l): Likewise.
8782         * math/w_jnl.c (__jnl, __ynl): Likewise.
8783         * math/w_lgammal.c (__lgammal): Likewise.
8784         * math/w_log10l.c (__log10l): Likewise.
8785         * math/w_log2l.c (__log2l): Likewise.
8786         * math/w_logl.c (__logl): Likewise.
8787         * math/w_powl.c (__powl): Likewise.
8788         * math/w_remainderl.c (__remainderl): Likewise.
8789         * math/w_scalbl.c (sysv_scalbl): Likewise.
8790         * math/w_sinhl.c (__sinhl): Likewise.
8791         * math/w_sqrtl.c (__sqrtl): Likewise.
8792         * math/w_tgammal.c (__tgammal): Likewise.
8793         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8794         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8795         * math/libm-test.inc (acos_test): Add more tests.
8796         (acosh_test): Likewise.
8797         (asin_test): Likewise.
8798         (atanh_test): Likewise.
8799         (exp_test): Likewise.
8800         (exp10_test): Likewise.
8801         (exp2_test): Likewise.
8802         (expm1_test): Likewise.
8803         (lgamma_test): Likewise.
8804         (log_test): Likewise.
8805         (log10_test): Likewise.
8806         (log1p_test): Likewise.
8807         (log2_test): Likewise.
8808         (pow_test): Do not allow some spurious overflow exceptions.
8809         (sqrt_test): Add more tests.
8810         (tgamma_test): Likewise.
8811         (y0_test): Likewise.
8812         (y1_test): Likewise.
8813         (yn_test): Likewise.
8815 2012-03-27  Anton Blanchard  <anton@samba.org>
8817         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8818         MAP_HUGETLB.
8819         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8820         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8821         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8823 2012-03-27  David S. Miller  <davem@davemloft.net>
8825         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8827         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8828         have-as-vis3 check.
8830 2012-03-27  Andreas Jaeger  <aj@suse.de>
8832         * sysdeps/x86_64/elf/configure.in: Moved to ...
8833         * sysdeps/x86_64/configure.in: ... here.
8834         * sysdeps/x86_64/elf/start.S: Moved to ...
8835         * sysdeps/x86_64/start.S: ... here.
8836         * sysdeps/x86_64/elf/configure: Delete.
8838         * sysdeps/x86_64/configure.in: Merge contents from
8839         sysdeps/i386/configure.in (without i686 check).
8841         * sysdeps/i386/elf/Versions: Merge into ...
8842         * sysdeps/i386/Versions: ... this.
8843         * sysdeps/i386/elf/Versions: Delete file.
8844         * sysdeps/i386/elf/start.S: Moved to ...
8845         * sysdeps/i386/start.S: ...here.
8846         * sysdeps/i386/elf/configure.in: Merge into...
8847         * sysdeps/i386/configure.in: ...here.
8848         * sysdeps/i386/elf/configure.in: Delete file.
8849         * sysdeps/i386/elf/configure: Delete file.
8851         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8852         * debug/backtracesyms.c: ... here.
8853         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8854         * debug/backtracesymsfd.c: ... here.
8855         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8856         * sysdeps/generic/ifunc-sel.h: ... here.
8858         * sysdeps/unix/i386/start.c: Delete file.
8859         * sysdeps/unix/sparc/start.c: Delete file.
8860         * sysdeps/unix/start.c: Delete file.
8862         * sysdeps/sh/elf/configure.in: Moved to ...
8863         * sysdeps/sh/configure.in: ... here.
8864         * sysdeps/sh/elf/start.S: Moved to ...
8865         * sysdeps/sh/start.S: ... here.
8866         * sysdeps/sh/elf/configure: Delete file.
8868         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8869         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8870         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8871         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8872         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8873         * sysdeps/powerpc/powerpc64/start.S: here.
8874         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8875         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8876         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8877         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8878         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8880         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8881         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8882         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8883         * sysdeps/powerpc/powerpc32/start.S: ... here.
8884         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8885         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8886         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8888         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8889         * sysdeps/powerpc/ifunc-sel.h: ... here.
8890         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8891         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8893         * sysdeps/sparc/elf/configure.in: Moved to ...
8894         * sysdeps/sparc/configure.in: ... here.
8895         * sysdeps/sparc/elf/configure: Delete file.
8896         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8897         * sysdeps/sparc/sparc32/start.S: ... here.
8898         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8899         * sysdeps/sparc/sparc64/start.S: ... here.
8900         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8901         * sysdeps/sparc/sparc32/Makefile: ... this.
8902         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8903         * sysdeps/sparc/sparc64/Makefile: ... this.
8905         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8906         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8907         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8908         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8909         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8910         * sysdeps/s390/s390-32/setjmp.S: ... here.
8911         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8912         * sysdeps/s390/s390-32/configure.in: ... here.
8913         * sysdeps/s390/s390-32/elf/configure: Delete file.
8914         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8915         * sysdeps/s390/s390-32/start.S: ... here.
8917         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8918         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8919         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8920         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8921         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8922         * sysdeps/s390/s390-64/setjmp.S: ... here.
8923         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8924         * sysdeps/s390/s390-64/configure.in: ... here
8925         * sysdeps/s390/s390-64/elf/configure: Delete file.
8926         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8927         * sysdeps/s390/s390-64/start.S: ... here.
8928         * sysdeps/s390/s390-64/elf/configure: Delete.
8930         * configure.in: Remove support for elf directories in sysdeps.
8932         * configure: Regenerated.
8933         * sysdeps/i386/configure: Regenerated.
8934         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8935         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8936         * sysdeps/s390/s390-32/configure: Regenerated.
8937         * sysdeps/s390/s390-64/configure: Regenerated.
8938         * sysdeps/sh/configure: Regenerated.
8939         * sysdeps/sparc/configure: Regenerated.
8940         * sysdeps/x86_64/configure: Regenerated.
8942 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8944         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8946         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8947         denormal result into account.
8949 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8951         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8952         Reported by Allan McRae <allan@archlinux.org>.
8954 2012-03-23  Jeff Law  <law@redhat.com>
8956         * nss/getnssent.c (__nss_getent): Fix typo.
8958 2012-03-23  David S. Miller  <davem@davemloft.net>
8960         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8962 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8964         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8965         to pad to uint64_t for each field.
8966         (dl_tls_index): Replace unsigned long with uint64_t.
8968 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8969         Paul Pluzhnikov  <ppluzhnikov@google.com>
8971         [BZ #6528]
8972         * grp/Makefile (otherlibs): Don't set it.
8973         * inet/Makefile (otherlibs): Likewise.
8974         * login/Makefile (otherlibs): Likewise.
8975         * nscd/Makefile (otherlibs): Likewise.
8976         * posix/Makefile (otherlibs): Likewise.
8977         * pwd/Makefile (otherlibs): Likewise.
8978         * rt/Makefile (otherlibs): Likewise.
8979         * sunrpc/Makefile (otherlibs): Likewise.
8980         * nss/Makefile (otherlibs): Likewise.
8981         Add libnss_files to routines and static-only-routines.
8982         ($(objpfx)getent): Remove rule.
8983         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8984         static-only-routines.
8986 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8988         [BZ #13892]
8989         * math/s_cexp.c: Include <float.h>.
8990         (__cexp): Handle exp result overflowing not necessarily
8991         overflowing both real and imaginary parts of result.
8992         * math/s_cexpf.c: Likewise.
8993         * math/s_cexpl.c: Likewise.
8994         * math/libm-test.inc (cexp_test): Add more tests.
8995         * sysdeps/i386/fpu/libm-test-ulps: Update.
8996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8998 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9000         * include/link.h (ELFW): New macro.
9001         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9002         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9004 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9006         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9007         with uint64_t.
9009 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9011         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9012         declaration.
9013         (struct La_x32_retval): Likewise.
9015 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9017         * sysdeps/x86_64/preconfigure.in: New file.
9018         * sysdeps/x86_64/preconfigure: New generated file.
9020 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9022         [BZ #13824]
9023         * math/e_exp2l.c: Include <float.h>.
9024         (__ieee754_exp2l): Handle overflow and underflow cases
9025         separately.  Only pass fractional part of argument to
9026         __ieee754_expl.
9027         * math/libm-test.inc (exp2_test): Add more tests.
9029         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9030         negating x to take absolute value.
9031         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9032         Likewise.
9033         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9034         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9035         Likewise.
9036         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9037         computing low part if x was negated.
9038         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9040 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9042         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9043         la_x32_gnu_pltexit.
9044         (pltexit): Cast int_retval to ptrdiff_t.
9045         * elf/tst-auditmod3b.c: Likewise.
9046         * elf/tst-auditmod4b.c: Likewise.
9047         * elf/tst-auditmod5b.c: Likewise.
9048         * elf/tst-auditmod6b.c: Likewise.
9049         * elf/tst-auditmod6c.c: Likewise.
9050         * elf/tst-auditmod7b.c: Likewise.
9052         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9053         and x32_gnu_pltexit.
9055         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9056         __ELF_NATIVE_CLASS.
9057         (La_x32_regs): New macro.
9058         (La_x32_retval): Likewise.
9059         (la_x32_gnu_pltenter): New function prototype.
9060         (la_x32_gnu_pltexit): Likewise.
9062 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9064         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9065         exponent.
9067         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9069         * configure.in (libc_cv_cc_nofma): Check for option to disable
9070         generation of FMA instructions.
9071         * configure: Regenerate.
9072         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9073         * sysdeps/ieee754/dbl-64/Makefile: New file.
9074         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9075         Remove brandred-fma4.
9076         (CFLAGS-brandred-fma4.c): Remove.
9077         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9078         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9079         define.
9080         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9081         define.
9083 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9085         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9086         LLONG_MAX != LONG_MAX.
9087         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9088         (_fitoa_word): Likewise.
9089         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9090         LLONG_MAX != LONG_MAX.
9091         * stdio-common/_itowa.h: Include <_itoa.h>.
9092         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9093         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9094         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9095         only if not defined.
9096         (_ITOA_WORD_TYPE): Likewise.
9097         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9098         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9100 2012-03-21  David S. Miller  <davem@davemloft.net>
9102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9104 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9106         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9107         of x86_64 when setting libc_cv_slibdir, libdir and
9108         libc_cv_localedir.
9109         * sysdeps/unix/sysv/linux/configure: Regenerated.
9111 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9113         * manual/lang.texi (Old Varargs): Remove section.
9114         (How Variadic): Update menu.
9115         (va_start): Do not mention varargs.h.
9117 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9118             Joseph Myers  <joseph@codesourcery.com>
9120         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9121         link test.
9122         * configure: Regenerated.
9124 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9126         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9127         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9128         conformtest.pl
9130 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9132         * NOTES: Remove.
9133         * Makefile (files-for-dist): Remove NOTES.
9134         (NOTES): Remove rule.
9135         * README: Don't refer to NOTES.
9136         * manual/creature.texi: Don't include macros.texi.
9137         * manual/intro.texi (creature.texi): Remove comment referring to
9138         NOTES.
9140         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9141         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9142         * configure: Regenerated.
9143         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9144         LIBC_TRY_CC_OPTION.
9145         (libc_cv_as_i686): Likewise.
9146         (libc_cv_cc_avx): Likewise.
9147         (libc_cv_cc_sse2avx): Likewise.
9148         (libc_cv_cc_fma4): Likewise.
9149         (libc_cv_cc_novzeroupper): Likewise.
9150         * sysdeps/i386/configure: Regenerated.
9152         [BZ #13883]
9153         * sysdeps/i386/fpu/s_cexp.S: Remove.
9154         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9155         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9156         * math/libm-test.inc (cexp_test): Add more tests.
9157         * sysdeps/i386/fpu/libm-test-ulps: Update.
9158         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9160 2012-03-21  Allan McRae  <allan@archlinux.org>
9162         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9164 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9166         [BZ #13871]
9167         * math/w_exp2.c: Do not include <float.h>.
9168         (o_threshold, u_threshold): Remove.
9169         (__exp2): Calculate result before checking finiteness and calling
9170         __kernel_standard.
9171         * math/w_exp2f.c: Likewise.
9172         * math/w_exp2l.c: Likewise.
9173         * math/libm-test.inc (exp2_test): Require overflow exception for
9174         1e6 input.
9176         [BZ #3866]
9177         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9178         range of signed 64-bit integers before using fistpll.  Remove
9179         checks for whether integers fit in mantissa bits.
9180         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9181         the range of signed 32-bit integers before using fistpl.  Remove
9182         checks for whether integers fit in mantissa bits.
9183         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9184         (__ieee754_powl): Test for y outside the range of signed 64-bit
9185         integers before using fistpll.  Reduce 64-bit values to 63-bit
9186         ones as needed.
9187         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9188         divide-by-zero is raised for zero to large negative powers.
9189         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9190         (__ieee754_powl): Test for y outside the range of signed 64-bit
9191         integers before using fistpll.  Reduce 64-bit values to 63-bit
9192         ones as needed.
9193         * math/libm-test.inc (pow_test): Add more tests.
9195 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9197         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9198         <stdio-common/_itoa.h>.
9199         * debug/segfault.c: Likewise.
9200         * elf/dl-cache.c: Likewise.
9201         * elf/dl-minimal.c: Likewise.
9202         * elf/dl-misc.c: Likewise.
9203         * elf/dl-sysdep.c: Likewise.
9204         * elf/dl-version.c: Likewise.
9205         * elf/rtld.c: Likewise.
9206         * hurd/hurdsock.c: Likewise.
9207         * hurd/lookup-retry.c: Likewise.
9208         * malloc/malloc.c: Likewise.
9209         * malloc/mtrace.c: Likewise.
9210         * nscd/nscd_getgr_r.c: Likewise.
9211         * nscd/nscd_getpw_r.c: Likewise.
9212         * nscd/nscd_getserv_r.c: Likewise.
9213         * posix/getopt_init.c: Likewise.
9214         * posix/wordexp.c: Likewise.
9215         * stdio-common/_itoa.c: Likewise.
9216         * stdio-common/printf_fphex.c: Likewise.
9217         * stdio-common/vfprintf.c: Likewise.
9218         * string/_strerror.c: Likewise.
9219         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9220         * sysdeps/i386/i686/hp-timing.h: Likewise.
9221         * sysdeps/mach/_strerror.c: Likewise.
9222         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9223         * sysdeps/mach/hurd/sethostid.c: Likewise.
9224         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9225         * sysdeps/mach/xpg-strerror.c: Likewise.
9226         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9227         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9228         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9229         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9230         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9231         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9232         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9233         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9234         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9235         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9236         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9237         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9238         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9239         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9240         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9241         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9242         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9243         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9244         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9245         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9246         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9248         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9250         * stdio-common/_itoa.h: Moved to ...
9251         * sysdeps/generic/_itoa.h: Here.
9253         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9255         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9256         instead of "_itoa.h" and "_itowa.h".
9257         * stdio-common/vfprintf.: Likewise.
9259 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9261         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9262         <bits/wordsize.h>.
9263         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9264         (__signbit): Likwise.
9265         (llrintf): Likwise.
9266         (llrint): Likwise.
9268 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9270         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9271         __WORDSIZE != 64.
9273 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9275         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9276         OVERFLOW_EXCEPTION_OK.
9277         * math/libm-test.inc ("Philosophy"): Update comment about
9278         exception testing.
9279         (OVERFLOW_EXCEPTION): Define.
9280         (OVERFLOW_EXCEPTION_OK): Likewise.
9281         (INVALID_EXCEPTION_OK): Renumber.
9282         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9283         (IGNORE_ZERO_INF_SIGN): Likewise.
9284         (test_exceptions): Handle FE_OVERFLOW.
9285         (exp10_test): Expect overflow exceptions.
9286         (exp2_test): Likewise.
9287         (expm1_test): Likewise.
9288         (nextafter_test): Likewise.
9289         (pow_test): Likewise.
9290         (scalbn_test): Likewise.
9291         (scalbln_test): Likewise.
9293 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9295         * sysdeps/x86_64/bits/atomic.h
9296         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9297         64bit integer.
9298         (atomic_exchange_acq): Likewise.
9299         (__arch_exchange_and_add_body): Likewise.
9300         (__arch_add_body): Likewise.
9301         (atomic_add_negative): Likewise.
9302         (atomic_add_zero): Likewise.
9304 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9306         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9307         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9309 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9311         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9312         Check __x86_64__ instead of __WORDSIZE.
9314 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9316         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9318 2012-03-19  David S. Miller  <davem@davemloft.net>
9320         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9322         * sysdeps/sparc/fpu/fenv_private.h: New file.
9323         * sysdeps/sparc/fpu/math_private.h: Use it.
9324         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9325         Remove.
9326         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9327         (libc_feholdexcept_setroundl): Remove.
9328         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9329         Remove.
9330         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9331         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9333 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9335         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9336         int64_t instead of long int.
9337         (INSERT_WORDS64): Likwise.
9339 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9341         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9342         _Unwind_GetCFA return to _Unwind_Ptr first.
9344 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9346         [BZ #13629]
9347         * math/s_clog.c: Include <float.h>.
9348         (__clog): Scale large or subnormal inputs.
9349         * math/s_clogf.c: Likewise.
9350         * math/s_clogl.c: Likewise.
9351         * math/s_clog10.c: Include <float.h>.
9352         (M_LOG10_2): Define.
9353         (__clog10): Scale large or subnormal inputs.
9354         * math/s_clog10f.c: Likewise.
9355         * math/s_clog10l.c: Likewise.
9356         * math/libm-test.inc (clog_test): Add more tests.
9357         (clog10_test): Likewise.
9358         * sysdeps/i386/fpu/libm-test-ulps: Update.
9359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9361         [BZ #11451]
9362         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9363         x and y.
9364         * math/libm-test.inc (atan2_test): Add another test.
9366         * Makerules (common-objdir-compile): Remove.
9367         * sysdeps/unix/Makefile (config-generated): Do not add
9368         $(unix-generated) to variable.
9369         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9370         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9371         Remove rule.
9372         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9373         Likewise.
9374         [generic bits/local_lim.h] (before-compile): Do not append to
9375         variable.
9376         [generic bits/local_lim.h] (common-generated): Likewise.
9377         [generic sys/param.h] (before-compile): Do not append to variable.
9378         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9379         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9380         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9381         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9382         include.
9383         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9384         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9385         [generic sys/param.h] ($(addprefix
9386         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9387         [generic sys/param.h] (common-generated): Do not append to
9388         variable.
9389         [generic sys/param.h] (sysdep_headers): Likewise.
9390         [generic bits/errno.h] (before-compile): Do not append to
9391         variable.
9392         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9393         rule.
9394         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9395         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9396         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9397         [generic bits/errno.h] (common-generated): Do not append to
9398         variable.
9399         [generic bits/ioctls.h] (before-compile): Do not append to
9400         variable.
9401         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9402         rule.
9403         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9404         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9405         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9406         rule.
9407         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9408         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9409         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9410         [generic bits/ioctls.h] (common-generated): Do not append to
9411         variable.
9412         [generic sys/syscall.h] (syscall.h): Remove variable.
9413         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9414         rule.
9415         [generic sys/syscall.h] (before-compile): Do not append to
9416         variable.
9417         [generic sys/syscall.h] (common-generated): Likewise.
9418         * sysdeps/unix/errnos-tmpl.c: Remove file.
9419         * sysdeps/unix/errnos.awk: Likewise.
9420         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9421         * sysdeps/unix/ioctls.awk: Likewise.
9422         * sysdeps/unix/mk-local_lim.c: Likewise.
9423         * sysdeps/unix/snarf-ioctls: Likewise.
9425 2012-03-19  Richard Henderson  <rth@twiddle.net>
9427         * sysdeps/i386/fpu/fenv_private.h: New file.
9428         * sysdeps/i386/fpu/math_private.h: Use it.
9429         (math_opt_barrier, math_force_eval): Remove.
9430         (libc_feholdexcept_setround_53bit): Remove.
9431         (libc_feupdateenv_53bit): Remove.
9432         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9433         (math_opt_barrier, math_force_eval): Remove.
9434         (libc_feholdexcept): Remove.
9435         (libc_feholdexcept_setround): Remove.
9436         (libc_fetestexcept, libc_fesetenv): Remove.
9437         (libc_feupdateenv_test): Remove.
9438         (libc_feupdateenv, libc_feholdsetround): Remove.
9439         (libc_feresetround): Remove.
9441         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9442         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9444         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9445         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9446         (libc_feupdateenv_testl): New.
9447         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9448         (libc_feupdateenv_testf): New.
9449         (libc_feupdateenv): Use libc_feupdateenv_test.
9450         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9451         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9453         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9454         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9455         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9456         (libc_feresetround_noex): New.
9457         (libc_feresetround_noexf): New.
9458         (libc_feresetround_noexl): New.
9459         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9460         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9461         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9462         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9463         SET_RESTORE_ROUND.
9464         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9465         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9466         (__cos): Likewise.
9467         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9468         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9469         SET_RESTORE_ROUND_NOEX.
9470         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9471         SET_RESTORE_ROUND_NOEXF.
9472         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9473         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9474         (libc_feholdsetroundf): New.
9475         (libc_feresetround, libc_feresetroundf): New.
9477         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9478         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9479         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9481         * sysdeps/generic/math_private.h: Include <fenv.h>.
9482         (default_libc_feholdexcept): New.
9483         (default_libc_feholdexcept_setround): New.
9484         (default_libc_fesetenv, default_libc_feupdateenv): New.
9485         (libc_feholdexcept): Only define if undefined.
9486         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9487         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9488         (libc_feholdexcept_setroundl): Likewise.
9489         (libc_feholdexcept_setround_53bit): Likewise.
9490         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9491         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9492         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9493         (libc_feupdateenv_53bit): Likewise.
9494         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9495         (libc_feholdexcept): Convert from macro to inline function.
9496         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9497         (libc_fesetenv, libc_feupdateenv): Likewise.
9499         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9500         not previously defined.
9501         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9502         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9503         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9504         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9505         * sysdeps/ieee754/flt-32/math_private.h: New file.
9506         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9507         math_private.h below SET_FLOAT_WORD.
9508         (__isnan, __isinf_ns, __finite): Remove.
9509         (__isnanf, __isinf_nsf, __finitef): Remove.
9511 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9513         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9515 2012-03-17  David S. Miller  <davem@davemloft.net>
9517         [BZ #6471]
9518         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9519         for 2.16.
9521 2012-03-16  David S. Miller  <davem@davemloft.net>
9523         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9524         warnings.
9526         [BZ #6471]
9527         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9528         properly.
9529         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9530         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9531         sysdep_routines when subdir is sysvipc.
9532         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9533         __getshmlba helper.
9535         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9537 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9539         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9540         [__LP64__].
9542 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9544         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9545         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9546         (__lround): Renamed to ...
9547         (__llround): This.  Replace long int with long long int.
9548         Define lround functions as aliases of llround functions.
9549         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9551 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9553         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9554         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9555         adresses to uintptr_t.  Replace "long int" and "unsigned long
9556         int" with "greg_t" on va_arg.
9558 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9560         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9561         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9563         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9564         Move e_machine check before EI_CLASS check.  Handle x32
9565         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9566         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9567         SKIP_EM_IA_64 and include
9568         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9570         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9571         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9572         (add_system_dir): New macro.
9574         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9575         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9577 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9579         [BZ #2551]
9580         [BZ #2552]
9581         [BZ #2553]
9582         [BZ #2554]
9583         [BZ #2562]
9584         [BZ #2563]
9585         [BZ #2565]
9586         [BZ #2566]
9587         [BZ #2576]
9588         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9589         (y0): Likewise.
9590         * math/w_j0f.c (j0f): Likewise.
9591         (y0f): Likewise.
9592         * math/w_j0l.c (__j0l): Likewise.
9593         (__y0l): Likewise.
9594         * math/w_j1.c (j1): Likewise.
9595         (y1): Likewise.
9596         * math/w_j1f.c (j1f): Likewise.
9597         (y1f): Likewise.
9598         * math/w_j1l.c (__j1l): Likewise.
9599         (__y1l): Likewise.
9600         * math/w_jn.c (jn): Likewise.
9601         (yn): Likewise.
9602         * math/w_jnf.c (jnf): Likewise.
9603         (ynf): Likewise.
9604         * math/w_jnl.c (__jnl): Likewise.
9605         (__ynl): Likewise.
9606         * math/libm-test.inc (j0_test): Add more tests.
9607         (j1_test): Likewise.
9608         (jn_test): Likewise.  Add trailing semicolon to existing test.
9609         (y0_test): Likewise.
9610         (y1_test): Likewise.
9611         * sysdeps/i386/fpu/libm-test-ulps: Update.
9612         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9614         [BZ #13851]
9615         [BZ #13854]
9616         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9617         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9618         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9619         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9620         (__tanl): Set errno for infinite argument.
9621         * sysdeps/i386/fpu/mptan.c: Remove.
9622         * sysdeps/i386/fpu/s_tan.S: Likewise.
9623         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9624         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9625         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9626         * math/libm-test.inc (tan_test): Add more tests and enable more
9627         tests for double and long double.
9628         * sysdeps/i386/fpu/libm-test-ulps: Update.
9629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9631 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9633         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9634         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9636 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9638         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9639         * configure.in: Use it for both main tree and add-ons.
9640         * configure: Regenerated.
9642 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9644         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9646 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9648         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9649         in comment.
9651         [BZ #13851]
9652         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9653         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9654         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9655         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9656         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9657         infinite argument.
9658         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9659         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9660         != 0 for prec == 2.
9661         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9662         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9663         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9664         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9665         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9666         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9667         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9668         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9669         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9670         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9671         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9672         * math/libm-test.inc (cos_test): Add more tests and enable more
9673         tests for long double.
9674         (sin_test): Likewise.
9675         (sincos_test): Likewise.
9676         * sysdeps/i386/fpu/libm-test-ulps: Update.
9677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9679 2012-03-16  David S. Miller  <davem@davemloft.net>
9681         * sysdeps/sparc/fpu/math_private.h: New file.
9683 2012-03-15  David S. Miller  <davem@davemloft.net>
9685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9686         file.
9687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9689         file.
9690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9691         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9692         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9693         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9694         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9695         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9696         sysdep routines.
9697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9699         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9700         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9702         * sysdeps/sparc/sparc-ifunc.h: New file.
9703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9704         sparc-ifunc.h
9705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9707         Likewise.
9708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9709         Likewise.
9710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9714         Likewise.
9715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9720         Likewise.
9721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9722         Likewise.
9723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9727         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9728         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9729         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9730         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9731         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9732         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9733         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9734         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9735         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9736         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9737         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9738         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9739         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9740         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9741         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9742         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9743         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9744         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9745         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9746         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9748 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9750         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9751         scaling.
9752         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9754 2012-03-15  Andreas Jaeger  <aj@suse.de>
9756         [BZ #13852]
9757         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9758         ieee754/flt-32 implementation for sin, cos and sincos.
9759         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9760         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9761         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9762         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9763         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9764         ieee754/flt-32 implementation for tan.
9766         * math/libm-test.inc (cos_test): Enable some large input tests for
9767         float as well
9768         (sin_test): Likewise.
9769         (sincos_test): Likewise.
9770         (tan_test): Add tests for large input.
9772         * sysdeps/i386/fpu/libm-test-ulps: Update.
9774 2012-03-15  Andreas Jaeger  <aj@suse.de>
9776         [BZ #13658]
9777         * math/libm-test.inc (cos_test): Add more test cases.
9778         (sin_test): Likewise.
9779         (sincos_test): Likewise.
9781 2012-03-15  Andreas Jaeger  <aj@suse.de>
9783         [BZ #13837]
9784         * math/libm-test.inc (cos_test): Add a test case for large input
9785         value.
9786         (sin_test): Likewise.
9787         (sincos_test): Likewise.
9789 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9790         Joseph Myers  <joseph@codesourcery.com>
9792         [BZ #13658]
9793         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9794         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9795         * sysdeps/i386/fpu/branred.c: Likewise.
9796         * sysdeps/i386/fpu/dosincos.c: Likewise.
9797         * sysdeps/i386/fpu/mpa.c: Likewise.
9798         * sysdeps/i386/fpu/s_cos.S: Likewise.
9799         * sysdeps/i386/fpu/s_sin.S: Likewise.
9800         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9801         * sysdeps/i386/fpu/sincos32.c: Likewise.
9803         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9804         Define.
9805         (libc_feupdateenv_53bit): Define.
9806         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9807         Define.
9808         (libc_feupdateenv_53bit): Define.
9810         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9811         53 bit (without extend i386 double precision).
9813         * math/libm-test.inc (sincos_test): Add tests for large input.
9814         (sin): Likewise.
9815         (cos): Likewise.
9817         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9819 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9821         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9823 2012-03-15  David S. Miller  <davem@davemloft.net>
9825         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9826         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9827         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9828         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9829         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9830         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9831         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9832         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9833         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9834         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9835         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9836         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9837         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9838         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9839         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9841         file.
9842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9844         file.
9845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9847         file.
9848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9850         file.
9851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9852         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9853         fmin/fmax sysdep routines.
9854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9856 2012-03-14  David S. Miller  <davem@davemloft.net>
9858         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9859         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9860         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9861         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9862         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9863         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9864         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9865         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9866         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9867         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9868         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9869         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9870         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9871         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9872         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9873         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9874         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9875         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9876         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9877         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9878         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9879         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9880         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9881         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9882         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9883         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9884         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9885         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9886         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9887         routines.
9888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9889         file.
9890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9892         file.
9893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9895         file.
9896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9898         file.
9899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9901         file.
9902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9904         file.
9905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9906         file.
9907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9908         file.
9909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9910         file.
9911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9912         New file.
9913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9914         file.
9915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9916         file.
9917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9919         file.
9920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9922         file.
9923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9925         file.
9926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9928         VIS3 routines.
9930         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9931         New file.
9933         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9935         * sysdeps/sparc/configure.in: New file.
9936         * sysdeps/sparc/configure: Generate.
9937         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9938         * configure: Regenerate.
9939         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9940         * config.make.in (have-as-vis3): New.
9941         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9942         available use -Av9d instead of -Av9a.
9943         * sysdeps/sparc/sparc64/Makefile: Likewise.
9944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9946         New file.
9947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9948         file.
9949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9950         New file.
9951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9952         file.
9953         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9954         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9955         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9956         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9957         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9959         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9960         fzeros/fnegs to load 0x80000000 into a float register instead of
9961         using the stack.
9962         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9964 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9966         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9967         bits/syscall.h.
9968         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9969         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9970         ($(inst_includedir)/bits/syscall.h): Remove rule.
9971         ($(objpfx)bits/syscall.d): Include instead of
9972         $(objpfx)syscall-list.d.
9973         (generated): Change syscall-list.h and syscall-list.d to
9974         bits/syscall.h and bits/syscall.d.
9976 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9978         [BZ #13846]
9979         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9981 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9983         [BZ #13841]
9984         * math/s_csqrt.c: Include <float.h>.
9985         (__csqrt): Scale large or subnormal inputs.
9986         * math/s_csqrtf.c: Likewise.
9987         * math/s_csqrtl.c: Likewise.
9988         * math/libm-test.inc (csqrt_test): Add more tests.
9989         * sysdeps/i386/fpu/libm-test-ulps: Update.
9990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9992         [BZ #13840]
9993         * math/libm-test.inc (hypot_test): Add more tests.
9995 2012-03-13  David S. Miller  <davem@davemloft.net>
9997         [BZ #13840]
9998         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9999         double-precision for the calculation instead of scaling.
10001 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10003         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10004         manipulate bits before adding and subtracting TWO52[sx].
10005         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10006         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10007         Likewise.
10008         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10010 2012-03-13  David S. Miller  <davem@davemloft.net>
10012         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10013         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10014         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10015         rtld-global-offsets.h
10016         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10018         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10019         large parameters.
10021         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10023         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10024         'err' in the ifdef scope in which it is actually used.
10026         * nss/nss_db/db-init.c: Include string.h
10028 2012-03-12  David S. Miller  <davem@davemloft.net>
10030         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10031         masking out of the most significant byte of random value used.
10032         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10033         Fix coding style in previous change.
10035         * sysdeps/unix/sysv/linux/kernel-features.h
10036         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10037         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10038         expression.
10039         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10040         later.
10042 2012-03-11  David S. Miller  <davem@davemloft.net>
10044         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10045         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10046         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10047         for 'resultvar' otherwise things get truncated on 64-bit.
10049         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10050         Fix masking out of the most significant byte of random value used.
10052         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10054 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10056         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10058 2012-03-09  David S. Miller  <davem@davemloft.net>
10060         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10061         variables with appropriate CPP guards.
10062         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10063         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10064         on resulting framesize and the management of the outregs buffer for pltexit.
10065         Preserve floating point return values across _dl_call_pltexit call.
10066         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10067         framesize and the management of the outregs buffer for pltexit.
10068         Preserve floating point return values across _dl_call_pltexit
10069         call.
10070         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10071         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10072         (print_exit): Fix format string for return register value.
10074 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10076         * sunrpc/Makefile (others): Add rpcgen.
10077         ($(objpfx)rpcgen): Remove special build rule and dependency on
10078         libc.
10079         * sunrpc/rpcgen.c: New file.
10081 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10083         [BZ #13673]
10084         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10085         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10086         * sysdeps/i386/crti.S: Likewise.
10087         * sysdeps/i386/crtn.S: Likewise.
10088         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10089         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10090         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10091         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10092         * sysdeps/sh/crti.S: Likewise.
10093         * sysdeps/sh/crtn.S: Likewise.
10094         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10096         [BZ #13673]
10097         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10098         with URL.
10099         * locale/programs/locfile-kw.gperf: Likewise.
10100         * locale/programs/charmap-kw.h: Regenerated.
10101         * locale/programs/locfile-kw.h: Likewise.
10103         [BZ #13673]
10104         * intl/plural.y: Replace FSF snail mail address with URL.
10105         * intl/plural.c: Regenerated.
10107 2012-03-09  Richard Henderson  <rth@twiddle.net>
10109         * include/math_private.h: Remove file.
10110         * math/math_private.h: Move file ...
10111         * sysdeps/generic/math_private.h: ... here.
10113         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10114         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10115         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10117         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10118         and <math_private.h>.
10119         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10120         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10121         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10122         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10123         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10124         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10125         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10126         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10127         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10128         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10129         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10130         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10131         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10132         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10133         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10134         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10135         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10136         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10137         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10138         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10139         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10140         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10141         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10142         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10143         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10144         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10145         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10146         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10147         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10148         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10149         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10150         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10151         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10152         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10153         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10154         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10155         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10156         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10157         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10158         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10159         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10160         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10161         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10162         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10163         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10164         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10165         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10166         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10167         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10168         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10169         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10170         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10171         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10172         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10173         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10174         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10175         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10176         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10177         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10178         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10179         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10180         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10181         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10182         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10183         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10184         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10185         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10186         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10187         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10188         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10189         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10190         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10191         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10192         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10193         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10194         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10195         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10196         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10197         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10198         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10199         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10200         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10201         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10202         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10203         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10204         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10205         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10206         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10207         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10208         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10209         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10210         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10211         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10212         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10213         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10214         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10215         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10216         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10217         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10218         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10219         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10220         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10221         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10222         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10223         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10224         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10225         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10226         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10227         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10228         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10229         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10230         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10231         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10232         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10233         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10234         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10235         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10236         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10237         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10238         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10239         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10240         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10241         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10242         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10243         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10244         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10245         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10246         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10247         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10248         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10249         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10250         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10251         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10252         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10253         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10254         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10255         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10256         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10257         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10258         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10259         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10260         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10261         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10262         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10263         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10264         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10265         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10266         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10267         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10268         * sysdeps/ieee754/k_standard.c: Likewise.
10269         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10270         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10271         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10272         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10273         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10274         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10275         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10276         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10277         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10278         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10279         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10280         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10281         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10282         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10283         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10284         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10285         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10286         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10287         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10288         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10290         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10291         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10292         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10293         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10294         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10295         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10296         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10297         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10298         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10299         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10300         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10301         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10302         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10303         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10304         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10305         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10306         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10307         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10308         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10309         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10310         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10311         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10312         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10313         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10314         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10316         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10317         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10318         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10319         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10320         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10321         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10322         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10323         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10324         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10325         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10326         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10327         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10328         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10329         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10330         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10331         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10332         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10333         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10334         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10335         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10336         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10337         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10338         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10340         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10341         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10342         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10343         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10344         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10345         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10346         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10347         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10348         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10349         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10350         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10351         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10352         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10353         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10354         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10355         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10356         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10357         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10358         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10359         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10360         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10361         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10362         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10363         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10364         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10365         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10366         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10367         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10368         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10369         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10370         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10371         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10372         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10373         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10374         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10375         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10376         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10377         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10378         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10379         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10380         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10381         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10382         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10383         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10384         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10385         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10386         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10387         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10388         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10389         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10390         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10391         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10392         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10393         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10394         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10395         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10396         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10397         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10398         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10399         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10400         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10401         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10402         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10403         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10404         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10405         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10406         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10407         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10408         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10409         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10410         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10411         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10412         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10413         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10414         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10415         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10416         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10417         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10418         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10419         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10421         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10422         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10423         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10425         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10427         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10428         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10429         * sysdeps/ieee754/s_lib_version.c: Likewise.
10430         * sysdeps/ieee754/s_matherr.c: Likewise.
10431         * sysdeps/ieee754/s_signgam.c: Likewise.
10432         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10433         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10434         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10435         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10436         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10437         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10438         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10439         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10440         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10441         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10442         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10443         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10444         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10445         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10446         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10447         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10448         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10449         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10450         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10451         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10452         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10454 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10456         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10457         * sunrpc/rpc_main.c: Likewise.
10458         * sunrpc/rpc_svcout.c: Likewise.
10460 2012-03-09  David S. Miller  <davem@davemloft.net>
10462         * include/math_private.h: New file.
10464 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10466         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10467         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10468         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10469         from <bits/socket_type.h>.
10470         (enum __socket_type): Don't define here.
10471         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10472         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10473         bits/socket_type.h.
10475         [BZ #13566]
10476         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10477         checking __USE_GNU.
10479         * Makerules ($(inst_includedir)/%.h): New rule.
10480         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10481         (install-others): Remove variable setting.
10482         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10484 2012-03-08  Richard Henderson  <rth@twiddle.net>
10486         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10487         from macro to inline function; merge with the
10488         !__LIBC_INTERNAL_MATH_INLINES version.
10489         (__ieee754_sqrtf): Likewise.
10491         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10492         to inline function.
10493         (__rintf, __floor, __floorf): Likewise.
10495         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10496         macro to inline function.
10497         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10499         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10500         not <math/math_private.h>.
10502 2012-03-08  David S. Miller  <davem@davemloft.net>
10504         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10505         copyright year.
10506         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10508 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10510         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10511         normalization.
10512         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10513         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10515 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10517         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10518         be defined individually, they must be defined as a block.  Define
10519         S for printing a string instead of hidint the different by using a
10520         macro for adding the 'l'.
10521         * stdio-common/tst-fphex-wide.c: Adjust.
10523 2012-03-07  Marek Polacek  <polacek@redhat.com>
10525         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10527 2012-03-08  Marek Polacek  <polacek@redhat.com>
10529         [BZ #13806]
10530         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10531         * stdio-common/tst-fphex.c: Define a few macros to make the
10532         test reusable.  Use them.
10533         * stdio-common/tst-fphex-wide.c: New file.
10535 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10537         [BZ #6911]
10538         * manual/macros.texi (gnusystems): New macro.
10539         (nongnusystems): Likewise.
10540         (gnulinuxhurdsystems): Likewise.
10541         (gnuhurdsystems): Likewise..
10542         (gnulinuxsystems): Likewise.
10543         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10544         variants of the GNU system, not "GNU system".
10545         * manual/conf.texi: Likewise.
10546         * manual/errno.texi: Likewise.  Update example of errno macro
10547         expansion.
10548         * manual/filesys.texi: Likewise.
10549         (getumask): Document as specific to GNU/Hurd.
10550         * manual/install.texi: Likewise.  Reword some references to
10551         GNU/Linux.
10552         * manual/intro.texi: Likewise.
10553         * manual/io.texi: Likewise.
10554         (File Name Portability): Detail which constraints are inapplicable
10555         to all GNU systems and which are only inapplicable to GNU/Hurd.
10556         * manual/job.texi: Likewise.
10557         * manual/llio.texi: Likewise.
10558         (O_NOCTTY): Document as present on GNU/Linux.
10559         * manual/maint.texi: Likewise.
10560         * manual/memory.texi: Likewise.
10561         * manual/pattern.texi: Likewise.
10562         * manual/pipe.texi: Likewise.
10563         * manual/process.texi: Likewise.
10564         * manual/resource.texi: Likewise.
10565         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10566         child on GNU/Hurd.
10567         * manual/setjmp.texi: Likewise.
10568         * manual/signal.texi: Likewise.
10569         * manual/startup.texi: Likewise.
10570         * manual/stdio.texi: Likewise.
10571         * manual/terminal.texi: Likewise.
10572         (ONLCR): Document as POSIX.
10573         (OXTABS): Document availability on GNU/Linux as XTABS.
10574         (ONOEOT): Document availability separately from other bits.
10575         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10576         * manual/time.texi: Likewise.
10577         * manual/users.texi: Likewise.
10578         * INSTALL: Regenerated.
10579         * sysdeps/gnu/errlist.c: Regenerated.
10581         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10582         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10583         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10584         puts.
10585         * configure: Regenerated.
10587 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10589         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10590         default includes instead of AC_HEADER_CHECK.
10591         * sysdeps/i386/configure: Regenerated.
10593         [BZ #10716]
10594         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10595         * math/s_cacoshf.c (__cacoshf): Likewise.
10596         * math/s_cacoshl.c (__cacoshl): Likewise.
10597         * math/s_casinh.c (__casinh): Set signs of result from argument.
10598         * math/s_casinhf.c (__casinhf): Likewise.
10599         * math/s_casinhl.c (__casinhl): Likewise.
10600         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10601         (casinh_test): Add more tests.
10602         * sysdeps/i386/fpu/libm-test-ulps: Update.
10603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10605 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10607         * po/zh_TW.po: Update from translation team.
10609         * login/Makefile (distribute): Remove variable.
10610         * catgets/Makefile: Likewise.
10611         * mach/Makefile: Likewise.
10612         * malloc/Makefile: Likewise.
10613         * misc/Makefile: Likewise.
10614         * iconv/Makefile: Likewise.
10615         * nscd/Makefile: Likewise.
10616         * hurd/Makefile: Likewise.
10617         * manual/Makefile: Likewise.
10618         * locale/Makefile: Likewise.
10619         * intl/Makefile: Likewise.
10620         * conform/Makefile: Likewise.
10621         * nss/Makefile: Likewise.
10622         * time/Makefile: Likewise.
10623         * soft-fp/Makefile: Likewise.
10624         * dirent/Makefile: Likewise.
10625         * gmon/Makefile: Likewise.
10626         * po/Makefile: Likewise.
10627         * rt/Makefile: Likewise.
10628         * socket/Makefile: Likewise.
10629         * math/Makefile: Likewise.
10630         * signal/Makefile: Likewise.
10631         * debug/Makefile: Likewise.
10632         * elf/Makefile: Likewise.
10633         * timezone/Makefile: Likewise.
10634         * stdlib/Makefile: Likewise.
10635         * iconvdata/Makefile: Likewise.
10636         * sunrpc/Makefile: Likewise.
10637         * io/Makefile: Likewise.
10638         * argp/Makefile: Likewise.
10639         * inet/Makefile: Likewise.
10640         * hesiod/Makefile: Likewise.
10641         * grp/Makefile: Likewise.
10642         * csu/Makefile: Likewise.
10643         * wctype/Makefile: Likewise.
10644         * crypt/Makefile: Likewise.
10645         * libio/Makefile: Likewise.
10646         * string/Makefile: Likewise.
10647         * nis/Makefile: Likewise.
10648         * resolv/Makefile: Likewise.
10649         * stdio-common/Makefile: Likewise.
10650         * wcsmbs/Makefile: Likewise.
10651         * dlfcn/Makefile: Likewise.
10652         * posix/Makefile: Likewise.
10654         [BZ #6959]
10655         * timezone/Makefile: Don't install timezone files, just the programs
10656         and scripts.
10658 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10660         * nss/databases.def: Add missing gshadow entry.
10662         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10664 2012-03-06  Marek Polacek  <polacek@redhat.com>
10666         [BZ #13726]
10667         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10668         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10669         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10670         * stdio-common/tst-long-dbl-fphex.c: New file.
10672 2012-03-06  David S. Miller  <davem@davemloft.net>
10674         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10675         (set_obp_int): New function.
10676         (get_obp_int): New function.
10677         (__get_clockfreq_via_dev_openprom): Likewise.
10678         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10679         Avoid unused variable warnings on 'val' and use builtin_expect.
10680         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10681         __builtin_expect.
10682         (INLINE_CLONE_SYSCALL): Likewise.
10684 2012-03-05  David S. Miller  <davem@davemloft.net>
10686         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10688 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10690         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10692         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10693         only for |x| >= 40.
10694         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10696 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10698         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10699         Replace gettimeofday with __vdso_gettimeofday.
10701         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10702         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10703         __vdso_clock_gettime and __vdso_getcpu.
10705         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10706         time with __vdso_time.
10708 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10710         * manual/lang.texi (size_t): Note types to which size_t may be
10711         equivalent with the GNU C Library, but do not describe when
10712         differences between them are significant.
10714 2012-03-05  Andreas Jaeger  <aj@suse.de>
10716         * sysdeps/i386/fpu/libm-test-ulps: Update.
10718 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10720         [BZ #3976]
10721         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10722         (__ieee754_pow): Save and restore rounding mode and use
10723         round-to-nearest for main computations.
10724         * math/libm-test.inc (pow_test_tonearest): New function.
10725         (pow_test_towardzero): Likewise.
10726         (pow_test_downward): Likewise.
10727         (pow_test_upward): Likewise.
10728         (main): Call the new functions.
10729         * sysdeps/i386/fpu/libm-test-ulps: Update.
10730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10732         [BZ #3976]
10733         * math/libm-test.inc (cosh_test_tonearest): New function.
10734         (cosh_test_towardzero): Likewise.
10735         (cosh_test_downward): Likewise.
10736         (cosh_test_upward): Likewise.
10737         (sinh_test_tonearest): Likewise.
10738         (sinh_test_towardzero): Likewise.
10739         (sinh_test_downward): Likewise.
10740         (sinh_test_upward): Likewise.
10741         (main): Call the new functions.
10742         * sysdeps/i386/fpu/libm-test-ulps: Update.
10743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10745 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10747         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10748         default stack guard is set in last bytes.
10749         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10751 2012-03-05  Kees Cook  <keescook@chromium.org>
10753         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10755         [BZ #13656]
10756         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10757         possibly allocate from heap instead of stack.
10758         * stdio-common/bug-vfprintf-nargs.c: New file.
10759         * stdio-common/Makefile (tests): Add nargs overflow test.
10761 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10763         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10765 2012-03-03  Marek Polacek  <polacek@redhat.com>
10767         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10768         * math/math_private.h: Likewise.
10769         * stdlib/tst-strtod.c: Likewise.
10770         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10771         * sysdeps/x86_64/bits/atomic.h: Likewise.
10773 2012-03-02  David S. Miller  <davem@davemloft.net>
10775         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10777         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10779         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10780         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10781         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10782         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10784 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10786         [BZ #13792]
10787         * manual/examples/README: New file, says the example source files
10788         can be used under GPL>=2.
10789         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10790         line containing just "*/".
10791         * manual/examples/add.c: Add copyright header (GPL>=2).
10792         * manual/examples/argp-ex1.c: Likewise.
10793         * manual/examples/argp-ex2.c: Likewise.
10794         * manual/examples/argp-ex3.c: Likewise.
10795         * manual/examples/argp-ex4.c: Likewise.
10796         * manual/examples/atexit.c: Likewise.
10797         * manual/examples/db.c: Likewise.
10798         * manual/examples/dir.c: Likewise.
10799         * manual/examples/dir2.c: Likewise.
10800         * manual/examples/execinfo.c: Likewise.
10801         * manual/examples/filecli.c: Likewise.
10802         * manual/examples/filesrv.c: Likewise.
10803         * manual/examples/fmtmsgexpl.c: Likewise.
10804         * manual/examples/genpass.c: Likewise.
10805         * manual/examples/inetcli.c: Likewise.
10806         * manual/examples/inetsrv.c: Likewise.
10807         * manual/examples/isockad.c: Likewise.
10808         * manual/examples/longopt.c: Likewise.
10809         * manual/examples/memopen.c: Likewise.
10810         * manual/examples/memstrm.c: Likewise.
10811         * manual/examples/mkfsock.c: Likewise.
10812         * manual/examples/mkisock.c: Likewise.
10813         * manual/examples/mygetpass.c: Likewise.
10814         * manual/examples/pipe.c: Likewise.
10815         * manual/examples/popen.c: Likewise.
10816         * manual/examples/rprintf.c: Likewise.
10817         * manual/examples/search.c: Likewise.
10818         * manual/examples/select.c: Likewise.
10819         * manual/examples/setjmp.c: Likewise.
10820         * manual/examples/sigh1.c: Likewise.
10821         * manual/examples/sigusr.c: Likewise.
10822         * manual/examples/stpcpy.c: Likewise.
10823         * manual/examples/strdupa.c: Likewise.
10824         * manual/examples/strftim.c: Likewise.
10825         * manual/examples/strncat.c: Likewise.
10826         * manual/examples/subopt.c: Likewise.
10827         * manual/examples/swapcontext.c: Likewise.
10828         * manual/examples/termios.c: Likewise.
10829         * manual/examples/testopt.c: Likewise.
10830         * manual/examples/testpass.c: Likewise.
10831         * manual/examples/timeval_subtract.c: Likewise.
10833         [BZ #13792]
10834         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10835         function to ...
10836         * manual/timeval_subtract.c.texi: ... here, new file.
10838 2012-03-02  David S. Miller  <davem@davemloft.net>
10840         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10842 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10844         [BZ #3976]
10845         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10846         (__sin): Save and restore rounding mode and use round-to-nearest
10847         for all computations.
10848         (__cos): Save and restore rounding mode and use round-to-nearest
10849         for all computations.
10850         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10851         <fenv.h>.
10852         (tan): Save and restore rounding mode and use round-to-nearest for
10853         all computations.
10854         * math/libm-test.inc (cos_test_tonearest): New function.
10855         (cos_test_towardzero): Likewise.
10856         (cos_test_downward): Likewise.
10857         (cos_test_upward): Likewise.
10858         (sin_test_tonearest): Likewise.
10859         (sin_test_towardzero): Likewise.
10860         (sin_test_downward): Likewise.
10861         (sin_test_upward): Likewise.
10862         (tan_test_tonearest): Likewise.
10863         (tan_test_towardzero): Likewise.
10864         (tan_test_downward): Likewise.
10865         (tan_test_upward): Likewise.
10866         (main): Call the new functions.
10867         * sysdeps/i386/fpu/libm-test-ulps: Update.
10868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10870         [BZ #10135]
10871         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10872         small n, then large n, before computing and testing k+n.
10873         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10874         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10875         Likewise.
10876         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10877         Likewise.
10878         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10879         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10880         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10881         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10882         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10883         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10884         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10885         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10886         * math/libm-test.inc (scalbn_test): Add more tests.
10887         (scalbln_test): Likewise.
10889         * manual/filesys.texi (mode_t): Describe constraints on size and
10890         signedness, not exact equivalence to a particular type.
10891         (ino_t): Likewise.
10892         (ino64_t): Likewise.
10893         (dev_t): Likewise.
10894         (nlink_t): Likewise.
10895         (blkcnt_t): Likewise.
10896         (blkcnt64_t): Likewise.
10897         * manual/llio.texi (off_t): Likewise.
10899         [BZ #3976]
10900         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10901         (__ieee754_exp): Save and restore rounding mode and use
10902         round-to-nearest for all computations.
10903         * math/libm-test.inc (exp_test_tonearest): New function.
10904         (exp_test_towardzero): Likewise.
10905         (exp_test_downward): Likewise.
10906         (exp_test_upward): Likewise.
10907         (main): Call the new functions.
10908         * sysdeps/i386/fpu/libm-test-ulps: Update.
10909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10911 2012-03-01  Chris Demetriou  <cgd@google.com>
10913         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10914         have predictable order.
10916 2012-03-01  David S. Miller  <davem@davemloft.net>
10918         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10920         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10921         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10922         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10923         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10925         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10926         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10927         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10928         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10929         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10930         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10931         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10932         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10933         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10935         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10937         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10938         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10939         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10941         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10942         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10943         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10944         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10945         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10946         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10947         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10948         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10949         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10950         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10951         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10952         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10953         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10954         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10955         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10956         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10957         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10958         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10959         * sysdeps/sparc/elf/configure: Regenerated.
10961 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10963         * configure.in (AS, LD): Require binutils 2.20 or later.
10964         * configure: Regenerated.
10965         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10966         as required minimum version.
10967         * INSTALL: Regenerated.
10969         [BZ #2541]
10970         [BZ #4108]
10971         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10972         before squaring exponent.
10973         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10974         bottom long double and 27 bits of top long double before squaring
10975         exponent.
10976         * math/libm-test.inc (erfc_test): Add more tests.
10977         * sysdeps/i386/fpu/libm-test-ulps: Update.
10978         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10981 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10983         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10984         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10985         containing bit-fields.
10986         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10987         * soft-fp/single.h (_FP_UNION_S): Likewise.
10988         * soft-fp/double.h (_FP_UNION_D): Likewise.
10990 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10992         [BZ #13786]
10993         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10994         not include ../strcmp.S.
10995         [USE_AS_STRNCASECMP_L]: Likewise.
10996         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10997         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10998         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10999         (__strncasecmp_l_ia32): Define as alias to
11000         __strncasecmp_l_nonascii.
11002         [BZ #5794]
11003         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11004         * sysdeps/i386/fpu/libm-test-ulps: Update.
11005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11007         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11010 2012-02-29  Jeff Law  <law@redhat.com>
11012         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11013         out of bounds read.
11015 2012-02-29  Marek Polacek  <polacek@redhat.com>
11017         [BZ #13706]
11018         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11019         * elf/Makefile: Add rules to run tst-unused-dep.out.
11021 2012-02-28  David S. Miller  <davem@davemloft.net>
11023         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11024         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11025         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11026         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11027         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11028         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11030 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11032         * math/libm-test.inc (llround_test): Move one test from
11033         lround_test.  Use TEST_f_L in moved test.
11034         (lround_test): Move misplaced test to llround_test.  Add testcase
11035         from bug 2561.
11037 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11039         * sysdeps/x86_64/fpu/e_expf.S: New file.
11040         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11042 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11044         [BZ #13637]
11045         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11046         of remain_len that may cause incomplete multi-byte character and
11047         false match.
11048         * posix/bug-regex33.c: New file.
11049         * posix/Makefile (tests): Add bug-regex33.
11051 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11053         * manual/macros.texi: New file.
11054         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11055         * manual/libc.texinfo: Include macros.texi.
11056         * manual/creatute.texi: Likewise.
11057         * manual/install.texi: Likewise.
11058         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11059         @glibcadj{} in references to the GNU C Library.
11060         * manual/charset.texi: Likewise.
11061         * manual/conf.texi: Likewise.
11062         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11063         when not using those macros.
11064         * manual/creature.texi: Likewise.
11065         * manual/crypt.texi: Likewise.
11066         * manual/errno.texi: Likewise.
11067         * manual/filesys.texi: Likewise.
11068         * manual/header.texi: Likewise.
11069         * manual/install.texi: Likewise.
11070         * manual/intro.texi: Likewise.
11071         * manual/io.texi: Likewise.
11072         * manual/job.texi: Likewise.
11073         * manual/lang.texi: Likewise.
11074         * manual/libc.texiinfo: Likewise.
11075         * manual/llio.texi: Likewise.
11076         * manual/locale.texi: Likewise.
11077         * manual/maint.texi: Likewise.
11078         * manual/math.texi: Likewise.
11079         * manual/memory.texi: Likewise.
11080         * manual/message.texi: Likewise.
11081         * manual/nss.texi: Likewise.
11082         * manual/pattern.texi: Likewise.
11083         * manual/process.texi: Likewise.
11084         * manual/resource.texi: Likewise.
11085         * manual/search.texi: Likewise.
11086         * manual/setjmp.texi: Likewise.
11087         * manual/signal.texi: Likewise.
11088         * manual/socket.texi: Likewise.
11089         * manual/startup.texi: Likewise.
11090         * manual/stdio.texi: Likewise.
11091         * manual/string.texi: Likewise.
11092         * manual/sysinfo.texi: Likewise.
11093         * manual/syslog.texi: Likewise.
11094         * manual/terminal.texi: Likewise.
11095         * manual/time.texi: Likewise.
11096         * manual/users.texi: Likewise.
11097         * INSTALL: Regenerated.
11098         * NOTES: Regenerated.
11099         * sysdeps/gnu/errlist.c: Regenerated.
11101 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11103         * include/dirent.h: Include <dirstream.h> before
11104         <dirent/dirent.h>.
11106 2012-02-28  David S. Miller  <davem@davemloft.net>
11108         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11109         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11110         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11111         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11113 2012-02-27  David S. Miller  <davem@davemloft.net>
11115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11116         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11117         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11118         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11121         frame pointer instead of stack pointer relative arg slot.
11122         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11123         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11124         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11126 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11128         [BZ #3992]
11129         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11131 2012-02-27  David S. Miller  <davem@davemloft.net>
11133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11134         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11135         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11136         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11137         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11138         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11139         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11140         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11142 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11144         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11145         later.  Allow versions 5-9.
11146         * configure: Regenerated.
11147         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11148         required minimum version and 4.6 as recommended version.  Do not
11149         mention bugs in GCC 2.7 and 2.8.
11150         * INSTALL: Regenerated.
11152 2012-02-27  David S. Miller  <davem@davemloft.net>
11154         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11155         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11156         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11157         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11158         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11159         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11160         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11161         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11163         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11164         manipulate bits before adding and subtracting TWO112[sx].
11165         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11167 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11169         [BZ #13775]
11170         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11171         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11172         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11173         being in POSIX, because they are in 1003.1-2008.
11175         * rt/tst-aio.c: Include <fcntl.h>.
11176         * rt/tst-aio7.c: Likewise.
11177         * rt/tst-aio64.c: Likewise.
11179         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11181 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11183         * manual/install.texi (--with-headers): Describe headers as
11184         interface headers, not private headers.
11185         (Specific advice for GNU/Linux systems): Describe use of headers
11186         from "make headers_install", not private headers from older
11187         kernels.
11188         * INSTALL: Regenerated.
11189         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11190         Change to 2.6.19.
11191         * sysdeps/unix/sysv/linux/configure: Regenerated.
11193         * manual/llio.texi (fclean): Remove documentation.
11195         * manual/Makefile (libc-texi-generated): New variable.  Include
11196         version.texi.
11197         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11198         $(libc-texi-generated), not duplicated list of files.
11199         (version.texi, stamp-version): New rules.
11200         (realclean): Remove $(libc-texi-generated), not individual files
11201         from that list.  Do not remove dir-add.texinfo.
11202         * manual/libc.texinfo: Comment out uses of edition numbers and
11203         references to printed manual.  Remove last-updated dates.
11204         (EDITION): Comment out.
11205         (ISBN): Likewise.
11206         (VERSION, UPDATED): Remove.
11207         (version.texi): Include.
11209 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11211         * sysdeps/posix/spawni.c: Include <signal.h>.
11212         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11213         * sysdeps/pthread/aio_fsync.c: Likewise.
11215 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11217         * conform/Makefile (tests): Run only when not cross-compiling and
11218         when fast-check is not defined.
11220         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11221         * conform/data/limits.h-data: Fixes for POSIX2008.
11222         * conform/run-conformtest.sh: Run all tests.
11223         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11224         headers.
11225         * include/bits/dlfcn.h: Likewise.
11226         * include/langinfo.h: Likewise.
11227         * include/monetary.h: Likewise.
11228         * include/sys/poll.h: Likewise.
11230         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11231         for __USE_GNU.
11232         * posix/spawn.h: Define __need_sigset_t.
11233         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11234         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11235         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11236         to get sigevent_t only.
11237         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11238         only for __USE_GNU.
11239         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11240         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11241         process_vm_writev only for __USE_GNU.
11242         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11244         * conform/Makefile: For now ignore errors from run-conformtest.
11245         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11246         POSIX to avoid namespace pollution.  Don't prepend headers.
11247         * conform/data/aio.h-data: Fixes for POSIX testing.
11248         * conform/data/fcntl.h-data: Likewise.
11249         * conform/data/glob.h-data: Likewise.
11250         * conform/data/grp.h-data: Likewise.
11251         * conform/data/pthread.h-data: Likewise.
11252         * conform/data/pwd.h-data: Likewise.
11253         * conform/data/signal.h-data: Likewise.
11254         * conform/data/spawn.h-data: Likewise.
11255         * conform/data/stdio.h-data: Likewise.
11256         * conform/data/stdlib.h-data: Likewise.
11257         * conform/data/stropts.h-data: Likewise.
11258         * conform/data/sys/mman.h-data: Likewise.
11259         * conform/data/sys/stat.h-data: Likewise.
11260         * conform/data/sys/types.h-data: Likewise.
11261         * conform/data/sys/wait.h-data: Likewise.
11262         * conform/data/time.h-data: Likewise.
11263         * conform/data/unistd.h-data: Likewise.
11264         * conform/data/utime.h-data: Likewise.
11266         * io/sys/stat.h: fchmod was always in POSIX.
11267         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11268         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11269         * rt/aio.h: Define __need_timespec before including <time.h>.
11270         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11271         struct.  Add forward declaration of pthread_attr_t and use it in
11272         sigevent.
11273         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11274         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11275         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11276         always remove CLK_TCK definition.
11278 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11280         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11282 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11284         * conform/run-conformtest.sh: New file.
11285         * conform/Makefile: Run run-conformtest for tests.
11286         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11287         support.
11289         * conform/data/uchar.h-data: New file.
11290         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11291         * conform/data/arpa/inet.h-data: Likewise.
11292         * conform/data/assert.h-data: Likewise.
11293         * conform/data/complex.h-data: Likewise.
11294         * conform/data/cpio.h-data: Likewise.
11295         * conform/data/ctype.h-data: Likewise.
11296         * conform/data/dirent.h-data: Likewise.
11297         * conform/data/dlfcn.h-data: Likewise.
11298         * conform/data/errno.h-data: Likewise.
11299         * conform/data/fcntl.h-data: Likewise.
11300         * conform/data/float.h-data: Likewise.
11301         * conform/data/fmtmsg.h-data: Likewise.
11302         * conform/data/fnmatch.h-data: Likewise.
11303         * conform/data/ftw.h-data: Likewise.
11304         * conform/data/glob.h-data: Likewise.
11305         * conform/data/grp.h-data: Likewise.
11306         * conform/data/iconv.h-data: Likewise.
11307         * conform/data/inttypes.h-data: Likewise.
11308         * conform/data/langinfo.h-data: Likewise.
11309         * conform/data/libgen.h-data: Likewise.
11310         * conform/data/limits.h-data: Likewise.
11311         * conform/data/locale.h-data: Likewise.
11312         * conform/data/math.h-data: Likewise.
11313         * conform/data/monetary.h-data: Likewise.
11314         * conform/data/mqueue.h-data: Likewise.
11315         * conform/data/ndbm.h-data: Likewise.
11316         * conform/data/net/if.h-data: Likewise.
11317         * conform/data/netdb.h-data: Likewise.
11318         * conform/data/netinet/in.h-data: Likewise.
11319         * conform/data/nl_types.h-data: Likewise.
11320         * conform/data/poll.h-data: Likewise.
11321         * conform/data/pthread.h-data: Likewise.
11322         * conform/data/pwd.h-data: Likewise.
11323         * conform/data/regex.h-data: Likewise.
11324         * conform/data/sched.h-data: Likewise.
11325         * conform/data/search.h-data: Likewise.
11326         * conform/data/semaphore.h-data: Likewise.
11327         * conform/data/setjmp.h-data: Likewise.
11328         * conform/data/signal.h-data: Likewise.
11329         * conform/data/spawn.h-data: Likewise.
11330         * conform/data/stdarg.h-data: Likewise.
11331         * conform/data/stdio.h-data: Likewise.
11332         * conform/data/stdlib.h-data: Likewise.
11333         * conform/data/string.h-data: Likewise.
11334         * conform/data/strings.h-data: Likewise.
11335         * conform/data/stropts.h-data: Likewise.
11336         * conform/data/sys/ipc.h-data: Likewise.
11337         * conform/data/sys/mman.h-data: Likewise.
11338         * conform/data/sys/msg.h-data: Likewise.
11339         * conform/data/sys/resource.h-data: Likewise.
11340         * conform/data/sys/select.h-data: Likewise.
11341         * conform/data/sys/sem.h-data: Likewise.
11342         * conform/data/sys/shm.h-data: Likewise.
11343         * conform/data/sys/socket.h-data: Likewise.
11344         * conform/data/sys/stat.h-data: Likewise.
11345         * conform/data/sys/statvfs.h-data: Likewise.
11346         * conform/data/sys/time.h-data: Likewise.
11347         * conform/data/sys/timeb.h-data: Likewise.
11348         * conform/data/sys/times.h-data: Likewise.
11349         * conform/data/sys/types.h-data: Likewise.
11350         * conform/data/sys/uio.h-data: Likewise.
11351         * conform/data/sys/un.h-data: Likewise.
11352         * conform/data/sys/utsname.h-data: Likewise.
11353         * conform/data/sys/wait.h-data: Likewise.
11354         * conform/data/syslog.h-data: Likewise.
11355         * conform/data/tar.h-data: Likewise.
11356         * conform/data/termios.h-data: Likewise.
11357         * conform/data/utime.h-data: Likewise.
11358         * conform/data/utmpx.h-data: Likewise.
11359         * conform/data/varargs.h-data: Likewise.
11360         * conform/data/wchar.h-data: Likewise.
11361         * conform/data/wctype.h-data: Likewise.
11362         * conform/data/wordexp.h-data: Likewise.
11364         * include/stropts.h: New file.
11365         * include/uchar.h: New file.
11366         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11367         * include/assert.h: Likewise.
11368         * include/ctype.h: Likewise.
11369         * include/dirent.h: Likewise.
11370         * include/dlfcn.h: Likewise.
11371         * include/fcntl.h: Likewise.
11372         * include/fnmatch.h: Likewise.
11373         * include/glob.h: Likewise.
11374         * include/grp.h: Likewise.
11375         * include/libio.h: Likewise.
11376         * include/locale.h: Likewise.
11377         * include/math.h: Likewise.
11378         * include/net/if.h: Likewise.
11379         * include/netdb.h: Likewise.
11380         * include/netinet/in.h: Likewise.
11381         * include/pthread.h: Likewise.
11382         * include/pwd.h: Likewise.
11383         * include/regex.h: Likewise.
11384         * include/sched.h: Likewise.
11385         * include/search.h: Likewise.
11386         * include/setjmp.h: Likewise.
11387         * include/signal.h: Likewise.
11388         * include/stdio.h: Likewise.
11389         * include/stdlib.h: Likewise.
11390         * include/string.h: Likewise.
11391         * include/sys/cdefs.h: Likewise.
11392         * include/sys/mman.h: Likewise.
11393         * include/sys/msg.h: Likewise.
11394         * include/sys/resource.h: Likewise.
11395         * include/sys/select.h: Likewise.
11396         * include/sys/socket.h: Likewise.
11397         * include/sys/stat.h: Likewise.
11398         * include/sys/statvfs.h: Likewise.
11399         * include/sys/time.h: Likewise.
11400         * include/sys/times.h: Likewise.
11401         * include/sys/uio.h: Likewise.
11402         * include/sys/utsname.h: Likewise.
11403         * include/sys/wait.h: Likewise.
11404         * include/termios.h: Likewise.
11405         * include/time.h: Likewise.
11406         * include/ulimit.h: Likewise.
11407         * include/unistd.h: Likewise.
11408         * include/utime.h: Likewise.
11409         * include/wchar.h: Likewise.
11410         * include/wctype.h: Likewise.
11411         * include/wordexp.h: Likewise.
11413         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11415         * time/time.h: TIME_UTC must be a macro.
11416         Make timespec_get available for ISO C11 only as well.
11418 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11420         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11421         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11423 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11425         * configure.in: Use -o not -a in test for unsupported multi-arch.
11427 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11429         * manual/texinfo.tex: Update to version 2012-01-19.16.
11431 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11433         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11435 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11437         [BZ #13738]
11438         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11439         * manual/fdl-1.3.texi: New file.
11440         * manual/fdl-1.1.texi: File removed.
11442         [BZ #13738]
11443         * manual/libc.texinfo (FDL_VERSION): New @set.
11444         Use it for mention of FDL in cover text.
11445         (Documentation License): Use it in @include file name.
11447 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11448             Roland McGrath  <roland@hack.frob.com>
11450         [BZ #5461]
11451         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11452         not LONG_LONG_MAX and LONG_LONG_MIN.
11453         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11454         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11455         name.
11456         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11458 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11460         [BZ #2547]
11461         [BZ #11365]
11462         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11463         manipulate bits before adding and subtracting TWO23[sx].
11464         * math/libm-test.inc (nearbyint_test): Add more tests.
11466 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11468         [BZ #2548]
11469         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11470         bits before adding and subtracting TWO23[sx].
11471         * math/libm-test.inc (rint_test): Add more tests.
11472         (rint_test_tonearest): Likewise.
11473         (rint_test_towardzero): Likewise.
11474         (rint_test_downward): Likewise.
11475         (rint_test_upward: Likewise.
11477 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11479         [BZ #10110]
11480         * include/stdc-predef.h: New file.  Extracted from features.h.
11481         * include/features.h: Include stdc-predef.h.
11482         * Makefile (headers): Add stdc-predef.h.
11483         * CONFORMANCE (Compiler limitations): Update.
11485 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11487         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11489 2012-02-21  David S. Miller  <davem@davemloft.net>
11491         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11492         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11494 2012-02-20  David S. Miller  <davem@davemloft.net>
11496         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11497         using a normal save/restore sequence, rather than allocating a
11498         dummy stack frame just to store a frame pointer and restore.
11499         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11501 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11503         * manual/install.texi: Fix stray word in line-wrapped comment.
11505 2012-02-20  David S. Miller  <davem@davemloft.net>
11507         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11508         both binutils and gcc support GOTDATA.
11510         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11511         "rd %pc" in the PIC register setup sequences.
11513         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11514         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11515         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11516         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11517         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11518         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11519         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11520         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11521         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11522         (SYSCALL_ERROR_HANDLER): Likewise.
11523         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11524         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11525         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11526         (SYSCALL_ERROR_HANDLER): Likewise.
11528         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11529         (HAVE_GCC_GOTDATA): New.
11530         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11531         relocation support in both binutils and gcc.
11532         * sysdeps/sparc/elf/configure: Regenerate.
11534         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11535         * sysdeps/sparc/sparc32/elf/configure: Delete.
11536         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11537         * sysdeps/sparc/sparc64/elf/configure: Delete.
11538         * sysdeps/sparc/elf/configure.in: New file.
11539         * sysdeps/sparc/elf/configure: Generate.
11541         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11542         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11543         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11544         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11545         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11547 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11549         * manual/install.texi: Do not mention specific glibc version
11550         numbers.
11551         * manual/libc.texinfo (VERSION, UPDATED): Update.
11552         (@copying): Use @copyright{} and range of years.
11554 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11556         [BZ #13695]
11557         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11558         [crti.S not in sysdirs] (generated): Do not append.
11559         [crti.S not in sysdirs] (omit-deps): Likewise.
11560         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11561         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11562         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11563         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11564         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11565         Likewise.
11566         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11567         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11568         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11569         * csu/defs.awk: Remove file.
11570         * sysdeps/generic/initfini.c: Likewise.
11571         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11572         variable.
11573         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11574         Likewise.
11576 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11578         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11579         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11580         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11581         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11582         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11583         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11584         <bits/epoll.h>.
11585         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11586         (__EPOLL_PACKED): Define to empty if not defined by
11587         <bits/epoll.h>.
11588         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11589         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11590         bits/epoll.h.
11592 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11594         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11595         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11596         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11597         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11598         <bits/timerfd.h>.
11599         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11600         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11601         bits/timerfd.h.
11603 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11605         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11606         in C locale.
11607         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11608         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11609         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11612 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11614         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11615         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11617 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11619         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11620         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11621         defined.
11622         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11623         Likewise.
11624         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11625         entry for 2.16.
11627 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11629         * math/w_acos.c: Use non-signaling floating-point comparisons.
11630         * math/w_acosf.c: Likewise.
11631         * math/w_acosh.c: Likewise.
11632         * math/w_acoshf.c: Likewise.
11633         * math/w_acoshl.c: Likewise.
11634         * math/w_acosl.c: Likewise.
11635         * math/w_asin.c: Likewise.
11636         * math/w_asinf.c: Likewise.
11637         * math/w_asinl.c: Likewise.
11638         * math/w_atanh.c: Likewise.
11639         * math/w_atanhf.c: Likewise.
11640         * math/w_atanhl.c: Likewise.
11641         * math/w_exp2.c: Likewise.
11642         * math/w_exp2f.c: Likewise.
11643         * math/w_exp2l.c: Likewise.
11644         * math/w_j0.c: Likewise.
11645         * math/w_j0f.c: Likewise.
11646         * math/w_j0l.c: Likewise.
11647         * math/w_j1.c: Likewise.
11648         * math/w_j1f.c: Likewise.
11649         * math/w_j1l.c: Likewise.
11650         * math/w_jn.c: Likewise.
11651         * math/w_jnf.c: Likewise.
11652         * math/w_log.c: Likewise.
11653         * math/w_log10.c: Likewise.
11654         * math/w_log10f.c: Likewise.
11655         * math/w_log10l.c: Likewise.
11656         * math/w_log2.c: Likewise.
11657         * math/w_log2f.c: Likewise.
11658         * math/w_log2l.c: Likewise.
11659         * math/w_logf.c: Likewise.
11660         * math/w_logl.c: Likewise.
11661         * math/w_sqrt.c: Likewise.
11662         * math/w_sqrtf.c: Likewise.
11663         * math/w_sqrtl.c: Likewise.
11664         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11665         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11666         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11667         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11668         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11670 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11672         [BZ #9739]
11673         * manual/string.texi (strnlen): Use correct parameter name in
11674         equivalent expression.
11676 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11678         [BZ #11174]
11679         * manual/users.texi (seteuid): Consistently use neweuid for
11680         argument name.
11682 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11684         [BZ #13704]
11685         * manual/nss.texi (Services in the NSS configuration): Correct
11686         list of services in example configuration file.
11688 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11690         [BZ #11322]
11691         * manual/arith.texi: Remove statements about negative zero
11692         behaving identically to zero.
11694 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11696         [BZ #5993]
11697         * manual/install.texi: Do not document upgrading from libc5.
11699 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11701         [BZ #4596]
11702         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11704 2012-02-18  David S. Miller  <davem@davemloft.net>
11706         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11707         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11708         %o7 across the call.
11709         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11710         instead.
11711         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11712         SETUP_PIC_REG_LEAF.
11713         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11714         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11715         * sysdeps/sparc/crtn.S: Likewise.
11717 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11719         * aout/Makefile: Remove.
11721 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11723         [BZ #13058]
11724         * manual/examples/argp-ex1.c (main): Format definition in GNU
11725         style.
11726         * manual/examples/argp-ex2.c (main): Likewise.
11727         * manual/examples/argp-ex3.c (main): Likewise.
11728         * manual/examples/argp-ex4.c (main): Likewise.
11729         * manual/examples/longopt.c (main): Use new-style prototype
11730         definition.
11731         * manual/examples/strncat.c (main): Specify return type and use
11732         (void) for arguments.
11733         * manual/examples/subopt.c (main): Use char **argv argument.
11735 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11737         [BZ #5077]
11738         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11739         rounding modes.
11741 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11743         [BZ #6907]
11744         * manual/string.texi (strchr): Change when strchrnul is
11745         recommended.
11747 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11749         [BZ #174]
11750         * manual/locale.texi (setlocale): Document LOCPATH.
11752 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11754         [BZ #10210]
11755         * manual/process.texi (execle): Move @dots{} before last argument.
11757 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11759         [BZ #12047]
11760         * manual/charset.texi (Generic Charset Conversion): Fix typo
11761         (LC_TYPE -> LC_CTYPE).
11763 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11765         [BZ #5805]
11766         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11767         (scalbnf): Likewise.
11768         (scalbnl): Likewise.
11769         (scalbln): Likewise.
11770         (scalblnf): Likewise.
11771         (scalblnl): Likewise.
11772         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11773         (vwarnx): Likewise.
11774         (verr): Likewise.
11775         (verrx): Likewise.
11776         * manual/filesys.texi (telldir): Use braces around return type.
11777         * manual/llio.texi (mmap): Add space after comma.
11778         (mmap64): Likewise.
11779         * manual/math.texi (jn): Use @var{} on parameter names.
11780         (jnf): Likewise.
11781         (jnl): Likewise.
11782         (yn): Likewise.
11783         (ynf): Likewise.
11784         (ynl): Likewise.
11785         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11786         line.
11787         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11788         "...".
11789         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11790         (sched_get_priority_max): Likewise.
11791         * manual/signal.texi (sigvec): Add space after comma.
11792         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11793         names.
11794         (if_indextoname): Likewise.
11795         (if_freenameindex): Likewise.
11796         (sendto): Use ',' instead of '.' in prototype.
11797         * manual/startup.texi (syscall): Use @dots{} instead of literal
11798         "...".
11799         * manual/stdio.texi (__fpending): Separate initial words of
11800         paragraph from @deftypefun line.
11801         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11802         "...".
11803         (vsyslog): Use @var{} on parameter names.
11804         * manual/terminal.texi (stty): Use @var{} on parameter names.
11805         * manual/users.texi (getutmp): Use @var{} on parameter names.
11806         (getutmpx): Likewise.
11808 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11810         [BZ #6884]
11811         * manual/stdio.texi (fopen): Fix typos in description of
11812         ",ccs=STRING".
11814 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11816         [BZ #4026]
11817         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11818         get clock_id definition.
11820 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11822         [BZ #4822]
11823         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11824         (madvise): Cast every argument to void on its own.
11826 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11828         [BZ #9902]
11829         * manual/startup.texi (Exit Status): Fix typo.
11831 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11833         [BZ #10140]
11834         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11835         * manual/examples/argp-ex2.c: Likewise.
11836         * manual/examples/argp-ex3.c: Likewise.
11838 2012-02-16  Richard Henderson  <rth@redhat.com>
11840         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11841         * sysdeps/s390/s390-32/initfini.c: Remove.
11842         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11843         * sysdeps/s390/s390-64/initfini.c: Remove.
11845 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11847         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11848         compiler output for sysdeps/generic/initfini.c.
11849         * sysdeps/sh/elf/initfini.c: Remove file.
11851 2012-02-16  David S. Miller  <davem@davemloft.net>
11853         [BZ #11494]
11854         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11856         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11857         * sysdeps/sparc/crti.S: New file.
11858         * sysdeps/sparc/crtn.S: New file.
11859         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11860         * sysdeps/sparc/sparc64/Makefile: Likewise.
11862 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11864         [BZ #3335]
11865         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11867 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11869         [BZ #4822]
11870         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11872         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11873         (write, read, close): Likewise.
11874         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11876 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11878         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11879         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11880         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11881         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11882         <bits/signalfd.h>.
11883         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11884         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11885         bits/signalfd.h.
11887 2012-02-14  Marek Polacek  <polacek@redhat.com>
11889         * sysdeps/x86_64/crti.S: New file.
11890         * sysdeps/x86_64/crtn.S: New file.
11891         * sysdeps/x86_64/elf/initfini.c: Remove file.
11893 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11895         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11896         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11897         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11898         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11899         <bits/inotify.h>.
11900         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11901         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11902         bits/inotify.h.
11904 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11906         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11907         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11908         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11909         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11910         <bits/eventfd.h>.
11911         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11912         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11913         bits/eventfd.h.
11915 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11917         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11918         __feraiseexcept instead of feraiseexcept.
11920         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11921         nanosleep invocations.
11922         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11923         strings, and add error checking for a nanosleep invocations.
11925 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11927         Replace FSF snail mail address with URLs, as per GNU coding standards.
11928         Most of the snail mail addresses were wrong anyway, and omitting
11929         them makes the source code easier to maintain.  Almost all of the
11930         changes are to license notices and to locale LC_IDENTIFICATION
11931         addresses, except for this one:
11932         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11933         not its snail mail address.
11935 2012-02-09  Richard Henderson  <rth@twiddle.net>
11937         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11938         of kernel-features.h.
11940         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11942 2012-02-08  Marek Polacek  <polacek@redhat.com>
11944         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11945         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11946         * sysdeps/gnu/_G_config.h: Likewise.
11947         * sysdeps/generic/_G_config.h: Likewise.
11949 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11951         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11952         tests.
11953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11955         * sysdeps/powerpc/powerpc32/crti.S: New file.
11956         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11957         * sysdeps/powerpc/powerpc64/crti.S: New file.
11958         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11960         * Makeconfig (have-initfini): Don't set.
11961         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11962         * configure.in (nopic_initfini): Don't substitute.
11963         * config.h.in (HAVE_INITFINI): Don't #undef.
11964         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11965         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11967 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11969         Support crti.S and crtn.S provided directly by architectures.
11970         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11971         [crti.S in sysdirs] (omit-deps): Likewise.
11972         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11973         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11974         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11975         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11976         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11977         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11978         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11979         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11980         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11981         compiler output for sysdeps/generic/initfini.c.
11982         * sysdeps/i386/elf/Makefile: Remove file.
11983         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11985 2012-02-07  Marek Polacek  <polacek@redhat.com>
11987         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11988         * sysdeps/gnu/_G_config.h: Likewise.
11989         * sysdeps/mach/hurd/_G_config.h: Likewise.
11991 2012-02-07  Marek Polacek  <polacek@redhat.com>
11993         * math/Makefile (tests): Add tst-CMPLX2.
11994         * math/tst-CMPLX2.c: New file.
11996 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11998         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12000         * math/libm-test.inc (jn_test): Add missing L suffix.
12002 2012-02-06  Marek Polacek  <polacek@redhat.com>
12004         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12005         * sysdeps/i386/fpu/e_powf.S: Likewise.
12006         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12007         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12008         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12009         * sysdeps/i386/fpu/e_pow.S: Likewise.
12010         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12011         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12012         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12013         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12014         * sysdeps/i386/fpu/e_log2.S: Likewise.
12015         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12016         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12017         * sysdeps/i386/fpu/e_powl.S: Likewise.
12018         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12019         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12020         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12021         * sysdeps/i386/fpu/e_logl.S: Likewise.
12022         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12023         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12024         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12025         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12026         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12027         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12028         * sysdeps/i386/fpu/e_log.S: Likewise.
12029         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12030         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12031         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12032         * sysdeps/i386/fpu/e_logf.S: Likewise.
12033         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12034         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12035         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12036         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12037         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12038         * sysdeps/i386/fpu/e_log10.S: Likewise.
12039         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12040         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12041         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12042         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12043         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12044         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12045         * sysdeps/i386/asm-syntax.h: Likewise.
12046         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12047         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12048         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12049         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12050         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12051         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12052         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12053         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12054         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12055         * sysdeps/powerpc/sysdep.h: Likewise.
12056         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12057         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12059 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12061         [BZ #411]
12062         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12064 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12066         * sysdeps/i386/sysdep.h: Include <features.h>.
12067         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12068         version.
12070 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12072         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12073         Define.
12074         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12075         LOAD_PIC_REG_STR.
12077 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12079         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12080         (SETUP_PIC_REG): Use GET_PC_THUNK.
12081         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12082         macro.
12084 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12086         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12087         for non-PIC compilation.
12088         (SETUP_PIC_REG): Add .p2align directive.
12089         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12090         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12091         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12092         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12093         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12094         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12095         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12096         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12097         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12098         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12099         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12100         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12101         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12102         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12103         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12104         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12105         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12106         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12107         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12108         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12109         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12110         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12111         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12112         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12113         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12114         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12115         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12116         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12117         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12118         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12119         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12120         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12121         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12122         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12123         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12124         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12125         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12126         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12127         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12128         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12129         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12131 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12133         * math/tst-CMPLX.c: Include <stdio.h>.
12135 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12137         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12138         float.
12139         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12140         * sysdeps/sparc/bits/mathdef.h: Likewise.
12142 2012-01-31  Marek Polacek  <polacek@redhat.com>
12144         * libio/libio.h: Don't define _PARAMS.
12145         * locale/programs/config.h: Don't define PARAMS.
12146         * stdlib/strtol_l.c: Likewise.
12147         (__strtol_l): Remove PARAMS from the prototype.
12149 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12151         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12152         names.  Just use the correct names.  Remove unnecessary wrapper
12153         functions.
12154         * malloc/arena.c: Likewise.
12155         * malloc/hooks.c: Likewise.
12157         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12158         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12159         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12161 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12163         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12164         into tail calls.
12165         (update_get_addr): New function.
12166         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12167         GET_ADDR_MODULE parameter.
12169 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12171         * crypt/cert.c: Remove __STDC__ conditionals.
12172         * crypt/crypt-entry.c: Likewise.
12173         * crypt/crypt_util.c: Likewise.
12174         * libio/filedoalloc.c: Likewise.
12175         * libio/fileops.c: Likewise.
12176         * libio/genops.c: Likewise.
12177         * libio/iofclose.c: Likewise.
12178         * libio/iofdopen.c: Likewise.
12179         * libio/iofopen.c: Likewise.
12180         * libio/iofopen64.c: Likewise.
12181         * libio/iogetdelim.c: Likewise.
12182         * libio/iopopen.c: Likewise.
12183         * libio/obprintf.c: Likewise.
12184         * libio/oldfileops.c: Likewise.
12185         * libio/oldiofclose.c: Likewise.
12186         * libio/oldiofdopen.c: Likewise.
12187         * libio/oldiofopen.c: Likewise.
12188         * libio/oldiopopen.c: Likewise.
12189         * libio/wfiledoalloc.c: Likewise.
12190         * libio/wgenops.c: Likewise.
12191         * locale/programs/xmalloc.c: Likewise.
12192         * misc/syslog.c: Likewise.
12193         * stdio-common/xbug.c: Likewise.
12194         * string/memchr.c: Likewise.
12195         * string/memcmp.c: Likewise.
12196         * string/memrchr.c: Likewise.
12197         * string/rawmemchr.c: Likewise.
12198         * sysdeps/posix/getcwd.c: Likewise.
12199         * time/strftime_l.c: Likewise.
12201 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12203         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12204         * config.make.in (config-cflags-sse2avx): Define.
12205         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12206         Fix typo.
12208 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12210         * scripts/config.guess: Update from upstream config git repository.
12211         * scripts/config.sub: Likewise.
12213 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12215         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12216         (EM_NUM): Update.
12217         (R_TILEPRO_*, R_TILEGX_*): New macros.
12219         * scripts/firstversions.awk: Fix bug in version range handling.
12221         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12223         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12225         * include/sys/epoll.h: New file.
12226         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12227         libc_hidden_def.
12229 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12231         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12232         Avoid unnecessary __WORDSIZE == 64 test.
12233         (fmaxf): Use VEX format if possible.
12234         (fmax): Likewise.
12235         (fminf): Likewise.
12236         (fmin): Likewise.
12238         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12239         * math/math_private.h: Remove libc_fegetround* and
12240         libc_fesetround*.
12241         * sysdeps/i386/configure.in: Check for -msse2avx.
12242         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12243         also if SSE2AVX is defined.
12244         Remove libc_fegetround* and libc_fesetround*.
12245         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12246         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12247         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12248         of HAS_YMM_USABLE.
12249         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12250         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12251         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12252         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12253         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12255         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12257 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12259         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12260         size is not set.
12261         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12263 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12265         [BZ #13618]
12266         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12267         relocation.
12268         * Makeconfig (libm): Define.
12269         * elf/Makefile: Add rules to build and run tst-relsort1.
12270         * elf/tst-relsort1.c: New file.
12271         * elf/tst-relsort1mod1.c: New file.
12272         * elf/tst-relsort1mod2.c: New file.
12274 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12276         * math/s_ldexp.c: Remove __STDC__ conditionals.
12277         * math/s_ldexpf.c: Likewise.
12278         * math/s_ldexpl.c: Likewise.
12279         * math/s_nextafter.c: Likewise.
12280         * math/s_nexttowardf.c: Likewise.
12281         * math/s_significand.c: Likewise.
12282         * math/s_significandf.c: Likewise.
12283         * math/s_significandl.c: Likewise.
12284         * math/w_jnl.c: Likewise.
12285         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12286         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12287         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12288         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12289         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12290         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12291         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12292         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12293         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12294         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12295         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12296         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12297         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12298         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12299         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12300         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12301         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12302         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12303         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12304         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12305         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12306         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12307         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12308         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12309         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12310         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12311         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12312         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12313         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12314         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12315         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12316         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12317         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12318         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12319         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12320         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12321         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12322         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12323         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12324         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12325         * sysdeps/ieee754/k_standard.c: Likewise.
12326         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12327         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12328         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12329         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12330         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12331         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12332         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12333         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12334         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12335         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12336         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12337         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12338         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12339         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12340         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12341         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12342         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12343         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12344         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12345         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12346         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12347         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12348         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12349         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12350         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12351         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12352         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12353         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12354         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12355         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12356         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12357         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12358         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12359         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12360         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12361         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12362         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12363         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12364         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12365         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12366         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12367         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12368         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12369         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12370         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12371         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12372         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12373         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12374         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12375         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12376         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12377         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12378         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12379         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12380         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12381         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12382         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12383         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12384         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12385         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12386         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12387         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12388         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12389         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12390         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12391         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12392         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12393         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12394         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12395         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12396         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12397         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12398         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12399         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12400         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12401         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12402         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12403         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12404         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12405         * sysdeps/ieee754/s_matherr.c: Likewise.
12406         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12407         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12408         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12409         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12411 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12413         * crypt/md5.h: Remove __STDC__ conditionals.
12414         * libio/libioP.h: Likewise.
12415         * locale/programs/config.h: Likewise.
12416         * sysdeps/generic/sysdep.h: Likewise.
12417         * sysdeps/i386/asm-syntax.h: Likewise.
12418         * sysdeps/s390/asm-syntax.h: Likewise.
12419         * sysdeps/unix/sysdep.h: Likewise.
12420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12423 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12425         * libio/libio.h: Remove __STDC__ conditionals.
12426         * malloc/obstack.h: Likewise.
12427         * math/complex.h: Likewise.
12428         * math/math.h: Likewise.
12429         * sysdeps/generic/_G_config.h: Likewise.
12430         * sysdeps/gnu/_G_config.h: Likewise.
12431         * sysdeps/mach/hurd/_G_config.h: Likewise.
12432         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12433         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12434         * sysdeps/sparc/bits/mathdef.h: Likewise.
12436 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12438         [BZ #13583]
12439         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12440         Clean up HAS_* macros.
12441         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12442         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12443         possible.
12444         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12445         HAS_AVX.
12446         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12447         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12448         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12449         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12450         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12452 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12454         * elf/tst-unique3.cc (gets): Remove declaration.
12455         * elf/tst-unique3lib.cc (gets): Likewise.
12456         * elf/tst-unique3lib2.cc (gets): Likewise.
12457         * elf/tst-unique4.cc (gets): Likewise.
12459 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12461         * include/stdio.h: Add C++ protection.  Add gets declarations and
12462         definitions.
12463         * debug/tst-chk1.c: Don't declare gets here.
12464         * stdio-common/tst-gets.c: Likewise.
12466 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12468         * posix/glob: Remove directory.
12470 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12472         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12474 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12476         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12477         of the non-standard EPFNOSUPPORT.
12479 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12481         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12482         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12483         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12485 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12487         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12489 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12491         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12492         transient errors.
12493         * nscd/grpcache.c (cache_addgr): Likewise.
12494         * nscd/hstcache.c (cache_addhst): Likewise.
12495         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12496         * nscd/pwdcache.c (cache_addpw): Likewise.
12497         * nscd/servicescache.c (cache_addserv): Likewise.
12499 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12501         * malloc/malloc.c: Various cleanups.
12502         * malloc/hooks.c: Likewise.
12504         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12505         * stdlib/bug-fmtmsg1.c: New file.
12507         * stdlib/fmtmsg.c (init): Add missing unlock.
12508         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12510 2012-01-12  Marek Polacek  <polacek@redhat.com>
12512         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12513         and _GNU_SOURCE.
12515 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12517         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12518         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12519         macro to ensure uniqueness of label name.
12520         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12521         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12523 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12525         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12527         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12528         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12529         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12530         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12532 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12534         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12536         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12537         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12538         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12540         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12542         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12543         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12544         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12545         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12547         * math/bits/math-finite.h: Add ldexp support.
12549 2012-01-10  Marek Polacek  <polacek@redhat.com>
12551         * locale/programs/localedef.h (show_archive_content): Add noreturn
12552         attribute.
12554 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12556         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12558 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12560         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12562         * io/Makefile (headers): Add bits/poll2.h.
12564 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12567         typo #include statement.
12569 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12571         * include/sys/cdefs.h: Define __attribute_alloc_size.
12572         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12573         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12574         * elf/pldd.c: Likewise.
12575         * iconv/iconv_charmap.c: Likewise.
12576         * iconv/iconvconfig.c: Likewise.
12577         * iconv/strtab.c: Likewise.
12578         * locale/programs/locale.c: Likewise.
12579         * locale/programs/localedef.h: Likewise.
12580         * locale/programs/simple-hash.c: Likewise.
12581         * nscd/nscd.h: Likewise.
12582         * nss/makedb.c: Likewise.
12583         * sysdeps/generic/ldconfig.h: Likewise.
12584         * locale/programs/localedef.c: Remove xmalloc prototype.
12585         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12587 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12589         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12590         appropriate.
12592 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12594         * math/Makefile (tests): Add tst-CMPLX.
12595         * math/tst-CMPLX.c: New file.
12597         * math/complex.h (CMPLXL): Fix typo.
12599         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12600         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12601         GLIBC_2.16.
12602         * debug/tst-chk1.c: Add poll and ppoll tests.
12603         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12604         * include/sys/poll.h: Add hidden proto for ppoll.
12605         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12606         * sysdeps/mach/hurd/ppoll.c: Likewise.
12607         * io/ppoll.c: Likewise.
12608         * debug/poll_chk.c: New file.
12609         * debug/ppoll_chk.c: New file.
12610         * include/bits/poll2.h: New file.
12611         * io/bits/poll2.h: New file.
12613         [BZ #1350]
12614         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12616         * configure.in: static is always set to yes.  Remove.
12617         * config.make.in: Don't set build-static.
12618         * Makeconfig: Remove use of build-static.
12619         * dlfcn/Makefile: Likewise.
12620         * elf/Makefile: Likewise.
12621         * math/Makefile: Likewise.
12622         * misc/Makefile: Likewise.
12623         * nptl/Makefile: Likewise.
12624         * sysdeps/mach/hurd/Makefile: Likewise.
12626         * configure.in: PWD_P is not used anymore.
12627         * config.make.in: Remove PWD_P entry.
12629         * configure.in: Remove last remnants of RANLIB.
12630         No need to check for signed size_t anymore.
12631         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12632         and IA-64.
12633         Remove __builtin_expect test because we require at least gcc 3.4.
12634         * aclocal.m4: Likewise.
12636         * wcsmbs/mbrtoc16.c: Implement using towc function.
12637         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12638         * wcsmbs/wcsmbsload.c: Likewise.
12639         * iconv/gconv_simple.c: Likewise.
12640         * iconv/gconv_int.h: Likewise.
12641         * iconv/gconv_builtin.h: Likewise.
12642         * iconv/iconv_prog.c: Remove CHAR16 handling.
12644         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12646         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12648         * configure.in: Remove --with-elf and --enable-bounded options.
12649         Dont set base_machine for ia64.  More non-ELF conditions removed.
12650         Remove testing and setting of leading underscore information.
12651         * config.make.in (build-bounded): Set to no.
12652         * config.h.in: Remove NO_UNDERSCORES entry.
12653         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12654         them.
12655         * csu/start.c: Remove !NO_UNDERSCORE code.
12656         * locale/localeinfo.h: Likewise.
12657         * sysdeps/generic/machine-gmon.h: Likewise.
12658         * sysdeps/generic/sysdep.h: Likewise.
12659         * sysdeps/i386/sysdep.h: Likewise.
12660         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12661         * sysdeps/mach/sysdep.h: Likewise.
12662         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12663         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12664         * sysdeps/sh/sysdep.h: Likewise.
12665         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12666         * sysdeps/unix/i386/sysdep.S: Likewise.
12667         * sysdeps/unix/sparc/start.c: Likewise.
12668         * sysdeps/unix/sparc/sysdep.S: Likewise.
12669         * sysdeps/unix/sparc/sysdep.h: Likewise.
12670         * sysdeps/unix/start.c: Likewise.
12671         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12672         * sysdeps/x86_64/sysdep.h: Likewise.
12674 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12676         [BZ #13553]
12677         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12678         for non-gcc.
12679         * argp/argp-fmtstream.h: Use const instead __const.
12680         * argp/argp.h: Likewise.
12681         * assert/assert.h: Likewise.
12682         * bits/fenv.h: Likewise.
12683         * bits/sched.h: Likewise.
12684         * bits/sigset.h: Likewise.
12685         * bits/sigthread.h: Likewise.
12686         * catgets/nl_types.h: Likewise.
12687         * conform/data/pthread.h-data: Likewise.
12688         * crypt/crypt-private.h: Likewise.
12689         * crypt/crypt.h: Likewise.
12690         * crypt/crypt_util.c: Likewise.
12691         * ctype/ctype.h: Likewise.
12692         * debug/execinfo.h: Likewise.
12693         * debug/mbsnrtowcs_chk.c: Likewise.
12694         * debug/mbsrtowcs_chk.c: Likewise.
12695         * debug/wcsnrtombs_chk.c: Likewise.
12696         * debug/wcsrtombs_chk.c: Likewise.
12697         * debug/wcstombs_chk.c: Likewise.
12698         * dirent/dirent.h: Likewise.
12699         * dlfcn/dlfcn.h: Likewise.
12700         * elf/neededtest4.c: Likewise.
12701         * grp/grp.h: Likewise.
12702         * gshadow/gshadow.h: Likewise.
12703         * iconv/gconv.h: Likewise.
12704         * iconv/gconv_int.h: Likewise.
12705         * iconv/gconv_simple.c: Likewise.
12706         * iconv/iconv.h: Likewise.
12707         * iconv/loop.c: Likewise.
12708         * iconv/skeleton.c: Likewise.
12709         * include/aio.h: Likewise.
12710         * include/aliases.h: Likewise.
12711         * include/argz.h: Likewise.
12712         * include/arpa/inet.h: Likewise.
12713         * include/assert.h: Likewise.
12714         * include/dirent.h: Likewise.
12715         * include/dlfcn.h: Likewise.
12716         * include/execinfo.h: Likewise.
12717         * include/fcntl.h: Likewise.
12718         * include/fenv.h: Likewise.
12719         * include/glob.h: Likewise.
12720         * include/grp.h: Likewise.
12721         * include/libintl.h: Likewise.
12722         * include/mntent.h: Likewise.
12723         * include/netdb.h: Likewise.
12724         * include/pwd.h: Likewise.
12725         * include/rpc/netdb.h: Likewise.
12726         * include/sched.h: Likewise.
12727         * include/search.h: Likewise.
12728         * include/shadow.h: Likewise.
12729         * include/signal.h: Likewise.
12730         * include/stdio.h: Likewise.
12731         * include/stdlib.h: Likewise.
12732         * include/string.h: Likewise.
12733         * include/sys/socket.h: Likewise.
12734         * include/sys/stat.h: Likewise.
12735         * include/sys/statfs.h: Likewise.
12736         * include/sys/statvfs.h: Likewise.
12737         * include/sys/syslog.h: Likewise.
12738         * include/sys/time.h: Likewise.
12739         * include/sys/uio.h: Likewise.
12740         * include/time.h: Likewise.
12741         * include/unistd.h: Likewise.
12742         * include/utmp.h: Likewise.
12743         * include/wchar.h: Likewise.
12744         * include/wctype.h: Likewise.
12745         * inet/aliases.h: Likewise.
12746         * inet/arpa/inet.h: Likewise.
12747         * inet/netinet/ether.h: Likewise.
12748         * inet/netinet/in.h: Likewise.
12749         * intl/libintl.h: Likewise.
12750         * io/bits/fcntl2.h: Likewise.
12751         * io/fcntl.h: Likewise.
12752         * io/ftw.h: Likewise.
12753         * io/sys/poll.h: Likewise.
12754         * io/sys/stat.h: Likewise.
12755         * io/sys/statfs.h: Likewise.
12756         * io/sys/statvfs.h: Likewise.
12757         * io/utime.h: Likewise.
12758         * libio/bits/stdio.h: Likewise.
12759         * libio/bits/stdio2.h: Likewise.
12760         * libio/libio.h: Likewise.
12761         * libio/libioP.h: Likewise.
12762         * libio/stdio.h: Likewise.
12763         * locale/lc-ctype.c: Likewise.
12764         * locale/locale.h: Likewise.
12765         * login/utmp.h: Likewise.
12766         * malloc/arena.c: Likewise.
12767         * malloc/malloc.c: Likewise.
12768         * malloc/malloc.h: Likewise.
12769         * malloc/mcheck.c: Likewise.
12770         * malloc/mtrace.c: Likewise.
12771         * math/bits/mathcalls.h: Likewise.
12772         * math/fenv.h: Likewise.
12773         * math/math_private.h: Likewise.
12774         * misc/bits/error.h: Likewise.
12775         * misc/bits/syslog.h: Likewise.
12776         * misc/err.h: Likewise.
12777         * misc/error.h: Likewise.
12778         * misc/fstab.h: Likewise.
12779         * misc/mntent.h: Likewise.
12780         * misc/regexp.h: Likewise.
12781         * misc/search.h: Likewise.
12782         * misc/sgtty.h: Likewise.
12783         * misc/sys/mman.h: Likewise.
12784         * misc/sys/syslog.h: Likewise.
12785         * misc/sys/uio.h: Likewise.
12786         * misc/sys/xattr.h: Likewise.
12787         * misc/ttyent.h: Likewise.
12788         * nis/rpcsvc/ypclnt.h: Likewise.
12789         * nss/nss.h: Likewise.
12790         * posix/bits/unistd.h: Likewise.
12791         * posix/fnmatch.h: Likewise.
12792         * posix/glob.h: Likewise.
12793         * posix/sched.h: Likewise.
12794         * posix/spawn.h: Likewise.
12795         * posix/sys/wait.h: Likewise.
12796         * posix/unistd.h: Likewise.
12797         * posix/wordexp.h: Likewise.
12798         * pwd/pwd.h: Likewise.
12799         * resolv/netdb.h: Likewise.
12800         * resource/sys/resource.h: Likewise.
12801         * rt/aio.h: Likewise.
12802         * rt/bits/mqueue2.h: Likewise.
12803         * rt/mqueue.h: Likewise.
12804         * shadow/shadow.h: Likewise.
12805         * signal/signal.h: Likewise.
12806         * socket/send.c: Likewise.
12807         * socket/sendto.c: Likewise.
12808         * socket/sys/socket.h: Likewise.
12809         * stdio-common/printf.h: Likewise.
12810         * stdlib/bits/stdlib.h: Likewise.
12811         * stdlib/fmtmsg.h: Likewise.
12812         * stdlib/monetary.h: Likewise.
12813         * stdlib/stdlib.h: Likewise.
12814         * stdlib/ucontext.h: Likewise.
12815         * streams/stropts.h: Likewise.
12816         * string/argz.h: Likewise.
12817         * string/bits/string2.h: Likewise.
12818         * string/string.h: Likewise.
12819         * string/strings.h: Likewise.
12820         * sunrpc/rpc/auth.h: Likewise.
12821         * sunrpc/rpc/auth_des.h: Likewise.
12822         * sunrpc/rpc/clnt.h: Likewise.
12823         * sunrpc/rpc/netdb.h: Likewise.
12824         * sunrpc/rpc/pmap_clnt.h: Likewise.
12825         * sunrpc/rpc/xdr.h: Likewise.
12826         * sysdeps/generic/inttypes.h: Likewise.
12827         * sysdeps/generic/net/if.h: Likewise.
12828         * sysdeps/generic/sys/swap.h: Likewise.
12829         * sysdeps/gnu/net/if.h: Likewise.
12830         * sysdeps/gnu/utmpx.h: Likewise.
12831         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12832         * sysdeps/i386/i486/bits/string.h: Likewise.
12833         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12834         * sysdeps/s390/bits/string.h: Likewise.
12835         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12836         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12837         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12838         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12839         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12840         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12841         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12842         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12843         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12844         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12845         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12846         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12847         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12848         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12849         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12850         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12851         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12852         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12853         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12854         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12855         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12856         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12857         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12858         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12859         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12860         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12861         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12862         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12863         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12864         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12865         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12866         * sysvipc/sys/ipc.h: Likewise.
12867         * sysvipc/sys/msg.h: Likewise.
12868         * sysvipc/sys/sem.h: Likewise.
12869         * sysvipc/sys/shm.h: Likewise.
12870         * termios/termios.h: Likewise.
12871         * time/sys/time.h: Likewise.
12872         * time/time.h: Likewise.
12873         * wcsmbs/bits/wchar2.h: Likewise.
12874         * wcsmbs/uchar.h: Likewise.
12875         * wcsmbs/wchar.h: Likewise.
12876         * wctype/wctype.h: Likewise.
12878         [BZ #13551]
12879         * Makeconfig: Remove all but ELF support including AIX support.
12880         * Makerules: Likewise.
12881         * config.h.in: Likewise.
12882         * config.make.in: Likewise.
12883         * configure: Likewise.
12884         * configure.in: Likewise.
12885         * csu/Makefile: Likewise.
12886         * csu/version.c: Likewise.
12887         * debug/Makefile: Likewise.
12888         * dlfcn/Makefile: Likewise.
12889         * elf/Makefile: Likewise.
12890         * extra-lib.mk: Likewise.
12891         * iconv/Makefile: Likewise.
12892         * include/libc-symbols.h: Likewise.
12893         * include/shlib-compat.h: Likewise.
12894         * resolv/Makefile: Likewise.
12895         * resolv/res_libc.c: Likewise.
12896         * rt/Makefile: Likewise.
12897         * sysdeps/i386/asm-syntax.h: Likewise.
12898         * sysdeps/i386/sysdep.h: Likewise.
12899         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12900         * sysdeps/mach/sysdep.h: Likewise.
12901         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12902         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12903         * sysdeps/s390/asm-syntax.h: Likewise.
12904         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12905         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12906         * sysdeps/sh/sysdep.h: Likewise.
12907         * sysdeps/unix/sparc/sysdep.h: Likewise.
12908         * sysdeps/wordsize-32/divdi3.c: Likewise.
12909         * sysdeps/x86_64/sysdep.h: Likewise.
12911         * argp/Versions: Remove _argp_unlock_xxx.
12913         [BZ #13559]
12914         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12915         * abilist/libBrokenLocale.abilist: Likewise.
12916         * abilist/libanl.abilist: Likewise.
12917         * abilist/libc.abilist: Likewise.
12918         * abilist/libcrypt.abilist: Likewise.
12919         * abilist/libdl.abilist: Likewise.
12920         * abilist/libm.abilist: Likewise.
12921         * abilist/libnsl.abilist: Likewise.
12922         * abilist/libpthread.abilist: Likewise.
12923         * abilist/libresolv.abilist: Likewise.
12924         * abilist/librt.abilist: Likewise.
12925         * abilist/libthread_db.abilist: Likewise.
12926         * abilist/libutil.abilist: Likewise.
12927         * abilist/libnss_db.abilist: New file.
12929         * scripts/abilist.awk: Add support for indirect functions.
12931         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12933         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12935         * shlib-versions: Remove entries for ports architectures.
12937         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12938         files in ports.
12939         * elf/stackguard-macros.h: Remove support for IA-64.
12940         * elf/tst-auditmod1.c: Likewise.
12941         * sysdeps/generic/ldsodefs.h: Likewise.
12943         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12944         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12945         configure files.
12947         [BZ #13552]
12948         * configure.in: Remove --enable-omitfp support.
12949         * FAQ.in: Adjust.
12950         * config.make.in: Likewise.
12951         * Makeconfig: Likewise.
12952         * manual/install.texi: Likewise.
12954         In case anyone cares, the IA-64 architecture could move to ports.
12955         * sysdeps/ia64/*: Removed.
12956         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12957         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12959         [BZ #13555]
12960         * configure.in: Remove entries for unsupported architectures.
12962         [BZ #13533]
12963         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12964         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12965         routines.
12966         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12967         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12968         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12969         fall back to using wcrtomb.
12970         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12971         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12972         renaming.
12973         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12974         * wcsmbs/tst-c16c32-1.c: New file.
12976         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12977         local variable.
12979         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12981         * elf/tst-unique3.cc: Add explicit declaration of gets.
12982         * elf/tst-unique3lib.cc: Likewise.
12983         * elf/tst-unique3lib2.cc: Likewise.
12984         * elf/tst-unique4.cc: Likewise.
12986         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12988 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12990         [BZ #13566]
12991         * assert/assert.h (static_assert): Don't define for C++.
12992         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12993         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12995 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12997         * iconv/loop.c (single loop): Fix assertion in storing of
12998         remaining bytes.
13000         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13002 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13004         * posix/getconf.c: Update copyright year.
13005         * nss/getent.c: Likewise.
13006         * nss/makedb.c: Likewise.
13007         * iconv/iconvconfig.c: Likewise.
13008         * iconv/iconv_prog.c: Likewise.
13009         * elf/ldconfig.c: Likewise.
13010         * elf/pldd.c: Likewise.
13011         * elf/sotruss.ksh: Likewise.
13012         * catgets/gencat.c: Likewise.
13013         * csu/version.c: Likewise.
13014         * elf/ldd.bash.in: Likewise.
13015         * elf/sprof.c (print_version): Likewise.
13016         * locale/programs/locale.c: Likewise.
13017         * locale/programs/localedef.c: Likewise.
13018         * login/programs/pt_chown.c: Likewise.
13019         * nscd/nscd.c (print_version): Likewise.
13020         * debug/xtrace.sh: Likewise.
13021         * malloc/memusage.sh: Likewise.
13022         * malloc/mtrace.pl: Likewise.
13023         * debug/catchsegv.sh: Likewise.
13025 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13027         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13028         pure attribute.
13030 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13032         [BZ #13533]
13033         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13034         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13035         transformations.
13036         * iconv/gconv_int.h: Likewise.
13037         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13038         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13039         from libc for GLIBC_2.16.
13040         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13041         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13042         * wcsmbs/uchar.h: Really define mbstate_t.
13043         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13044         * wcsmbs/c16rtomb.c: New file.
13045         * wcsmbs/mbrtoc16.c: New file.
13046         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13047         for C/POSIX locale.
13048         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13049         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13051         * wcsmbs/wchar.h: Add missing __restrict.
13053 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13055         [BZ #13532]
13056         * time/Makefile (routines): Add timespec_get.
13057         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13058         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13059         timespec for ISO C11.
13060         * time/timespec_get.c: New file.
13061         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13062         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13064         [BZ #13531]
13065         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13066         * stdlib/stdlib.h: Declare aligned_alloc.
13067         * Versions.def: Add GLIBC_2.16 for libc.
13068         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13070         [BZ 13527]
13071         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13072         ISO C11.
13074         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13075         code.
13077         [BZ #13528]
13078         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13080         [BZ #13529]
13081         * assert/assert.h (static_assert): Define.
13083         * version.h: Update for 2.16 development version.
13085         [BZ #13526]
13086         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13087         _ISOC11_SOURCE.
13089         * version.h (RELEASE): Bump for 2.15 release.
13090         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13092         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13093         Patch by Marek Polacek <mpolacek@redhat.com>.
13095         * bits/byteswap.h: Protect long long constants with __extension__.
13096         * sysdeps/i386/bits/byteswap.h: Likewise.
13097         * sysdeps/ia64/bits/byteswap.h: Likewise.
13098         * sysdeps/s390/bits/byteswap.h: Likewise.
13099         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13101 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13103         [BZ #13540]
13104         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13105         destination buffer.
13106         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13108 2011-12-23  Marek Polacek  <polacek@redhat.com>
13110         * elf/dl-addr.c (determine_info): Add inline keyword.
13111         * elf/tst-auditmod4b.c (check_avx): Likewise.
13112         * elf/tst-auditmod6b.c (check_avx): Likewise.
13113         * elf/tst-auditmod6c.c (check_avx): Likewise.
13114         * elf/tst-auditmod7b.c (check_avx): Likewise.
13116 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13118         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13119         !__SSE_MATH__.
13121 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13123         [BZ #13540]
13124         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13125         processing for last bytes.
13127 2011-08-06  Bruno Haible  <bruno@clisp.org>
13129         [BZ #13061]
13130         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13131         U+0385, not to U+1FEE.
13133         [BZ #13062]
13134         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13135         entry for U+00A5 U+0301.
13137 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13139         [BZ #13166]
13140         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13141         buffer for the output is too small.
13143         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13144         optimization.
13146         [BZ #13185]
13147         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13148         SSE flags if possible.
13150 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13152         [BZ #13540]
13153         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13154         processing for last bytes.
13156 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13158         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13159         (syscall-list-default-options, syscall-list-default-condition)
13160         (syscall-list-includes): Define.
13161         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13162         list of ABIs and options and #if conditions for each ABI.  Do not
13163         handle common syscalls between ABIs specially.
13164         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13165         Remove.
13166         (syscall-list-variants, syscall-list-32bit-options)
13167         (syscall-list-32bit-condition, syscall-list-64bit-options)
13168         (syscall-list-64bit-condition): Define.
13169         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13170         (syscall-list-variants, syscall-list-32bit-options)
13171         (syscall-list-32bit-condition, syscall-list-64bit-options)
13172         (syscall-list-64bit-condition): Define.
13173         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13174         Remove.
13175         (syscall-list-variants, syscall-list-32bit-options)
13176         (syscall-list-32bit-condition, syscall-list-64bit-options)
13177         (syscall-list-64bit-condition): Define.
13178         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13179         Remove.
13180         (syscall-list-variants, syscall-list-32bit-options)
13181         (syscall-list-32bit-condition, syscall-list-64bit-options)
13182         (syscall-list-64bit-condition): Define.
13184 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13186         * locale/iso-639.def: Add brx entry.
13188         [BZ #13328]
13189         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13190         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13192         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13193         __feraiseexcept_renamed.
13195 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13197         [BZ #13538]
13198         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13199         EPOLLET with unsigned values.
13200         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13201         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13203         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13204         to large cancellation.
13205         * math/s_cacoshf.c: Likewise.
13206         * math/s_cacoshl.c: Likewise.
13208 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13210         [BZ #13305]
13211         [BZ #12786]
13212         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13213         * math/s_cacoshf.c: Likewise.
13214         * math/s_cacoshl.c: Likewise.
13216 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13218         [BZ #13439]
13219         * iconv/gconv.h: Define __GCONV_SWAP.
13220         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13221         * iconvdata/utf-16.c: Likewise.
13222         * iconvdata/utf-32.c: Likewise.
13224 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13226         [BZ #13524]
13227         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13228         numerator after shifting it by one limb.
13230 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13232         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13233         under [__USE_EXTERN_INLINES].
13235 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13237         [BZ #13446]
13238         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13240 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13242         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13243         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13244         optimized code.
13245         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13246         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13247         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13248         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13249         for strncasecmp/strncasecmp_l compilation.
13250         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13251         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13253 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13255         [BZ #13484]
13256         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13257         of __asm__.
13259 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13261         [BZ #13506]
13262         * time/tzfile.c (__tzfile_read): Check values from file header.
13264 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13266         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13267         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13268         * powerpc/powerpc32/dl-start.S: Likewise.
13269         * powerpc/powerpc32/elf/start.S: Likewise.
13270         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13271         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13272         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13273         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13274         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13275         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13276         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13277         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13278         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13279         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13280         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13281         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13282         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13283         * powerpc/powerpc32/memset.S: Likewise.
13284         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13285         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13286         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13287         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13288         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13289         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13290         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13291         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13292         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13293         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13294         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13295         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13296         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13298 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13300         * math/libm-test.inc: Added more nearbyint tests.
13301         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13302         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13303         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13304         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13306 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13308         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13309         FD_CLOEXEC.
13311 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13313         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13314         Add wcscpy-ssse3 wcscpy-c.
13315         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13316         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13317         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13318         * sysdeps/x86_64/wcschr.S: New file.
13319         * sysdeps/x86_64/wcsrchr.S: New file.
13320         * string/test-strcmp.c: Remove checking of wcscmp function for
13321         wrong alignments.
13322         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13323         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13324         wcsrchr-sse2 wcsrchr-c.
13325         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13326         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13327         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13328         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13329         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13330         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13331         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13332         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13333         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13334         * wcsmbc/wcschr.c (WCSCHR): New macro.
13336 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13338         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13339         * wcsmbs/test-wcsrchr.c: New file.
13340         * string/test-strrchr.c: Add wcsrchr support.
13341         (WIDE): New macro.
13342         * wcsmbs/test-wcscpy.c: New file.
13343         * string/test-strcpy.c: Add wcscpy support.
13344         (WIDE): New macro.
13346 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13348         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13349         the inner loop.
13351 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13353         [BZ #13472]
13354         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13356 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13358         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13359         Minor optimizations.
13361         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13362         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13363         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13365 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13367         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13368         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13369         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13370         for gcc to avoid warnings.
13371         * inet/Makefile (tests): Add tst-checks.
13372         * inet/tst-checks.c: New file.
13374         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13375         warning.
13377         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13378         __wmemcmp_sse2.
13380         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13381         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13383         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13385 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13387         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13388         problem.
13390         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13392 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13394         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13395         conditional on GCC version.
13396         (__arch_compare_and_exchange_val_8_acq)
13397         (__arch_compare_and_exchange_val_16_acq)
13398         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13399         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13400         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13402 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13404         * sysdeps/sh/backtrace.c: New file.
13406 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13408         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13409         parenthesis.
13411 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13413         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13414         falling back to utime.
13416 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13418         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13419         expectations for float.
13421 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13423         * locale/weight.h (findidx): Add parameter len.
13424         * locale/weightwc.h (findidx): Likewise.
13425         * posix/fnmatch_loop.c (FCT): Adjust caller.
13426         * posix/regcomp.c (build_equiv_class): Likewise.
13427         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13428         * posix/regexec.c (check_node_accept_bytes): Likewise.
13429         * string/strcoll_l.c (STRCOLL): Likewise.
13430         * string/strxfrm_l.c (STRXFRM): Likewise.
13432 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13434         * Makefile.in: Remove CVSOPT handling.
13435         * configure.in: Remove use of AC_REVISION.
13436         * iconvdata/Makefile (distribute): No need to filter out CVS.
13437         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13438         handling.
13440 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13442         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13443         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13444         [USE_AS_STRNCASECMP_L]: Likewise.
13445         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13446         NO_TLS_DIRECT_SEG_REFS.
13447         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13448         Fix argument offsets for non-PIC.
13449         [USE_AS_STRNCASECMP_L]: Likewise.
13450         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13451         NO_TLS_DIRECT_SEG_REFS.
13453 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13455         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13456         O_CLOEXEC.
13457         * locale/loadlocale.c (_nl_load_locale): Likewise.
13459 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13461         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13462         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13463         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13464         (SYSCALL_GETTIME): Set errno on error.
13466         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13467         count references to noai6ai_cached.
13469 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13471         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13473         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13474         FD_CLOEXEC for /proc/self/maps.
13476         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13477         FD_CLOEXEC for /proc/meminfo.
13479         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13480         gai.conf.
13482         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13483         FD_CLOEXEC for given file.
13485         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13487         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13488         FD_CLOEXEC for /etc/hosts.
13489         (_gethtent): Likewise.
13491         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13493         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13494         cancellation and set FD_CLOEXEC for /etc/netgroup.
13496         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13497         reading /etc/publickey.
13499         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13500         allow cancellation when reading /etc/group.
13502         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13503         cancellation.
13504         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13506         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13507         when using data file.
13509         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13511         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13512         (write_nis_obj): Use "c" and "e" in fopen.
13514         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13516         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13518         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13520         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13522         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13523         locale.alias.
13525         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13527         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13529         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13531         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13532         file parsing and set FD_CLOEXEC.
13534 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13536         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13538 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13540         * malloc/arena.c (arena_get2): Don't call reused_arena when
13541         _int_new_arena failed.
13543 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13545         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13546         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13547         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13548         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13549         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13550         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13551         to compile strcasecmp and strncasecmp.
13552         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13553         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13555         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13557 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13559         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13560         locale-defines.sym to gen-as-const-headers.
13561         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13562         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13563         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13564         to compile strcasecmp and strncasecmp.
13565         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13566         strcasecmp_l and strncasecmp_l.
13567         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13568         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13569         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13570         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13571         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13572         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13573         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13574         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13575         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13576         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13577         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13579 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13581         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13582         result of SYSDEP_GETTIME_CPU to retval.
13583         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13584         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13586         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13587         variable.
13589         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13590         mantissa words.
13591         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13593         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13594         from unused variable.
13596         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13597         DWARF definitions.
13598         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13599         for assembling.
13601         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13602         over namespaces.
13604         * sunrpc/rpc_prot.c (rejected): Fix case value.
13606         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13607         unsigned long long int to avoid warnings in shift.
13609         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13610         of use of trans.
13611         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13612         variable tmp.
13614         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13615         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13616         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13618         * nis/nis_table.c (nis_list): Use variable of correct type for
13619         result of __follow_path call.
13621 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13623         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13624         of math functions ceil, trunc, floor, round, and sqrt, when
13625         avaliable on the platform.
13626         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13627         name clash.
13628         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13629         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13630         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13632 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13634         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13635         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13637 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13639         * include/unistd.h: Fix __readlink return type.
13640         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13642 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13644         * stdlib/ucontext.h: Undo last change for makecontext.
13646 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13648         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13650         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13651         * setjmp/setjmp.h: Mark functions as non-leaf.
13652         * setjmp/bits/setjmp2.h: Likewise.
13653         * stdlib/ucontext.h: Likewise.
13655 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13657         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13658         (reused_arena): Don't check arena limit.
13659         (arena_get2): Atomically check arena limit.
13661 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13663         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13664         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13666         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13667         instructions.
13669 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13671         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13672         handler when locking.
13674         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13675         Fix size of allocated buffer.
13677 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13679         [BZ #10103]
13680         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13681         declarations for long double functions.
13682         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13684         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13686 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13688         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13689         installed.
13691         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13692         is disabled.
13694 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13696         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13698 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13700         * include/alloca.h (stackinfo_alloca_round): Define.
13701         (extend_alloca): Use it.
13702         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13703         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13704         here.
13706         * scripts/check-local-headers.sh: Ignore libaudit.h.
13708         * nscd/Makefile (extra-objs): Make recursively expanded.
13710 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13712         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13713         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13715         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13716         * posix/tst-rfc3484-2.c: Likewise.
13717         * posix/tst-rfc3484-3.c: Likewise.
13719         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13720         process_vm_writev.
13721         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13722         process_vm_writev.
13723         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13724         process_vm_writev from libc using GLIBC_2.15 version.
13726         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13728 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13730         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13731         stack usage.
13733 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13735         [BZ #13367]
13736         * nss/getent.c (initgroups_keys): Show error message in case no group
13737         names are given.
13739         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13740         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13741         __bump_nl_timestamp.
13742         * nscd/connections (nscd_init): When host database is served open
13743         netlink socket and request notification about configuration changes.
13744         (main_loop_poll): Track netlink file descriptor and bump timestamp
13745         in case data becomes available.
13746         (main_loop_epoll): Likewise.
13747         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13748         (database_pers_head): Add extra_data fileds.
13749         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13750         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13751         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13752         Adjust caller.
13753         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13754         in6ai data, call __free_in6ai.
13755         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13756         Add -DHAVE_NETLINK.
13757         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13758         interface information.  Reuse previous data if netlink timestamp
13759         is not changed.
13760         (__bump_nl_timestamp): New function.
13761         (__free_in6ai): New function.
13763 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13765         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13766         close_not_cancel_no_status here.
13767         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13769 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13771         [BZ #13276]
13772         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13773         return value.
13775         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13776         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13777         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13779 2011-07-03  Andreas Jaeger  <aj@suse.de>
13781         [BZ #10709]
13782         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13783         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13784         * math/libm-test.inc (sin_test): Add test case.
13786 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13788         [BZ #13337]
13789         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13790         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13792         * elf/chroot_canon.c (chroot_canon): Cleanups.
13794         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13796         [BZ #13335]
13797         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13798         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13800         * string/test-strchr.c: Make usable for strchrnul testing.
13801         * string/test-strchrnul.c: New file.
13802         * string/Makefile (strop-tests): Add strchrnul.
13804         * po/it.po: Update from translation team.
13805         * po/es.po: Likewise.
13807 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13809         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13810         the three constants needed as parameters.  Drop the others.
13811         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13812         __m128i_strloadu_tolower.
13813         Create and initialize variable zero and use it in all the places
13814         where _mm_setzero_si128 was used.
13816         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13817         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13818         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13819         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13820         anymore.
13821         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13822         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13823         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13824         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13825         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13826         __mpranred, __mptan.
13827         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13828         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13829         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13830         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13831         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13832         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13833         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13834         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13835         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13837 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13839         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13840         redefine if SHARED.
13841         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13843         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13844         wide char related routines to wcsmbs subdir.
13846 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13848         [BZ #13344]
13849         * misc/sys/cdefs.h (__THROWNL): Define.
13850         * posix/unistd.h: Use __THREADNL instead of __THREAD
13851         for memory synchronization functions.
13853 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13855         [BZ #13349]
13856         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13857         doesn't exist.
13858         * manual/stdio.texi (Obstack Streams): Node removed.
13860 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13862         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13863         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13864         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13866         * math/math_private.h (math_force_eval): Allow non-addressable
13867         arguments.
13868         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13870 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13872         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13873         file is not needed.
13875         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13876         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13877         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13878         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13879         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13880         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13881         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13882         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13883         Add AVX variants.
13884         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13885         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13886         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13887         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13888         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13889         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13890         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13891         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13892         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13893         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13894         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13895         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13896         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13897         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13898         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13899         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13900         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13901         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13902         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13904         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13905         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13907         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13908         place.  Use VEX encoding when compiling for AVX.
13910 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13912         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13913         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13915         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13917 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13919         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13920         useless if() expression.
13921         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13922         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13923         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13924         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13925         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13926         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13927         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13928         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13929         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13930         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13931         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13932         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13933         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13934         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13935         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13936         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13937         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13938         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13939         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13941         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13943 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13945         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13946         condition.
13947         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13949 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13951         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13952         .text section.  Avoid duplicate constants.
13953         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13954         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13955         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13956         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13957         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13958         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13959         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13960         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13961         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13962         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13963         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13964         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13965         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13966         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13967         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13968         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13969         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13970         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13971         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13972         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13973         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13974         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13975         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13976         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13977         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13978         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13979         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13980         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13981         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13982         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13983         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13984         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13985         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13986         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13987         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13988         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13989         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13990         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13991         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13992         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13993         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13994         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13995         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13996         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13997         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13999 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14001         * sysdeps/x86_64/dla.h: Move to ...
14002         * sysdeps/x86_64/fpu/dla.h: ...here.
14003         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14004         situations.  Use __builtin_fma only for gcc 4.6 and up.
14006         * config.make.in: Add have-mfma4 entry.
14007         * configure.in: Substitute libc_cv_cc_fma4.
14008         * math/Makefile (dbl-only-routines): Add sincostab.
14009         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14010         Use __sincostab not sincos.
14011         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14012         name is a macro.
14013         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14014         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14015         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14016         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14017         using __copysign.
14018         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14019         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14020         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14021         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14022         and __inv.
14023         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14024         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14025         __copysign.
14026         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14027         define aliases when function name is a macro.
14028         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14029         sysdeps/ieee754/dbl-64/sincos.tbl.
14030         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14031         fma4-enabled routines.
14032         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14033         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14034         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14035         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14036         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14037         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14038         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14039         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14040         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14041         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14042         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14043         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14044         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14045         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14046         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14047         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14048         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14049         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14050         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14051         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14052         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14053         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14054         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14055         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14056         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14057         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14058         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14059         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14060         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14061         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14063         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14064         rename.
14065         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14066         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14067         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14068         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14069         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14070         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14071         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14072         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14074 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14076         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14078 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14080         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14082         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14083         prediction.
14084         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14086         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14087         Remove unused variable magic_bits.
14088         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14090         * string/strnlen.c: Define and use STRNLEN macro.
14091         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14092         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14093         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14094         * wcsmbs/wcslen.c: Define and use WCSLEN.
14095         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14096         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14097         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14098         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14099         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14100         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14101         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14103 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14105         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14106         strnlen-sse2-no-bsf.
14107         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14108         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14109         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14110         Add strnlen support.
14111         (USE_AS_STRNLEN): New macro.
14112         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14113         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14114         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14115         * sysdeps/x86_64/wcslen.S: New file.
14117 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14119         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14120         XMM-moves are used for copying on small sizes.
14122 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14124         * wcsmbs/Makefile (strop-tests): Add wcschr.
14125         * wcsmbs/test-wcschr.c: New file.
14126         * string/test-strchr.c: Update.
14127         Add wcschr support.
14128         (WIDE): New macro.
14130 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14132         * wcsmbs/Makefile (strop-tests): Add wcslen.
14133         * wcsmbs/test-wcslen.c: New file.
14134         * string/test-strlen.c: Update.
14135         Add wcslen support.
14136         (WIDE): New macro.
14138 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14140         * po/it.po: Update from translation team.
14142 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14144         * sysdeps/x86_64/wcscmp.S: Update.
14145         Fix wrong comparison semantics.
14146         wcscmp shall use signed comparison not unsigned.
14147         Don't use substraction to avoid overflow bug.
14148         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14149         * wcsmbc/wcscmp.c: Likewise.
14150         * string/test-strcmp.c: Likewise.
14151         Add new tests to check cases with negative values.
14153 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14155         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14156         * sysdeps/x86_64/dla.h: ...here.  New file.
14157         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14158         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14159         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14160         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14161         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14162         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14163         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14164         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14165         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14167 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14169         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14170         __ynl_finite aliases.
14172 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14174         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14176         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14177         define DLA_FMA.
14178         [DLA_FMA] (EMULV): Use DLA_FMA.
14179         [DLA_FMA] (MUL12): Use EMULV.
14180         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14181         that are not needed.
14182         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14183         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14184         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14185         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14186         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14187         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14188         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14190 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14192         * math/s_nan.c: Undef __nan.
14193         * math/s_nanf.c: Undef __nanf.
14194         * math/s_nanl.c: Undef __nanl.
14195         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14196         "math_private.h".
14198 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14200         * math/s_catan.c: Add branch predictions.
14201         * math/s_catanf.c: Likewise.
14202         * math/s_catanh.c: Likewise.
14203         * math/s_catanhf.c: Likewise.
14204         * math/s_catanhl.c: Likewise.
14205         * math/s_catanl.c: Likewise.
14206         * math/s_cexp.c: Likewise.
14207         * math/s_cexpf.c: Likewise.
14208         * math/s_cexpl.c: Likewise.
14209         * math/s_clog.c: Likewise.
14210         * math/s_clog10.c: Likewise.
14211         * math/s_clog10f.c: Likewise.
14212         * math/s_clog10l.c: Likewise.
14213         * math/s_clogf.c: Likewise.
14214         * math/s_clogl.c: Likewise.
14215         * math/s_csqrt.c: Likewise.
14216         * math/s_csqrtf.c: Likewise.
14217         * math/s_csqrtl.c: Likewise.
14218         * math/s_ctanf.c: Likewise.
14219         * math/s_ctanh.c: Likewise.
14220         * math/s_ctanhf.c: Likewise.
14221         * math/s_ctanhl.c: Likewise.
14222         * math/s_ctanl.c: Likewise.
14224         * math/math_private.h: Define __nan, __nanf, __nanl.
14225         * math/s_cacosh.c: Include <math_private.h>.
14226         * math/s_cacoshl.c: Likewise.
14227         * math/s_casinh.c: Likewise.
14228         * math/s_casinhf.c: Likewise.
14229         * math/s_casinhl.c: Likewise.
14230         * math/s_ccos.c: Rely entire on ccosh.
14231         * math/s_ccosf.c: Rely entire on ccoshf.
14232         * math/s_ccosl.c: Rely entirely on ccoshl.
14233         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14234         Remove tests for FE_INVALID.
14235         * math/s_ccoshf.c: Likewise.
14236         * math/s_ccoshl.c: Likewise.
14237         * math/s_csin.c: Likewise.
14238         * math/s_csinf.c: Likewise.
14239         * math/s_csinh.c Likewise.
14240         * math/s_csinhf.c: Likewise.
14241         * math/s_csinhl.c: Likewise.
14242         * math/s_csinl.c: Likewise.
14243         * math/s_ctan.c: Likewise.
14244         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14245         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14246         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14248 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14250         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14251         compilation problems.
14253         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14254         __builtin_expect.
14256 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14258         * sysdeps/i386/configure.in: Test for -mfma4 option.
14259         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14260         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14261         COMMON_CPUID_INDEX_80000001.
14262         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14263         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14264         use it if FMA3 is not supported.
14265         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14267         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14268         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14270 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14272         [BZ #12892]
14273         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14274         it would create a cycle with a link time dependency.
14276 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14278         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14279         instruction.
14280         * string/Makefile (strop-tests): Add rawmemchr.
14281         * string/test-rawmemchr.c: New file.
14283         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14284         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14285         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14286         when compiling str{,n}casecmp and when AVX is available.  Hook up
14287         new optimized code in initializers.
14289 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14291         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14292         __feraiseexcept instead of feraiseexcept.
14294 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14296         * math/math_private.h: Define defaults for libc_fetestexcept and
14297         libc_feupdateenv.
14298         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14299         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14300         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14301         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14302         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14303         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14304         libc_fetestexcept and libc_feupdateenv.
14306         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14307         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14308         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14309         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14310         libc_feholdexcept_setround.
14312         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14313         Add s_nearbyint-c and s_nearbyintf-c.
14314         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14315         nearbyintf inlines.
14316         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14317         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14318         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14319         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14321         * math/math_private.h: Define defaults for libc_fegetround,
14322         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14323         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14324         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14325         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14326         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14327         standard functions.
14328         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14329         Remove comments and hacks for old compiler versions.
14330         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14331         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14332         libc_feholdexceptl.
14334 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14336         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14337         (__feraiseexcept_renamed): Add __NTH.
14338         (feraiseexcept): Add __NTH.  Rename local variables to fix
14339         namespace violations.
14341 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14343         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14345         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14347         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14348         recently added interfaces.
14349         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14351         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14352         about macro parameter expansion.
14354         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14355         __NO_MATH_INLINES is defined.  Cleanups.
14357         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14358         and __floorf is target has SSE4.1.
14359         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14360         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14361         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14362         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14364         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14365         name.
14366         (floorf): Likewise.
14368         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14370 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14372         * misc/sys/cdefs.h: Fix last change.
14374         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14375         database lookup.
14377 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14379         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14381         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14382         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14383         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14384         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14385         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14386         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14387         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14388         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14389         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14390         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14391         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14392         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14393         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14394         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14395         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14396         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14397         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14398         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14399         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14400         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14401         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14402         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14404         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14405         ceil, ceilf, floor, floorf.
14407         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14408         Perform IRELATIVE relocations last.
14410         * elf/do-rel.h: Add another parameter nrelative, replacing the
14411         local variable with the same name.  Change name of the function
14412         to end in Rel or Rela (uppercase).
14413         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14414         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14415         elf_dynamic_do_##reloc function.
14417 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14419         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14420         is sufficient, at least on modern CPUs.
14422         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14424         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14425         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14427         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14428         __expl_finite.
14429         * math/bits/math-finite.h: Add entries for exp.
14430         * math/e_expl.c: Add __*_finite alias.
14431         * sysdeps/i386/fpu/e_exp.S: Likewise.
14432         * sysdeps/i386/fpu/e_expf.S: Likewise.
14433         * sysdeps/i386/fpu/e_expl.c: Likewise.
14434         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14435         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14436         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14437         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14438         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14439         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14440         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14442         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14443         is sufficient, at least on modern CPUs.
14445         * ctype/ctype-info.c (__ctype_init): Define.
14446         * include/ctype.h (__ctype_init): Declare.
14447         (__ctype_b_loc): The variable is always initialized.
14448         (__ctype_toupper_loc): Likewise.
14449         (__ctype_tolower_loc): Likewise.
14450         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14451         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14453 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14455         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14457         * configure.in: Also look in $cxxmachine/include for C++ system
14458         headers.
14460 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14462         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14463         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14464         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14465         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14466         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14467         (USE_AS_WMEMCMP): New macro.
14468         Fixing indents.
14469         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14470         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14471         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14472         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14473         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14474         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14475         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14476         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14477         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14478         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14479         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14480         (USE_AS_WMEMCMP): New macro.
14481         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14482         * sysdeps/string/test-memcmp.c: Update.
14483         Fix simple_wmemcmp.
14484         Add new tests.
14485         * wcsmbs/wmemcmp.c: Update.
14486         (WMEMCMP): New macro.
14487         Fix overflow bug.
14489 2011-10-12  Andreas Jaeger  <aj@suse.de>
14491         [BZ #13268]
14492         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14494 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14496         * libio/iofwide.c (do_length): Avoid warning.
14498         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14500 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14502         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14504         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14505         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14506         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14507         * sysdeps/i386/i686/fpu/e_log.S: New file.
14508         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14509         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14511         * ctype/ctype.h: Add support for inlined isXXX functions when
14512         compiling C++ code.
14514 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14516         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14518         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14520 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14522         [BZ #13291]
14523         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14525 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14527         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14528         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14529         feraiseexcept.
14531         * sysdeps/x86_64/memrchr.S: Check for zero size.
14533         * string/stratcliff.c: Add memrchr tests.
14535 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14537         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14538         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14539         rawmemchr-sse2 rawmemchr-sse2-bsf.
14540         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14541         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14542         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14543         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14544         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14545         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14546         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14547         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14548         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14549         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14550         * string/memrchr.c (MEMRCHR): New macro.
14552 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14554         Add integration with gcc's -ffinite-math-only and optimize wrapper
14555         functions in libm.
14556         * Versions.def: Define GLIBC_2.15 version for libm.
14557         * math/Makefile (headers): Add bits/math-finite.h.
14558         * math/bits/math-finite.h: New file.
14559         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14560         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14561         * math/e_acoshl.c: Add __*_finite alias.
14562         * math/e_acosl.c: Likewise.
14563         * math/e_asinl.c: Likewise.
14564         * math/e_atan2l.c: Likewise.
14565         * math/e_atanhl.c: Likewise.
14566         * math/e_coshl.c: Likewise.
14567         * math/e_exp10.c: Likewise.
14568         * math/e_exp10f.c: Likewise.
14569         * math/e_exp10l.c: Likewise.
14570         * math/e_exp2l.c: Likewise.
14571         * math/e_fmodl.c: Likewise.
14572         * math/e_gammal_r.c: Likewise.
14573         * math/e_hypotl.c: Likewise.
14574         * math/e_j0l.c: Likewise.
14575         * math/e_j1l.c: Likewise.
14576         * math/e_jnl.c: Likewise.
14577         * math/e_lgammal_r.c: Likewise.
14578         * math/e_log10l.c: Likewise.
14579         * math/e_log2l.c: Likewise.
14580         * math/e_logl.c: Likewise.
14581         * math/e_powl.c: Likewise.
14582         * math/e_sinhl.c: Likewise.
14583         * math/e_sqrtl.c: Likewise.
14584         * math/e_scalb.c: Completely rewritten and optimized.
14585         * math/e_scalbf.c: Likewise.
14586         * math/e_scalbl.c: Likewise.
14587         * math/w_acos.c: Likewise.
14588         * math/w_acosf.c: Likewise.
14589         * math/w_acosl.c: Likewise.
14590         * math/w_acosh.c: Likewise.
14591         * math/w_acoshf.c: Likewise.
14592         * math/w_acoshl.c: Likewise.
14593         * math/w_asin.c: Likewise.
14594         * math/w_asinf.c: Likewise.
14595         * math/w_asinl.c: Likewise.
14596         * math/w_atan2.c: Likewise.
14597         * math/w_atan2f.c: Likewise.
14598         * math/w_atan2l.c: Likewise.
14599         * math/w_atanh.c: Likewise.
14600         * math/w_atanhf.c: Likewise.
14601         * math/w_atanhl.c: Likewise.
14602         * math/w_exp10.c: Likewise.
14603         * math/w_exp10f.c: Likewise.
14604         * math/w_exp10l.c: Likewise.
14605         * math/w_fmod.c: Likewise.
14606         * math/w_fmodf.c: Likewise.
14607         * math/w_fmodl.c: Likewise.
14608         * math/w_j0.c: Likewise.
14609         * math/w_j0f.c: Likewise.
14610         * math/w_j0l.c: Likewise.
14611         * math/w_j1.c: Likewise.
14612         * math/w_j1f.c: Likewise.
14613         * math/w_j1l.c: Likewise.
14614         * math/w_jn.c: Likewise.
14615         * math/w_jnf.c: Likewise.
14616         * math/w_log.c: Likewise.
14617         * math/w_logf.c: Likewise.
14618         * math/w_logl.c: Likewise.
14619         * math/w_log10.c: Likewise.
14620         * math/w_log10f.c: Likewise.
14621         * math/w_log10l.c: Likewise.
14622         * math/w_log2.c: Likewise.
14623         * math/w_log2f.c: Likewise.
14624         * math/w_log2l.c: Likewise.
14625         * math/w_pow.c: Likewise.
14626         * math/w_powf.c: Likewise.
14627         * math/w_powl.c: Likewise.
14628         * math/w_remainder.c: Likewise.
14629         * math/w_remainderf.c: Likewise.
14630         * math/w_remainderl.c: Likewise.
14631         * math/w_scalb.c: Likewise.
14632         * math/w_scalbf.c: Likewise.
14633         * math/w_scalbl.c: Likewise.
14634         * math/w_sqrt.c: Likewise.
14635         * math/w_sqrtf.c: Likewise.
14636         * math/w_sqrtl.c: Likewise.
14637         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14638         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14639         used.
14640         * math/math_private.h: Declare __kernel_standard_f.
14641         * math/w_cosh.c: Remove cruft and optimize a bit.
14642         * math/w_coshf.c: Likewise.
14643         * math/w_coshl.c: Likewise.
14644         * math/w_exp2.c: Likewise.
14645         * math/w_exp2f.c: Likewise.
14646         * math/w_exp2l.c: Likewise.
14647         * math/w_hypot.c: Likewise.
14648         * math/w_hypotf.c: Likewise.
14649         * math/w_hypotl.c: Likewise.
14650         * math/w_lgamma.c: Likewise.
14651         * math/w_lgamma_r.c: Likewise.
14652         * math/w_lgammaf.c: Likewise.
14653         * math/w_lgammaf_r.c: Likewise.
14654         * math/w_lgammal.c: Likewise.
14655         * math/w_lgammal_r.c: Likewise.
14656         * math/w_sinh.c: Likewise.
14657         * math/w_sinhf.c: Likewise.
14658         * math/w_sinhl.c: Likewise.
14659         * math/w_tgamma.c: Likewise.
14660         * math/w_tgammaf.c: Likewise.
14661         * math/w_tgammal.c: Likewise.
14662         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14663         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14664         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14665         Minor optimizations.  Pretty printing.  Remove cruft.
14666         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14667         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14668         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14669         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14670         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14671         * sysdeps/i386/fpu/e_asin.S: Likewise.
14672         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14673         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14674         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14675         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14676         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14677         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14678         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14679         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14680         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14681         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14682         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14683         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14684         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14685         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14686         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14687         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14688         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14689         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14690         * sysdeps/i386/fpu/e_log.S: Likewise.
14691         * sysdeps/i386/fpu/e_log10.S: Likewise.
14692         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14693         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14694         * sysdeps/i386/fpu/e_log2.S: Likewise.
14695         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14696         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14697         * sysdeps/i386/fpu/e_logf.S: Likewise.
14698         * sysdeps/i386/fpu/e_logl.S: Likewise.
14699         * sysdeps/i386/fpu/e_pow.S: Likewise.
14700         * sysdeps/i386/fpu/e_powf.S: Likewise.
14701         * sysdeps/i386/fpu/e_powl.S: Likewise.
14702         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14703         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14704         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14705         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14706         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14707         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14708         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14709         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14710         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14711         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14712         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14713         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14714         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14715         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14716         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14717         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14718         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14719         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14720         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14721         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14722         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14723         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14724         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14725         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14726         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14727         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14728         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14729         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14730         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14731         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14732         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14733         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14734         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14735         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14736         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14737         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14738         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14739         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14740         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14741         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14742         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14743         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14744         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14745         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14746         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14747         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14748         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14749         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14750         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14751         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14752         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14753         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14754         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14755         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14756         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14757         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14758         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14759         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14760         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14761         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14762         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14763         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14764         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14765         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14766         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14767         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14768         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14769         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14770         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14771         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14772         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14773         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14774         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14775         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14776         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14777         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14778         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14779         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14780         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14781         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14782         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14783         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14784         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14785         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14786         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14787         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14788         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14789         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14790         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14791         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14792         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14793         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14794         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14795         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14796         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14797         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14798         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14799         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14800         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14801         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14802         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14803         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14804         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14805         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14806         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14807         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14808         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14809         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14810         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14811         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14812         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14813         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14814         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14815         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14816         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14817         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14818         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14819         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14820         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14821         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14822         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14823         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14824         (__isnanf): Likewise.
14825         (__isinf_ns): Likewise.
14826         (__isinf_nsf): Likewise.
14827         (__finite): Likewise.
14828         (__finitef): Likewise.
14829         (__ieee754_sqrt): Define as macro.
14830         (__ieee754_sqrtf): Define as macro.
14831         (__ieee754_sqrtl): Define as macro.
14832         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14833         inlined copy.
14834         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14835         __FINITE_MATH_ONLY__ consistent.
14836         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14838 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14840         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14841         of rawmemchr.
14843         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14845 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14847         * po/ja.po: Update from translation team.
14849 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14851         * locale/programs/locarchive.c (prepare_address_space): New function.
14852         (create_archive, enlarge_archive, open_archive): Use it.
14854         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14855         inside [SHARED], where it is used.
14857         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14859         * nss/getent.c (netgroup_keys): Remove unused variable.
14860         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14862 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14864         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14865         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14866         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14867         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14868         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14869         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14870         * math/Makefile (libm-calls): Add s_isinf_ns.
14871         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14872         * math/multc3.c: Likewise.
14873         * math/s_casin.c: Likewise.
14874         * math/s_casinf.c: Likewise.
14875         * math/s_casinl.c: Likewise.
14876         * math/s_ccos.c: Likewise.
14877         * math/s_ccosf.c: Likewise.
14878         * math/s_ccosl.c: Likewise.
14879         * math/s_ctan.c: Likewise.
14880         * math/s_ctanf.c: Likewise.
14881         * math/s_ctanh.c: Likewise.
14882         * math/s_ctanhf.c: Likewise.
14883         * math/s_ctanhl.c: Likewise.
14884         * math/s_ctanl.c: Likewise.
14885         * math/w_fmod.c: Likewise.
14886         * math/w_fmodf.c: Likewise.
14887         * math/w_fmodl.c: Likewise.
14888         * math/w_remainder.c: Likewise.
14889         * math/w_remainderf.c: Likewise.
14890         * math/w_remainderl.c: Likewise.
14891         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14892         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14893         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14894         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14895         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14896         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14897         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14898         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14900         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14901         of the number.
14902         * stdio-common/printf_fphex.c: Likewise.
14903         * stdio-common/printf_size.c: Likewise.
14905         * math/e_exp10.c: Include math_private.h using <...> not "...".
14906         * math/e_exp10f.c: Likewise.
14907         * math/e_exp10l.c: Likewise.
14908         * math/e_exp2l.c: Likewise.
14909         * math/e_j0l.c: Likewise.
14910         * math/e_j1l.c: Likewise.
14911         * math/e_jnl.c: Likewise.
14912         * math/e_lgammal_r.c: Likewise.
14913         * math/e_rem_pio2l.c: Likewise.
14914         * math/e_scalb.c: Likewise.
14915         * math/e_scalbf.c: Likewise.
14916         * math/e_scalbl.c: Likewise.
14917         * math/k_cosl.c: Likewise.
14918         * math/k_sinl.c: Likewise.
14919         * math/k_tanl.c: Likewise.
14920         * math/s_cacoshf.c: Likewise.
14921         * math/s_catan.c: Likewise.
14922         * math/s_catanf.c: Likewise.
14923         * math/s_catanh.c: Likewise.
14924         * math/s_catanhf.c: Likewise.
14925         * math/s_catanhl.c: Likewise.
14926         * math/s_catanl.c: Likewise.
14927         * math/s_ccosh.c: Likewise.
14928         * math/s_ccoshf.c: Likewise.
14929         * math/s_ccoshl.c: Likewise.
14930         * math/s_cexp.c: Likewise.
14931         * math/s_cexpf.c: Likewise.
14932         * math/s_cexpl.c: Likewise.
14933         * math/s_clog.c: Likewise.
14934         * math/s_clog10.c: Likewise.
14935         * math/s_clog10f.c: Likewise.
14936         * math/s_clog10l.c: Likewise.
14937         * math/s_clogf.c: Likewise.
14938         * math/s_clogl.c: Likewise.
14939         * math/s_csin.c: Likewise.
14940         * math/s_csinf.c: Likewise.
14941         * math/s_csinh.c: Likewise.
14942         * math/s_csinhf.c: Likewise.
14943         * math/s_csinhl.c: Likewise.
14944         * math/s_csinl.c: Likewise.
14945         * math/s_csqrt.c: Likewise.
14946         * math/s_csqrtf.c: Likewise.
14947         * math/s_csqrtl.c: Likewise.
14948         * math/s_ctan.c: Likewise.
14949         * math/s_ctanf.c: Likewise.
14950         * math/s_ctanh.c: Likewise.
14951         * math/s_ctanhf.c: Likewise.
14952         * math/s_ctanhl.c: Likewise.
14953         * math/s_ctanl.c: Likewise.
14954         * math/s_ldexp.c: Likewise.
14955         * math/s_ldexpf.c: Likewise.
14956         * math/s_ldexpl.c: Likewise.
14957         * math/s_significand.c: Likewise.
14958         * math/s_significandf.c: Likewise.
14959         * math/s_significandl.c: Likewise.
14960         * math/w_acos.c: Likewise.
14961         * math/w_acosf.c: Likewise.
14962         * math/w_acosh.c: Likewise.
14963         * math/w_acoshf.c: Likewise.
14964         * math/w_acoshl.c: Likewise.
14965         * math/w_acosl.c: Likewise.
14966         * math/w_asin.c: Likewise.
14967         * math/w_asinf.c: Likewise.
14968         * math/w_asinl.c: Likewise.
14969         * math/w_atan2.c: Likewise.
14970         * math/w_atan2f.c: Likewise.
14971         * math/w_atan2l.c: Likewise.
14972         * math/w_atanh.c: Likewise.
14973         * math/w_atanhf.c: Likewise.
14974         * math/w_atanhl.c: Likewise.
14975         * math/w_cosh.c: Likewise.
14976         * math/w_coshf.c: Likewise.
14977         * math/w_coshl.c: Likewise.
14978         * math/w_dremf.c: Likewise.
14979         * math/w_exp10.c: Likewise.
14980         * math/w_exp10f.c: Likewise.
14981         * math/w_exp10l.c: Likewise.
14982         * math/w_exp2.c: Likewise.
14983         * math/w_exp2f.c: Likewise.
14984         * math/w_fmod.c: Likewise.
14985         * math/w_fmodf.c: Likewise.
14986         * math/w_fmodl.c: Likewise.
14987         * math/w_hypot.c: Likewise.
14988         * math/w_hypotf.c: Likewise.
14989         * math/w_hypotl.c: Likewise.
14990         * math/w_j0.c: Likewise.
14991         * math/w_j0f.c: Likewise.
14992         * math/w_j0l.c: Likewise.
14993         * math/w_j1.c: Likewise.
14994         * math/w_j1f.c: Likewise.
14995         * math/w_j1l.c: Likewise.
14996         * math/w_jn.c: Likewise.
14997         * math/w_jnf.c: Likewise.
14998         * math/w_jnl.c: Likewise.
14999         * math/w_lgamma.c: Likewise.
15000         * math/w_lgamma_r.c: Likewise.
15001         * math/w_lgammaf.c: Likewise.
15002         * math/w_lgammaf_r.c: Likewise.
15003         * math/w_lgammal.c: Likewise.
15004         * math/w_lgammal_r.c: Likewise.
15005         * math/w_log.c: Likewise.
15006         * math/w_log10.c: Likewise.
15007         * math/w_log10f.c: Likewise.
15008         * math/w_log10l.c: Likewise.
15009         * math/w_log2.c: Likewise.
15010         * math/w_log2f.c: Likewise.
15011         * math/w_log2l.c: Likewise.
15012         * math/w_logf.c: Likewise.
15013         * math/w_logl.c: Likewise.
15014         * math/w_pow.c: Likewise.
15015         * math/w_powf.c: Likewise.
15016         * math/w_powl.c: Likewise.
15017         * math/w_remainder.c: Likewise.
15018         * math/w_remainderf.c: Likewise.
15019         * math/w_remainderl.c: Likewise.
15020         * math/w_scalb.c: Likewise.
15021         * math/w_scalbf.c: Likewise.
15022         * math/w_scalbl.c: Likewise.
15023         * math/w_sinh.c: Likewise.
15024         * math/w_sinhf.c: Likewise.
15025         * math/w_sinhl.c: Likewise.
15026         * math/w_sqrt.c: Likewise.
15027         * math/w_sqrtf.c: Likewise.
15028         * math/w_sqrtl.c: Likewise.
15029         * math/w_tgamma.c: Likewise.
15030         * math/w_tgammaf.c: Likewise.
15031         * math/w_tgammal.c: Likewise.
15033         * po/ja.po: Update from translation team.
15035 2011-09-29  Andreas Jaeger  <aj@suse.de>
15037         [BZ #13179]
15038         * sunrpc/netname.c (netname2host): Fix logic.
15040         [BZ #6779]
15041         [BZ #6783]
15042         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15043         correctly.
15044         * math/w_remainder.c (__remainder): Likewise.
15045         * math/w_remainderf.c (__remainderf): Likewise.
15046         * math/libm-test.inc (remainder_test): Add test cases.
15048 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15050         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15051         sdiv_qrnnd.
15053 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15055         * string/test-memcmp.c: Avoid unncessary #defines.
15056         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15058 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15060         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15061         Use new sse2 version for core i3 - i7 as it's faster
15062         than sse42 version.
15063         (bit_Prefer_PMINUB_for_stringop): New.
15064         * sysdeps/x86_64/rawmemchr.S: Update.
15065         Replace with faster SSE2 version.
15066         * sysdeps/x86_64/memrchr.S: New file.
15067         * sysdeps/x86_64/memchr.S: Update.
15068         Replace with faster SSE2 version.
15070 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15072         * elf/dl-load.c (lose): Add cast to avoid warning.
15074 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15076         * po/ca.po: Update from translation team.
15078         * inet/getnetgrent_r.c: Hook up nscd.
15079         * nscd/Makefile (routines): Add nscd_netgroup.
15080         (nscd-modules): Add netgroupcache.
15081         (CFLAGS-netgroupcache.c): Define.
15082         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15083         (cache_search): Add const to second parameter.
15084         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15085         INNETGR.
15086         (dbs): Add netgrdb entry.
15087         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15088         (verify_persistent_db): Handle netgrdb.
15089         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15090         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15091         GETFDNETGR.
15092         (netgroup_response_header): Define.
15093         (innetgroup_response_header): Define.
15094         (datahead): Add netgroup_response_header and innetgroup_response_header
15095         elements.
15096         * nscd/nscd.conf: Add entries for netgroup cache.
15097         * nscd/nscd.h (dbtype): Add netgrdb.
15098         (_PATH_NSCD_NETGROUP_DB): Define.
15099         (netgroup_iov_disabled): Declare.
15100         (xmalloc, xcalloc, xrealloc): Move declarations here.
15101         (cache_search): Adjust prototype.
15102         Add netgroup-related prototypes.
15103         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15104         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15105         (__nscd_innetgr): Declare.
15106         * nscd/selinux.c (perms): Use access_vector_t as element type and
15107         add netgroup-related initializers.
15108         * nscd/netgroupcache.c: New file.
15109         * nscd/nscd_netgroup.c: New file.
15110         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15111         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15112         For four parameters use innetgr.
15113         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15114         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15115         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15116         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15118         * nscd/connections.c (register_traced_file): Don't register file
15119         for disabled databases.
15121 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15123         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15125         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15126         from tree and freeing node.
15128 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15130         * nss/nsswitch.c (__nss_database_lookup): Handle
15131         nss_parse_service_list out of memory case.
15133 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15135         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15136         out of memory case.
15138 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15140         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15141         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15142         pass it down.
15143         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15144         elf_machine_rela, elf_machine_lazy_rel.
15145         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15146         (ELF_DYNAMIC_DO_REL): Likewise.
15147         (ELF_DYNAMIC_DO_RELA): Likewise.
15148         (ELF_DYNAMIC_RELOCATE): Likewise.
15149         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15150         to ELF_DYNAMIC_DO_REL.
15151         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15152         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15153         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15154         elf_machine_rela.
15155         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15156         skip_ifunc, don't call ifunc function if non-zero.
15157         (elf_machine_rela): Likewise.
15158         (elf_machine_lazy_rel): Likewise.
15159         (elf_machine_lazy_rela): Likewise.
15160         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15161         (elf_machine_lazy_rel): Likewise.
15162         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15163         Likewise.
15164         (elf_machine_lazy_rel): Likewise.
15165         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15166         Likewise.
15167         (elf_machine_lazy_rel): Likewise.
15168         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15169         (elf_machine_lazy_rel): Likewise.
15170         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15171         (elf_machine_lazy_rel): Likewise.
15172         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15173         (elf_machine_lazy_rel): Likewise.
15174         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15175         (elf_machine_lazy_rel): Likewise.
15176         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15177         (elf_machine_lazy_rel): Likewise.
15178         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15179         (elf_machine_lazy_rel): Likewise.
15181 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15183         * nss/nss_files/files-init.c (_nss_files_init): Use static
15184         initialization for all the *_traced_file variables.
15186 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15188         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15190 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15192         [BZ #13226]
15193         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15195 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15197         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15198         Reread the line before reparsing it.
15200 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15202         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15204 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15205             Maxim Kuvyrkov  <maxim@codesourcery.com>
15206             Joseph Myers  <joseph@codesourcery.com>
15208         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15209         if needed for __stack_chk_guard.
15211 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15213         * sysdeps/posix/spawni.c (script_execute): Always define it.
15214         It will be optimized away if unused.
15215         (maybe_script_execute): New function.
15216         (__spawni): Call it.
15218         * Makerules: Don't include tls.make.
15219         (config-tls): Always set to thread.
15220         * tls.make.c: File removed.
15222 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15224         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15225         * config.make.in (CPPFLAGS-config): New substituted variable.
15227 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15229         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15231         [BZ #13192]
15232         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15233         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15235 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15237         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15238         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15239         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15240         (CALL_FAIL): Likewise.
15241         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15242         (CALL_FAIL): Macro removed.
15243         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15245 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15247         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15248         for __FINITE_MATH_ONLY__ == 1.
15250 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15252         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15253         __ieee754_sqrt instead of sqrt.
15254         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15255         __ieee754_sqrtf instead of sqrtf.
15256         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15257         __floorf instead of floorf.
15258         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15259         __floorf, __truncf instead of floorf, truncf.
15261 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15263         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15265         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15266         __extern_always_inline.
15267         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15268         32-bit.
15270 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15272         * elf/rtld.c (dl_main): Also relocate in dependency order when
15273         doing symbol dependency testing.
15275 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15277         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15278         Always define `refsym'.
15280 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15282         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15283         (__FD_ELT): Renamed from __FDELT.
15284         * misc/bits/select2.h (__FD_ELT): Likewise.
15285         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15286         __FD_MASK instead of __FDELT, __FDMASK.
15287         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15288         Likewise.
15289         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15290         Likewise.
15292         * elf/Makefile (gen-ldd): Fix pattern.
15294         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15295         (init_tls): Likewise.
15297 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15299         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15301 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15303         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15304         `struct cmsghdr *' instead of `void *'.
15305         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15306         Likewise.
15308 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15310         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15311         if non-absolute.
15312         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15313         ldd_rewrite_script.
15315 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15317         * configure.in: Remove --with-tls option.
15318         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15319         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15320         out in case it is missing.
15321         * sysdeps/ia64/elf/configure.in: Likewise.
15322         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15323         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15324         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15325         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15326         * sysdeps/sh/elf/configure.in: Likewise.
15327         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15328         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15329         * sysdeps/x86_64/elf/configure.in: Likewise.
15330         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15331         * sysdeps/mach/hurd/tls.h: Likewise.
15333         [BZ #13067]
15334         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15336         [BZ #13090]
15337         * configure.in: Fix use of AC_INIT.
15339         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15341 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15343         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15344         __set_errno.
15345         * malloc/hooks.c: Likewise.
15347         [BZ #11929]
15348         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15349         variables statically.
15350         (narenas): Initialize.
15351         (list_lock): Initialize.
15352         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15353         initializtion of main_arena and list_lock.  Small cleanups.
15354         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15355         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15356         Add initializers to main_arena and mp_.
15357         (malloc_state): Remove pagesize member.  Change all users to use
15358         GLRO(dl_pagesize).
15360         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15361         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15362         is always initialized.
15364         * malloc/malloc.c: Removed unused configurations and dead code.
15365         * malloc/arena.c: Likewise.
15366         * malloc/hooks.c: Likewise.
15367         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15369         * include/tls.h: Removed.  USE___THREAD must always be defined.
15370         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15371         * elf/dl-libc.c: Likewise.
15372         * elf/dl-tsd.c: Likewise.
15373         * include/errno.h: Likewise.
15374         * include/netdb.h: Likewise.
15375         * include/resolv.h: Likewise.
15376         * inet/herrno-loc.c: Likewise.
15377         * inet/herrno.c: Likewise.
15378         * malloc/arena.c: Likewise.
15379         * malloc/hooks.c: Likewise.
15380         * malloc/malloc.c: Likewise.
15381         * resolv/res-state.c: Likewise.
15382         * resolv/res_libc.c: Likewise.
15383         * sysdeps/i386/dl-machine.h: Likewise.
15384         * sysdeps/ia64/dl-machine.h: Likewise.
15385         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15386         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15387         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15388         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15389         * sysdeps/sh/dl-machine.h: Likewise.
15390         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15391         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15392         * sysdeps/unix/i386/sysdep.S: Likewise.
15393         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15394         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15395         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15396         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15397         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15398         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15399         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15400         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15401         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15402         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15403         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15404         * sysdeps/x86_64/dl-machine.h: Likewise.
15405         * tls.make.c: Likewise.
15407         * configure.in: Remove --with-__thread option.  Make tests for
15408         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15409         tls_model attribute fail if no support is available.  Remove
15410         USE_IN_LIBIO.
15411         * Makeconfig: Adjust for dropped configure option.  All features are
15412         now mandatory.
15413         * Makerules: Likewise.
15414         * Versions.def: Likewise.
15415         * argp/argp-fmtstream.c: Likewise.
15416         * argp/argp-fmtstream.h: Likewise.
15417         * argp/argp-help.c: Likewise.
15418         * assert/assert.c: Likewise.
15419         * config.h.in: Likewise.
15420         * config.make.in: Likewise.
15421         * configure: Likewise.
15422         * configure.in: Likewise.
15423         * csu/Versions: Likewise.
15424         * csu/init.c: Likewise.
15425         * elf/tst-audit2.c: Likewise.
15426         * elf/tst-tls10.c: Likewise.
15427         * elf/tst-tls10.h: Likewise.
15428         * elf/tst-tls11.c: Likewise.
15429         * elf/tst-tls12.c: Likewise.
15430         * elf/tst-tls14.c: Likewise.
15431         * elf/tst-tlsmod11.c: Likewise.
15432         * elf/tst-tlsmod12.c: Likewise.
15433         * elf/tst-tlsmod13.c: Likewise.
15434         * elf/tst-tlsmod13a.c: Likewise.
15435         * elf/tst-tlsmod14a.c: Likewise.
15436         * elf/tst-tlsmod15b.c: Likewise.
15437         * elf/tst-tlsmod16a.c: Likewise.
15438         * elf/tst-tlsmod16b.c: Likewise.
15439         * elf/tst-tlsmod7.c: Likewise.
15440         * elf/tst-tlsmod8.c: Likewise.
15441         * elf/tst-tlsmod9.c: Likewise.
15442         * gmon/gmon.c: Likewise.
15443         * grp/fgetgrent_r.c: Likewise.
15444         * grp/putgrent.c: Likewise.
15445         * hurd/fopenport.c: Likewise.
15446         * include/libc-symbols.h: Likewise.
15447         * include/tls.h: Likewise.
15448         * intl/gettextP.h: Likewise.
15449         * intl/loadinfo.h: Likewise.
15450         * locale/global-locale.c: Likewise.
15451         * locale/localeinfo.h: Likewise.
15452         * mach/devstream.c: Likewise.
15453         * malloc/arena.c: Likewise.
15454         * malloc/set-freeres.c: Likewise.
15455         * misc/err.c: Likewise.
15456         * misc/getttyent.c: Likewise.
15457         * misc/mntent_r.c: Likewise.
15458         * posix/getopt.c: Likewise.
15459         * posix/wordexp.c: Likewise.
15460         * pwd/fgetpwent_r.c: Likewise.
15461         * resolv/Versions: Likewise.
15462         * resolv/res_hconf.c: Likewise.
15463         * shadow/fgetspent_r.c: Likewise.
15464         * shadow/putspent.c: Likewise.
15465         * stdio-common/printf_fphex.c: Likewise.
15466         * stdio-common/tmpfile.c: Likewise.
15467         * stdlib/abort.c: Likewise.
15468         * stdlib/fmtmsg.c: Likewise.
15469         * sunrpc/auth_unix.c: Likewise.
15470         * sunrpc/clnt_perr.c: Likewise.
15471         * sunrpc/clnt_tcp.c: Likewise.
15472         * sunrpc/clnt_udp.c: Likewise.
15473         * sunrpc/clnt_unix.c: Likewise.
15474         * sunrpc/openchild.c: Likewise.
15475         * sunrpc/svc_simple.c: Likewise.
15476         * sunrpc/svc_tcp.c: Likewise.
15477         * sunrpc/svc_udp.c: Likewise.
15478         * sunrpc/svc_unix.c: Likewise.
15479         * sunrpc/xdr.c: Likewise.
15480         * sunrpc/xdr_array.c: Likewise.
15481         * sunrpc/xdr_rec.c: Likewise.
15482         * sunrpc/xdr_ref.c: Likewise.
15483         * sunrpc/xdr_stdio.c: Likewise.
15485 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15487         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15489 2011-07-03  Andreas Jaeger  <aj@suse.de>
15491         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15492         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15493         regenerate with gen-libm-tests.pl.
15495 2010-05-12  Petr Baudis  <pasky@suse.cz>
15497         [BZ #11589]
15498         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15499         around j0() zero points by switching to j1().
15500         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15501         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15502         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15503         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15505 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15507         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15508         instead of 0.
15509         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15510         instead of 0.                              .
15511         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15512         Patch in part by Pavel Roskin <proski@gnu.org>.
15514         [BZ #13138]
15515         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15516         realloc.
15517         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15518         Free memory block if necessary.
15520         [BZ #12847]
15521         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15522         be NULL.  Don't lock in this case.
15524 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15526         * elf/elf.h (ELFOSABI_GNU): New macro.
15527         (ELFOSABI_LINUX): Define to that.
15529 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15531         * string/strncat.c (strncat): Undef the symbol in case it has been
15532         defined in bits/string.h.
15534 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15536         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15538         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15539         link map.
15541 2011-08-17  Andreas Jaeger  <aj@suse.de>
15543         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15545 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15546             Ian Lance Taylor  <iant@google.com>
15548         * math/libm-test.inc (lround_test): New testcase.
15549         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15551 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15553         * Makefile: Remove support for automatic cvs check-ins.
15554         * Makerules: Likewise.
15555         * config.make.in: Likewise.
15556         * configure.in: Likewise.
15557         * intl/Makefile: Likewise.
15558         * locale/Makefile: Likewise.
15559         * po/Makefile: Likewise.
15560         * posix/Makefile: Likewise.
15561         * sysdeps/gnu/Makefile: Likewise.
15562         * sysdeps/mach/hurd/Makefile: Likewise.
15563         * sysdeps/sparc/sparc32/Makefile: Likewise.
15565         [BZ #13118]
15566         * posix/Makefile (bug-regex32-ENV): Define.
15567         Patch by John Stanley <jpsinthemix@verizon.net>.
15569         * misc/Makefile (headers): Add bits/select2.h.
15570         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15571         * misc/bits/select2.h: New file.
15572         * include/bits/select2.h: New file.
15573         * debug/Makefile (routines): Add fdelt_chk.
15574         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15575         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15576         FD_ISSET.
15577         * debug/fdelt_chk.c: New file.
15579         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15580         * wcsmbs/test-wmemcmp.c: Likewise.
15581         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15582         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15584 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15586         * string/Makefile (strop-tests): Add memcmp.
15587         * string/test-wmemcmp.c: New file.
15588         * string/test-memcmp.c: Add wmemcmp support.
15590 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15592         [BZ #13153]
15593         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15594         2011-07-19 change.
15596         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15597         garbage value in a __mach_port_mod_refs call in the cases of the
15598         task-self and thread-self ports.
15600 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15602         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15604 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15606         * elf/dl-load.c (lose): Check for non-null L.
15608 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15610         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15612         * elf/dl-libc.c (dlerror_run): Pass back error code from
15613         dl_catch_error.
15615         [BZ #13123]
15616         * elf/dl-load.c (lose): Free l_origin if it is valid.
15618         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15619         names.
15620         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15621         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15622         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15623         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15624         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15625         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15627 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15629         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15630         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15631         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15632         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15633         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15634         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15635         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15636         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15637         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15638         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15640 2011-08-15  Alan Modra  <amodra@gmail.com>
15642         [BZ #13092]
15643         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15644         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15645         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15646         ppc_mcount to static-only-routines.
15647         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15648         __mcount_internal.
15649         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15650         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15652 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15654         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15655         for finite and infinity parameters.
15657 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15659         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15660         and add nop instructions for throughput optimization.
15661         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15663 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15665         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15666         aligned copy for power7 with vector-scalar instructions.
15667         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15669 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15671         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15672         AVX check.
15674 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15676         [BZ #13144]
15677         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15678         last change.
15680 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15682         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15683         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15684         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15685         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15686         clock_gettime.
15688 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15690         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15691         Forgot to demangle the pointer.
15693         * sysdeps/i386/sysdep.h: Define atom_text_section.
15694         * sysdeps/x86_64/sysdep.h: Likewise.
15695         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15696         section with atom_text_section.
15697         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15698         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15699         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15700         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15701         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15703         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15704         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15705         already be defined.  Change to take two parameters and don't assign
15706         result to variable.  Adjust all users.
15707         Define INTERNAL_GETTIME if not already defined.
15708         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15709         call.
15710         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15711         HAVE_CLOCK_GETTIME_VSYSCALL.
15712         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15714         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15715         gettimeofday vsyscall, just use time.
15717 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15719         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15720         <errno.h>.
15722 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15724         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15725         syscall on x86-64.
15726         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15727         syscall.
15728         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15729         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15730         syscall if possible.
15732 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15734         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15735         e_ident.  Don't pass to find_mapsXX.
15736         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15738 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15740         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15741         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15742         * sysdeps/x86_64/multiarch/strchr.S: Update.
15743         Check bit_slow_BSF bit.
15744         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15745         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15746         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15748 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15750         [BZ #13134]
15751         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15752         before glibc 2.15.
15753         (tryshell): Define.
15754         (__spawni): Change last parameter to be flag.  Test
15755         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15756         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15757         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15758         * posix/spawni.c: Likewise.
15759         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15760         * posix/spawnp.c: Likewise.  Change normal version to use
15761         SPAWN_XFLAGS_USE_PATH.
15762         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15763         SPAWN_XFLAGS_TRY_SHELL.
15765         [BZ #13150]
15766         * posix/glob.h: Remove gcc 1.x support.
15768         [BZ #13068]
15769         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15771 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15773         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15774         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15775         strrchr-sse2-bsf
15776         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15777         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15778         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15779         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15780         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15781         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15783 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15785         * sysdeps/x86_64/wcscmp.S: New file.
15787         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15788         wcscmp-c wcscmp-sse2
15789         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15790         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15791         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15792         * wcsmbs/wcscmp.c: Allow renaming.
15794 2011-09-05  David S. Miller  <davem@davemloft.net>
15796         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15797         stack slot, rather than the struct return pointer slot.
15798         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15799         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15801         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15803 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15805         * po/ja.po: Update from translation team.
15807         [BZ #13144]
15808         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15809         kernel in 64-bit binaries.
15811 2011-09-01  David S. Miller  <davem@davemloft.net>
15813         * elf/elf.h (HWCAP_SPARC_*): Move to..
15814         * sysdeps/sparc/sysdep.h: this new file and add new values.
15815         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15816         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15817         _DL_HWCAP_COUNT to 24.
15818         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15819         entries.
15820         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15821         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15822         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15823         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15824         instead of magic constants.
15825         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15827 2011-08-31  David S. Miller  <davem@davemloft.net>
15829         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15830         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15831         Reimplement to do errno handling inline.
15832         (SYSCALL_ERROR_HANDLER): New macro.
15833         (__SYSCALL_STRING): Do not do errno handling in asm.
15834         (__CLONE_SYSCALL_STRING): Delete.
15835         (__INTERNAL_SYSCALL_STRING): Delete.
15836         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15837         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15838         (PSEUDO): Reimplement to do errno handling inline.
15839         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15840         (SYSCALL_ERROR_HANDLER): New macro.
15841         (__SYSCALL_STRING): Do not do errno handling in asm.
15842         (__CLONE_SYSCALL_STRING): Delete.
15843         (__INTERNAL_SYSCALL_STRING): Delete.
15844         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15845         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15846         i386.
15847         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15848         (inline_syscall*): Add 'err' argument.
15849         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15850         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15851         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15852         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15854         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15855         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15857 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15859         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15861 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15863         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15864         directive.
15866 2011-08-24  David S. Miller  <davem@davemloft.net>
15868         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15870 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15872         * elf/Makefile: Add rules to build and run unload8 test.
15873         * elf/unload8.c: New file.
15874         * elf/unload8mod1.c: New file.
15875         * elf/unload8mod1x.c: New file.
15876         * elf/unload8mod2.c: New file.
15877         * elf/unload8mod3.c: New file.
15879         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15880         it wasn't used.
15882 2011-08-23  David S. Miller  <davem@davemloft.net>
15884         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15885         subtract stack bias.
15886         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15887         %sp not %fp in calculations.
15888         (_JMPBUF_UNWINDS_ADJ): Likewise.
15890         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15891         (aio_suspend): Call it to force an exception region around the
15892         AIO_MISC_WAIT() invocation.
15894 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15896         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15897         backslash.
15899 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15901         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15902         protection macro.
15903         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15904         and <dl-machine.h>.
15905         (Elf64_FuncDesc): Remove.
15907 2011-08-22  David S. Miller  <davem@davemloft.net>
15909         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15910         sigaltstack check, add missing cfi directives.
15911         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15912         missing cfi directives, and sigaltstack handling.
15914 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15916         [BZ #11724]
15917         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15918         object is seen twice.
15919         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15921         * elf/Makefile (distribute): Add tst-initorder2.c.
15922         (tests): Add tst-initorder2.
15923         (modules-names): Add tst-initorder2a tst-initorder2b
15924         tst-initorder2c tst-initorder2d.  Add rules to build them.
15925         ($(objpfx)tst-initorder2.out): New rule.
15926         * elf/tst-initorder2.c: New file.
15927         * elf/tst-initorder2.exp: New file.
15929 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15931         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15933         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15934         dependencies back to end of function.
15936         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15937         $(elfobjdir)/ld.so.
15939 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15941         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15942         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15943         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15944         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15945         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15946         of __vdso_gettimeofday.
15947         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15948         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15949         attribute_hidden.
15950         (_libc_vdso_platform_setup): Remove initialization of
15951         __vdso_gettimeofday and __vdso_time.
15953 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15955         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15956         and fgetc_unlocked.
15957         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15958         getc_unlocked.
15960         * elf/dl-open.c (add_to_global): Report additions to the global scope
15961         for LD_DEBUG=scopes.
15962         (dl_open_worker): Also print scope of newly loaded dependencies.
15963         (_dl_show_scope): Indicate if there is no scope.
15965         [BZ #13114]
15966         * stdio-common/Makefile (tests): Add bug24.
15967         * stdio-common/bug24.c: New file.
15969 2011-08-19  Andreas Jaeger  <aj@suse.de>
15971         [BZ #13114]
15972         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15973         non-existant file when using close-on-exec mode.
15975 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15977         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15978         the very first instruction.
15980         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15981         the CFI state in the end.
15982         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15983         inclusion of dl-trampoline.h.
15984         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15986 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15988         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15989         expectations for long double.
15991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15992         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15994 2011-08-14  David S. Miller  <davem@davemloft.net>
15996         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15997         artificual limit depends upon the system page size.
15999 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16001         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16002         * resolv/Makefile: Define CFLAGS-libresolv.
16004 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16006         * nss/makedb.c (compute_tables): Make variables used in nested
16007         function static.
16009 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16011         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16012         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16013         if buffer was too small.
16015         * elf/pldd.c (main): Attach to all threads in the process.
16016         Rewrite /proc handling to use *at functions.
16018 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16020         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16021         specifies first scope to show.
16022         (dl_open_worker): Update callers.  Move printing scope of new
16023         object to before the relocation.
16024         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16025         * sysdeps/generic/ldsodefs.h: Update declaration.
16027         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16028         string for the scope number.
16030 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16032         * nscd/servicescache.c (cache_addserv): Make sure written is always
16033         initialized.
16035 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16037         * sysdeps/i386/i486/bits/atomic.h
16038         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16039         statement expression, so as to suppress "set but not used" warning.
16040         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16042         * string/strncat.c (STRNCAT): Use prototype definition.
16044         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16045         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16046         -Iprograms here.
16047         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16048         (localedef-modules): Add localedef.
16049         (locale-modules): Add locale.
16051         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16052         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16053         to avoid a warning.
16055 2011-08-14  David S. Miller  <davem@davemloft.net>
16057         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16058         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16060 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16062         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16063         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16064         * elf/rtld.c (dl_main): Set l_name of vDSO.
16065         Call _dl_show_scope when DL_DEBUG_SCOPES.
16066         (process_dl_debug): Recognize scopes flag and also set it for all.
16067         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16068         Declare _dl_show_scope.
16070         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16071         (do_dlopen): Pass caller_dlopen to dl_open.
16072         (__libc_dlopen_mode): Initialize caller_dlopen.
16074         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16075         of libc.  Make tolower call locale-independent.  Optimize a bit by
16076         using isdigit instead of isalnum.
16077         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16079 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16081         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16082         was a dependency or dynamically loaded.
16084 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16086         * intl/l10nflist.c: Allow architecture-specific pop function.
16087         * sysdeps/x86_64/l10nflist.c: New file.
16089         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16090         classification.
16092 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16094         * include/dirent.h: Add libc_hidden_proto for scandirat and
16095         scandirat64.  Don't declare __scandirat64.
16096         * dirent/scandirat.c: Add libc_hidden_def.
16097         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16098         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16100 2011-08-10  David S. Miller  <davem@davemloft.net>
16102         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16103         enum.
16104         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16105         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16106         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16108 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16110         * Versions.def [libc]: Add GLIBC_2.15.
16111         * dirent/Makefile (routines): Add scandirat and scandirat64.
16112         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16113         GLIBC_2.15.
16114         * dirent/dirent.h: Declare scandirat and scandirat64.
16115         * dirent/scandirat.c: New file.
16116         * dirent/scandirat64.c: New file.
16117         * sysdeps/wordsize-64/scandirat.c: New file.
16118         * sysdeps/wordsize-64/scandirat64.c: New file.
16119         * dirent/opendir.c: Define opendirat.
16120         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16121         using scandirat.
16122         * dirent/scandir64.c: Adjust for scandir.c change.
16123         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16124         __scandirat64, and __scandir_cancel_handler.
16125         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16126         additional parameter and use openat instead of open (outside of ld.so).
16127         Add new __opendir as wrapper around __opendirat.
16128         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16129         here without requiring old scandirat implementation.
16131 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16133         * dirent/scandir.c (cancel_handler): Renamed to
16134         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16135         defined.  Adjust users.
16136         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16137         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16139 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16141         * string/test-string.h (IMPL): Use __STRING to expand name and then
16142         stringify it.
16144         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16145         of cleanups.
16147 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16149         * string/Makefile: Update.
16150         (strop-tests): Append strncat.
16151         * string/test-wcscmp.c: New file.
16152         New comprehensive test for wcscmp.
16153         * string/test-strcmp.c: Update.
16154         (WIDE): New define.
16156 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16158         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16159         line.
16161 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16163         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16164         encoding to ACE if AI_IDN.
16166 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16168         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16169         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16171 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16173         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16174         Fix overflow bug in strncat.
16175         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16177         * string/test-strncat.c: Update.
16178         Add new tests for checking overflow bugs.
16180 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16182         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16183         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16184         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16185         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16186         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16187         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16188         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16189         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16190         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16192         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16193         (USE_AS_STRCAT): Define.
16194         Add strcat and strncat support.
16195         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16197 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16199         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16200         __n bigger than INT_MAX+1.
16201         (__strncmp_g): Likewise.
16203 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16205         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16206         * libio/stido.h: Likewise.
16208         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16209         (AF_NFC): Define.
16210         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16211         (AF_NFC): Define.
16213         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16214         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16215         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16216         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16217         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16219         [BZ #13021]
16220         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16221         installed.
16223         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16224         typo.
16225         (_dl_x86_64_save_sse): Likewise.
16227 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16229         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16230         OSXSAVE.
16231         (_dl_x86_64_save_sse): Likewise.
16233         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16235         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16237 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16239         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16240         change.
16241         (_dl_x86_64_save_sse): Use correct AVX check.
16243 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16245         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16246         bug in strncpy/strncat.
16247         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16249 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16251         * string/tester.c (test_strcat): Add tests for different alignments
16252         of source and destination.
16253         (test_strncat): Likewise.
16255 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16257         [BZ #12852]
16258         * posix/glob.c (glob): Check passed in values before using them in
16259         expressions to avoid some overflows.
16260         (glob_in_dir): Likewise.
16262         [BZ #13007]
16263         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16264         check for AVX enablement so that we don't crash with old kernels and
16265         new hardware.
16266         * elf/tst-audit4.c: Add same checks here.
16267         * elf/tst-audit6.c: Likewise.
16269         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16271 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16273         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16275 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16277         * po/cs.po: Update from translation team.
16278         * po/bg.po: Likewise.
16280 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16282         * misc/sys/cdefs.h: Add support for const attribute.
16283         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16284         to gnu_dev_{major,minor,makedev} functions.
16286 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16288         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16290 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16292         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16293         strlen results.
16295 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16297         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16298         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16299         register in order to avoid conflicts with the soft frame pointer
16300         being held in r11 when necessary.
16301         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16302         (INTERNAL_VSYSCALL_NCS): Likewise.
16304 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16306         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16307         * elf/dl-fini.c (_dl_fini): Adjust caller.
16308         * elf/dl-close.c (_dl_close_worker): Likewise.
16309         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16311 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16313         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16314         "aux_cache->nlibs < 0".
16316         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16317         in the reload-count case.
16319 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16321         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16322         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16323         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16324         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16325         * sysdeps/x86_64/multiarch/strcat.S: New file.
16326         * sysdeps/x86_64/multiarch/strncat.S: New file.
16327         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16328         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16329         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16330         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16331         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16332         (USE_AS_STRCAT): Define.
16333         Add strcat and strncat support.
16334         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16335         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16336         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16337         * string/strncat.c: Update.
16338         (USE_AS_STRNCAT): Define.
16339         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16340         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16341         and i7.
16342         * sysdeps/x86_64/multiarch/init-arch.h
16343         (bit_Prefer_PMINUB_for_stringop): New.
16344         (index_Prefer_PMINUB_for_stringop): Likewise.
16345         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16346         bit_Prefer_PMINUB_for_stringop.
16348 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16350         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16351         buffer64.
16352         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16353         of casting of buffer.
16354         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16355         buffer32 and buffer64.
16356         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16357         writes instead of casting of buffer.
16358         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16359         buffer32.
16360         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16361         casting of buffer.
16363 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16365         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16367 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16369         * nscd/nscd.c (termination_handler): Don't do anything for a database
16370         if it has not yet been initialized.
16372 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16374         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16376 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16378         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16380 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16382         * po/nl.po: Update from translation team.
16383         * po/sv.po: Likewise.
16385 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16387         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16388         now disallowed by GCC.
16390         * configure.in (use-default-link): Default to yes if a test -shared
16391         link meets our qualifications.
16392         * configure: Regenerated.
16394         * config.make.in (output-format): New variable.
16395         * configure.in: Check for ld --print-output-format support.
16396         * configure: Regenerated.
16397         * Makerules ($(common-objpfx)format.lds)
16398         [$(output-format) != unknown]: Just use $(output-format),
16399         instead of the linker-script munging.
16401 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16403         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16404         of $(common-objpfx)shlib.lds.
16405         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16407         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16408         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16410         * configure.in (-z relro check): Adjust test code to add a large
16411         writable data section after it.
16412         * configure: Regenerated.
16414 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16416         * configure.in (-z relro check): Fix test code to make the variable
16417         truly const.
16418         * configure: Regenerated.
16420 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16422         * nscd/nscd.h (struct traced_file): Define.
16423         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16424         elements.  Add traced_files.
16425         (inotify_fd): Declare.
16426         (register_traced_file): Declare.
16427         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16428         (inotify_fd): Export.
16429         (resolv_conf_descr): Remove.
16430         (nscd_init): Move inotify descriptor creation to main.
16431         Don't register files for notification here.
16432         (register_traced_file): New function.
16433         (invalidate_cache): Don't use reset_res to determine whether to call
16434         res_init, go through the list of registered files.
16435         (main_loop_poll): The inotify descriptors are now stored in the
16436         structures for the traced files.
16437         (main_loop_epoll): Likewise
16438         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16439         to __nss_disable_nscd.
16440         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16441         for a database anymore.  Check the records for all the registered
16442         files instead.
16443         * nss/Makefile (libnss_files-routines): Add files-init.
16444         (libnss_db-routines): Add db-init.
16445         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16446         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16447         * nss/nss_db/db-init.c: New file.
16448         * nss/nss_files/files-init.c: New file.
16449         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16450         __nss_lookup_function.
16451         (__nss_lookup_function): Call nss_load_library.
16452         (nss_load_all_libraries): New function.
16453         (__nss_disable_nscd): Take parameter with callback function for files
16454         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16455         used for the cached services.
16456         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16457         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16458         options for features to all the files in nscd.
16460         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16462 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16464         * csu/elf-init.c (__libc_csu_init): Comment typo.
16466 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16468         * po/pl.po: Update from translation team.
16469         * po/ja.po: Likewise.
16470         * po/ru.po: Likewise.
16471         * po/ko.po: Likewise.
16472         * po/fr.po: Likewise.
16474 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16476         * configure.in (.ctors/.dtors header and trailer check):
16477         Use an empirical test on a built program.
16478         * configure: Regenerated.
16480         * configure.in (-z relro check): Use an empirical test on a built DSO.
16481         Detect, but do not require, on ia64.
16482         * configure: Regenerated.
16484         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16485         Update tests that use readelf to use $READELF instead.
16486         * configure: Regenerated.
16488 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16490         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16491         if the result is not used.
16493 2011-07-05  Andreas Jaeger  <aj@suse.de>
16495         [BZ#9696]
16496         * stdlib/tst-strtod.c: Add testcase.
16498 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16500         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16501         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16502         The latter has a higher limit.  Take additional parameter to pass to
16503         the new function.
16504         (__pathconf): Pass file to __statfs_link_max.
16505         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16506         __statfs_link_max.
16507         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16508         __statfs_link_max.
16510         [BZ #12868]
16511         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16512         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16513         Handle Lustre.
16514         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16515         (__statfs_filesize_max): Likewise.
16516         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16518 2011-07-05  Andreas Jaeger  <aj@suse.de>
16520         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16522 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16524         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16525         `status' variable.
16526         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16527         Likewise.
16529 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16531         * Makefile (strop-tests): Add strncat.
16532         * string/test-strncat.c: New file.
16534 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16536         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16538 2011-06-21  Andreas Jaeger  <aj@suse.de>
16540         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16541         Copy rule from iconvdata/Makefile.
16543 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16545         [BZ #12922]
16546         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16547         but no long options are defined, just return 'W'.
16549 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16551         [BZ #9696]
16552         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16554 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16556         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16557         netgroups to read.
16558         (innetgr): Likewise.
16560 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16562         * config.make.in (install_root): Default to $(DESTDIR).
16564 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16566         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16568 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16570         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16572         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16573         containing directory rather than embedding absolute directory names.
16575         * scripts/check-local-headers.sh: Rewritten using awk.
16576         Match by word, not by line.  Print error messages for matches.
16577         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16579         * Makerules [shlib-lds-flags empty]:
16580         ($(common-objpfx)libc_pic.opts): New target.
16581         ($(common-objpfx)libc_pic.os.clean): New target.
16582         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16584         * config.make.in (OBJCOPY): New variable.
16585         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16586         * configure: Regenerated.
16588         * config.make.in (use-default-link): New variable.
16589         * configure.in (use_default_link): Grok --with-default-link to set it.
16590         * configure: Regenerated.
16591         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16592         (shlib-lds, shlib-lds-flags): Define to empty.
16594         * Makerules (shlib-lds): New variable.
16595         (shlib-lds-flags): New variable.
16596         (build-shlib, build-moduile, build-module-asneeded): Use it.
16597         ($(common-objpfx)libc.so): Use $(shlib-lds).
16598         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16599         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16601         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16602         DT_FLAGS/DT_FLAGS_1 with zero flags.
16604         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16605         linker script munging.
16607 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16609         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16610         as 128-bit value.
16611         * crypt/sha512.c (sha512_process_block): Perform total addition using
16612         128-bit if possible.
16613         (__sha512_finish_ctx): Likewise.
16614         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16615         as 64-bit value.
16616         * crypt/sha256.c (SWAP64): Define.
16617         (sha256_process_block): Perform total addition using 64-bit if
16618         possible.
16619         (__sha256_finish_ctx): Likewise.
16621 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16623         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16624         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16625         * nscd/hstcache.c (cache_addhst): Likewise.
16626         * nscd/grpcache.c (cache_addgr): Likewise.
16627         * nscd/aicache.c (addhstaiX): Likewise
16628         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16630 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16632         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16633         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16634         * nscd/hstcache.c (cache_addhst): Likewise.
16635         * nscd/grpcache.c (cache_addgr): Likewise.
16636         * nscd/aicache.c (addhstaiX): Likewise
16638 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16640         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16641         domain only when needed.
16643 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16645         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16646         is always restored.
16648 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16650         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16651         are re-adding the entry.
16652         * nscd/servicescache.c (cache_addserv): Likewise.
16654 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16656         * sysdeps/generic/dl-irel.h: fix protection against multiple
16657         inclusions.
16658         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16660 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16662         [BZ #12935]
16663         * malloc/memusage.sh: Fix quoting in message.
16664         * debug/xtrace.sh: Likewise.
16666         * configure.in: Remove support for --experimental-malloc option, make
16667         it the default.
16668         * config.make.in: Likewise.
16669         * malloc/Makefile: Likewise.
16671 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16673         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16674         two-byte characters.
16676 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16678         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16679         AC_CACHE_CHECK invocation.
16680         * configure: Regenerated.
16682         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16684 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16686         [BZ #12350]
16687         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16688         bit from old_res_options.
16690         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16692         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16693         value type for setfct.
16695 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16697         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16698         __gettimeofday instead of gettimeofday.
16700 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16702         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16704 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16706         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16708         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16709         info.
16711 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16713         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16714         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16715         strcpy-sse2-unaligned strncpy-sse2-unaligned
16716         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16717         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16718         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16719         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16720         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16721         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16722         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16723         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16724         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16725         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16726         (STRCPY): Support SSE2 and SSSE3 versions.
16728 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16730         [BZ #12874]
16731         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16732         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16733         kernels which artificially limit size of requests.
16735 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16737         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16738         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16739         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16740         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16741         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16742         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16743         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16744         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16745         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16746         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16747         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16748         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16749         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16750         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16751         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16752         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16753         Enable unaligned load optimization for Intel Core i3, i5 and i7
16754         processors.
16755         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16756         Define.
16757         (index_Fast_Unaligned_Load): Define.
16758         (HAS_FAST_UNALIGNED_LOAD): Define.
16760 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16762         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16764 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16766         [BZ #12907]
16767         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16768         until it is clear that the information is realy needed.
16769         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16771 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16773         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16775 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16777         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16778         /sys/devices/system/cpu/online if it is usable.
16780         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16781         reading the information from the /proc filesystem to once a second.
16783 2011-06-21  Andreas Jaeger  <aj@suse.de>
16785         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16786         NULL after inclusion of kernel headers.
16788 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16790         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16791         calls to internal_setent.
16793         [BZ #12885]
16794         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16795         addresses using gethostbyname4_r ignore IPv4 addresses.
16797         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16798         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16800         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16802 2011-06-20  David S. Miller  <davem@davemloft.net>
16804         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16805         inclusions.
16806         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16808         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16809         (elf_irel): Use it.
16810         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16811         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16812         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16813         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16814         * sysdeps/x86_64/dl-irel.h: Likewise.
16816         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16817         * elf/dl-sym.c: Likewise.
16819 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16821         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16822         need to dereference resplen2.
16824 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16826         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16828 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16830         * Makeconfig: Define vardbdir and inst_vardbdir.
16831         * nss/Makefile: Add rules to install db-Makefile.
16833         * nss/nss_db/db-XXX.c: Cleanup.
16835         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16836         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16837         GLIBC_PRIVATE.
16838         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16839         * nss/makedb.c: Implement -g option to specify that value strings
16840         are generated and should not be added to table iterated over for
16841         get*ent calls.
16842         * nss/nss_db/db-initgroups.c: New file.
16844         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16845         interface.
16847         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16848         (internal_getgrouplist): Adjust to name change.
16849         Update use_initgroups_entry if this is not the first call.
16850         * nss/databases.def: Add initgroups entry.
16852         * nss/makedb.c (compute_tables): Check result of multiple hash table
16853         sizes to minimize maximum chain length.
16855 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16857         * Versions.def: Add entry for libnss_db.
16858         * shlib-versions: Likewise.
16859         * nss/Makefile: Add rules to build libnss_db.
16860         * nss/Versions: Add libnss_db information.  Organize libnss_files
16861         entries better.
16862         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16863         makedb progra.  Some minor improvements to generate smaller files.
16864         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16865         here from...
16866         * nss/makedb.c: ...here.
16867         Improve database format to be smaller and require less memory at
16868         runtime.
16869         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16870         db anymore.
16871         * nss/nss_db/db-netgrp.c: Likewise.
16872         * nss/nss_db/db-open.c: Likewise.
16873         * nss/nss_files/flies-XXX.x: Adjust comments.
16874         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16875         * nss/nss_files/files-grp.c: Likewise.
16876         * nss/nss_files/files-hosts.c: Likewise.
16877         * nss/nss_files/files-network.c: Likewise.
16878         * nss/nss_files/files-proto.c: Likewise.
16879         * nss/nss_files/files-pwd.c: Likewise.
16880         * nss/nss_files/files-rpc.c: Likewise.
16881         * nss/nss_files/files-service.c: Likewise.
16882         * nss/nss_files/files-sgrp.c: Likewise.
16883         * nss/nss_files/files-spwd.c: Likewise.
16884         * nss/nss_db/db-alias.c: Removed.
16885         * nss/nss_db/dummy-db.h: Removed.
16887 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16889         * nss/makedb.c: Rewritten to not use database library.
16890         * nss/Makefile: Update to build new makedb program.
16892 2011-06-14  Andreas Jaeger  <aj@suse.de>
16894         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16895         memset declaration.
16897 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16899         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16900         tmpbuf.
16902 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16904         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16905         * elf/Makefile ($(objpfx)ld.so): Likewise.
16907         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16908         Don't list ld.so twice in dependencies.
16910         * posix/bug-regex31.c: Include <stdlib.h>.
16912         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16914         * nis/nss_compat/compat-spwd.c
16915         (getspent_next_nss_netgr): Remove unused variable.
16916         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16918         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16919         nonmembers" output to use the right array.
16921         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16923         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16925         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16926         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16927         * catgets/gencat.c (read_input_file): Likewise.
16928         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16930         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16931         variable definition inside #if's controlling its use.
16933         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16935         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16937         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16939         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16940         unreachable code.
16942         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16944         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16945         * configure: Regenerated.
16947         * Makerules: Revert last change.
16948         * elf/Makefile: Likewise.
16950 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16952         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16953         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16954         (reloc-link): Likewise.
16956 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16958         * elf/Makefile: Add rules to build pldd.
16959         * elf/pldd.c: New file.
16960         * elf/pldd-xx.c: New file.
16962 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16964         * version.h: Update for 2.15 development version.
16966 2011-06-07  David S. Miller  <davem@davemloft.net>
16968         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16969         ifuncs.
16970         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16971         elf_machine_lazy_rel): Likewise.
16972         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16973         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16974         elf_machine_lazy_rel): Likewise.
16975         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16976         dl_hwcap via passed in argument.
16977         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16978         Likewise.
16980 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16982         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16984 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16986         [BZ #12849]
16987         * manual/fdl-1.1.texi: New file, verbatim from:
16988         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16989         * manual/lgpl-2.1.texi: New file, verbatim from:
16990         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16991         * manual/Makefile (licenses): New variable, list those new file names.
16992         (texis): Use it.
16993         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16995         * manual/fdl.texi: File removed.
16996         * manual/lesser.texi: File removed.
16997         * manual/libc.texinfo (Copying, Documentation License):
16998         Use new @include file names, put @appendix directive before @include.
17000 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17002         [BZ #12841]
17003         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17004         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17005         (mq_open): Add __NTH.
17007 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17009         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17010         Assume Intel Core i3/i5/i7 processor if AVX is available.
17012 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17014         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17015         typo.
17017 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17019         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17020         memory.  Use alloca_account.  Fix memory leak when retrying.
17022 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17024         * version.h (RELEASE): Bump for 2.14 release.
17025         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17027         * config.make.in (RANLIB): Remove entry.
17029 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17031         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17032         (libc.pot): Work around missing support for .ksh extension in xgettext.
17034         [BZ #12684]
17035         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17036         if both request failed.
17037         (send_dg): In case of server errors clear resplen or *resplen2.
17039         [BZ #12454]
17040         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17041         when there are multiple maps.
17042         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17043         (_dl_fini): Remove test here.
17045         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17047 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17049         [BZ #12350]
17050         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17051         bit from old_res_options.
17052         (gaih_inet): Likewise.
17054         [BZ #11099]
17055         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17056         as signed.
17058         * resolv/res_init.c (res_setoptions): Make the code more compact.
17060         [BZ #11558]
17061         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17062         set RES_USEVC.
17064         [BZ #11634]
17065         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17067         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17069         [BZ #11781]
17070         * malloc/malloc.h: Declare malloc hook variables as volatile.
17072         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17073         in last patch.
17075         [BZ #11799]
17076         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17077         raise in the comment.
17078         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17079         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17080         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17082 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17084         [BZ #12811]
17085         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17086         grow the buffers more if it already has to be sufficient.
17087         (build_wcs_upper_buffer): Likewise.
17088         * posix/regexec.c (check_matching): Likewise.
17089         (clean_state_log_if_needed): Likewise.
17090         (extend_buffers): Don't enlarge buffers beyond size of the input
17091         buffer.
17092         Patches mostly by Emil Wojak <emil@wojak.eu>.
17093         * posix/bug-regex32.c: New file.
17094         * posix/Makefile (tests): Add bug-regex32.
17096         * locale/findlocale.c (_nl_find_locale): Return right away if
17097         _nl_explode_name failed.
17098         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17100         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17102         * debug/xtrace.sh: Unify messages.
17103         * malloc/memusage.sh: Likewise.
17105         [BZ #12813]
17106         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17107         time symbol from vDSO.  Substitute with vsyscall if not available.
17108         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17109         __vdso_time.
17111         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17112         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17113         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17114         Add sendmmsg and internal_sendmmsg.
17115         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17116         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17117         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17119         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17120         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17121         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17123 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17125         [BZ #12813]
17126         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17127         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17128         available.
17129         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17130         __vdso_getcpu.
17132         [BZ #12814]
17133         * iconvdata/Makefile (tests): Add bug-iconv9.
17134         * iconvdata/bug-iconv9.c: New file.
17136 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17138         [BZ #12814]
17139         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17141 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17143         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17144         (struct user_regs_struct): Change intcs field back to cs.
17146 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17148         * po/ja.po: Update from translation team.
17150 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17152         [BZ #12795]
17153         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17154         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17156 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17158         * stdlib/longlong.h: Update from GCC.
17160 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17162         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17163         parameter name.
17164         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17165         Add parameter name.
17166         (__sysconf): Pass it down.
17168 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17170         [BZ #12671]
17171         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17172         some situations.
17173         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17174         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17175         add in in __libc_use_alloca calls.  Adjust callers.
17176         (glob): Use malloc in some situations.
17178         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17179         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17180         pltexit.
17182 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17184         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17185         and CLOCK_BOOTTIME_ALARM.
17187         [BZ #12782]
17188         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17189         is returned.
17191         * string/_strerror.c (__strerror_r): Print negative errors as signed
17192         numbers.
17194         [BZ #12777]
17195         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17196         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17197         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17199         * configure.in: Fix typo in redirection and correct removal of test
17200         files in two cases.
17202         [BZ #12788]
17203         * locale/setlocale.c (new_composite_name): Fix test to check for
17204         identical name of all categories.
17206         [BZ #12792]
17207         * libio/filedoalloc.c (local_isatty): New function.
17208         (_IO_file_doallocate): Use local_isatty.
17209         * stdio-common/perror.c (perror): In case a new stream is used
17210         forward the stream error.
17211         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17212         error flag.
17214 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17216         [BZ #11869]
17217         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17218         alloca.
17219         * include/alloca.h (extend_alloca_account): Define.
17221         [BZ #11857]
17222         * posix/regex.h: Fix comments with documentation of user-accessible
17223         fields after compilation and describe correct free'ing of pattern
17224         after re_compile_pattern.
17225         Patch by Reuben Thomas <rrt@sc3d.org>.
17227 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17229         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17230         and -mno-altivec to prevent the compiler from using Altivec and/or
17231         VSX instructions when the corresponding registers are not available.
17233 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17235         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17237 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17239         * libio/freopen.c (freopen): Use __dup2, not dup2.
17240         * libio/freopen64.c (freopen64): Likewise.
17242 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17244         [BZ #12775]
17245         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17246         * math/Makefile (tests): Add test-powl.
17247         (CFLAGS-test-powl.c): Define.
17248         * math/test-powl.c: New file.
17250 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17252         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17254 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17256         [BZ #11837]
17257         * iconvdata/gb18030.c: Update to GB18020-2005.
17259 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17261         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17262         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17263         Patch by Aharon Robbins <arnold@skeeve.com>.
17265         [BZ #11892]
17266         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17267         on the stack.
17269         [BZ #11895]
17270         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17271         through underflows.
17273         [BZ #12766]
17274         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17275         point to strings before performing equality test for error_one_per_line
17276         mode.
17278         [BZ #11697]
17279         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17281         [BZ #11820]
17282         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17283         (struct user_fpregs_struct): Avoid __uint*_t types.
17285         [BZ #6420]
17286         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17287         symbol info.  Use it instead of calling _dl_addr locally.
17288         (lock_and_info): New function.
17289         (tr_freehook): Call lock_and_info and pass symbol info as additional
17290         parameter to tr_where.
17291         (tr_mallochook): Likewise.
17292         (tr_reallochook): Likewise.
17293         (tr_memalignhook): Likewise.
17295         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17296         used and couldn't be at all thread-safe.
17298 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17300         * libio/freopen.c (freopen): Don't close old file descriptor
17301         before the new one is opened.  Instead dup the new file descriptor
17302         to the old one after the new stream is created.
17303         * libio/freopen64.c (freopen64): Likewise.
17304         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17305         * libio/fileops.c (_IO_new_file_close_it): Handle new
17306         _IO_FLAGS2_NOCLOSE flag.
17307         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17308         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17309         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17310         _IO_FLAGS2_NOCLOSE flag.
17311         * include/unistd.h: Add hidden_proto for dup3.
17312         Define __have_dup3.
17313         * io/dup3.c: Define hidden symbol.
17314         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17316         [BZ #7101]
17317         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17318         when an incomplete long option is used.
17319         * posix/tst-getopt_long1.c: New file.
17320         * posix/Makefile (tests): Add tst-getopt_long1.
17322         [BZ #10138]
17323         * scripts/config.guess: Update from autoconf-2.68.
17324         * scripts/config.sub: Likewise.
17326         [BZ #10157]
17327         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17328         tests into ...
17329         (has_cpuclock): ...this.  New function.
17330         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17331         macro here based on has_cpuclock code.
17333         [BZ #10149]
17334         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17335         First byte (not low byte) is now always NUL.
17336         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17338         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17339         Use non-cancelable interfaces.
17341         [BZ #9809]
17342         * locale/iso-639.def: Add entry for Sorani.
17344         [BZ #11901]
17345         * include/stdlib.h: Move include protection to the right place.
17346         Define abort_msg_s.  Declare __abort_msg with it.
17347         * stdlib/abort.c (__abort_msg): Adjust type.
17348         * assert/assert.c (__assert_fail_base): New function.  Majority
17349         of code from __assert_fail.  Allocate memory for __abort_msg with
17350         mmap.
17351         (__assert_fail): Now call __assert_fail_base.
17352         * assert/assert-perr.c: Remove bulk of implementation.  Use
17353         __assert_fail_base.
17354         * include/assert.hL Declare __assert_fail_base.
17355         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17356         mmap.
17357         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17359 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17361         [BZ #11952]
17362         [BZ #12453]
17363         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17364         until all modules are registered in the DTV.
17365         * elf/Makefile: Add rules to build and run tst-tls19.
17366         * elf/tst-tls19.c: New file.
17367         * elf/tst-tls19mod1.c: New file.
17368         * elf/tst-tls19mod2.c: New file.
17369         * elf/tst-tls19mod3.c: New file.
17370         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17372         [BZ #12083]
17373         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17374         correctly.
17376         [BZ #12601]
17377         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17378         two-byte sequence errors.
17379         * iconvdata/Makefile (tests): Add bug-iconv8.
17380         * iconvdata/bug-iconv8.c: New file.
17382         [BZ #12626]
17383         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17384         buf2 definition.
17386         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17388         [BZ #12432]
17389         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17390         (dummy_getcfa): New function.
17391         (init): Get _Unwind_GetCFA address, use dummy if not found.
17392         (backtrace_helper): In recursion check, also check whether CFA changes.
17393         (__backtrace): Completely initialize arg.
17395         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17396         storing incomplete byte sequence in state object.  Avoid testing for
17397         guaranteed too small input if we know there is enough data available.
17399 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17401         * Makeconfig (+link-pie): Indent.
17402         * Rules (binaries-pie): Define if $(have-fpie) and
17403         $(build-shared).
17404         (binaries-shared): Also filter out $(binaries-pie).
17405         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17406         * nscd/Makefile (others-pie): Add nscd.
17407         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17408         ($(objpfx)nscd): Remove command override.
17409         * login/Makefile (others-pie): Add pt_chown.
17410         ($(objpfx)pt_chown): Remove command override.
17411         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17412         remove command overrides.
17414 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17416         * libio/tst_putwc.c: Fix error messages.
17418         [BZ #12724]
17419         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17420         currently writing and seek to current position when not.
17421         * libio/Makefile (tests): Add bug-fclose1.
17422         * libio/bug-fclose1.c: New file.
17424 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17426         [BZ #12511]
17427         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17428         don't set DF_1_NODELETE here.
17429         (do_lookup_x): When entering new entry test for copy relocation
17430         and if necessary set DF_1_NODELETE flag.
17431         * elf/tst-unique4.cc: New file.
17432         * elf/tst-unique4.h: New file.
17433         * elf/tst-unique4lib.cc: New file.
17434         * elf/Makefile: Add rules to build and run tst-unique4.
17435         Patch by Piotr Bury <pbury@goahead.com>.
17437 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17439         [BZ #12052]
17440         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17442         [BZ #12625]
17443         * misc/mntent_r.c (addmntent): Flush the stream after the output
17445         [BZ #12393]
17446         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17447         (is_trusted_path_normalize): Skip initial colon.  Append slash
17448         to empty buffer.  Duplicate is_trusted_path code but allow
17449         constructed patch to be prefix.
17450         (is_dst): Allow $ORIGIN followed by /.
17451         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17452         Correct testing of result of is_trusted_path_normalize
17453         (decompose_rpath): Fix warning.
17455 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17457         [BZ #11257]
17458         * grp/initgroups.c (internal_getgrouplist): When we found the service
17459         list through the initgroups entry in nsswitch.conf do not always
17460         continue on a successful lookup.  Don't always use the
17461         __nss_group_database value if it is set.
17462         * nss/nsswitch.conf (initgroups): Change action for successful db
17463         lookup to continue for compatibility.
17465 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17467         [BZ #11532]
17468         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17469         and CP774 modules.
17470         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17471         and CP774 modules.
17472         * iconvdata/tst-tables.sh: Likewise.
17473         * iconvdata/cp770.c: New file.
17474         * iconvdata/cp771.c: New file.
17475         * iconvdata/cp772.c: New file.
17476         * iconvdata/cp773.c: New file.
17477         * iconvdata/cp774.c: New file.
17478         * iconvdata/testdata/CP770: New file.
17479         * iconvdata/testdata/CP770..UTF8: New file.
17480         * iconvdata/testdata/CP771: New file.
17481         * iconvdata/testdata/CP771..UTF8: New file.
17482         * iconvdata/testdata/CP772: New file.
17483         * iconvdata/testdata/CP772..UTF8: New file.
17484         * iconvdata/testdata/CP773: New file.
17485         * iconvdata/testdata/CP773..UTF8: New file.
17486         * iconvdata/testdata/CP774: New file.
17487         * iconvdata/testdata/CP774..UTF8: New file.
17489         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17490         END CHARMAP line.
17491         * iconvdata/gen-8bit-gap.sh: Likewise.
17492         * iconvdata/gen-8bit.sh: Likewise.
17494         * locale/iso-639.def: Add ary entry.
17496         [BZ #11258]
17497         * locale/C-translit.h.in: Add U20A1 transliteration.
17499         [BZ #12178]
17500         * locale/iso-639.def: Add wae entry.
17501         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17503         [BZ #12545]
17504         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17505         for n.
17507         [BZ #12711]
17508         * locale/C-translit.h.in: Add entry for U20B9.
17509         Patch by pravin.d.s@gmail.com.
17511 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17513         [BZ #12713]
17514         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17515         ENAMETOOLONG use generic getcwd.
17516         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17517         in rtld.  Use *stat64.
17518         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17519         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17520         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17521         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17522         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17523         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17524         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17525         __fstatat64 macros.
17526         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17527         * dirent/rewinddir.c: Add libc_hidden_def.
17528         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17529         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17531         * include/dirent.h (__alloc_dir): Add flags parameter.
17532         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17533         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17534         __alloc_dir.
17535         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17536         from fdopendir if O_CLOEXEC is already set.
17538 2011-03-15  Alan Modra  <amodra@gmail.com>
17540         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17541         l_tls_firstbyte_offset non-zero.  Save padding offset in
17542         l_tls_firstbyte_offset for later use.
17543         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17544         freeing static tls block.
17546 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17548         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17549         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17550         being defined by the kernel headers.
17552 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17554         [BZ #12734]
17555         * resolv/resolv.h: Define RES_NOTLDQUERY.
17556         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17557         no-tld-query and set RES_NOTLDQUERY.
17558         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17559         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17560         modern BIND to search name as TLD unless forbidden.
17562 2011-05-07  Petr Baudis  <pasky@suse.cz>
17563             Ulrich Drepper  <drepper@gmail.com>
17565         [BZ #12393]
17566         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17567         (is_trusted_path): ...to here.
17568         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17569         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17570         using is_trusted_path_normalize() in setuid scripts.
17572 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17574         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17575         __BEGIN/__END_DECLS.
17577 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17579         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17580         NSS_STATUS_NOTFOUND if no record was found.
17582 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17584         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17585         (headers-not-in-tirpc): Remove rpc/netdb.h
17586         * resolv/netdb.h: Revert last change.
17588 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17590         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17591         circular dependency between libgcc.a and libc.a.
17593 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17595         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17596         * nis/Makefile: Don't install rpcsvc/*.
17597         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17598         instead of <rpc/types.h>.
17599         (MAXHOSTNAMELEN): Define.
17601 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17603         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17605 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17607         [BZ #12714]
17608         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17609         gethostbyname4_r when IPv6 results are possible.
17611 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17613         [BZ #12723]
17614         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17615         _PC_PIPE_BUF handling.
17617 2011-04-30  Bruno Haible  <bruno@clisp.org>
17619         [BZ #12717]
17620         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17621         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17622         to 'int'.
17623         * inet/getnameinfo.c (getnameinfo): Likewise.
17625 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17627         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17628         to groups setting in database lookup.
17629         * nss/nsswitch.conf: Add initgroups entry.
17631 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17633         [BZ #12685]
17634         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17635         mode string.
17636         Patch by Eric Blake <eblake@redhat.com>.
17638 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17640         * sunrpc/Makefile (need-export-routines): Add svc_run.
17641         (routines): Remove svc_run.
17642         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17643         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17644         * sunrpc/svc_run.c (svc_run): Likewise.
17645         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17647 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17649         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17650         problem in reallocation in last patch.
17652 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17654         * sunrpc/Makefile: Move inclusion of Rules.
17656 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17658         * nss/nss_files/files-initgroups.c: New file.
17659         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17660         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17661         _nss_files_initgroups_dyn.
17663 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17665         * elf/elf.h (R_ARM_IRELATIVE): Define.
17667 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17669         * po/ru.po: Update from translation team.
17671 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17673         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17674         dependencies.
17676 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17678         [BZ #12653]
17679         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17680         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17681         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17682         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17683         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17685 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17687         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17688         differing bytes.
17689         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17690         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17691         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17693 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17695         [BZ #12420]
17696         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17697         storing it.
17698         * stdlib/bug-getcontext.c: New file.
17699         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17701 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17703         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17704         instructions into .machine "z9-109".
17705         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17706         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17708 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17710         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17711         between environment variables and auxiliary vector.
17713 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17715         * Makefile: Add rules to build linkobj/libc.so.
17716         * include/libc-symbols.h: Define libc_hidden_nolink.
17717         * include/rpc/auth.h: Mark functions which are to be hidden.
17718         * include/rpc/auth_des.h: Likewise.
17719         * include/rpc/auth_unix.h: Likewise.
17720         * include/rpc/clnt.h: Likewise.
17721         * include/rpc/des_crypt.h: Likewise.
17722         * include/rpc/key_prot.h: Likewise.
17723         * include/rpc/pmap_clnt.h: Likewise.
17724         * include/rpc/pmap_prot.h: Likewise.
17725         * include/rpc/pmap_rmt.h: Likewise.
17726         * include/rpc/rpc_msg.h: Likewise.
17727         * include/rpc/svc.h: Likewise.
17728         * include/rpc/svc_auth.h: Likewise.
17729         * include/rpc/xdr.h: Likewise.
17730         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17731         * nss/Makefile: Likewise.
17732         * sunrpc/Makefile: Don't install headers.  Build library with normal
17733         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17734         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17735         for the compat linking library.  Remove use of INTDEF/INTUSE.
17736         * sunrpc/auth_none.c: Likewise.
17737         * sunrpc/auth_unix.c: Likewise.
17738         * sunrpc/authdes_prot.c: Likewise.
17739         * sunrpc/authuxprot.c: Likewise.
17740         * sunrpc/clnt_gen.c: Likewise.
17741         * sunrpc/clnt_perr.c: Likewise.
17742         * sunrpc/clnt_raw.c: Likewise.
17743         * sunrpc/clnt_simp.c: Likewise.
17744         * sunrpc/clnt_tcp.c: Likewise.
17745         * sunrpc/clnt_udp.c: Likewise.
17746         * sunrpc/clnt_unix.c: Likewise.
17747         * sunrpc/des_crypt.c: Likewise.
17748         * sunrpc/des_soft.c: Likewise.
17749         * sunrpc/get_myaddr.c: Likewise.
17750         * sunrpc/key_call.c: Likewise.
17751         * sunrpc/key_prot.c: Likewise.
17752         * sunrpc/netname.c: Likewise.
17753         * sunrpc/pm_getmaps.c: Likewise.
17754         * sunrpc/pm_getport.c: Likewise.
17755         * sunrpc/pmap_clnt.c: Likewise.
17756         * sunrpc/pmap_prot.c: Likewise.
17757         * sunrpc/pmap_prot2.c: Likewise.
17758         * sunrpc/pmap_rmt.c: Likewise.
17759         * sunrpc/publickey.c: Likewise.
17760         * sunrpc/rpc_cmsg.c: Likewise.
17761         * sunrpc/rpc_common.c: Likewise.
17762         * sunrpc/rpc_dtable.c: Likewise.
17763         * sunrpc/rpc_prot.c: Likewise.
17764         * sunrpc/rpc_thread.c: Likewise.
17765         * sunrpc/rtime.c: Likewise.
17766         * sunrpc/svc.c: Likewise.
17767         * sunrpc/svc_auth.c: Likewise.
17768         * sunrpc/svc_authux.c: Likewise.
17769         * sunrpc/svc_raw.c: Likewise.
17770         * sunrpc/svc_run.c: Likewise.
17771         * sunrpc/svc_simple.c: Likewise.
17772         * sunrpc/svc_tcp.c: Likewise.
17773         * sunrpc/svc_udp.c: Likewise.
17774         * sunrpc/svc_unix.c: Likewise.
17775         * sunrpc/svcauth_des.c: Likewise.
17776         * sunrpc/xcrypt.c: Likewise.
17777         * sunrpc/xdr.c: Likewise.
17778         * sunrpc/xdr_array.c: Likewise.
17779         * sunrpc/xdr_float.c: Likewise.
17780         * sunrpc/xdr_intXX_t.c: Likewise.
17781         * sunrpc/xdr_mem.c: Likewise.
17782         * sunrpc/xdr_rec.c: Likewise.
17783         * sunrpc/xdr_ref.c: Likewise.
17784         * sunrpc/xdr_sizeof.c: Likewise.
17785         * sunrpc/xdr_stdio.c: Likewise.
17787 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17789         [BZ #12650]
17790         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17791         * sysdeps/ia64/dl-tls.h: Likewise.
17792         * sysdeps/powerpc/dl-tls.h: Likewise.
17793         * sysdeps/s390/dl-tls.h: Likewise.
17794         * sysdeps/sh/dl-tls.h: Likewise.
17795         * sysdeps/sparc/dl-tls.h: Likewise.
17796         * sysdeps/x86_64/dl-tls.h: Likewise.
17797         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17799 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17801         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17802         rpath element also skip the following colon.
17803         (expand_dynamic_string_token): Add is_path parameter and pass
17804         down to DL_DST_REQUIRED and _dl_dst_substitute.
17805         (decompose_rpath): Call expand_dynamic_string_token with
17806         non-zero is_path.  Ignore empty rpaths.
17807         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17808         with zero is_path.
17810 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17813         Make cancelable.
17815 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17817         [BZ #12655]
17818         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17819         Patch by Filipe David Manana <fdmanana@apache.org>.
17821 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17823         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17824         Maintain aligned stack.
17825         (CHECK_RSP): Remove unused macro.
17827 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17829         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17830         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17832 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17834         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17836         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17838 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17840         [BZ #12518]
17841         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17842         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17843         * sysdeps/x86_64/memmove.c: New file.
17844         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17845         (memcpy): Renamed to ...
17846         (__new_memcpy): This.
17847         (memcpy): Provide GLIBC_2_14 memcpy.
17848         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17849         (memcpy): Provide GLIBC_2_2_5 memcpy.
17851 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17853         [BZ #12631]
17854         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17856 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17858         * misc/syncfs.c: New file.
17859         * misc/Makefile (routines): Add syncfs.
17860         * posix/unistd.h: Declare syncfs.
17861         * sysdeps/unix/syscalls.list: Add syncfs.
17863 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17865         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17866         open_by_handle_at.
17867         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17868         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17869         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17870         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17872         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17873         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17875 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17877         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17878         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17879         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17880         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17881         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17882         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17883         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17885         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17886         sync_file_range.c with -fexceptions.
17887         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17888         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17889         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17890         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17891         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17892         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17893         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17894         sync_file_range as cancellation point
17895         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17896         now a wrapper around __call_sync_file_range with cancellation handling.
17897         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17898         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17899         function name to __call_sync_file_range.
17900         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17901         Add call_sync_file_range.
17903 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17905         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17906         bits/timex.h.
17908 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17910         * iconv/iconv.h: Fix typo in comment.
17911         * io/fcntl.h: Likewise.
17912         * libio/stdio.h: Likewise.
17913         * posix/spawn.h: Likewise.
17914         * posix/unistd.h: Likewise.
17915         * stdlib/stdlib.h: Likewise.
17916         * time/time.h: Likewise.
17917         * wcsmbs/wchar.h: Likewise.
17919         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17920         open_by_handle): Add.
17921         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17922         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17923         Augment a few comments.
17924         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17925         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17926         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17927         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17928         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17929         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17930         open_by_handle.
17932         * io/fcntl.h (AT_EMPTY_PATH): Define.
17934 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17936         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17937         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17938         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17939         to...
17940         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17941         * Versions.def: Add GLIBC_2.14.
17942         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17943         Export.
17945 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17947         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17948         round counter.
17949         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17951 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17953         [BZ #12597]
17954         * string/test-strncmp.c (do_page_test): New function.
17955         (check2): Likewise.
17956         (test_main): Call check2.
17957         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17959 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17961         [BZ #12587]
17962         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17963         Handle cache information in CPU leaf 4.
17964         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17966 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17968         [BZ #12583]
17969         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17970         character representation.
17971         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17973 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17975         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17976         END(__isnan) to END(__isnanf) to match function entry point/label
17977         EALIGN(__isnanf,...).
17979 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17981         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17983 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17985         [BZ #12510]
17986         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17987         copy from the symbol referenced in the relocation to initialize the
17988         used variable.
17989         Patch by Piotr Bury <pbury@goahead.com>.
17990         * elf/Makefile: Add rules to build and tst-unique3.
17991         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17992         * elf/tst-unique3.cc: New file.
17993         * elf/tst-unique3.h: New file.
17994         * elf/tst-unique3lib.cc: New file.
17995         * elf/tst-unique3lib2.cc: New file.
17997         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17999 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18001         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18002         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18003         to _start.
18005 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18007         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18008         to-be-loaded object along a path to loader is ld.so.
18010 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18011             Ulrich Drepper  <drepper@gmail.com>
18013         * sysdeps/x86_64/memset.S: After aligning destination, code
18014         branches to different locations depending on the value of
18015         misalignment, when multiarch is enabled. Fix this.
18017 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18019         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18020         Set _x86_64_preferred_memory_instruction for AMD processsors.
18021         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18022         Set bit_Prefer_SSE_for_memop for AMD processors.
18024 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18026         * libio/fmemopen.c (fmemopen): Optimize a bit.
18028 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18030         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18032 2011-03-03  Roland McGrath  <roland@redhat.com>
18034         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18036 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18038         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18039         __bzero_ultra1 instead of __memset_ultra1.
18041 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18042             Ulrich Drepper  <drepper@gmail.com>
18044         [BZ #12509]
18045         * include/link.h (struct link_map): Add l_orig_initfini.
18046         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18047         returning unsuccessfully.
18048         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18049         close of a file loaded at startup, restore the original l_initfini
18050         list.
18051         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18052         list, store the pointer.
18053         * elf/Makefile ($(objpfx)noload-mem): New rule.
18054         (noload-ENV): Define.
18055         (tests): Add $(objpfx)noload-mem.
18056         * elf/noload.c: Include <memcheck.h>.
18057         (main): Call mtrace.  Close all opened handles.
18059 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18061         [BZ #12454]
18062         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18063         dependencies are missing.
18065 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18067         Fix __if_freereq crash: Unlike the generic version which uses free,
18068         Hurd needs munmap.
18069         * sysdeps/mach/hurd/ifreq.h: New file.
18071 2011-01-27  Petr Baudis  <pasky@suse.cz>
18072             Ulrich Drepper  <drepper@gmail.com>
18074         [BZ 12445]#
18075         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18076         to extend_alloca().
18077         * stdio-common/bug23.c: New file.
18078         * stdio-common/Makefile (tests): Add bug23.
18080 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18081             Ulrich Drepper  <drepper@gmail.com>
18083         [BZ #12489]
18084         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18085         before performing relro protection.  At old place add assertion
18086         to make sure nothing changed.
18088 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18089             Glauber de Oliveira Costa  <glommer@gmail.com>
18091         * elf/elf.h: Add new ARM TLS relocs.
18093 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18096         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18097         cast from r3.
18098         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18099         'tests' variable.
18100         * sysdeps/wordsize-64/tst-writev.c: New file.
18102 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18104         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18105         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18106         insns in _dl_start to prevent a TOC reference before relocs are
18107         resolved.
18109 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18111         [BZ #12469]
18112         * Makeconfig: Remove RANLIB definition.
18113         * Makerules: Don't use RANLIB.
18114         * aclocal.m4: Remove ranlib test.
18115         * configure.in: No need to check for ranlib.
18116         * elf/rtld-Rules: Don't use RANLIB.
18118 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18120         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18121         protection macro.
18122         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18123         inclusion protection macro.
18125         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18126         SIGRTMIN and SIGRTMAX and print information in that case only when
18127         SIGRTMIN is defined.
18129 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18131         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18132         arginfo fn returning -1.
18134         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18135         and thousands string is zero terminated.
18137 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18139         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18140         sysdeps/unix/sysv/linux/bits/socket.h.
18142 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18144         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18145         (__CPU_COUNT): Remove old macros.
18146         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18147         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18148         (__CPU_ALLOC, __CPU_FREE): Add macros.
18149         (__sched_cpualloc, __sched_cpufree): Add declarations.
18151 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18153         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18154         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18155         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18156         (readdhstai): Return value of addhstaiX call.
18157         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18158         (addgrbyX): Return value returned by cache_addgr.
18159         (readdgrbyname): Return value returned by addgrbyX.
18160         (readdgrbygid): Likewise.
18161         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18162         (addpwbyX): Return value returned by cache_addpw.
18163         (readdpwbyname): Return value returned by addhstbyX.
18164         (readdpwbyuid): Likewise.
18165         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18166         (addservbyX): Return value returned by cache_addserv.
18167         (readdservbyname): Return value returned by addservbyX:
18168         (readdservbyport): Likewise.
18169         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18170         (addhstbyX): Return value returned by cache_addhst.
18171         (readdhstbyname): Return value returned by addhstbyX.
18172         (readdhstbyaddr): Likewise.
18173         (readdhstbynamev6): Likewise.
18174         (readdhstbyaddrv6): Likewise.
18175         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18176         (readdinitgroups): Return value returned by addinitgroupsX.
18177         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18178         (prune_cache): Keep track of timeout value of re-added entries.
18179         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18180         * nscd/nscd.h: Adjust prototypes of readd* functions.
18182 2011-02-04  Roland McGrath  <roland@redhat.com>
18184         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18185         (nis_stats): Likewise.
18186         * nis/nis_modify.c (nis_modify): Likewise.
18187         * nis/nis_remove.c (nis_remove): Likewise.
18188         * nis/nis_add.c (nis_add): Likewise.
18190         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18192         * posix/fnmatch_loop.c: Add some consts.
18194         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18196 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18198         [BZ #12460]
18199         * config.make.in (config-cflags-novzeroupper): Define.
18200         * configure.in: Substitute libc_cv_cc_novzeroupper.
18201         * elf/Makefile (AVX-CFLAGS): Define.
18202         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18203         (CFLAGS-tst-auditmod4a.c): Likewise.
18204         (CFLAGS-tst-auditmod4b.c): Likewise.
18205         (CFLAGS-tst-auditmod6b.c): Likewise.
18206         (CFLAGS-tst-auditmod6c.c): Likewise.
18207         (CFLAGS-tst-auditmod7b.c): Likewise.
18208         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18210 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18212         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18213         function to the callback.
18214         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18216 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18218         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18219         of errno.
18221 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18223         [BZ #11724]
18224         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18225         of constructors.
18226         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18227         of destructors.
18228         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18230         [BZ #11724]
18231         * elf/Makefile: Add rules to build and run new test.
18232         * elf/tst-initorder.c: New file.
18233         * elf/tst-initorder.exp: New file.
18234         * elf/tst-initordera1.c: New file.
18235         * elf/tst-initordera2.c: New file.
18236         * elf/tst-initordera3.c: New file.
18237         * elf/tst-initordera4.c: New file.
18238         * elf/tst-initorderb1.c: New file.
18239         * elf/tst-initorderb2.c: New file.
18240         * elf/tst-order-a1.c: New file.
18241         * elf/tst-order-a2.c: New file.
18242         * elf/tst-order-a3.c: New file.
18243         * elf/tst-order-a4.c: New file.
18244         * elf/tst-order-b1.c: New file.
18245         * elf/tst-order-b2.c: New file.
18246         * elf/tst-order-main.c: New file.
18247         New test case by George Gensure <werkt0@gmail.com>.
18249 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18251         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18252         decoding ACE if AI_CANONIDN.
18254 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18256         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18258 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18260         * version.h (RELEASE): Bump for 2.13 release.
18261         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18263         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18265         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18266         MADV_NOHUGEPAGE.
18267         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18268         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18269         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18270         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18271         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18272         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18274         * posix/getconf.c: Update copyright year.
18275         * catgets/gencat.c: Likewise.
18276         * csu/version.c: Likewise.
18277         * debug/catchsegv.sh: Likewise.
18278         * debug/xtrace.sh: Likewise.
18279         * elf/ldconfig.c: Likewise.
18280         * elf/ldd.bash.in: Likewise.
18281         * elf/sprof.c (print_version): Likewise.
18282         * iconv/iconv_prog.c: Likewise.
18283         * iconv/iconvconfig.c: Likewise.
18284         * locale/programs/locale.c: Likewise.
18285         * locale/programs/localedef.c: Likewise.
18286         * malloc/memusage.sh: Likewise.
18287         * malloc/mtrace.pl: Likewise.
18288         * nscd/nscd.c (print_version): Likewise.
18289         * nss/getent.c: Likewise.
18291         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18292         PF_CAIF, and PF_ALG.
18293         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18295 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18297         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18298         (modules-names): Use them.
18299         (ifunc-test-modules, ifunc-pie-tests): Define.
18300         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18301         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18302         (test-extras): Likewise.
18303         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18304         $(compile-command.c).
18305         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18306         (all-built-dso): Define.
18307         (check-textrel.out, check-execstack.out): Depend on it.
18309         * configure.in: Don't override --enable-multi-arch.
18311 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18313         [BZ #6812]
18314         * nscd/hstcache.c (tryagain): Define.
18315         (cache_addhst): Return tryagain not notfound for temporary errors.
18316         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18317         failed.
18319 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18321         [BZ #10563]
18322         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18323         to make the syscall.
18324         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18326         [BZ #12378]
18327         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18328         and fall back to matching as normal character if the string ends before
18329         the matching ']' is found.  This is what POSIX requires.
18330         * posix/testfnm.c: Adjust test result.
18331         * posix/globtest.sh: Adjust test result.  Add new test.
18332         * posix/tst-fnmatch.input: Likewise.
18333         * posix/tst-fnmatch2.c: Add new test.
18335 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18337         * elf/Makefile (check-execstack): Revert last change.  Depend on
18338         check-execstack.h.
18339         (check-execstack.h): New target.
18340         (generated): Add check-execstack.h.
18341         * elf/check-execstack.c: Include "check-execstack.h".
18342         (main): Revert last change.
18343         (handle_file): Return zero if GNU_STACK is absent and
18344         DEFAULT_STACK_PERMS doesn't include PF_X.
18346 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18348         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18349         in child fails because the descriptor is already closed.
18350         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18351         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18352         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18354         [BZ #12397]
18355         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18356         syscall.
18358         [BZ #10484]
18359         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18360         temporary buffer used to handle multi lookups locally.
18361         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18363 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18365         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18366         loader is ld.so.
18368 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18370         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18371         alignment for SSE2.
18373 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18375         [BZ #12394]
18376         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18377         characters.  When rounding increased number of integer digits recompute
18378         number of groups.
18379         * stdio-common/tst-grouping.c: New file.
18380         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18382 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18384         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18385         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18387         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18388         void.
18389         * bits/select.h: Likewise.
18391 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18393         * po/ja.po: Update from translation team.
18395 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18397         [BZ #11155]
18398         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18399         implementation just like for lxstat, fxstatat, et al.
18401 2010-12-27  Jim Meyering  <meyering@redhat.com>
18403         [BZ #12348]
18404         * posix/regexec.c (build_trtable): Return failure indication upon
18405         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18407 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18409         [BZ #12201]
18410         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18411         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18412         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18413         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18415         [BZ #12207]
18416         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18418         [BZ #12204]
18419         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18420         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18422 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18424         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18425         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18426         script has SORT_BY_INIT_PRIORITY.
18427         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18428         NO_CTORS_DTORS_SECTIONS is defined.
18429         * elf/soinit.c: Likewise.
18430         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18431         NO_CTORS_DTORS_SECTIONS is defined.
18432         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18433         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18434         * sysdeps/sh/init-first.c: Likewise.
18435         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18437 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18439         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18440         always use the slow path.
18442 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18444         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18445         similar rule which adds the sysdep directories to the header search in
18446         order to pick up the correct platform stackinfo.h.
18447         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18448         perform test if it is, otherwise return successfully without testing.
18449         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18450         DEFAULT_STACK_PERMS define in stackinfo.h.
18451         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18452         defined in stackinfo.h.
18453         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18454         DEFAULT_STACK_PERMS defined in stackinfo.h.
18455         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18456         * sysdeps/ia64/stackinfo.h: Likewise.
18457         * sysdeps/s390/stackinfo.h: Likewise.
18458         * sysdeps/sh/stackinfo.h: Likewise.
18459         * sysdeps/sparc/stackinfo.h: Likewise.
18460         * sysdeps/x86_64/stackinfo.h: Likewise.
18461         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18462         PF_X for powerpc64.  Retain PF_X for powerpc32.
18464 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18466         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18467         accurately.
18468         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18469         GETDENTS_64BIT_ALIGNED.
18471 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18473         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18475 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18477         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18478         _GNU_SOURCE.
18480         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18481         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18482         Remove __restrict.
18483         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18484         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18486 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18488         [BZ #11655]
18489         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18490         are initialized.
18492 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18494         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18496 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18498         * po/it.po: Update from translation team.
18500 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18502         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18503         unused codes.
18505 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18507         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18509 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18511         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18512         specially.
18513         (gaih_getanswer_slice): Likewise.
18515 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18517         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18519 2010-05-31  Petr Baudis  <pasky@suse.cz>
18521         [BZ #11149]
18522         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18523         silently even in the chroot mode.
18525 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18527         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18528         last patch a bit.  Pretty printing
18530 2010-05-31  Petr Baudis <pasky@suse.cz>
18532         [BZ #10085]
18533         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18534         initialization of skip_initgroups_dyn.
18536 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18538         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18539         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18541 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18543         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18545 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18547         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18548         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18549         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18550         ($(objpfx)tst-fnmatch-mem): New rule.
18551         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18552         * posix/tst-fnmatch.c (main): Call mtrace.
18554 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18556         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18557         Support Intel processor model 6 and model 0x2c.
18559 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18561         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18562           signed comparison.
18564 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18566         [BZ #12205]
18567         * string/test-strncasecmp.c (check_result): New function.
18568         (do_one_test): Use it.
18569         (check1): New function.
18570         (test_main): Use it.
18571         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18572         Support strcasecmp and strncasecmp.
18574 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18576         [BZ #12194]
18577         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18578         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18580 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18582         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18583         IFUNC support.
18584         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18585         memset-x86-64.
18586         * sysdeps/x86_64/multiarch/bzero.S: New file.
18587         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18588         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18589         * sysdeps/x86_64/multiarch/memset.S: New file.
18590         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18591         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18592         Set bit_Prefer_SSE_for_memop for Intel processors.
18593         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18594         Define.
18595         (index_Prefer_SSE_for_memop): Define.
18596         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18598 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18600         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18601         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18603 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18605         [BZ #12191]
18606         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18607         (__x86_64_raw_data_cache_size_half): Likewise.
18608         (__x86_64_raw_shared_cache_size): Likewise.
18609         (__x86_64_raw_shared_cache_size_half): Likewise.
18611         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18612         (__x86_64_raw_data_cache_size_half): Likewise.
18613         (__x86_64_raw_shared_cache_size): Likewise.
18614         (__x86_64_raw_shared_cache_size_half): Likewise.
18615         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18616         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18617         and __x86_64_raw_shared_cache_size_half.  Round
18618         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18619         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18620         to multiple of 256 bytes.
18622 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18624         [BZ #12167]
18625         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18626         of inacessible symlinks.  Verify result of symlink before returning it.
18627         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18628         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18630 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18632         * math/math.h (isinf): Fix typo in comment.
18634 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18636         * po/da.po: Update from translation team.
18638 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18640         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18641         is added to the list.
18643 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18644             Ulrich Drepper  <drepper@gmail.com>
18646         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18647         the global list here.  Move code to...
18648         (_dl_add_to_namespace_list): ...here.  New function.
18649         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18650         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18651         * elf/dl-load.c (lose): Don't remove the element from the list.
18652         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18653         (_dl_map_object): Likewise.
18655 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18657         [BZ #12159]
18658         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18659         into all bytes of SSE register.
18660         Patch by Richard Li <richardpku@gmail.com>.
18662 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18664         [BZ #12140]
18665         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18666         perturbing.
18668 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18670         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18671         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18672         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18673         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18675         submachine.
18676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18678 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18680         * include/dlfcn.h (__RTLD_SECURE): Define.
18681         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18682         mode & __RTLD_SECURE instead.
18683         (open_path): Rename preloaded parameter to secure.
18684         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18685         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18686         * elf/dl-deps.c (openaux): Likewise.
18687         * elf/rtld.c (struct map_args): Remove is_preloaded.
18688         (map_doit): Don't use it.
18689         (dl_main): Likewise.
18690         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18691         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18693 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18695         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18696         (sysd-rules-targets): Remove duplicates.
18697         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18698         rtld-%.$o dependency.
18700 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18702         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18703         _dl_map_object do it.
18705 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18707         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18708         fast fma builtins, define the macros in the C99 standard.
18709         (FP_FAST_FMAF): Likewise.
18710         (FP_FAST_FMAL): Likewise.
18711         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18713         * bits/mathdef.h: Update copyright year.
18714         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18716 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18718         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18719         builtins, define the macros in the C99 standard.
18720         (FP_FAST_FMAF): Likewise.
18721         (FP_FAST_FMAL): Likewise.
18722         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18723         multiply/add.
18724         (FP_FAST_FMAF): Likewise.
18726 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18728         [BZ #3268]
18729         * math/libm-test.inc (fma_test): Some new testcases.
18730         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18731         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18732         y and infinite z.  Do multiplication by C already in long double.
18733         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18734         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18735         y and infinite z.  Do bitwise or of inexact bit into u.d.
18736         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18737         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18738         * sysdeps/i386/fpu/s_fma.S: Removed.
18739         * sysdeps/i386/fpu/s_fmal.S: Removed.
18741 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18743         [BZ #3268]
18744         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18745         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18746         computation is not scheduled after fetestexcept.  Fix value
18747         of minimum denormal long double.
18749 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18751         [BZ #3268]
18752         * math/libm-test.inc (fma_test): Add some more tests.
18753         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18754         correctly.
18756 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18758         * scripts/data/localplt-s390-linux-gnu.data: New file.
18759         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18761 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18763         [BZ #3268]
18764         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18765         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18766         instead of dbl-64.
18767         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18768         inlines.
18769         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18770         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18771         if one of x and y is very large and the other is subnormal.
18772         * sysdeps/s390/fpu/s_fmaf.c: New file.
18773         * sysdeps/s390/fpu/s_fma.c: New file.
18774         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18775         * sysdeps/powerpc/fpu/s_fma.S: New file.
18776         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18777         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18778         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18780 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18782         [BZ #3268]
18783         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18784         fma tests.
18785         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18786         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18787         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18788         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18789         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18790         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18791         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18793 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18795         [BZ #12078]
18796         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18797         * posix/bug-regex31.input: Add test case.
18799 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18801         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18802         * posix/bug-regex31.input: New file.
18804         [BZ #12078]
18805         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18806         (parse_sub_exp): Fix last change, use postorder.
18808         * posix/bug-regex31.c: New file.
18809         * posix/Makefile: Add rules to build and run bug-regex31.
18811         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18813         [BZ #12078]
18814         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18816         [BZ #12108]
18817         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18818         to have entries in sys_siglist.
18820         [BZ #12093]
18821         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18822         be NULL.
18824 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18826         [BZ #3268]
18827         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18828         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18829         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18830         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18831         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18832         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18833         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18834         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18835         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18836         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18837         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18838         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18839         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18840         * math/ftestexcept.c (fetestexcept): Likewise.
18841         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18842         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18843         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18844         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18845         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18846         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18847         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18849 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18851         [BZ #12107]
18852         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18853         newline.
18855 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18857         * string/bug-strstr1.c: New file.
18858         * string/Makefile: Add rules to build and run bug-strstr1.
18860 2010-10-05  Eric Blake  <eblake@redhat.com>
18862         [BZ #12092]
18863         * string/str-two-way.h (two_way_long_needle): Always clear memory
18864         when skipping input due to the shift table.
18866 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18868         [BZ #12005]
18869         * malloc/mcheck.c: Handle large requests.
18871         [BZ #12077]
18872         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18873         for strncmp and strncasecmp.
18874         * string/stratcliff.c: Add tests for strcmp and strncmp.
18875         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18877 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18879         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18880         __set_fpscr.
18882 2010-09-30  Andreas Jaeger  <aj@suse.de>
18884         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18885         (CGROUP_SUPER_MAGIC): Define.
18886         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18887         Handle btrfs and cgroup file systems.
18888         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18889         Likewise.
18891 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18893         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18894         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18896 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18898         [BZ #12067]
18899         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18900         trying to locate the ELF header.
18902 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18904         [BZ #11611]
18905         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18906         Mask out sign-bit copies when constructing f_fsid.
18908 2010-09-24  Petr Baudis <pasky@suse.cz>
18910         * debug/stack_chk_fail_local.c: Add missing licence exception.
18911         * debug/warning-nop.c: Likewise.
18913 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18915         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18916         implementing getdents64 using getdents syscall, set d_type if
18917         __ASSUME_GETDENTS32_D_TYPE.
18919 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18921         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18922         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18924 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18926         [BZ #12037]
18927         * posix/unistd.h: Undo change of feature selection for ftruncate from
18928         2010-01-11.
18930 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18932         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18933         detection.
18935 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18937         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18938         fanotify_mark.
18939         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18941 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18943         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18944         variables after CHECK_SP call.
18945         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18947 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18948             Ulrich Drepper  <drepper@redhat.com>
18950         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18951         re-relocationg ld.so.
18952         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18953         _dl_init_paths call.
18954         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18955         here anymore.
18957 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18959         * resolv/res_init.c (__res_vinit): Count the default server we added.
18961 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18962             Ulrich Drepper  <drepper@redhat.com>
18964         [BZ #11968]
18965         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18966         (____longjmp_chk): Use %ebx for saving value across system call.
18967         Add unwind info.
18969 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18971         * manual/Makefile: Don't mix pattern rules with normal rules.
18973 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18975         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18976         operation.
18977         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18978         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18979         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18980         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18981         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18982         Likewise.
18984 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18986         [BZ #11979]
18987         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18988         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18990 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18992         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18993         * sysdeps/x86_64/addmul_1.S: Likewise.
18994         * sysdeps/x86_64/lshift.S: Likewise.
18995         * sysdeps/x86_64/mul_1.S: Likewise.
18996         * sysdeps/x86_64/rshift.S: Likewise.
18997         * sysdeps/x86_64/sub_n.S: Likewise.
18998         * sysdeps/x86_64/submul_1.S: Likewise.
19000 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19002         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19003         Define __sched_param instead of SCHED_* and sched_param when
19004         <bits/sched.h> is included with __need_schedparam defined.
19005         * bits/sched.h [__need_schedparam]
19006         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19007         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19008         (__defined_schedparam): Define to 1.
19009         (__sched_param): New structure, identical to sched_param.
19010         (__need_schedparam): Undefine.
19012 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19014         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19015         (epoll_create1): Declare.
19017         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19019 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19021         [BZ #7066]
19022         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19023         shifting retval into place.
19025 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19027         * nis/rpcsvc/nis.h: Update copyright notice.
19028         * nis/rpcsvc/nis.x: Likewise.
19029         * nis/rpcsvc/nis_callback.h: Likewise.
19030         * nis/rpcsvc/nis_callback.x: Likewise.
19031         * nis/rpcsvc/nis_object.x: Likewise.
19032         * nis/rpcsvc/nis_tags.h: Likewise.
19033         * nis/rpcsvc/yp.h: Likewise.
19034         * nis/rpcsvc/yp.x: Likewise.
19035         * nis/rpcsvc/ypupd.h: Likewise.
19036         * nis/yp_xdr.c: Likewise.
19037         * nis/ypupdate_xdr.c: Likewise.
19039         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19040         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19041         (pmap_getport): Use __libc_rpc_getport.
19042         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19043         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19044         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19046 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19049         fanotify_mark.
19051 2010-08-27  Roland McGrath  <roland@redhat.com>
19053         * sysdeps/i386/i686/multiarch/Makefile
19054         (CFLAGS-varshift.c): New variable.
19056 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19058         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19059         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19061         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19063         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19065 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19067         * sysdeps/x86_64/strlen.S: Unroll the loop.
19068         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19069         strlen-sse2 strlen-sse2-bsf.
19070         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19071         __strlen_no_bsf if bit_Slow_BSF is set.
19072         (__strlen_sse42): Removed.
19073         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19074         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19076 2010-08-25  Roland McGrath  <roland@redhat.com>
19078         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19079         * sysdeps/x86_64/multiarch/varshift.c: New file.
19080         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19081         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19082         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19083         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19085 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19087         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19088         strlen-sse2 strlen-sse2-bsf.
19089         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19090         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19091         (__strlen_sse2): Removed.
19092         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19093         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19094         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19095         bit_Slow_BSF for Atom.
19096         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19097         (index_Slow_BSF): Define.
19098         (HAS_SLOW_BSF): Define.
19100 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19102         [BZ #10851]
19103         * resolv/res_init.c (__res_vinit): When no server address at all
19104         is given default to loopback.
19106 2010-08-24  Roland McGrath  <roland@redhat.com>
19108         * configure.in: Remove config-name.h generation.
19109         * configure: Regenerated.
19110         * config-name.in: File removed.
19111         * scripts/config-uname.sh: New file.
19112         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19113         ($(objdir)config-name.h): New target.
19115         * sunrpc/rpc_parse.h: Avoid nested comment.
19117 2010-08-24  Richard Henderson  <rth@redhat.com>
19118             Ulrich Drepper  <drepper@redhat.com>
19119             H.J. Lu  <hongjiu.lu@intel.com>
19121         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19122         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19123         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19124         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19125         _mm_alignr_epi8 with _mm_loadu_si128.
19126         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19127         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19128         (__m128i_shift_right): Removed.
19129         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19130         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19131         * sysdeps/x86_64/multiarch/varshift.h: New file.
19132         * sysdeps/x86_64/multiarch/varshift.S: New file.
19134 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19136         * configure.in: Move assembler checks to before sysdep dir checking.
19138 2010-08-20  Petr Baudis  <pasky@suse.cz>
19140         * LICENSES: Sync the sunrpc license.
19142 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19144         * sunrpc/auth_des.c: Update copyright notice once again.
19145         * sunrpc/auth_none.c: Likewise.
19146         * sunrpc/auth_unix.c: Likewise.
19147         * sunrpc/authdes_prot.c: Likewise.
19148         * sunrpc/authuxprot.c: Likewise.
19149         * sunrpc/bindrsvprt.c: Likewise.
19150         * sunrpc/clnt_gen.c: Likewise.
19151         * sunrpc/clnt_perr.c: Likewise.
19152         * sunrpc/clnt_raw.c: Likewise.
19153         * sunrpc/clnt_simp.c: Likewise.
19154         * sunrpc/clnt_tcp.c: Likewise.
19155         * sunrpc/clnt_udp.c: Likewise.
19156         * sunrpc/clnt_unix.c: Likewise.
19157         * sunrpc/des_crypt.c: Likewise.
19158         * sunrpc/des_soft.c: Likewise.
19159         * sunrpc/get_myaddr.c: Likewise.
19160         * sunrpc/getrpcport.c: Likewise.
19161         * sunrpc/key_call.c: Likewise.
19162         * sunrpc/key_prot.c: Likewise.
19163         * sunrpc/openchild.c: Likewise.
19164         * sunrpc/pm_getmaps.c: Likewise.
19165         * sunrpc/pm_getport.c: Likewise.
19166         * sunrpc/pmap_clnt.c: Likewise.
19167         * sunrpc/pmap_prot.c: Likewise.
19168         * sunrpc/pmap_prot2.c: Likewise.
19169         * sunrpc/pmap_rmt.c: Likewise.
19170         * sunrpc/rpc/auth.h: Likewise.
19171         * sunrpc/rpc/auth_unix.h: Likewise.
19172         * sunrpc/rpc/clnt.h: Likewise.
19173         * sunrpc/rpc/des_crypt.h: Likewise.
19174         * sunrpc/rpc/key_prot.h: Likewise.
19175         * sunrpc/rpc/netdb.h: Likewise.
19176         * sunrpc/rpc/pmap_clnt.h: Likewise.
19177         * sunrpc/rpc/pmap_prot.h: Likewise.
19178         * sunrpc/rpc/pmap_rmt.h: Likewise.
19179         * sunrpc/rpc/rpc.h: Likewise.
19180         * sunrpc/rpc/rpc_des.h: Likewise.
19181         * sunrpc/rpc/rpc_msg.h: Likewise.
19182         * sunrpc/rpc/svc.h: Likewise.
19183         * sunrpc/rpc/svc_auth.h: Likewise.
19184         * sunrpc/rpc/types.h: Likewise.
19185         * sunrpc/rpc/xdr.h: Likewise.
19186         * sunrpc/rpc_clntout.c: Likewise.
19187         * sunrpc/rpc_cmsg.c: Likewise.
19188         * sunrpc/rpc_common.c: Likewise.
19189         * sunrpc/rpc_cout.c: Likewise.
19190         * sunrpc/rpc_dtable.c: Likewise.
19191         * sunrpc/rpc_hout.c: Likewise.
19192         * sunrpc/rpc_main.c: Likewise.
19193         * sunrpc/rpc_parse.c: Likewise.
19194         * sunrpc/rpc_parse.h: Likewise.
19195         * sunrpc/rpc_prot.c: Likewise.
19196         * sunrpc/rpc_sample.c: Likewise.
19197         * sunrpc/rpc_scan.c: Likewise.
19198         * sunrpc/rpc_scan.h: Likewise.
19199         * sunrpc/rpc_svcout.c: Likewise.
19200         * sunrpc/rpc_tblout.c: Likewise.
19201         * sunrpc/rpc_util.c: Likewise.
19202         * sunrpc/rpc_util.h: Likewise.
19203         * sunrpc/rpcinfo.c: Likewise.
19204         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19205         * sunrpc/rpcsvc/key_prot.x: Likewise.
19206         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19207         * sunrpc/rpcsvc/mount.x: Likewise.
19208         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19209         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19210         * sunrpc/rpcsvc/rex.x: Likewise.
19211         * sunrpc/rpcsvc/rstat.x: Likewise.
19212         * sunrpc/rpcsvc/rusers.x: Likewise.
19213         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19214         * sunrpc/rpcsvc/spray.x: Likewise.
19215         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19216         * sunrpc/rtime.c: Likewise.
19217         * sunrpc/svc.c: Likewise.
19218         * sunrpc/svc_auth.c: Likewise.
19219         * sunrpc/svc_authux.c: Likewise.
19220         * sunrpc/svc_raw.c: Likewise.
19221         * sunrpc/svc_run.c: Likewise.
19222         * sunrpc/svc_simple.c: Likewise.
19223         * sunrpc/svc_tcp.c: Likewise.
19224         * sunrpc/svc_udp.c: Likewise.
19225         * sunrpc/svc_unix.c: Likewise.
19226         * sunrpc/svcauth_des.c: Likewise.
19227         * sunrpc/xcrypt.c: Likewise.
19228         * sunrpc/xdr.c: Likewise.
19229         * sunrpc/xdr_array.c: Likewise.
19230         * sunrpc/xdr_float.c: Likewise.
19231         * sunrpc/xdr_mem.c: Likewise.
19232         * sunrpc/xdr_rec.c: Likewise.
19233         * sunrpc/xdr_ref.c: Likewise.
19234         * sunrpc/xdr_sizeof.c: Likewise.
19235         * sunrpc/xdr_stdio.c: Likewise.
19237         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19238         handling.
19240 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19242         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19244 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19246         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19247         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19248         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19249         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19250         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19251         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19252         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19253         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19254         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19255         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19256         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19257         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19258         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19259         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19261 2010-07-26  Anton Blanchard  <anton@samba.org>
19263         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19264         * malloc/arena.c (heap_trim): Likewise.
19266 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19268         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19269         here.  Not...
19270         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19271         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19273 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19275         * sysdeps/i386/elf/Makefile: New file.
19277 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19279         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19280         from fanotify_init.
19281         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19282         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19284 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19286         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19287         of strncasecmp_l.
19288         * sysdeps/multiarch/strcmp.S: Likewise.
19290 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19292         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19293         strncase_l-nonascii.
19294         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19295         Add strncase_l-ssse3.
19296         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19297         * sysdeps/x86_64/strcmp.S: Likewise.
19298         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19299         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19300         * sysdeps/x86_64/strncase.S: New file.
19301         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19302         * sysdeps/x86_64/strncase_l.S: New file.
19303         * string/Makefile (strop-tests): Add strncasecmp.
19304         * string/test-strncasecmp.c: New file.
19306         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19307         warning.
19309         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19310         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19312 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19314         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19316 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19318         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19319         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19320         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19322 2010-05-01  Alan Modra  <amodra@gmail.com>
19324         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19325         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19326         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19327         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19328         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19329         tidying.  Don't tail-call __sigjmp_save for static lib.
19330         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19331         save location.
19332         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19333         (CALL_MCOUNT): Add eh info, and nop after bl.
19334         (TAIL_CALL_SYSCALL_ERROR): New macro.
19335         (PSEUDO_RET): Use it.
19336         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19337         Correct save location of integer regs and cr.
19338         (_dl_profile_resolve): Correct cr save location.  Delete nops
19339         after bl when SHARED.  Reduce cfi size a little by better
19340         placement of cfi directives.
19341         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19342         make a stack frame.  Instead use parm save area as a temp.
19343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19344         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19346         Don't make a stack frame for parent, use parm save area.
19347         Increase child stack frame to 112 bytes.  Don't save unused reg,
19348         and adjust reg usage.  Set up cfi on error recovery and
19349         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19351         (__makecontext): Add dummy nop after jump to exit.
19352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19353         Use correct parm save area and cr save, reduce stack frame.
19354         Correct cfi for possible PSEUDO_RET frame setup.
19355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19356         Branch to local label emitted by PSEUDO_RET rather than
19357         __syscall_error.
19359 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19361         [BZ #11904]
19362         * locale/programs/locale.c (print_assignment): New function.
19363         (show_locale_vars): Use it.
19365 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19367         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19368         field.
19369         (struct statfs64): Likewise.
19370         (_STATFS_F_FLAGS): Define.
19371         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19372         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19373         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19374         (ST_VALID): Define locally.
19375         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19376         __statvfs_getflags, use the provided value.
19377         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19378         __ASSUME_STATFS_F_FLAGS.
19380         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19382         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19383         Add sys/fanotify.h.
19384         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19385         fanotify_mask for GLIBC_2.13.
19386         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19387         fanotify_init and fanotify_mark.
19388         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19389         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19391         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19392         Add prlimit.
19393         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19394         prlimit64 for GLIBC_2.13.
19395         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19396         prlimit64.
19397         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19398         syscall.
19399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19400         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19401         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19402         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19403         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19404         add prlimit alias.
19405         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19407         [BZ #11903]
19408         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19409         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19411         * nss/Makefile: Add rules to build and run tst-nss-test1.
19412         * shlib-versions: Add entry for libnss_test1.
19413         * nss/nss_test1.c: New file.
19414         * nss/tst-nss-test1.c: New file.
19416         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19417         (__nss_configure_lookup): Set appropriate entry in
19418         __nss_configure_lookup to true.
19419         * nss/nsswitch.h: Define enum with indeces of databases in
19420         databases and __nss_database_custom arrays.  Declare
19421         __nss_database_custom.
19422         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19423         to avoid using nscd when custom rules are installed.
19424         * nss/getXXbyYY_r.c: Likewise.
19425         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19427         * nss/nss_files/files-parse.c: Whitespace fixes.
19429 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19431         [BZ #11883]
19432         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19433         * posix/fnmatch_loop.c: Likewise.
19435 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19437         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19438         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19439         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19440         * Versions.def [GLIBC_2.13]: Add.
19442 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19444         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19445         Also fail if tpwd after pwuid call is NULL.
19447 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19449         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19450         when converting to ms.
19452 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19454         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19455         EOPNOTSUPP errors with ENOTTY.
19456         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19457         EOPNOTSUPP errors with ENOTTY.
19459 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19461         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19462         Add strcasecmp_l-ssse3.
19463         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19464         strcasecmp.
19465         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19466         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19467         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19469 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19471         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19473         * string/Makefile (strop-tests): Add strcasecmp.
19474         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19475         strcasecmp_l-nonascii.
19476         (gen-as-const-headers): Add locale-defines.sym.
19477         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19478         * sysdeps/x86_64/strcasecmp.S: New file.
19479         * sysdeps/x86_64/strcasecmp_l.S: New file.
19480         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19481         * sysdeps/x86_64/locale-defines.sym: New file.
19482         * string/test-strcasecmp.c: New file.
19484         * string/test-strcasestr.c: Test both ends of the range of characters.
19485         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19487 2010-07-29  Roland McGrath  <roland@redhat.com>
19489         [BZ #11856]
19490         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19492 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19494         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19495         for ld.so.
19497 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19499         * manual/memory.texi (Malloc Tunable Parameters): Document
19500         M_PERTURB.
19502 2010-07-26  Roland McGrath  <roland@redhat.com>
19504         [BZ #11840]
19505         * configure.in (-fgnu89-inline check): Set and substitute
19506         gnu89_inline, not libc_cv_gnu89_inline.
19507         * configure: Regenerated.
19508         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19510 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19512         * string/test-strnlen.c: New file.
19513         * string/Makefile (strop-tests): Add strnlen.
19514         * string/tester.c (test_strnlen): Add a few more test cases.
19515         * string/tst-strlen.c: Better error reporting.
19517         * sysdeps/x86_64/strnlen.S: New file.
19519 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19521         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19522         lower-latency instructions.
19524 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19526         * string/test-strcasestr.c: New file.
19527         * string/test-strstr.c: New file.
19528         * string/Makefile (strop-tests): Add strstr and strcasestr.
19529         * string/str-two-way.h: Don't undefine MAX.
19530         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19532 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19534         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19535         strcasestr-nonascii.
19536         (CFLAGS-strcasestr-nonascii.c): Define.
19537         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19538         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19539         Remove unused attribute.
19541 2010-07-20  Roland McGrath  <roland@redhat.com>
19543         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19544         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19545         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19546         like LD_HWCAP_MASK can disable hwcaps.
19548 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19550         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19552 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19554         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19555         call in strcasestr.
19556         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19557         __strcasestr_sse42_nonascii.
19558         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19559         strcasestr-nonascii.c.
19560         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19562 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19564         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19565         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19566         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19567         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19569 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19571         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19572         fcntl.
19574 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19576         [BZ #11577]
19577         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19578         dl_signal_cerror.
19580 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19582         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19583         _PC_PIPE_BUF using F_GETPIPE_SZ.
19585 2010-07-05  Roland McGrath  <roland@redhat.com>
19587         * manual/arith.texi (Rounding Functions): Fix rint description
19588         implicit in round description.
19590 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19592         * elf/Makefile: Fix linking for a few tests to make recent linker
19593         happy.
19595 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19597         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19598         $(common-objpfx)libc_nonshared.a.
19600 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19602         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19603         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19604         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19605         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19606         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19607         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19608         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19609         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19624         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19625         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19626         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19627         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19628         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19629         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19630         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19631         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19632         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19633         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19634         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19635         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19651 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19653         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19654         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19655         * string/memmove.c (memmove): Renamed to ...
19656         (MEMMOVE): ...this.  Default to memmove.
19657         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19658         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19659         (END_CHK): Define.
19660         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19661         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19662         mempcpy-ssse3-back memmove-ssse3-back.
19663         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19664         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19665         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19666         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19667         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19668         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19669         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19670         * sysdeps/x86_64/multiarch/memmove.c: New file.
19671         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19672         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19673         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19674         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19675         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19676         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19677         Define.
19678         (index_Fast_Copy_Backward): Define.
19679         (HAS_ARCH_FEATURE): Define.
19680         (HAS_FAST_REP_STRING): Define.
19681         (HAS_FAST_COPY_BACKWARD): Define.
19683 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19685         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19686         Restore proper fallback handling.
19688 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19690         [BZ #11701]
19691         * posix/group_member.c (__group_member): Correct checking loop.
19693         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19694         OOM in getpwuid_r correctly.  Return error number when the caller
19695         should return, otherwise -1.
19696         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19697         call returning > 0 value.
19698         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19700 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19702         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19703         libc_nonshared.a from targets in modules-names.
19705 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19707         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19708         requires it.
19710 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19712         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19713         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19714         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19715         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19717 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19719         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19721 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19723         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19724         and F_GETPIPE_SZ.
19725         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19726         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19727         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19728         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19729         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19730         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19732 2010-06-14  Roland McGrath  <roland@redhat.com>
19734         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19736 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19738         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19739         __REDIRECT followed by __THROW.
19740         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19741         * posix/getopt.h (getopt): Likewise.
19743 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19745         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19746         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19747         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19748         in AT_FLAGS.
19749         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19750         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19752 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19754         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19756 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19758         [BZ #11640]
19759         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19760         Properly check family and model.
19762 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19764         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19766 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19768         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19770 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19772         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19773         symbol reference.
19775 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19777         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19778         symbol reference.
19780 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19782         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19783         and internal_recvmmsg.
19784         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19785         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19786         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19787         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19789         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19790         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19791         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19793 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19795         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19797 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19799         POWER7 optimizations.
19800         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19801         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19803 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19805         * version.h: Update for 2.13 development version.
19807 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19809         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19810         exceptions.  Return 0.
19812 2010-05-07  Roland McGrath  <roland@redhat.com>
19814         * elf/ldconfig.c (main): Add a const.
19816 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19818         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19819         (args_options): Add no-idn option.
19820         (ahosts_keys_int): Add idn_flags to ai_flags.
19821         (parse_option): Handle 'i' option to clear idn_flags.
19823         * malloc/malloc.c (_int_free): Possible race in the most recently
19824         added check.  Only act on the data if no current modification
19825         happened.
19827 See ChangeLog.17 for earlier changes.