Clarify memory allocation error diagnostics to avoid confusion
[glibc.git] / ChangeLog
blob69d7941c644c323ff7fa432ab8354702a9cd4e93
1 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3         [BZ #10631]
4         * malloc.c (malloc_printerr): Clarify error message.
6 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8         [BZ #14648]
9         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10         Set bit_FMA_Usable if FMA is supported.
11         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
12         macro.
13         (bit_FMA4_Usable): Updated.
14         (index_FMA_Usable): New macro.
15         (CPUID_FMA): Likewise
16         (HAS_FMA): Defined with bit_FMA_Usable.
18 2012-10-01  Roland McGrath  <roland@hack.frob.com>
20         * bits/types.h (__swblk_t): Type removed.
21         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
22         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
23         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24         (__SWBLK_T_TYPE): Likewise.
25         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
26         (__SWBLK_T_TYPE): Likewise.
27         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28         (__SWBLK_T_TYPE): Likewise.
29         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30         (__SWBLK_T_TYPE): Likewise.
32 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
33             Honza Horak <hhorak@redhat.com>
35         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
36         (xdr_mapname): Use YPMAXMAP as maxsize.
37         (xdr_peername): Use YPMAXPEER as maxsize.
38         (xdr_keydat): Use YPAXRECORD as maxsize.
39         (xdr_valdat): Use YPMAXRECORD as maxsize.
41 2012-10-01  Roland McGrath  <roland@hack.frob.com>
43         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
45         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
46         * csu/init-first.c: ... here.
47         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
48         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
49         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
50         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
51         * sysdeps/i386/init-first.c: File removed.
52         * sysdeps/sh/init-first.c: File removed.
54 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
56         [BZ #14645]
57         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
58         if x * y might underflow to zero and z is zero.
59         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
60         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61         * math/libm-test.inc (min_subnorm_value): New variable.
62         (fma_test): Add more tests.
63         (fma_test_towardzero): Likewise.
64         (fma_test_downward): Likewise
65         (fma_test_upward): Likewise.
66         (initialize): Set min_subnorm_value.
68 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
70         [BZ #14638]
71         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
72         0 + 0.
73         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
74         mode for addition resulting in exact zero.
75         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
76         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
77         exact 0 + 0.
78         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
79         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
80         * math/libm-test.inc (fma_test): Add more tests.
81         (fma_test_towardzero): New function.
82         (fma_test_downward): Likewise.
83         (fma_test_upward): Likewise.
84         (main): Call the new functions.
86 2012-09-28  David S. Miller  <davem@davemloft.net>
88         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
90 2012-09-28  Roland McGrath  <roland@hack.frob.com>
92         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
93         instead of SIGALRM.
95         * sysdeps/gnu/_G_config.h: Moved to ...
96         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
97         * sysdeps/mach/hurd/_G_config.h: Moved to ...
98         * sysdeps/generic/_G_config.h: ... here.
100         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
102         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
104         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
105         Conditionalize target on [libnss_test1.so-version].
107         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
109         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
110         (elfobjdir): Move out of conditionals.
112         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
113         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
114         (__nss_lookup_function): Conditionalize label remove_from_tree on
115         [!DO_STATIC_NSS || SHARED], matching its only use.
117 2012-09-28  David S. Miller  <davem@davemloft.net>
119         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
120         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
121         file.
122         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
123         sysdep_routines.
124         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
125         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
126         when HWCAP_SPARC_CRYPTO is present.
128 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
130         * io/tst-mknodat.c: Create a FIFO instead of a socket.
132 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
134         [BZ #6530]
135         * stdio-common/vfprintf.c (process_string_arg): Revert
136         2000-07-22 change.
138 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
140         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
141         for testcase.
142         * stdio-common/tst-sprintf.c: Include <locale.h>
143         (main): Test sprintf's handling of incomplete multibyte
144         characters.
146 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
148         * elf/dl-runtime.c (VERSYMIDX): Removed.
149         * elf/dl-version.c (VERSYMIDX): Likewise.
150         * elf/do-rel.h (VERSYMIDX): Likewise.
151         (VALIDX): Likewise.
152         * elf/dynamic-link.h (VERSYMIDX): Likewise.
153         * elf/rtld.c (VALIDX): Likewise.
154         (ADDRIDX): Likewise.
155         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
156         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
157         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
158         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
159         (VALIDX): Likewise.
160         (ADDRIDX): Likewise.
162 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
164         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
166 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
168         [BZ #11438]
169         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
170         to global scope.
171         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
172         addresses are in the same scope as 192.0.2/24.
173         * posix/gai.conf: Document new scope table defaults.
175 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
177         [BZ #5298]
178         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
179         for ftell.  Compute offsets from write pointers instead.
180         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
182 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
184         [BZ #14543]
185         * libio/Makefile (tests): New test case tst-fseek.
186         * libio/tst-fseek.c: New test case to verify that fseek/ftell
187         combination works in wide mode.
188         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
189         state when the external buffer state changes.
191 2012-09-27  David S. Miller  <davem@davemloft.net>
193         [BZ #14376]
194         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
195         pass reloc->r_addend in as the 'high' argument to
196         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
198         * sysdeps/sparc/fpu/libm-test-ulps: Update.
200 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
202         * rt/tst-aio2.c: Include <pthread.h>.
203         * rt/tst-aio3.c: Likewise.
205 2012-09-27  Steve Ellcey  <sellcey@mips.com>
207         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
209 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
211         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
212         contents on [SHARED].
214 2012-09-26  Marek Polacek  <polacek@redhat.com>
216         [BZ #14530]
217         [BZ #13741]
218         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
219         for C++ and GCC <4.3 as well as for non GCC compilers.
221 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
223         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
225 2012-09-25  Roland McGrath  <roland@hack.frob.com>
227         * Makefile.in (all, install): Declare with .PHONY.
228         Reported by Michael Hope <michael.hope@linaro.org>.
230 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
232         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
233         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
234         system header.
235         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
236         Likewise.
237         (sydep_routines): Add the new and the internal functions.
238         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
239         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
241         (GLIBC_2.17): Add the new function.
242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
243         (GLIBC_2.17): Likewise.
244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
245         (GLIBC_2.17): Likewise.
246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
247         (GLIBC_2.17): Likewise.
248         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
250 2012-09-25  Alan Modra  <amodra@gmail.com>
252         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
253         Add release barrier before setting once_control to say
254         initialisation is done.  Add hints on lwarx.  Use macro in
255         place of isync.
256         (clear_once_control): Add release barrier.
258 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
260         [BZ #13629]
261         * math/s_clog.c (__clog): Handle more values close to |z| = 1
262         specially.
263         * math/s_clog10.c (__clog10): Likewise.
264         * math/s_clog10f.c (__clog10f): Likewise.
265         * math/s_clog10l.c (__clog10l): Likewise.
266         * math/s_clogf.c (__clogf): Likewise.
267         * math/s_clogl.c (__clogl): Likewise.
268         * math/Makefile (libm-calls): Add x2y2m1.
269         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
270         (__x2y2m1): Likewise.
271         (__x2y2m1l): Likewise.
272         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
273         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
274         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
275         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
276         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
277         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
278         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
279         * sysdeps/i386/fpu/libm-test-ulps: Update.
280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
282         [BZ #14621]
283         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
284         int as type of variable DEPTH.
285         (glob): Use size_t instead of int as type of variables NEWCOUNT
286         and OLD_PATHC.
288 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
290         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
291         Add s_sincosf-sse2.
292         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
293         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
294         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
295         macros for using routine as __sincosf_ia32.
296         Use macro for function declaration and weak_alias.
297         * sysdeps/i386/fpu/libm-test-ulps: Update.
299         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
300         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
302         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
303         subnormal argument.
304         * math/s_cexpf.c (__cexpf): Likewise.
305         * math/s_csinf.c (__csinf): Likewise.
306         * math/s_csinhf.c (__csinhf): Likewise.
307         * math/s_ctanf.c (__ctanf): Likewise.
308         * math/s_ctanhf.c (__ctanhf): Likewise.
309         * math/s_ccosh.c (__ccoshf): Likewise.
310         * math/s_cexp.c (__cexpl): Likewise.
311         * math/s_csin.c (__csin): Likewise.
312         * math/s_csinh.c (__csinh): Likewise.
313         * math/s_ctan.c (__ctan): Likewise.
314         * math/s_ctanh.c (ctanh): Likewise.
315         * math/s_ccoshl.c (__ccoshl): Likewise.
316         * math/s_cexpl.c (__cexpl): Likewise.
317         * math/s_csinl.c (__csinl): Likewise.
318         * math/s_csinhl.c (__csinhl): Likewise.
319         * math/s_ctanl.c (__ctanl): Likewise.
320         * math/s_ctanhl.c (__ctanhl): Likewise.
322 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
324         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
325         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
326         (_IO_off_t): Define to __off_t, not _G_off_t.
327         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
328         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
329         (_IO_wint_t): Define to wint_t, not _G_wint_t.
330         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
331         type of __dummy and __dummy2 fields.
332         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
333         (_G_ssize_t): Likewise.
334         (_G_off_t): Likewise.
335         (_G_pid_t): Likewise.
336         (_G_uid_t): Likewise.
337         (_G_wchar_t): Likewise.
338         (_G_wint_t): Likewise.
339         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
340         (_G_ssize_t): Likewise.
341         (_G_off_t): Likewise.
342         (_G_pid_t): Likewise.
343         (_G_uid_t): Likewise.
344         (_G_wchar_t): Likewise.
345         (_G_wint_t): Likewise.
346         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
347         (_G_ssize_t): Likewise.
348         (_G_off_t): Likewise.
349         (_G_pid_t): Likewise.
350         (_G_uid_t): Likewise.
351         (_G_wchar_t): Likewise.
352         (_G_wint_t): Likewise.
354 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
356         * malloc/arena.c: Include malloc-sysdep.h.
357         (shrink_heap): Use check_may_shrink_heap to decide if madvise
358         is sufficient to shrink the heap or an unmap is needed.
359         * sysdeps/generic/malloc-sysdep.h: New file.  Define
360         new function check_may_shrink_heap.
361         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
362         new function check_may_shrink_heap.
364 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
366         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
367         comments.
369 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
371         * catgets/test-gencat.sh: Add "set -e".
372         * elf/tst-pathopt.sh: Likewise.
373         * grp/tst_fgetgrent.sh: Likewise.
374         * iconvdata/run-iconv-test.sh: Likewise.
375         * intl/tst-gettext.sh: Likewise.
376         * intl/tst-gettext2.sh: Likewise.
377         * intl/tst-gettext4.sh: Likewise.
378         * intl/tst-gettext6.sh: Likewise.
379         * intl/tst-translit.sh: Likewise.
380         * io/ftwtest-sh: Likewise.
381         * libio/test-freopen.sh: Likewise.
382         * malloc/tst-mtrace.sh: Likewise.
383         * posix/globtest.sh: Likewise.
384         * posix/tst-getconf.sh: Likewise.
385         * posix/wordexp-tst.sh: Likewise.
386         * stdio-common/tst-printf.sh: Likewise.
387         * stdio-common/tst-unbputc.sh: Likewise.
388         * stdlib/tst-fmtmsg.sh: Likewise.
389         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
390         * catgets/Makefile: Do not specify -e option when running
391         testsuite shell scripts.
392         * elf/Makefile: Likewise.
393         * grp/Makefile: Likewise.
394         * iconvdata/Makefile: Likewise.
395         * intl/Makefile: Likewise.
396         * io/Makefile: Likewise.
397         * libio/Makefile: Likewise.
398         * malloc/Makefile: Likewise.
399         * posix/Makefile: Likewise.
400         * stdio-common/Makefile: Likewise.
401         * stdlib/Makefile: Likewise.
402         * sysdeps/x86_64/Makefile: Likewise.
404         * io/ftwtest-sh: Add copyright header.
405         * posix/globtest.sh: Likewise.
406         * posix/tst-getconf.sh: Likewise.
407         * posix/wordexp-tst.sh: Likewise.
408         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
410 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
412         [BZ #13679]
413         * Makeconfig (+link): Defined as $(+link-static) if
414         $(build-shared) isn't yes.
415         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
416         isn't yes.
417         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
419         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
421         [BZ #14562]
422         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
423         new chunk size with MALLOC_ALIGN_MASK.
425 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
427         [BZ #5044]
428         * stdio-common/printf_fphex.c: Include <stdbool.h> and
429         <rounding-mode.h>.
430         (__printf_fphex): Determine rounding using get_rounding_mode and
431         round_away.
432         * stdio-common/tst-printf-round.c (struct hex_test): New
433         structure.
434         (hex_tests): New variable.
435         (test_hex_in_one_mode): New function.
436         (do_test): Also run tests for hex float output.
438 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
440         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
441         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
442         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
443         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
444         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
445         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
446         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
447         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
449 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
451         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
452         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
453         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
454         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
456 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
458         [BZ #14579]
459         * elf/rtld.c (dl_main): Limit the check for self loading to normal
460         mode only.
461         * elf/tst-rtld-load-self.sh: New test.
462         * elf/Makefile: Run it.
464 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
466         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
467         (tst-writev-ENV): Remove.
468         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
470 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
472         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
474 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
476         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
477         unconditional.
478         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
479         Likewise.
480         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
481         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
482         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
483         Likewise.
485 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
487         [BZ #14587]
488         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
489         * config.make.in (have-cpp-asm-debuginfo): Removed.
490         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
491         * configure: Regenerated.
493 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
495         [BZ #5044]
496         * stdio-common/printf_fp.c: Include <stdbool.h> and
497         <rounding-mode.h>.
498         (___printf_fp): Determine rounding using get_rounding_mode and
499         round_away.
500         * stdio-common/tst-printf-round.c: New file.
501         * stdio-common/Makefile (tests): Add tst-printf-round.
502         (link-libm): New variable.
503         ($(objpfx)tst-printf-round): Depend in $(link-libm).
505 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
507         [BZ #14576]
508         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
509         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
510         Likewise.
511         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
512         Likewise.
514 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
516         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
517         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
518         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
519         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
521 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
523         [BZ #14518]
524         * include/rounding-mode.h: New file.
525         * sysdeps/generic/get-rounding-mode.h: Likewise.
526         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
527         * stdlib/strtod_l.c: Include <rounding-mode.h>.
528         (MAX_VALUE): New macro.
529         (MIN_VALUE): Likewise.
530         (overflow_value): New function.
531         (underflow_value): Likewise.
532         (round_and_return): Use overflow_value and underflow_value to
533         determine return values in overflow and underflow cases.  Use
534         round_away to determine rounding depending on rounding mode.
535         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
536         determine return values in overflow and underflow cases.
537         * stdlib/tst-strtod-round.c: Include <fenv.h>.
538         (struct test_results): New structure.
539         (struct test): Use struct test_results to store expected results
540         for all rounding modes.
541         (TEST): Include expected results for all rounding modes.
542         (test_in_one_mode): New function.
543         (do_test): Use test_in_one_mode to compute and check results.
544         Check results for all rounding modes.
545         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
546         $(link-libm).
548 2012-12-09  Allan McRae  <allan@archlinux.org>
550         * sysdeps/i386/fpu/libm-test-ulps: Update
552 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
554         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
555         (_G_int32_t): Likewise.
556         (_G_uint16_t): Likewise.
557         (_G_uint32_t): Likewise.
558         (_G_HAVE_BOOL): Likewise.
559         (_G_HAVE_ATEXIT): Likewise.
560         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
561         (_G_HAVE_IO_FILE_OPEN): Likewise.
562         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
563         (_G_int32_t): Likewise.
564         (_G_uint16_t): Likewise.
565         (_G_uint32_t): Likewise.
566         (_G_HAVE_BOOL): Likewise.
567         (_G_HAVE_ATEXIT): Likewise.
568         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
569         (_G_HAVE_IO_FILE_OPEN): Likewise.
570         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
571         (_G_int32_t): Likewise.
572         (_G_uint16_t): Likewise.
573         (_G_uint32_t): Likewise.
574         (_G_HAVE_BOOL): Likewise.
575         (_G_HAVE_ATEXIT): Likewise.
576         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
577         (_G_HAVE_IO_FILE_OPEN): Likewise.
579 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
581         * csu/libc-tls.c: Update copyright years.
583 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
585         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
586         [!_G_USING_THUNKS]: Remove conditional code.
587         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
588         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
590         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
591         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
592         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
593         (_G_VTABLE_LABEL_PREFIX): Likewise.
594         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
595         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
596         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
597         (_G_VTABLE_LABEL_PREFIX): Likewise.
598         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
599         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
600         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
601         (_G_VTABLE_LABEL_PREFIX): Likewise.
602         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
604 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
606         * libio/Makefile: Include ../Makeconfig before tests.
607         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
608         only if $(build-shared) is yes.
610         * iconv/gconv_db.c: Update copyright years.
612 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
614         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
615         unwind info if defined PIC. Fix special cases description.
616         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
618         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
619         DP_HI_MASK entry.
620         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
622 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
624         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
626         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
627         is NULL.
629         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
630         (LDLIBS-tst-chk4): This.
631         (LDFLAGS-tst-chk5): Renamed to ...
632         (LDLIBS-tst-chk5): This.
633         (LDFLAGS-tst-chk6): Renamed to ...
634         (LDLIBS-tst-chk6): This.
635         (LDFLAGS-tst-lfschk4): Renamed to ...
636         (LDLIBS-tst-lfschk4): This.
637         (LDFLAGS-tst-lfschk5): Renamed to ...
638         (LDLIBS-tst-lfschk5): This.
639         (LDFLAGS-tst-lfschk6): Renamed to ...
640         (LDLIBS-tst-lfschk6): This.
642         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
643         on $(common-objpfx)soversions.mk.
645 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
647         [BZ #10014]
648         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
649         example host name.
651 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
653         * malloc/arena.c (arena_get_retry): New function that gets
654         another arena for the caller to try its request on.
655         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
656         current arena cannot fulfill the request.
657         (__libc_memalign): Likewise.
658         (__libc_memalign): Likewise.
659         (__libc_pvalloc): Likewise.
660         (__libc_calloc): Likewise.
662 2012-09-05  John Tobey  <john.tobey@gmail.com>
664         [BZ #13542]
665         * manual/arith.texi (Operations on Complex): Fix description
666         of carg branch cut.
668 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
670         [BZ #10014]
671         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
672         host name.
674         [BZ #10038]
675         * manual/memory.texi (Memory): Make order of menu items match
676         order of sections.
678 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
680         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
681         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
682         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
684 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
686         * csu/libc-tls.c (static_dtv): Renamed to ...
687         (_dl_static_dtv): This.  Make it global.
688         (_dl_initial_dtv): Removed.
689         (__libc_setup_tls): Updated.
690         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
691         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
692         DL_INITIAL_DTV.
694 2012-09-06  Petr Machata  <pmachata@redhat.com>
696         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
697         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
698         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
699         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
701 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
703         [BZ #14545]
704         * csu/libc-tls.c (_dl_initial_dtv): New variable.
705         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
706         freeing dtv[-1].
708 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
710         [BZ #14544]
711         * Makeconfig (link-static-before-libc): Replace $(+prector)
712         with $(+prectorT).
713         (link-static-after-libc): Replace $(+postctor) with
714         $(+postctorT).
715         (link-bounded): Replace $(+prector)/$(+postctor) with
716         $(+prectorT)/$(+postctorT).
717         (+prectorT): New macro.
718         (+postctorT): Likewise.
720 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
722         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
723         (round_str): Handle values above the maximum for IBM long double
724         as inexact.
725         * stdlib/tst-strtod-round.c (tests): Regenerated.
727 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
729         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
730         assembler flag.
731         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
732         zarch_nohighgprs around the zarch optimized routines.
733         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
734         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
735         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
736         for zarch.
738 2012-09-05  David S. Miller  <davem@davemloft.net>
740         * sysdeps/sparc/fpu/libm-test-ulps: Update.
742         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
743         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
744         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
745         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
746         entries.
748 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
750         * malloc/arena.c: Fold copyright years.
751         * malloc/mcheck.c, malloc/memusage.c: Likewise.
753 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
755         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
757 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
759         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
761 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
763         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
764         change internal state upon failure.
766 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
768         * malloc/mcheck.c (mcheck_check_all): Fix typo.
769         * malloc/memusage.c (mmap): Likewise.
770         (mmap64, mremap): Likewise.  Adjust name in comment.
772 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
774         * libio/fileops.c: Fix typos in comments.
775         * libio/oldfileops.c: Likewise.
776         * libio/wfileops.c: Likewise.
778 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
780         [BZ #1349]
781         * malloc/Makefile (tests): Add tst-malloc-usable test case.
782         (tst-malloc-usable-ENV): Set environment for test case.
783         * malloc/hooks.c (malloc_check_get_size): New function to get
784         requested size.
785         * malloc/malloc.c (musable): Use malloc_check_get_size.
786         * malloc/tst-malloc-usable.c: New test case.
788 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
790         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
792 2012-09-05  Allan McRae  <allan@archlinux.org>
794         [BZ #13966]
795         * configure.in (CXX_SYSINCLUDES): Use compiler output to
796         determine header location.
797         * configure: Regenerated.
799 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
801         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
802         float format.
803         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
804         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
805         format.
806         (test): Regenerate.
808 2012-09-04  David S. Miller  <davem@davemloft.net>
810         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
811         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
812         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
814 2012-09-04  Florian Weimer  <fweimer@redhat.com>
816         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
817         failures.
819         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
821 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
823         [BZ #9914]
824         * libio/iogetdelim.c: Include <limits.h>.
825         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
826         + len + 1 would overflow.
828 2012-09-03  Andreas Jaeger  <aj@suse.de>
830         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
831         * sysdeps/i386/fpu/libm-test-ulps: Update.
833 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
835         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
836         Add s_sinf-sse2, s_conf-sse2.
838         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
839         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
840         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
841         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
843         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
844         for using routine as __sinf_ia32.
845         Use macro for function declaration and weak_alias.
846         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
847         for using routine as __cosf_ia32.
848         Use macro for function declaration and weak_alias.
850         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
851         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
853         * sysdeps/x86_64/fpu/s_sinf.S: New file.
854         * sysdeps/x86_64/fpu/s_cosf.S: New file.
855         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
857         * math/libm-test.inc (cos_test): Add more test cases.
858         (sin_test): Likewise.
859         (sincos_test): Likewise.
861 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
863         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
864         (IFUNC_RESOLVE): Make pointers to the specialized implementations
865         hidden.
866         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
868 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
870         [BZ #14538]
871         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
872         first element of the GOT.
873         (elf_machine_load_address): Return the difference between
874         the runtime address of _DYNAMIC and elf_machine_dynamic ().
876 2012-09-01  Allan McRae  <allan@archlinux.org>
878         [BZ #13412]
879         * configure.in (AWK): Require gawk version 3.0 or later.
880         * configure: Regenerated.
882 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
884         * sysdeps/unix/sysv/linux/kernel-features.h
885         (__ASSUME_POSIX_CPU_TIMERS): Remove.
886         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
887         [__NR_clock_getres]: Make code unconditional.
888         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
889         (clock_getcpuclockid): Remove code left unreachable by removal of
890         conditionals.
891         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
892         code unconditional.
893         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
894         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
895         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
896         Make code unconditional.
897         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
898         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
899         * sysdeps/unix/sysv/linux/clock_settime.c
900         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
901         conditional code.
902         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
903         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
905 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
907         [BZ #14476]
908         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
909         scripts/test-installation.pl.
911         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
912         and $ld_so_version if it is set.
914 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
916         [BZ #14516]
917         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
918         failure if reading from procfs failed.
919         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
921 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
923         * sysdeps/unix/sysv/linux/kernel-features.h
924         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
925         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
926         Remove conditional code.
927         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
928         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
929         Remove conditional code.
930         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
931         * sysdeps/unix/sysv/linux/i386/fxstat.c
932         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
933         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
934         * sysdeps/unix/sysv/linux/i386/fxstatat.c
935         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
936         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
937         * sysdeps/unix/sysv/linux/i386/lxstat.c
938         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
939         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
940         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
941         Remove conditional code.
942         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
943         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
944         Remove conditional code.
945         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
946         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
947         <kernel-features.h>.
948         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
949         Remove.
950         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
951         Remove conditional code.
952         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
953         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
954         Remove conditional.
956 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
958         [BZ #5400]
959         * NEWS: Add fixed bug number.
961 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
963         [BZ #14519]
964         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
965         underflowing exponent in case of negative sign.
966         * stdlib/tst-strtod-round-data: Add more tests.
967         * stdlib/tst-strtod-round.c (tests): Regenerated.
969         [BZ #3479]
970         * stdlib/strtod_l.c (NDIG): Remove.
971         (HEXNDIG): Likewise.
972         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
973         smallest representable value.
974         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
975         lie within an exact representation of 1/2 ulp of the result.
976         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
977         unconditionally.
978         (TENS_P9_IDX): Define unconditionally.
979         (TENS_P9_SIZE): Likewise.
980         (TENS_P10_IDX): Likewise.
981         (TENS_P10_SIZE): Likewise.
982         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
983         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
984         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
985         entries for 10^2^13 and 10^2^14.
986         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
987         (TENS_P13_IDX): Define.
988         (TENS_P13_SIZE): Likewise.
989         (TENS_P14_IDX): Likewise.
990         (TENS_P14_SIZE): Likewise.
991         (_fpioconst_pow10): Change array size to
992         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
993         unconditional.
994         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
995         1024]: Add entries for 10^2^13 and 10^2^14.
996         [LAST_POW10 > _LAST_POW10]: Remove #error.
997         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
998         (_fpioconst_pow10): Change array size to
999         FPIOCONST_POW10_ARRAY_SIZE.
1000         * stdlib/gen-fpioconst.c: New file.
1001         * stdlib/gen-tst-strtod-round.c: Likewise.
1002         * stdlib/tst-strtod-round-data: Likewise.
1003         * stdlib/tst-strtod-round.c: Likewise.
1004         * stdlib/Makefile (tests): Add tst-strtod-round.
1006         [BZ #14459]
1007         * stdlib/strtod_l.c: Include <stdint.h>.
1008         (NDEBUG): Do not define.
1009         (round_and_return): Change EXPONENT parameter to type intmax_t.
1010         Rearrange calculations to avoid internal overflow possibilities.
1011         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1012         Rearrange calculations to avoid internal overflow possibilities.
1013         Assert that number fits inside MPNSIZE limbs.
1014         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1015         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1016         calculations and add assertions to avoid internal overflow
1017         possibilities.  Add casts to avoid signed/unsigned operations.
1018         * stdlib/tst-strtod-overflow.c: New file.
1019         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1021 2012-08-25  Marek Polacek  <polacek@redhat.com>
1023         * time/time.h: Fix some typos in comments.
1025 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1027         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1028         * posix/tst-rfc3484-2.c: Likewise.
1029         * posix/tst-rfc3484-3.c: Likewise.
1031 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1033         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1034         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1036 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1038         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1039         #include of fxstatat64.c.
1041 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1043         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1044         * shadow/getspent_r.c: Likewise.
1045         * shadow/getspnam.c: Likewise.
1046         * shadow/getspnam_r.c: Likewise.
1047         * gshadow/getsgent.c: Likewise.
1048         * gshadow/getsgent_r.c: Likewise.
1049         * gshadow/getsgnam.c: Likewise.
1050         * gshadow/getsgnam_r.c: Likewise.
1051         * inet/getnetbyad.c: Likewise.
1052         * inet/getnetbyad_r.c: Likewise.
1053         * inet/getnetbynm.c: Likewise.
1054         * inet/getnetbynm_r.c: Likewise.
1055         * inet/getnetent.c: Likewise.
1056         * inet/getnetent_r.c: Likewise.
1057         * inet/getproto.c: Likewise.
1058         * inet/getproto_r.c: Likewise.
1059         * inet/getprtent.c: Likewise.
1060         * inet/getprtent_r.c: Likewise.
1061         * inet/getprtname.c: Likewise.
1062         * inet/getprtname_r.c: Likewise.
1063         * inet/getrpcbyname.c: Likewise.
1064         * inet/getrpcbyname_r.c: Likewise.
1065         * inet/getrpcbynumber.c: Likewise.
1066         * inet/getrpcbynumber_r.c: Likewise.
1067         * inet/getrpcent.c: Likewise.
1068         * inet/getrpcent_r.c: Likewise.
1069         * inet/getaliasent.c: Likewise.
1070         * inet/getaliasent_r.c: Likewise.
1071         * inet/getaliasname.c: Likewise.
1072         * inet/getaliasname_r.c: Likewise.
1073         * nscd/getgrgid_r.c: Likewise.
1074         * nscd/getgrnam_r.c: Likewise.
1075         * nscd/gethstbyad_r.c: Likewise.
1076         * nscd/gethstbynm3_r.c: Likewise.
1077         * nscd/getpwnam_r.c: Likewise.
1078         * nscd/getpwuid_r.c: Likewise.
1079         * nscd/getsrvbynm_r.c: Likewise.
1080         * nscd/getsrvbypt_r.c: Likewise.
1081         * nscd/gai.c: Likewise.
1083         * configure.in (build_nscd): New substituted variable, set
1084         by --disable-build-nscd and defaults to $use_nscd.
1085         * configure: Regenerated.
1086         * config.make.in (build-nscd): New substituted variable.
1087         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1088         Change conditional to require [$(build-nscd) = yes] as well.
1089         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1091         [BZ# 13696]
1092         * configure.in (use_nscd): New substituted variable, set by
1093         --disable-nscd.  If enabled, define USE_NSCD.
1094         * configure: Regenerated.
1095         * config.h.in: Add USE_NSCD.
1096         * config.make.in (use-nscd): New substituted variable.
1097         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1098         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1099         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1100         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1101         (CFLAGS-getgrnam_r.c): Likewise.
1102         (CFLAGS-initgroups.c): Likewise.
1103         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1104         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1105         Variables removed.
1106         * inet/getnetgrent_r.c
1107         (nscd_setnetgrent): New function, broken out of ...
1108         (setnetgrent): ... here.  Call it.
1109         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1110         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1111         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1112         * nscd/Makefile (routines, aux): Move definitions after include of
1113         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1114         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1115         Conditionalize on [USE_NSCD].
1116         (is_nscd, nscd_init_cb): Likewise.
1117         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1118         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1119         * nss/nss_db/db-init.c: Likewise.
1120         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1121         [USE_NSCD].
1122         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1123         (make_request): Use it.
1124         (cache_valid_p): New function.
1125         (__check_pf): Use it.
1126         * NEWS: Add item for --disable-nscd.
1128 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1130         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1131         to support sed >= 4.2.1-20-ga9bf076.
1132         * configure: Regenerated.
1134 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1136         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1137         Conditionalize whole body on [IREL].
1139 2012-08-22  Jeff Law <law@redhat.com>
1141         [BZ #14505]
1142         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1143         if the family is PF_UNSPEC.
1145 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1147         * Makerules (lib-version): Rename from V.
1148         (install-lib-nosubdir): Change V to lib-version.
1150 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1152         [BZ #14252]
1153         * powerpc32/power6/wcschr.c: New file.
1154         * powerpc32/power6/wcscpy.c: New file.
1155         * powerpc32/power6/wcsrchr.c: New file.
1156         * powerpc64/power6/wcschr.c: New file.
1157         * powerpc64/power6/wcscpy.c: New file.
1158         * powerpc64/power6/wcsrchr.c: New file.
1160 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1162         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1163         (two_way_short_needle): Use it.
1164         * string/strstr.c (AVAILABLE1_USES_J): Define.
1165         * string/strcasestr.c: Likewise.
1167         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1168         array references.
1169         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1171         [BZ #11607]
1172         * NEWS: Add an entry.
1173         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1174         define their defaults.
1175         (two_way_short_needle): Detect end-of-string on-the-fly.
1176         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1177         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1178         * string/bug-strcasestr1.c: New test.
1179         * string/Makefile: Run it.
1181 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1183         [BZ #11607]
1184         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1185         the first character.
1187 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1189         * csu/elf-init.c (__libc_csu_irel): Function removed.
1190         * csu/libc-start.c (apply_irel): New function.
1191         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1193 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1195         * sysdeps/unix/sysv/linux/kernel-features.h
1196         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1197         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1198         <kernel-features.h>.
1199         [__NR_fadvise64_64]: Make code unconditional.
1200         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1201         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1202         !__NR_fadvise64_64)]: Likewise.
1203         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1204         !__NR_fadvise64_64))]: Likewise.
1205         [__NR_fadvise64]: Make code unconditional.
1206         [!__NR_fadvise64]: Remove conditional code.
1207         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1208         <kernel-features.h>.
1209         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1210         unconditional.
1211         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1212         conditional code.
1213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1214         not include <kernel-features.h>.
1215         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1216         unconditional.
1217         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1218         conditional code.
1219         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1220         include <kernel-features.h>.
1221         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1222         unconditional.
1223         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1224         conditional code.
1226 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1228         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1229         slight instruction rearrangements per scrollpipe analysis.
1230         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1232 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1234         * manual/syslog.texi (syslog; vsyslog, closelog):
1235         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1236         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1238         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1239         DSOCAPS to match condition on defining it.
1241 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1243         * sysdeps/unix/sysv/linux/kernel-features.h
1244         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1246         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1247         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1249         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1250         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1252         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1253         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1255         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1256         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1258         * sysdeps/unix/sysv/linux/kernel-features.h
1259         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1260         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1261         unconditional.
1262         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1263         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1264         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1265         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1266         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1267         Make code unconditional.
1268         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1269         (__mmap64) [!__NR_mmap2]: Likewise.
1270         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1271         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1272         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1273         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1274         [__NR_mmap2]: Make code unconditional.
1275         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1276         (__mmap64) [!__NR_mmap2]: Likewise.
1278 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1280         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1282 2012-08-18  Andreas Jaeger  <aj@suse.de>
1284         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1286 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1288         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1289         * include/unistd.h (__have_sock_cloexec): Likewise.
1290         (__have_pipe2): Likewise.
1291         (__have_dup3): Likewise.
1293 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1295         [BZ #9685]
1296         * include/unistd.h (__have_pipe2): Change define into an extern int.
1297         (__have_dup3): Likewise.
1298         * socket/have_sock_cloexec.c: Include fcntl.h.
1299         (__have_pipe2): New variable.
1300         (__have_dup3): Likewise.
1302 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1304         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1306 2012-08-17  Marek Polacek  <polacek@redhat.com>
1308         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1309         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1311 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1313         * configure.in: Add AC_SUBST for sysheaders.
1314         * configure: Regenerated.
1315         * config.make.in (sysheaders): New substituted variable.
1317         * sysdeps/unix/mkfifo.c: Moved ...
1318         * sysdeps/posix/mkfifo.c: ... here.
1319         * sysdeps/unix/mkfifoat.c: Moved ...
1320         * sysdeps/posix/mkfifoat.c: ... here.
1322         * sysdeps/unix/utime.c: Moved ...
1323         * sysdeps/posix/utime.c: ... here.
1325         * sysdeps/unix/time.c: Moved ...
1326         * sysdeps/posix/time.c: ... here.
1327         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1328         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1330         * sysdeps/unix/nice.c: Moved ...
1331         * sysdeps/posix/nice.c: ... here.
1333         * sysdeps/unix/alarm.c: Moved ...
1334         * sysdeps/posix/alarm.c: ... here.
1336         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1338 2012-08-17  Jeff Law <law@redhat.com>
1340         * intl/Makefile (codeset_mo): New variable.
1341         ($(codeset_mo)): New target.
1342         (tst-codeset.out): Depend on that.  Remove explicit rule.
1343         (tst-gettext3.out, tst-gettext5.out): Likewise.
1344         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1345         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1346         * intl/tst-codeset.sh: Remove.
1347         * intl/tst-gettext3.sh: Likewise.
1348         * intl/tst-gettext5.sh: Likewise.
1350 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1352         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1353         * sysdeps/unix/syscalls.list: ... here.
1355         * sysdeps/posix/getaddrinfo.c
1356         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1357         (gaiconf_init, gaiconf_reload): Use them.
1358         [!_STATBUF_ST_NSEC]
1359         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1360         Define using time_t rather than struct timespec.
1362         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1363         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1364         Macros removed.
1365         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1366         [!NO_THREADS].
1367         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1368         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1369         Likewise.
1371         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1372         __libc_cleanup_push argument.
1374         * bits/param.h: New file.
1375         * misc/sys/param.h: New file.
1376         * include/sys/param.h: New file.
1377         * misc/Makefile (headers): Add bits/param.h.
1378         * sysdeps/generic/sys/param.h: File removed.
1379         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1380         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1381         * sysdeps/mach/hurd/bits/param.h: New file.
1382         * sysdeps/mach/hurd/sys/param.h: New file.
1384         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1385         last change.
1387         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1388         [_IO_MTSAFE_IO].
1389         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1390         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1391         New macros.
1393         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1394         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1395         rather than -D_IO_MTSAFE_IO conditionally.
1396         * stdio-common/Makefile (CPPFLAGS): Likewise.
1397         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1398         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1399         Use $(libio-mtsafe).
1400         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1401         of -D_IO_MTSAFE_IO.
1402         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1403         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1404         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1405         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1406         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1407         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1408         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1409         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1410         (CFLAGS-fread_u_chk.c): Likewise.
1411         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1412         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1413         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1414         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1415         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1416         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1417         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1418         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1419         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1421         * libio/Makefile: Test [$(libc-reentrant) = yes]
1422         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1424         * Makeconfig
1425         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1426         * sysdeps/pthread/configure: File removed.
1427         * sysdeps/pthread/Makeconfig: New file.
1428         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1429         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1431 2012-08-16  Gary Benson  <gbenson@redhat.com>
1433         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1434         unmapping the first object in a namespace.
1436 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1438         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1439         (__internal_setnetgrent): ... this.  Add internal_function to
1440         definition.  Add libc_hidden_def.
1441         (setnetgrent): Update caller.
1442         (internal_endnetgrent): Renamed to ...
1443         (__internal_endnetgrent): ... this.  Add internal_function to
1444         definition.  Add libc_hidden_def.
1445         (endnetgrent): Update caller.
1446         (internal_getnetgrent_r): Renamed to ...
1447         (__internal_getnetgrent_r): ... this.  Add internal_function to
1448         definition.  Add libc_hidden_def.
1449         (__getnetgrent_r): Update caller.
1450         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1452 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1454         * stdlib/longlong.h: Update from GCC.
1456 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1458         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1459         on _QL, which is set by umul_ppmm but never used.
1460         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1461         variables, which are set by GMP macros but never used.
1462         * stdio-common/_itowa.c (_itowa): Likewise.
1463         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1464         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1466 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1468         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1469         struct La_sh_regs is not constant.
1470         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1471         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1472         and struct La_sparc64_regs are not constant.
1474 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1476         * sysdeps/unix/sysv/linux/kernel-features.h
1477         (__ASSUME_POSIX_TIMERS): Remove.
1478         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1479         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1480         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1481         Make code unconditional.
1482         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1483         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1484         Make code unconditional.
1485         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1486         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1487         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1488         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1489         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1490         Make code unconditional.
1491         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1492         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1493         (__libc_missing_posix_timers): Remove.
1495 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1497         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1498         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1500         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1502         * elf/dl-sym.c: Include <stdlib.h>.
1504         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1505         constants, which avoids warnings in 32-bit builds.
1507         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1508         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1510         * misc/lseek.c: File moved to ...
1511         * io/lseek.c: ... here.
1513         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1515         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1516         shifting LEN more than 31 bits at once.
1518 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1520         [BZ #14195]
1521         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1522         segmentation fault for a case of two empty input strings.
1523         * string/test-strncasecmp.c (check1): Renamed to...
1524         (bz12205): ...this.
1525         (bz14195): Add new testcase for two empty input strings and N > 0.
1526         (test_main): Call new testcase, adapt for renamed function.
1528 2012-08-15  Andreas Jaeger  <aj@suse.de>
1530         [BZ #14090]
1531         * crypt/md5test2.c: New test, based on test supplied by Serge
1532         Belyshev <belyshev@depni.sinp.msu.ru>.
1533         * crypt/Makefile (xtests): Add md5test-giant..
1534         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1536 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1538         [BZ #14090]
1539         * crypt/md5.c (md5_process_block): Don't assume the buffer
1540         length is less than 2**32.
1541         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1542         length is less than 2**64.
1544 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1546         * string/str-two-way.h: Include <sys/param.h>.
1547         (MAX): Macro removed.
1549         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1550         Move #define and #undef of memmove to just before and after
1551         including <string.h>.
1553         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1554         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1555         and after including <string.h>.  Move declarations of
1556         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1557         to before #include "string/memmove.c".
1559         * include/dirent.h: Declare __getdirentries.
1561         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1562         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1564 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1566         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1567         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1568         * sysdeps/i386/configure: Regenerated.
1569         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1570         STABS_CURRENT_FILE, and STABS_FUN.
1571         (END): Remove call to STABS_FUN_END.
1572         (STABS_CURRENT_FILE1): Delete.
1573         (STABS_CURRENT_FILE): Likewise.
1574         (STABS_FUN): Likewise.
1575         (STABS_FUN_END): Likewise.
1576         (STABS_FUN2): Likewise.
1577         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1578         * sysdeps/x86_64/configure: Regenerated.
1580 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1582         * elf/dl-open.c: Include <atomic.h>.
1583         * elf/dl-lookup.c: Likewise.
1585 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1587         * sysdeps/unix/sysv/linux/kernel-features.h
1588         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1589         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1590         unconditionally.
1591         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1592         unconditionally.
1593         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1594         condition on __ASSUME_CLONE_THREAD_FLAGS.
1596 2012-08-14  Andreas Jaeger  <aj@suse.de>
1598         * sysdeps/i386/fpu/libm-test-ulps: Update.
1600 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1602         * include/atomic.h (atomic_exchange_and_add): Split into ...
1603         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1604         New atomic macros.
1606 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1608         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1610 2012-08-13  Jeff Law <law@redhat.com>
1612         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1613         null byte in the output string.
1615 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1617         * sysdeps/unix/sysv/linux/kernel-features.h
1618         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1619         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1620         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1621         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1622         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1623         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1624         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1626 2012-08-09  Jeff Law <law@redhat.com>
1628         [BZ #13939]
1629         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1630         When avoid_arena is set, don't retry in the that arena.  Pick the
1631         next one, whatever it might be.
1632         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1633         (arena_lock): Pass in new parameter to arena_get2.
1634         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1635         arena_get2.
1636         (__libc_malloc): Unify retrying after main arena failure with
1637         __libc_memalign version.
1638         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1640 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1642         [BZ #14166]
1643         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1644         to __redirect_strstr.
1645         (__strstr_sse42): Use typeof __redirect_strstr.
1646         (__strstr_ia32): Likewise.
1647         (__libc_strstr): New prototype.
1648         (strstr): Renamed to ...
1649         (__libc_strstr): This.
1650         (strstr): New strong alias of __libc_strstr.
1651         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1652         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1653         __redirect_time.
1654         Include <time.h>.
1655         (__libc_time): New prototype.
1656         (time_ifunc): Replace time with __libc_time.
1657         (time): New strong alias and hidden definition of __libc_time.
1658         (__GI_time): Remove strong alias.
1659         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1660         Include <stddef.h>.
1661         (memmove): Redefined to __redirect_memmove.
1662         (__memmove_sse2): Use typeof __redirect_memmove.
1663         (__memmove_ssse3): Likewise.
1664         (__memmove_ssse3_back): Likewise.
1665         (__libc_memmove): New prototype.
1666         (memmove): Renamed to ...
1667         (__libc_memmove): This.
1668         (memmove): New strong alias of __libc_memmove.
1670 2012-08-08  Mark Salter  <msalter@redhat.com>
1672         * elf/elf.h
1673         (R_MN10300_TLS_GD): Define.
1674         (R_MN10300_TLS_LD): Likewise.
1675         (R_MN10300_TLS_LDO): Likewise.
1676         (R_MN10300_TLS_GOTIE): Likewise.
1677         (R_MN10300_TLS_IE): Likewise.
1678         (R_MN10300_TLS_LE): Likewise.
1679         (R_MN10300_TLS_DTPMOD): Likewise.
1680         (R_MN10300_TLS_DTPOFF): Likewise.
1681         (R_MN10300_TLS_TPOFF): Likewise.
1682         (R_MN10300_SYM_DIFF): Likewise.
1683         (R_MN10300_ALIGN): Likewise.
1684         (R_MN10300_NUM): Update.
1686 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1688         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1689         Remove.
1691 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1693         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1695         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1696         sysdeps/unix -> sysdeps/posix move.
1697         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1699 2012-08-07      Allan McRae     <allan@archlinux.org>
1701         [BZ #14303]
1702         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1703         (SUNOS_CPP): Likewise.
1704         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1705         not found.
1706         (open_input): Call CPP using execvp.
1708 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1710         * sysdeps/unix/sysv/linux/kernel-features.h
1711         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1712         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1713         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1714         (__ASSUME_WAITID_SYSCALL): Likewise.
1715         * sysdeps/unix/sysv/linux/dl-execstack.c
1716         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1717         code unconditional.
1718         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1719         conditional code.
1720         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1721         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1722         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1723         code.
1724         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1725         unconditional.
1726         [__ASSUME_WAITID_SYSCALL]: Likewise.
1727         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1729 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1731         * sysdeps/unix/closedir.c: Renamed to ...
1732         * sysdeps/posix/closedir.c: ... here.
1733         * sysdeps/unix/dirfd.c: Renamed to ...
1734         * sysdeps/posix/dirfd.c: ... here.
1735         * sysdeps/unix/dirstream.h: Renamed to ...
1736         * sysdeps/posix/dirstream.h: ... here.
1737         * sysdeps/unix/fdopendir.c: Renamed to ...
1738         * sysdeps/posix/fdopendir.c: ... here.
1739         * sysdeps/unix/opendir.c: Renamed to ...
1740         * sysdeps/posix/opendir.c: ... here.
1741         * sysdeps/unix/readdir.c: Renamed to ...
1742         * sysdeps/posix/readdir.c: ... here.
1743         * sysdeps/unix/readdir_r.c: Renamed to ...
1744         * sysdeps/posix/readdir_r.c: ... here.
1745         * sysdeps/unix/rewinddir.c: Renamed to ...
1746         * sysdeps/posix/rewinddir.c: ... here.
1747         * sysdeps/unix/seekdir.c: Renamed to ...
1748         * sysdeps/posix/seekdir.c: ... here.
1749         * sysdeps/unix/telldir.c: Renamed to ...
1750         * sysdeps/posix/telldir.c: ... here.
1751         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1752         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1753         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1754         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1756         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1757         * bits/fcntl.h: ... here.
1759         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1760         not 0.
1761         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1762         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1763         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1764         (struct flock): Move l_start, l_len to the beginning.
1765         Use __pid_t for l_pid.
1766         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1767         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1768         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1769         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1770         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1771         [__USE_LARGEFILE64] (struct flock64): New type.
1772         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1774         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1775         * bits/dirent.h: ... here.
1777         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1778         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1780 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1782         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1783         Change from 2.6.0 to 2.6.16.
1784         * sysdeps/unix/sysv/linux/configure: Regenerated.
1785         * sysdeps/unix/sysv/linux/kernel-features.h
1786         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1787         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1788         version.
1789         (__ASSUME_UTIMES): Likewise.
1790         (__ASSUME_CLONE_STOPPED): Remove.
1791         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1792         architectures, not kernel version.
1793         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1794         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1795         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1796         (__ASSUME_WAITID_SYSCALL): Likewise.
1797         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1798         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1799         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1800         refer to older versions.
1802 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1804         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1805         Define alphasort64 as an alias.
1806         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1807         Define versionsort64 as an alias.
1808         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1809         Define scandir64 as an alias.
1810         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1811         Define scandirat64 as an alias.
1812         * dirent/alphasort64.c (alphasort64):
1813         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1814         * dirent/versionsort64.c: Likewise.
1815         * dirent/scandir64.c: Likewise.
1816         * dirent/scandirat64.c: Likewise.
1817         * sysdeps/wordsize-64/alphasort.c: File removed.
1818         * sysdeps/wordsize-64/alphasort64.c: File removed.
1819         * sysdeps/wordsize-64/scandir.c: File removed.
1820         * sysdeps/wordsize-64/scandir64.c: File removed.
1821         * sysdeps/wordsize-64/scandirat.c: File removed.
1822         * sysdeps/wordsize-64/scandirat64.c: File removed.
1823         * sysdeps/wordsize-64/versionsort.c: File removed.
1824         * sysdeps/wordsize-64/versionsort64.c: File removed.
1825         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1826         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1827         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1828         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1829         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1830         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1831         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1832         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1834         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1835         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1836         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1837         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1838         [defined __arch64__ || defined __sparcv9]
1839         (__INO_T_MATCHES_INO64_T): New macro.
1840         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1841         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1842         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1843         * sysdeps/unix/sysv/linux/bits/dirent.h
1844         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1845         (_DIRENT_MATCHES_DIRENT64): New macro.
1847         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1848         Define lockf64 as an alias.
1849         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1850         Define fseeko64 as an alias.
1851         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1852         Define ftello64 as an alias.
1853         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1854         Define _IO_fgetpos64 and fgetpos64 as aliases.
1855         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1856         Define _IO_fsetpos64 and fsetpos64 as aliases.
1857         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1858         Conditionalize body on this.
1859         * libio/fseeko64.c: Likewise.
1860         * libio/ftello64.c: Likewise.
1861         * libio/iofgetpos64.c: Likewise.
1862         * libio/iofsetpos64.c: Likewise.
1863         * sysdeps/wordsize-64/lockf.c: File removed.
1864         * sysdeps/wordsize-64/lockf64.c: File removed.
1865         * sysdeps/wordsize-64/fseeko.c: File removed.
1866         * sysdeps/wordsize-64/fseeko64.c: File removed.
1867         * sysdeps/wordsize-64/ftello.c: File removed.
1868         * sysdeps/wordsize-64/ftello64.c: File removed.
1869         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1870         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1871         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1872         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1873         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1874         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1875         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1876         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1877         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1878         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1879         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1880         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1881         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1882         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1884         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1885         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1886         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1887         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1888         [defined __arch64__ || defined __sparcv9]
1889         (__OFF_T_MATCHES_OFF64_T): New macro.
1890         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1891         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1892         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1893         (__OFF_T_MATCHES_OFF64_T): New macro.
1895 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1897         * stdlib/secure-getenv.c (__secure_getenv): Replace
1898         GLIBC_2_16 with GLIBC_2_17.
1900 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1902         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1903         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1905 2012-08-03  David S. Miller  <davem@davemloft.net>
1907         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1909 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1911         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1912         Remove.
1913         (__ASSUME_CORRECT_SI_PID): Likewise.
1914         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1915         (__ASSUME_TMPFS_NAME): Likewise.
1916         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1917         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1918         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1919         (HAVE_AUX_SECURE): Make definition unconditional.
1920         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1921         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1923 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1925         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1926         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1927         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1928         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1929         __eloop_threshold instead of SYMLOOP_MAX.
1931         * sysdeps/generic/eloop-threshold.h: New file.
1932         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1933         of MAXSYMLINKS.
1934         * elf/chroot_canon.c (chroot_canon): Likewise.
1936 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1938         [BZ #13717]
1939         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1940         Change to 2.6.0 everywhere.
1941         * sysdeps/unix/sysv/linux/configure: Regenerated.
1942         * sysdeps/unix/sysv/linux/kernel-features.h
1943         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1944         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1945         kernel versions.
1946         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1947         (__ASSUME_FUTEX_REQUEUE): Remove.
1948         (__ASSUME_STATFS64): Define unconditionally.
1949         (__ASSUME_AT_SECURE): Likewise.
1950         (__ASSUME_CORRECT_SI_PID): Likewise.
1951         (__ASSUME_TGKILL): Define without depending on kernel version for
1952         i386.
1953         (__ASSUME_UTIMES): Likewise.
1954         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1955         kernel version.
1956         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1957         (__ASSUME_TMPFS_NAME): Likewise.
1958         * README: Update reference to Linux kernel versions.
1960 2012-08-02  Marek Polacek  <polacek@redhat.com>
1962         [BZ# 14150]
1963         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1964         libc_cv_asm_type_prefix with %.
1965         * configure: Regenerated.
1966         * include/libc-symbols.h: Remove comment about
1967         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1968         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1969         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1970         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1971         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1972         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1973         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1974         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1975         * elf/tst-unique2mod1.c: Likewise.
1976         * elf/tst-unique1mod2.c: Likewise.
1977         * elf/tst-unique1mod1.c: Likewise.
1978         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1979         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1980         Replace ASM_TYPE_DIRECTIVE with .type.
1981         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1982         * sysdeps/i386/sysdep.h: Likewise.
1983         * sysdeps/x86_64/sysdep.h: Likewise.
1984         * sysdeps/sh/sysdep.h: Likewise.
1985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1986         Do not define ASM_TYPE_DIRECTIVE.
1987         * sysdeps/powerpc/sysdep.h: Likewise.
1988         * sysdeps/powerpc/powerpc32/sysdep.h:
1989         Replace ASM_TYPE_DIRECTIVE with .type.
1990         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1991         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1992         * sysdeps/i386/fpu/e_powf.S: Likewise.
1993         * sysdeps/i386/fpu/e_expl.S: Likewise.
1994         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1995         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1996         * sysdeps/i386/fpu/e_pow.S: Likewise.
1997         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1998         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1999         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2000         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2001         * sysdeps/i386/fpu/e_log2.S: Likewise.
2002         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2003         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2004         * sysdeps/i386/fpu/e_powl.S: Likewise.
2005         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2006         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2007         * sysdeps/i386/fpu/e_logl.S: Likewise.
2008         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2009         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2010         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2011         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2012         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2013         * sysdeps/i386/fpu/e_log.S: Likewise.
2014         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2015         * sysdeps/i386/fpu/e_logf.S: Likewise.
2016         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2017         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2018         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2019         * sysdeps/i386/fpu/e_log10.S: Likewise.
2020         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2021         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2022         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2023         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2024         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2025         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2026         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2027         * sysdeps/i386/i686/strtok.S: Likewise.
2028         * sysdeps/i386/i386-mcount.S: Likewise.
2029         * sysdeps/i386/strtok.S: Likewise.
2030         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2031         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2032         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2033         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2034         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2035         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2036         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2037         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2038         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2039         * sysdeps/x86_64/_mcount.S: Likewise.
2040         * sysdeps/x86_64/strtok.S: Likewise.
2041         * sysdeps/sh/_mcount.S: Likewise.
2043 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2045         * libio/iofopen.c: Include <fcntl.h>.
2046         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2047         (_IO_fopen64, fopen64): Define as aliases.
2048         * libio/iofopen64.c: Include <fcntl.h>.
2049         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2050         Conditionalize body on this.
2051         * sysdeps/wordsize-64/iofopen.c: File removed.
2052         * sysdeps/wordsize-64/iofopen64.c: File removed.
2054 2012-08-01  Marek Polacek  <polacek@redhat.com>
2056         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2057         Use dlfcn directly instead of a variable.
2058         (binfmt-subdir): Do not define.
2059         (dlfcn): Likewise.
2061 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2063         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2064         Remove all definitions.
2065         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2066         <kernel-features.h>.
2067         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2068         (miss_F_GETOWN_EX): Remove all definitions.
2069         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2070         macro definition.
2071         [!__ASSUME_FCNTL64]: Remove conditional code.
2072         [__ASSUME_FCNTL64]: Make code unconditional.
2073         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2074         <kernel-features.h>.
2075         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2076         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2077         (lockf64) [__NR_fcntl64]: Make code unconditional.
2078         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2080         * sysdeps/unix/sysv/linux/kernel-features.h
2081         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2082         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2083         Make code unconditional.
2084         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2085         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2087         [__NR_vfork]: Make code unconditional.
2088         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2089         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2091         [__NR_vfork]: Make code unconditional.
2092         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2093         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2095 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2097         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2098         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2100         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2101         Define mkstemp64 as an alias.
2102         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2103         Define mkstemps64 as an alias.
2104         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2105         Define mkostemp64 as an alias.
2106         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2107         Define mkostemps64 as an alias.
2108         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2109         Conditionalize body on this.
2110         * misc/mkostemp64.c: Likewise.
2111         * misc/mkostemps64.c: Likewise.
2112         * misc/mkstemps64.c: Likewise.
2113         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2114         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2115         * sysdeps/wordsize-64/mkostemp.c: File removed.
2116         * sysdeps/wordsize-64/mkstemp.c: File removed.
2117         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2118         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2119         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2120         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2122         [BZ #14138]
2123         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2124         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2125         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2126         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2128         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2129         compat_symbol macros from <shlib-compat.h> rather than the underlying
2130         default_symbol_version and symbol_version macros, so that DEFAULT
2131         lines in shlib-versions are respected.
2132         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2134 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2136         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2137         Declare with warn_unused_result.
2138         (setgid, setregid, setegid, setresgid): Likewise.
2139         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2140         Likewise.
2141         * WUR-REPORT: Remove set*id functions.
2143 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2145         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2147 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2149         * include/sys/socket.h (__libc_accept, __libc_accept4):
2150         Add attribute_hidden.
2151         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2153         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2154         use of PTR_MANGLE.
2155         * inet/getnetgrent_r.c (setup): Likewise.
2157         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2159 2012-07-31  David S. Miller  <davem@davemloft.net>
2161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2163 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2165         [BZ #13629]
2166         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2167         value between 1.0 and 2.0 and smaller part has absolute value less
2168         than 1.0.
2169         * math/s_clog10.c (__clog10): Likewise.
2170         * math/s_clog10f.c (__clog10f): Likewise.
2171         * math/s_clog10l.c (__clog10l): Likewise.
2172         * math/s_clogf.c (__clogf): Likewise.
2173         * math/s_clogl.c (__clogl): Likewise.
2174         * math/libm-test.inc (clog_test): Add more tests.
2175         (clog10_test): Likewise.
2176         * sysdeps/i386/fpu/libm-test-ulps: Update.
2177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2179 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2181         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2182         Exit with zero in case no suitable GID is found, and write a
2183         message to standard error.
2185 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2187         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2188         rather than to 1.
2189         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2190         (MAXPATHLEN): Removed.
2191         (NOGROUP, NODEV): New macros.
2192         (setbit, clrbit, isset, isclr): New macros.
2193         (howmany, roundup, powerof2): New macros.
2194         (DEV_BSIZE): New macro.
2196         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2197         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2199         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2200         definition on [!__NO_LONG_DOUBLE_MATH].
2202         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2203         PTR_MANGLE and PTR_DEMANGLE.
2205         * socket/accept4.c (accept4): Rename to __libc_accept4.
2206         Define accept4 as a weak alias.
2208         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2209         on [_DIRENT_HAVE_D_TYPE].
2210         * io/ftw.c (ftw_dir): Likewise.
2212         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2214         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2216         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2217         Use the BSD numbers rather than the arbitrary ones we had.
2218         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2219         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2220         (SIGXCPU, SIGXFSZ): New macros.
2221         (_NSIG): Now 32.
2223         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2224         initializer on [_LIBC_REENTRANT].
2226         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2227         definitions inside [_POSIX_MAPPED_FILES].
2229         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2231         * dirent/opendir.c: Include <fcntl.h>.
2233         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2234         (__libc_getspecific): Likewise.
2235         (__libc_key_create): Likewise.
2237         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2238         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2239         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2240         (tmpfile64): Define as alias.
2241         * sysdeps/wordsize-64/tmpfile.c: File removed.
2242         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2243         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2244         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2246         * stdio-common/vfscanf.c: Include <stdbool.h>.
2247         * nss/makedb.c: Likewise.
2248         * stdio-common/_i18n_number.h: Likewise.
2249         * argp/argp-help.c: Likewise.
2250         * posix/wordexp.c: Likewise.
2251         * sysdeps/posix/spawni.c: Likewise.
2252         * nss/nss_files/files-initgroups.c: Likewise.
2253         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2254         * nss/nss_files/files-initgroups.c: Likewise.
2255         * nss/nss_db/db-netgrp.c: Likewise.
2256         * nss/nss_db/db-initgroups.c: Likewise.
2257         * io/fchmodat.c: Include <sys/stat.h>.
2259         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2260         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2262         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2263         [HAVE_MMAP].
2265         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2266         Add multiple inclusion protection.
2268 2012-07-27  David S. Miller  <davem@davemloft.net>
2270         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2272 2012-07-27  Gary Benson  <gbenson@redhat.com>
2274         [BZ #14298]
2275         * elf/rtld.c: Include <stap-probe.h>.
2276         (dl_main): Added static probes "init_start" and "init_complete".
2277         * elf/dl-load.c: Include <stap-probe.h>.
2278         (lose): Take new parameter "nsid".
2279         Added static probe "map_failed".
2280         (_dl_map_object_from_fd): Pass namespace id to lose.
2281         Added static probe "map_start".
2282         (open_verify): Pass namespace id to lose.
2283         * elf/dl-open.c: Include <stap-probe.h>.
2284         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2285         and "reloc_complete".
2286         * elf/dl-close.c: Include <stap-probe.h>.
2287         (_dl_close_worker): Added static probes "unmap_start" and
2288         "unmap_complete".
2289         * elf/rtld-debugger-interface.txt: New file documenting the above.
2291 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2293         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2294         rather than a string variable.
2295         * sunrpc/rpc_main.c (h_output): Likewise.
2296         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2298 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2300         * inet/check_native.c: New file.
2302 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2304         [BZ #13629]
2305         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2306         if larger part has absolute value 1.0.
2307         * math/s_clog10.c (__clog10): Likewise.
2308         * math/s_clog10f.c (__clog10f): Likewise.
2309         * math/s_clog10l.c (__clog10l): Likewise.
2310         * math/s_clogf.c (__clogf): Likewise.
2311         * math/s_clogl.c (__clogl): Likewise.
2312         * math/libm-test.inc (clog_test): Add more tests.
2313         (clog10_test): Likewise.
2314         * sysdeps/i386/fpu/libm-test-ulps: Update.
2315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2317         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2318         (pltexit): Likewise.
2319         (La_regs): Likewise.
2320         (La_retval): Likewise.
2321         (int_retval): Likewise.
2322         Update #error for removed macros to refer only to definitions in
2323         tst-audit.h.
2324         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2325         macro.
2326         (pltexit): Likewise.
2327         (La_regs): Likewise.
2328         (La_retval): Likewise.
2329         (int_retval): Likewise.
2330         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2331         macro.
2332         (pltexit): Likewise.
2333         (La_regs): Likewise.
2334         (La_retval): Likewise.
2335         (int_retval): Likewise.
2336         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2337         macro.
2338         (pltexit): Likewise.
2339         (La_regs): Likewise.
2340         (La_retval): Likewise.
2341         (int_retval): Likewise.
2342         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2343         macro.
2344         (pltexit): Likewise.
2345         (La_regs): Likewise.
2346         (La_retval): Likewise.
2347         (int_retval): Likewise.
2348         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2349         macro.
2350         (pltexit): Likewise.
2351         (La_regs): Likewise.
2352         (La_retval): Likewise.
2353         (int_retval): Likewise.
2354         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2355         macro.
2356         (pltexit): Likewise.
2357         (La_regs): Likewise.
2358         (La_retval): Likewise.
2359         (int_retval): Likewise.
2360         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2361         macro definitions in tst-audit.h.
2362         * sysdeps/i386/tst-audit.h: New file.
2363         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2364         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2365         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2366         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2367         * sysdeps/sh/tst-audit.h: Likewise.
2368         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2369         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2370         * sysdeps/x86_64/tst-audit.h: Likewise.
2372 2012-07-26  Andreas Jaeger  <aj@suse.de>
2374         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2375         ptrace.
2377         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2378         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2379         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2380         PTRACE_O_MASK.
2381         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2382         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2383         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2385         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2386         value.
2388         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2389         _sigsys.
2390         (si_call_addr, si_syscall, si_arch): Define new macro.
2391         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2392         _sigsys.
2393         (si_call_addr, si_syscall, si_arch): Define new marcro.
2394         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2395         _sigsys.
2396         (si_call_addr, si_syscall, si_arch): Define new macro.
2397         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2398         _sigsys.
2399         (si_call_addr, si_syscall, si_arch): Define new macro.
2401 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2403         [BZ #13717]
2404         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2405         Change to 2.4.21 where previously 2.4.1.
2406         * sysdeps/unix/sysv/linux/configure: Regenerated.
2407         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2408         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2409         Linux kernel version.
2410         (__ASSUME_STD_AUXV): Remove.
2411         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2412         kernel version.
2413         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2414         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2415         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2416         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2417         (__ASSUME_NETLINK_SUPPORT): Likewise.
2418         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2419         (__no_netlink_support): Remove conditional definition.
2420         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2421         Remove.
2422         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2423         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2424         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2425         (if_nameindex_ioctl): Remove.
2426         (if_nameindex_netlink): Do not handle __no_netlink_support.
2427         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2428         code.
2429         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2430         Remove conditional code.
2431         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2432         code.
2433         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2434         unconditional.
2435         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2436         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2437         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2438         Remove.
2439         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2440         [!__ASSUME_STD_AUXV]: Remove conditional code.
2441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2442         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2443         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2445         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2446         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2447         code.
2448         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2450         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2451         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2452         conditional code.
2453         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2455         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2456         code.
2457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2458         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2459         conditional code.
2460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2461         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2462         code unconditional.
2463         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2464         conditional code.
2465         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2466         unconditional.
2467         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2468         conditional code.
2469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2470         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2471         unconditional.
2472         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2473         conditional code.
2474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2475         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2476         code unconditional.
2477         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2478         conditional code.
2479         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2480         unconditional.
2481         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2482         conditional code.
2483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2484         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2485         code unconditional.
2486         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2487         conditional code.
2488         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2489         unconditional.
2490         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2491         conditional code.
2493 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2495         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2496         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2497         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2498         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2499         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2500         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2501         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2502         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2503         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2504         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2505         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2506         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2507         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2508         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2509         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2510         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2511         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2512         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2513         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2514         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2515         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2516         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2517         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2519 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2521         * Versions.def: Add GLIBC_2.17.
2522         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2523         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2524         Introduce __libc_secure_getenv.
2525         * stdlib/Versions (2.17): Add secure_getenv
2526         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2527         * stdlib/secure-getenv.c: Rename __secure_getenv to
2528         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2529         symbol __secure_getenv for GLIBC_2.0.
2530         * stdlib/tst-secure-getenv.c: New.
2531         * stdlib/Makefile (tests): Add testcase.
2532         * manual/startup.texi (Environment Access): Document
2533         secure_getenv.
2534         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2535         __libc_secure_getenv.
2536         * inet/ruserpass.c (ruserpass): Likewise.
2537         * malloc/mtrace.c (mtrace): Likewise.
2538         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2539         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2540         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2541         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2542         HAVE_SECURE_GETENV.
2543         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2544         __secure_getenv to __libc_secure_getenv.
2545         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2547         Likewise.
2548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2549         Likewise.
2550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2551         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2552         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2553         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2554         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2555         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2558 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2560         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2561         (struct La_i86_retval): Likewise.
2562         (struct La_x86_64_regs): Likewise.
2563         (struct La_x86_64_retval): Likewise.
2564         (struct La_x32_regs): Likewise.
2565         (struct La_x32_retval): Likewise.
2566         (struct La_ppc32_regs): Likewise.
2567         (struct La_ppc32_retval): Likewise.
2568         (struct La_ppc64_regs): Likewise.
2569         (struct La_ppc64_retval): Likewise.
2570         (struct La_sh_regs): Likewise.
2571         (struct La_sh_retval): Likewise.
2572         (struct La_s390_32_regs): Likewise.
2573         (struct La_s390_32_retval): Likewise.
2574         (struct La_s390_64_regs): Likewise.
2575         (struct La_s390_64_retval): Likewise.
2576         (struct La_sparc32_regs): Likewise.
2577         (struct La_sparc32_retval): Likewise.
2578         (struct La_sparc64_regs): Likewise.
2579         (struct La_sparc64_retval): Likewise.
2580         (struct audit_ifaces): Remove architecture-specific pltenter and
2581         pltexit members.
2582         * sysdeps/i386/ldsodefs.h: New file.
2583         * sysdeps/powerpc/ldsodefs.h: Likewise.
2584         * sysdeps/s390/ldsodefs.h: Likewise.
2585         * sysdeps/sh/ldsodefs.h: Likewise.
2586         * sysdeps/sparc/ldsodefs.h: Likewise.
2587         * sysdeps/x86_64/ldsodefs.h: Likewise.
2589 2012-07-25  Marek Polacek  <polacek@redhat.com>
2591         [BZ #6808]
2592         * math/libm-test.inc (yn_test): Add another test.
2593         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2594         to ERANGE when the result is +-Inf.
2595         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2596         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2597         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2598         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2600 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2602         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2603         equal to 0.
2604         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2605         clock_t.
2606         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2608 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2610         * configure.in <sysdeps resolving>: Correct printing
2611         Implies_before.
2612         * configure: Regenerate.
2614 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2616         * math/w_ilogb.c: Include <limits.h>.
2617         * math/w_ilogbl.c: Likewise.
2619 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2621         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2622         va_copy.  Document allowing for unavailable va_copy only as
2623         pre-C99 compatibility.
2624         * manual/string.texi (Copying and Concatenation): Use va_copy
2625         instead of __va_copy in concat example.
2627 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2629         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2630         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2631         it if not null.
2633         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2634         with O_NOLINK passed to __file_name_lookup.
2636         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2637         with O_NOLINK passed to __file_name_lookup.
2639         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2640         negative N or less than NGIDS.
2642         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2643         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2644         enough.  Use memcpy instead of strncpy.
2646 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2648         * elf/Makefile (check-data): Remove.
2649         (localplt.data): New vpath directive.
2650         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2651         instead of $(check-data).
2652         * scripts/data/localplt-generic.data: Move to ...
2653         * sysdeps/generic/localplt.data: ... here.
2654         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2655         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2656         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2658         ... here.
2659         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2661         ... here.
2662         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2664         ... here.
2665         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2667         ... here.
2668         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2670         ... here.
2671         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2673         ... here.
2675 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2677         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2678         PPC32 and PPC64 files.
2679         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2680         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2682 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2684         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2685         __makecontext_ret to ...
2686         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2687         ... here and call exit if uc_link is NULL.  New file.
2688         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2689         __makecontext_ret.S.
2690         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2691         __makecontext_ret to ...
2692         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2693         ... here and call exit if uc_link is NULL.  New file.
2694         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2695         __makecontext_ret.S.
2697 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2699         * elf/elf.h (R_390_IRELATIVE): New definition.
2700         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2701         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2702         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2703         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2704         (elf_machine_lazy_rel): Likewise.
2705         * sysdeps/s390/dl-irel.h: New file.
2706         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2707         * sysdeps/s390/s390-64/memset.S: New asm code.
2708         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2709         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2710         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2711         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2712         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2713         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2714         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2715         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2716         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2717         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2718         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2719         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2720         * sysdeps/s390/s390-32/memset.S: New asm code.
2721         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2723 2012-07-17  Marek Polacek  <polacek@redhat.com>
2725         [BZ #14349]
2726         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2727         * sysdeps/s390/s390-64/configure.in: Likewise.
2728         * sysdeps/sparc/configure.in: Likewise.
2729         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2730         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2731         * sysdeps/i386/configure.in: Likewise.
2732         * sysdeps/x86_64/configure.in: Likewise.
2733         * sysdeps/sh/configure.in: Likewise.
2734         * sysdeps/s390/s390-32/configure: Regenerated.
2735         * sysdeps/s390/s390-64/configure: Likewise.
2736         * sysdeps/x86_64/configure: Likewise.
2737         * sysdeps/sh/configure: Likewise.
2738         * sysdeps/powerpc/powerpc64/configure: Likewise.
2739         * sysdeps/powerpc/powerpc32/configure: Likewise.
2740         * sysdeps/sparc/configure: Likwise.
2741         * sysdeps/i386/configure: Likewise.
2743         * elf/dl-open.c: Comment fixes.
2745 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2747         * Makefile [CXX] (check-data): Remove.
2748         [CXX] (c++-types.data): New vpath directive.
2749         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2750         vpath.  Do not allow for C++ type data being missing.
2751         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2752         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2753         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2754         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2755         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2756         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2757         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2759         ... here.
2760         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2762         ... here.
2763         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2765         ... here.
2766         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2767         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2768         ... here.
2769         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2770         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2771         ... here.
2772         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2773         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2774         ... here.
2775         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2776         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2777         ... here.
2778         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2779         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2781         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2782         definitions to architecture-specific files.
2783         (TLS_IE): Likewise.
2784         (TLS_LD): Likewise.
2785         (TLS_GD): Likewise.
2786         * sysdeps/i386/tls-macros.h: New file.
2787         * sysdeps/powerpc/tls-macros.h: Likewise.
2788         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2789         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2790         * sysdeps/sh/tls-macros.h: Likewise.
2791         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2792         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2793         * sysdeps/x86_64/tls-macros.h: Likewise.
2795 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2797         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2798         zero value for regular exit case.
2800         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2801         (__start_context): Preserve zero value for regular exit case.
2803 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2804             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2806         * manual/setjmp.texi (setcontext): Clarify normal process
2807         termination when uc_link is the null pointer.
2808         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2809         exit call.
2811 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2813         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2814         preprocessor.  Test for each exception mask separately.
2816 2012-07-16  Andreas Jaeger  <aj@suse.de>
2818         * po/ru.po: Update from translation team.
2820 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2822         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2823         equal to 0.
2824         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2825         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2826         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2827         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2828         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2830 2012-07-13  Andreas Jaeger  <aj@suse.de>
2832         * po/fr.po: Update from translation team.
2834 2012-07-12  Marek Polacek  <polacek@redhat.com>
2836         [BZ #14173]
2837         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2838         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2839         loop condition.
2841 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2843         [BZ #13717]
2844         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2845         Change to 2.4.1 where previously 2.4.0.
2846         * sysdeps/unix/sysv/linux/configure: Regenerated.
2847         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2848         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2849         version.
2850         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2851         (__ASSUME_AT_CLKTCK): Remove.
2852         (__ASSUME_AT_PAGESIZE): Likewise.
2853         (__ASSUME_AT_XID): Likewise.
2854         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2855         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2856         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2857         unconditionally.
2858         (HAVE_AUX_PAGESIZE): Likewise.
2859         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2860         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2861         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2863 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2865         [BZ #14307]
2866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2867         the temporary buffer used to invoke __gethostbyname2_r,
2868         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2869         host_data / struct gaih_addrtuple.
2870         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2871         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2872         header file nss/nsswitch.h.
2873         * nss/nsswitch.h (global scope): Add definition of implementation
2874         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2875         resolv/nss_dns/dns-host.c).
2877 2012-07-11  Andreas Jaeger  <aj@suse.de>
2879         * po/fr.po: Update from translation team.
2881         * po/sv.po: Update from translation team
2882         * po/fr.po: Another update from translation team.
2884 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2886         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2887         for subnormals or multiply small sinh result by itself.
2888         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2889         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2891 2012-07-11  David S. Miller  <davem@davemloft.net>
2893         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2895 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2897         [BZ #14347]
2898         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2899         (INTERNAL_MARK): Shift it here.
2901 2012-07-10  Marek Polacek  <polacek@redhat.com>
2903         [BZ #14151]
2904         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2905         libc_cv_asm_global_directive with .globl.
2906         * configure: Regenerated.
2907         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2908         with .globl.
2909         * sysdeps/i386/configure: Regenerated.
2910         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2911         with .globl.
2912         * sysdeps/x86_64/configure: Regenerated.
2913         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2914         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2915         * elf/tst-unique2mod2.c: Likewise.
2916         * elf/tst-unique2mod1.c: Likewise.
2917         * elf/tst-unique1mod2.c: Likewise.
2918         * elf/tst-unique1mod1.c: Likewise.
2919         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2920         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2921         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2922         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2923         * sysdeps/mach/sysdep.h: Likewise.
2924         * sysdeps/i386/sysdep.h: Likewise.
2925         * sysdeps/i386/i386-mcount.S: Likewise.
2926         * sysdeps/x86_64/_mcount.S: Likewise.
2927         * sysdeps/x86_64/sysdep.h: Likewise.
2928         * sysdeps/sh/_mcount.S: Likewise.
2929         * sysdeps/sh/sysdep.h: Likewise.
2930         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2931         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2932         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2933         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2934         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2935         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2936         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2937         * locale/localeinfo.h: Likewise.
2938         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2939         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2941 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2943         [BZ #14336]
2944         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2945         system".
2946         * manual/message.texi (The Uniforum approach): Likewise.
2947         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2948         (glibc iconv Implementation): Likewise.
2950 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2952         [BZ #14337]
2953         * math/s_clog.c (__clog): Avoid scaling a value down where that
2954         could result in underflow.
2955         * math/s_clog10.c (__clog10): Likewise.
2956         * math/s_clog10f.c (__clog10f): Likewise.
2957         * math/s_clog10l.c (__clog10l): Likewise.
2958         * math/s_clogf.c (__clogf): Likewise.
2959         * math/s_clogl.c (__clogl): Likewise.
2960         * math/libm-test.inc (clog_test): Add more tests.
2961         (clog10_test): Likewise.
2962         * sysdeps/i386/fpu/libm-test-ulps: Update.
2963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2965 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2967         [BZ #14283]
2968         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2969         by 7 not 8 to examine high bit of fractional part.
2971         [BZ #14042]
2972         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2973         for call to __mcount_internal.
2974         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2975         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2976         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2978 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2980         [BZ #14154]
2981         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2982         approximation for values within 0x1p-13f of an odd multiple of
2983         pi/4.
2984         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2985         exception.  Add more tests.
2986         * sysdeps/i386/fpu/libm-test-ulps: Update.
2988         [BZ #6778]
2989         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2990         inputs and return -1 for them.  Do not check for +Inf in case not
2991         reachable for +Inf.
2992         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2993         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2994         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2995         and return -1 for them.  Do not check for +Inf in case not
2996         reachable for +Inf.
2997         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2998         define.
2999         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3000         and return -1 for them.  Do not check for +Inf in case not
3001         reachable for +Inf.
3002         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3003         spurious underflow.
3004         * sysdeps/i386/fpu/libm-test-ulps: Update.
3005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3007 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3009         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3011 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3013         [BZ #14157]
3014         [BZ #14331]
3015         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3016         could result in spurious underflow.  Scale down values above
3017         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3018         * math/s_csqrtf.c (__csqrtf): Likewise.
3019         * math/s_csqrtl.c (__csqrtl): Likewise.
3020         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3021         spurious underflow.
3022         * sysdeps/i386/fpu/libm-test-ulps: Update.
3023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3025 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3027         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3028         xopen-msg.sed.
3029         * catgets/xopen-msg.awk: New file.
3030         * catgets/xopen-msg.sed: Removed.
3032         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3033         po2text.sed.
3034         * intl/po2test.awk: New file.
3035         * intl/po2test.sed: Removed.
3037 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3039         [BZ #14328]
3040         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3041         or multiply small sinh result by itself.
3042         * math/s_ctanf.c (__ctanf): Likewise.
3043         * math/s_ctanh.c (__ctanh): Likewise.
3044         * math/s_ctanhf.c (__ctanhf): Likewise.
3045         * math/s_ctanhl.c (__ctanhl): Likewise.
3046         * math/s_ctanl.c (__ctanl): Likewise.
3047         * math/libm-test.inc (ctan_test_tonearest): New function.
3048         (ctan_test_towardzero): Likewise.
3049         (ctan_test_downward): Likewise.
3050         (ctan_test_upward): Likewise.
3051         (ctanh_test_tonearest): Likewise.
3052         (ctanh_test_towardzero): Likewise.
3053         (ctanh_test_downward): Likewise.
3054         (ctanh_test_upward): Likewise.
3055         (main): Call these new functions.
3056         * sysdeps/i386/fpu/libm-test-ulps: Update.
3057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3059 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3061         * .gitignore: Delete /ports entry.
3063 2012-07-03  Andreas Jaeger  <aj@suse.de>
3065         * po/bg.po: Update from translation team.
3066         * po/cs.po: Likewise.
3067         * po/de.po: Likewise.
3068         * po/hr.po: Likewise.
3069         * po/nl.pl: Likewise.
3070         * po/pl.po: Likewise.
3071         * po/vi.po: Likewise.
3073 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3075         * Makeconfig [!+link] (+link-before-libc): New variable.
3076         [!+link] (+link-after-libc): Likewise.
3077         [!+link] (+link-tests): Likewise.
3078         [!+link] (+link): Define in terms of $(+link-before-libc) and
3079         $(+link-after-libc).
3080         [!+link-static] (+link-static-before-libc): New variable.
3081         [!+link-static] (+link-static-after-libc): Likewise.
3082         [!+link-static] (+link-static-tests): Likewise.
3083         [!+link-static] (+link-static): Define in terms of
3084         $(+link-static-before-libc) and $(+link-static-after-libc).
3085         [build-shared] (link-libc-before-gnulib): New variable.
3086         [build-shared] (link-libc-tests): Likewise.
3087         [build-shared] (link-libc): Define in terms of
3088         $(link-libc-before-gnulib).
3089         [!build-shared] (link-libc-tests): New variable.
3090         (link-libc-static-tests): New variable.
3091         [!gnulib] (gnulib-arch): New variable.
3092         [!gnulib] (gnulib-tests): Likewise.
3093         [!gnulib] (static-gnulib-arch): Likewise.
3094         [!gnulib] (static-gnulib-tests): Likewise.
3095         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3096         Define with "=" instead of ":=".
3097         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3098         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3099         * Rules (binaries-all-notests): New variable.
3100         (binaries-all-tests): Likewise.
3101         (binaries-static-notests): Likewise.
3102         (binaries-static-tests): Likewise.
3103         (binaries-all): Define using $(binaries-all-notests) and
3104         $(binaries-all-tests).
3105         (binaries-static): Define using $(binaries-static-notests) and
3106         $(binaries-static-tests).
3107         (binaries-shared-tests): New variable.
3108         (binaries-shared-notests): Likewise.
3109         (binaries-shared): Remove variable.
3110         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3111         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3112         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3113         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3114         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3115         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3116         * elf/Makefile (sln-modules): New variable.
3117         (extra-objs): Add $(sln-modules:=.o).
3118         (ldconfig-modules): Add static-stubs.
3119         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3120         * elf/static-stubs.c: New file.
3122         [BZ #14283]
3123         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3124         by 7 not 8 to examine high bit of fractional part.  Use volatile
3125         variables when splitting into final array of floats if
3126         __FLT_EVAL_METHOD__ != 0.
3127         * math/libm-test.inc (cos_test): Add another test.
3128         (sin_test): Likewise.
3129         * sysdeps/i386/fpu/libm-test-ulps: Update.
3131         [BZ #14273]
3132         * math/libm-test.inc (cosh_test): Add more tests.
3134         * version.h (RELEASE): Set to "development".
3135         (VERSION): Set to "2.16.90".
3137 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3139         * NEWS: Update copyright. Remove last-updated date.
3140         Mention math library bug fixes and timezone data changes.
3141         * README: Mention GNU/Hurd, x32, and HPPA support status.
3143 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3145         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3147 2012-06-27  Andreas Jaeger  <aj@suse.de>
3149         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3151 2012-06-25  Andreas Jaeger  <aj@suse.de>
3153         * sysdeps/s390/fpu/libm-test-ulps: Update.
3155 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3156             Thomas Schwinge  <thomas@codesourcery.com>
3158         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3159         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3160         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3161         fanotify_mark.
3163 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3165         * sysdeps/mach/start.c: Remove file.
3166         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3167         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3168         * sysdeps/sh/init-first.c: Likewise.
3170         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3171         registers for frame unwinding purposes, add CFI directives.
3172         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3173         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3174         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3175         Likewise.
3177         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3178         __fortify_fail returning.
3179         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3181         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3182         sysdeps/sh/____longjmp_chk.S.
3183         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3184         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3185         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3186         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3188         * sysdeps/sh/abort-instr.h: New file.
3189         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3190         process in case exit returns.
3192         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3193         initialize the GOT register before use.
3195         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3196         calculation of ARGC > 4.
3198         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3199         meaningful names to some local labels.
3201 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3202             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3204         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3205         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3206         (__arch_compare_and_exchange_val_16_acq): Likewise.
3207         (__arch_compare_and_exchange_val_32_acq): Likewise.
3208         (atomic_exchange_and_add): Fix gUSA sequence.
3209         (atomic_add): Likewise.
3210         (atomic_add_negative): Likewise.
3211         (atomic_add_zero): Likewise.
3212         (atomic_bit_test_set): Likewise.
3214 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3216         [BZ #13579]
3217         * include/link.h (struct link_map): Add l_free_initfini.
3218         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3219         l_initfini.
3220         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3221         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3222         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3223         set.
3225 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3227         * configure.in: Use AC_LANG_SOURCE.
3228         * configure: Regenerate.
3230 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3232         * configure.in (libc_cv_localstatedir): New substituted variable.
3233         * configure: Regenerated.
3234         * config.make.in (localstatedir): New variable, substituted from
3235         libc_cv_localstatedir.
3236         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3237         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3238         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3239         * sysdeps/gnu/configure: Regenerated.
3241 2012-06-21  Jeff Law  <law@redhat.com>
3243         [BZ #14277]
3244         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3245         free.  Simplify list management for _LIBC case.
3247 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3249         [BZ #14273]
3250         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3251         Clear sign bit of 64-bit integer value before comparing against
3252         overflow value.
3254         * sysdeps/mach/configure: Regenerated.
3256 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3258         [BZ #14278]
3259         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3261 2012-06-21  Jeff Law  <law@redhat.com>
3263         [BZ #13882]
3264         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3265         uint16_t for elements in the "seen" array to avoid char overflows.
3266         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3267         * elf/dl-open.c (dl_open_worker): Likewise.
3269 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3271         * scripts/list-sources.sh: Scan PORTS for translations.
3272         * po/libc.pot: Regenerated.
3274 2012-06-21  Andreas Jaeger  <aj@suse.de>
3276         [BZ #12194]
3277         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3278         warning.
3279         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3280         * bits/byteswap-16.h (__bswap_16): Likewise.
3281         * bits/byteswap.h (__bswap_constant_16): Likewise.
3283 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3285         [BZ #14117]
3286         * sysdeps/i386/fpu_control.h: Removed.
3287         * sysdeps/x86_64/fpu_control.h: Moved to ...
3288         * sysdeps/x86/fpu_control.h: Here.
3290         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3291         (_FPU_SETCW): Likewise.
3293 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3295         [BZ #14117]
3296         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3297         * sysdeps/x86/fpu/bits/mathinline.h: This.
3298         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3300         [BZ #14050]
3301         [BZ #14117]
3302         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3303         functions if __x86_64__ is defined.
3305 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3307         * string/endian.h: Add !__ASSEMBLER__ condition for including
3308         conversion interfaces.
3310 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3312         [BZ #14241]
3313         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3314         of ABS(x) in calculating zero to negative powers other than odd
3315         integers.
3316         * math/libm-test.inc (pow_test): Add more tests.
3318 2012-06-15  Andreas Jaeger  <aj@suse.de>
3320         * manual/contrib.texi (Contributors): Update entry of Liubov
3321         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3322         Machado Filho.
3324 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3326         * string/string.h: Add __wur to GNU version of strerror_r.
3328 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3330         [BZ #14229]
3331         * string/Makefile (tests): Add tst-strtok_r.
3332         * string/tst-strtok_r.c: New file.
3333         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3334         RAX_LP/RDX_LP on SAVE_PTR.
3336 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3338         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3340 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3342         * libm_test.inc (csqrt_test): Allow more spurious underflow
3343         exceptions.
3344         (j0_test): Likewise.
3345         (j1_test): Likewise.
3346         (y0_test): Likewise.
3347         (y1_test): Likewise.
3349 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3351         * po/Makefile (libc.pot): Use UTF-8 charset.
3353 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3355         [BZ #14210]
3356         Suppress sign-conversion warning from FD_SET.
3357         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3358         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3359         not unsigned long int.
3360         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3362 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3364         [BZ #14050]
3365         [BZ #14117]
3366         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3367         __extern_always_inline instead of __extern_inline.
3368         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3369         (__signbit): Likewise.
3370         (__signbitl): Support C++ namespace.
3371         (lrintf): New inline function.
3372         (lrint): Likewise.
3373         (llrintf): Likewise.
3374         (llrint): Likewise.
3375         (fmaxf): Likewise.
3376         (fmax): Likewise.
3377         (fminf): Likewise.
3378         (fmin): Likewise.
3379         (rint): Likewise.
3380         (rintf): Likewise.
3381         (ceil): Likewise.
3382         (ceilf): Likewise.
3383         (floor): Likewise.
3384         (floorf): Likewise.
3385         (nearbyint): Likewise.
3386         (nearbyintf): Likewise.
3388 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3390         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3391         non-default versions.
3393 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3395         [BZ #14218]
3396         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3398 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3400         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3401         (FE_UPWARD, FE_DOWNWARD): Don't define.
3402         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3403         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3405         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3406         reading it.
3407         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3408         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3410 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3412         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3413         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3414         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3415         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3417 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3419         [BZ #14117]
3420         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3421         * sysdeps/i386/fpu/Implies: New file.
3422         * sysdeps/x86_64/fpu/Implies: Likewise.
3423         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3424         * sysdeps/x86/fpu/bits/fenv.h: This.
3426         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3427         __SSE_MATH__.
3429 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3431         [BZ #14134]
3432         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3433         character 0xffff that matches the last element of the
3434         conversion table.
3436 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3438         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3439         fmodl commit.
3441 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3443         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3444         values higher than 25.6283.
3446 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3448         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3449         subnormal exponent extraction and add some __builtin_expect.
3450         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3451         Fix for subnormal mantissa calculation.
3453 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3455         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3456         cpu2 is -1 and errno is not ENOSYS.
3458 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3460         [BZ #14117]
3461         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3462         * sysdeps/x86/bits/string.h: This.
3463         * sysdeps/x86_64/bits/string.h: Removed.
3465         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3466         if not compiling for x86-64, but compiling for >= i486.
3468         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3469         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3471         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3472         New macro from Linux kernel 3.4.0.
3473         (FP_XSTATE_MAGIC2): Likewise.
3474         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3475         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3476         (struct _fpx_sw_bytes): New struct.
3477         (struct _xsave_hdr): Likewise.
3478         (struct _ymmh_state): Likewise.
3479         (struct _xstate): Likewise.
3481         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3482         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3483         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3484         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3485         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3486         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3488         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3489         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3490         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3491         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3492         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3493         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3495 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3497         [BZ #13743]
3498         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3499         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3500         (sysdep_headers): Include sys/platform/ppc.h.
3501         * sysdeps/powerpc/test-gettimebase.c: Test for
3502         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3503         * manual/Makefile (appendices): Include platform.texi.
3504         * manual/contrib.texi (Contributors): Update @node pointers.
3505         * manual/maint.texi (Maintenance): Likewise.
3506         (Platform): New node.
3507         * manual/platform.texi: New file.  Document the new features.
3509 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3510             Jakub Jelinek  <jakub@redhat.com>
3512         [BZ #14188]
3513         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3514         where __builtin_expect is unavailable.
3516 2012-06-03  David S. Miller  <davem@davemloft.net>
3518         * stdlib/longlong.h: Updated from GCC.
3520 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3522         [BZ #14042]
3523         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3524         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3525         __mcount_internal.
3526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3527         (GLIBC_2.16): Likewise.
3529 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3531         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3533 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3536         (default-abi): New variable.
3537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3538         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3539         variable.
3540         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3541         Likewise.
3542         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3543         Likewise.
3544         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3545         Likewise.
3547         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3548         definition.  Document in comment.
3550 2012-06-01  David S. Miller  <davem@davemloft.net>
3552         * stdlib/longlong.h: Updated from GCC.
3554 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3556         [BZ #14117]
3557         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3558         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3559         sys/debugreg.h sys/io.h here.
3560         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3561         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3562         sys/io.h.
3563         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3564         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3565         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3566         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3567         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3568         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3570         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3571         Define only if __x86_64__ is defined.
3573 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3575         [BZ #14048]
3576         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3577         Use int64_t for variable i.
3578         * math/libm-test.inc (fmod_test): Add more tests.
3580         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3581         z computation is not scheduled after fetestexcept.
3582         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3583         Use math_force_eval instead of asm to ensure calculation scheduled
3584         before exception test.
3585         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3586         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3588 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3590         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3591         computation is not scheduled after fetestexcept.
3593 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3595         [BZ #14117]
3596         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3597         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3599 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3601         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3602         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3604 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3606         [BZ #14117]
3607         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3608         <bits/wordsize.h>.
3609         (__WCHAR_MIN): Support __WORDSIZE == 64.
3610         (__WCHAR_MAX): Likewise.
3612         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3613         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3615         [BZ #14183]
3616         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3617         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3619         [BZ #14117]
3620         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3621         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3623         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3624         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3626         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3627         Defined to 1 if __x86_64__ isn't defined.
3628         (_STAT_VER_LINUX_OLD): New.
3629         (st_atime): Remove duplicate.
3630         (st_mtime): Likewise.
3631         (st_ctime): Likewise.
3633 2012-05-31  David S. Miller  <davem@davemloft.net>
3635         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3636         entries.
3638 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3640         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3641         gen-libm-test.pl.
3643         [BZ #14132]
3644         * elf/dl-reloc.c: Include <_itoa.h>.
3645         (_dl_reloc_bad_type): Remove use of INTUSE.
3646         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3647         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3648         * stdio-common/psiginfo.c (psiginfo): Likewise.
3649         * stdio-common/psignal.c (psignal): Likewise.
3650         * string/strsignal.c (strsignal): Likewise.
3651         * include/signal.h (_sys_siglist): Declare hidden proto.
3652         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3653         INTVARDEF with libc_hidden_data_def.
3654         * stdio-common/itoa-udigits.c: Likewise.
3655         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3656         (_itoa_lower_digits_internal): Remove declaration.
3657         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3658         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3659         (_sys_sigabbrev_internal): Remove aliases.
3660         (_sys_siglist): Define hidden alias.
3662 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3664         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3665         bits/sysctl.h.
3667 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3669         [BZ #14117]
3670         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3671         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3673         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3674         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3675         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3676         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3677         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3678         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3680         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3681         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3682         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3684         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3685         with __addr.
3686         (insw): Likewise.
3687         (insl): Likewise.
3688         (outsb): Likewise.
3689         (outsw): Likewise.
3690         (outsl): Likewise.
3692         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3693         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3694         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3696         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3697         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3698         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3699         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3700         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3701         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3703         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3704         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3706         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3707         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3709         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3711         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3713         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3714         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3715         to ...
3716         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3718         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3719         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3720         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3722         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3723         for x86-64.
3724         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3726 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3728         * math/math.h (M_El): Use two more decimal places.
3729         (M_LOG2El): Likewise.
3730         (M_LOG10El): Likewise.
3731         (M_LN2l): Likewise.
3732         (M_LN10l): Likewise.
3733         (M_PIl): Likewise.
3734         (M_PI_2l): Likewise.
3735         (M_PI_4l): Likewise.
3736         (M_1_PIl): Likewise.
3737         (M_2_PIl): Likewise.
3738         (M_2_SQRTPIl): Likewise.
3739         (M_SQRT2l): Likewise.
3740         (M_SQRT1_2l): Likewise.
3742 2012-05-31  David S. Miller  <davem@davemloft.net>
3744         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3745         values between float registers.
3746         * sysdeps/sparc/sparc64/memset.S: Likewise.
3747         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3749 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3751         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3752         -D_FORTIFY_SOURCE=1.
3753         (CPPFLAGS-tst-longjmp_chk.c): Define.
3754         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3755         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3756         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3757         CFLAGS-tst-wchar-h.c.
3759 2012-05-31  Marek Polacek  <polacek@redhat.com>
3761         [BZ #14132]
3762         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3763         __endmntent_internal): Remove declaration.
3764         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3765         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3766         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3768 2012-05-30  David S. Miller  <davem@davemloft.net>
3770         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3771         (___Q_simulate_exceptions): Use real FP ops rather than writing
3772         into the %fsr.
3773         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3774         Likewise.
3776 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3778         [BZ #14117]
3779         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3780         * sysdeps/x86/bits/xtitypes.h: This.
3782         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3783         * sysdeps/x86/bits/wordsize.h: This.
3785         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3786         * sysdeps/x86/bits/huge_vall.h: This.
3788         * sysdeps/i386/bits/select.h: Removed.
3789         * sysdeps/x86_64/bits/select.h: Renamed to ...
3790         * sysdeps/x86/bits/select.h: This.
3792         * sysdeps/i386/bits/setjmp.h: Removed.
3793         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3794         * sysdeps/x86/bits/setjmp.h: This.
3796         * sysdeps/i386/bits/mathdef.h: Removed.
3797         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3798         * sysdeps/x86/bits/mathdef.h: This.
3800 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3802         [BZ #14132]
3803         * include/sys/socket.h (__connect_internal)
3804         (__libc_sa_len_internal): Remove declaration.
3805         (__connect, __libc_sa_len): Declare hidden_proto.
3806         (SA_LEN): Remove use of INTUSE.
3807         * socket/connect.c: Add libc_hidden_def.
3808         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3809         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3810         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3811         alias.
3812         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3813         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3814         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3815         of adding _internal alias.
3817 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3819         [BZ #14117]
3820         * sysdeps/i386/bits/link.h: Removed.
3821         * sysdeps/i386/bits/linkmap.h: Likewise.
3822         * sysdeps/x86_64/bits/link.h: Renamed to ...
3823         * sysdeps/x86/bits/link.h: This.
3824         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3825         * sysdeps/x86/bits/linkmap.h: This.
3827         * sysdeps/i386/bits/endian.h: Removed.
3828         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3829         * sysdeps/x86/bits/endian.h: This.
3831         * sysdeps/i386/bits/byteswap.h: Removed.
3832         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3833         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3834         * sysdeps/x86/bits/byteswap.h: This.
3835         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3836         * sysdeps/x86/bits/byteswap-16.h: This.
3837         * sysdeps/i386/Implies: Add x86.
3838         * sysdeps/x86_64/Implies: Likewise.
3840 2012-05-30  David S. Miller  <davem@davemloft.net>
3842         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3843         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3844         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3845         (FP_TRAPPING_EXCEPTIONS): Define.
3846         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3847         (FP_TRAPPING_EXCEPTIONS): Define.
3848         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3849         subnormals only when inexact has been signalled or underflow
3850         exceptions are enabled.
3851         (_FP_PACK_CANONICAL): Likewise.
3853 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3855         [BZ #14183]
3856         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3857         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3859 2012-05-30  Richard Henderson  <rth@twiddle.net>
3861         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3862         with #ifndef NOT_IN_libc.
3864         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3865         marked to avoid plt entry.
3867 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3869         [BZ #14112]
3870         * Makeconfig (default-abi): New macro.
3871         (abi-includes): Likewise.
3872         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3873         $(abi-$(default-abi)-lib-soname) for soname if defined.
3874         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3875         abi-variants.
3876         * Makefile (installed-stubs): Likewise.
3877         * include/stubs-biarch.h: Removed.
3878         * scripts/lib-names.awk: Only handle one library at a time.
3879         * scripts/soversions.awk: Remove WORDSIZE support.
3880         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3881         entries.
3882         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3883         Removed.
3884         (syscall-list-default-condition): Likewise.
3885         (syscall-list-default-condition): Likewise.
3886         (syscall-list-includes): Likewise.
3887         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3888         syscall-list-* with abi-*.  Handle undefined abi-variants.
3889         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3890         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3891         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3892         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3893         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3894         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3895         Removed.
3896         (syscall-list-32-options): Likewise.
3897         (syscall-list-32-condition): Likewise.
3898         (syscall-list-64-options): Likewise.
3899         (syscall-list-64-condition): Likewise.
3900         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3901         macro.
3902         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3903         Renamed to ...
3904         (abi-*): This.
3905         (abi-64-ld-soname): New macro.
3906         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3907         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3908         Renamed to ...
3909         (abi-*): This.
3910         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3911         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3913 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3915         * sysdeps/unix/sysv/linux/kernel-features.h
3916         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3917         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3918         include <kernel-features.h>.
3919         [!__NR_ftruncate64]: Remove conditional code.
3920         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3921         [__NR_ftruncate64]: Make code unconditional.
3922         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3923         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3924         include <kernel-features.h>.
3925         [!__NR_ftruncate64]: Remove conditional code.
3926         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3927         [__NR_ftruncate64]: Make code unconditional.
3928         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3930         include <kernel-features.h>.
3931         [!__NR_ftruncate64]: Remove conditional code.
3932         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3933         [__NR_ftruncate64]: Make code unconditional.
3934         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3936         include <kernel-features.h>.
3937         [!__NR_ftruncate64]: Remove conditional code.
3938         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3939         [__NR_ftruncate64]: Make code unconditional.
3940         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3942         * configure.in (libc_cv_fpie): Weaken to a compile test using
3943         LIBC_TRY_CC_OPTION.
3944         * configure: Regenerated.
3946 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3948         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3949         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3950         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3951         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3952         Refreshed.
3953         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3954         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3956         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3958         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3959         Refreshed.
3961 2012-05-27  David S. Miller  <davem@davemloft.net>
3963         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3964         (___Q_zero): New.
3965         (__Q_simulate_exceptions): Return void.  Change to simulate
3966         exceptions by writing into the %fsr.
3967         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3968         (__Qp_handle_exceptions): Likewise.
3969         (numbers): Delete.
3970         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3971         __Qp_handle_exceptions.
3972         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3973         __Qp_handle_exceptions.
3974         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3975         as unused and give dummy FP_RND_NEAREST initializer.
3976         (FP_INHIBIT_RESULTS): Define.
3977         (___Q_simulate_exceptions): Update declaration.
3978         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3979         formatting.
3980         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3981         as unused and give dummy FP_RND_NEAREST initializer.
3982         (__Qp_handle_exceptions): Update declaration.
3983         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3984         formatting.
3986 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3988         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3989         the temporary FPU control word.
3990         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3991         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3992         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3993         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3994         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3995         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3996         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3997         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3998         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3999         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4000         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4002 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4004         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4005         fields.
4007 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4009         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4010         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4011         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4012         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4013         Likewise.
4014         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4015         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4016         Likewise.
4018 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4020         * po/h.po: Update from translation team.
4022 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4024         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4026         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4027         handling of denormals.
4028         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4029         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4030         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4031         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4032         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4033         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4034         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4035         Likewise.
4037 2012-05-26  Marek Polacek  <polacek@redhat.com>
4039         [BZ #14152]
4040         * math/libm-test.inc (fma_test): Don't always expect underflow
4041         exception.
4043 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4045         [BZ #12416]
4046         * elf/tst-execstack.c: Include stackinfo.h.
4047         (do_test): Adjust test case to ensure that pthread_getattr_np
4048         behaviour remains the same after marking stack executable.
4050 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4052         * sysdeps/unix/sysv/linux/kernel-features.h
4053         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4054         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4055         kernel-features.h.
4056         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4057         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4058         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4059         kernel-features.h.
4060         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4061         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4063 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4065         * configure.in: Define the default includes to being none.
4066         * configure: Regenerated.
4068 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4070         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4071         * sysdeps/x86_64/setjmp.S: Likewise.
4072         * sysdeps/i386/bsd-setjmp.S: Likewise.
4073         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4074         * sysdeps/i386/setjmp.S: Likewise.
4075         * sysdeps/i386/__longjmp.S: Likewise.
4076         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4077         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4079         * include/stap-probe.h: New file.
4080         * configure.in: Handle --enable-systemtap.
4081         * configure: Regenerated.
4082         * config.h.in (USE_STAP_PROBE): New #undef.
4083         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4084         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4085         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4087 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4089         [BZ #13717]
4090         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4091         to 2.4.0 where earlier.
4092         * sysdeps/unix/sysv/linux/configure: Regenerated.
4093         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4094         <kernel-features.h>.
4095         [__ASSUME_32BITUIDS]: Make code unconditional.
4096         [!__ASSUME_32BITUIDS]: Remove conditional code.
4097         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4098         <kernel-features.h>.
4099         [__ASSUME_32BITUIDS]: Make code unconditional.
4100         [!__ASSUME_32BITUIDS]: Remove conditional code.
4101         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4102         [__ASSUME_32BITUIDS]: Make code unconditional.
4103         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4104         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4105         <kernel-features.h>.
4106         [__ASSUME_32BITUIDS]: Make code unconditional.
4107         [!__ASSUME_32BITUIDS]: Remove conditional code.
4108         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4109         <kernel-features.h>.
4110         [__ASSUME_32BITUIDS]: Make code unconditional.
4111         [!__ASSUME_32BITUIDS]: Remove conditional code.
4112         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4113         <kernel-features.h>.
4114         [__ASSUME_32BITUIDS]: Make code unconditional.
4115         [!__ASSUME_32BITUIDS]: Remove conditional code.
4116         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4117         <kernel-features.h>.
4118         [__ASSUME_32BITUIDS]: Make code unconditional.
4119         [!__ASSUME_32BITUIDS]: Remove conditional code.
4120         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4121         <kernel-features.h>.
4122         [__ASSUME_32BITUIDS]: Make code unconditional.
4123         [!__ASSUME_32BITUIDS]: Remove conditional code.
4124         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4125         <kernel-features.h>.
4126         [__ASSUME_32BITUIDS]: Make code unconditional.
4127         [!__ASSUME_32BITUIDS]: Remove conditional code.
4128         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4129         <kernel-features.h>.
4130         [__ASSUME_32BITUIDS]: Make code unconditional.
4131         [!__ASSUME_32BITUIDS]: Remove conditional code.
4132         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4133         <kernel-features.h>.
4134         [__ASSUME_32BITUIDS]: Make code unconditional.
4135         [!__ASSUME_32BITUIDS]: Remove conditional code.
4136         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4137         <kernel-features.h>.
4138         [__ASSUME_32BITUIDS]: Make code unconditional.
4139         [!__ASSUME_32BITUIDS]: Remove conditional code.
4140         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4141         <kernel-features.h>.
4142         [__ASSUME_32BITUIDS]: Make code unconditional.
4143         [!__ASSUME_32BITUIDS]: Remove conditional code.
4144         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4145         <kernel-features.h>.
4146         [__NR_setresgid] (__setresgid): Do not declare.
4147         [__ASSUME_32BITUIDS]: Make code unconditional.
4148         [!__ASSUME_32BITUIDS]: Remove conditional code.
4149         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4150         <kernel-features.h>.
4151         [__NR_setresuid] (__setresuid): Do not declare.
4152         [__ASSUME_32BITUIDS]: Make code unconditional.
4153         [!__ASSUME_32BITUIDS]: Remove conditional code.
4154         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4155         <kernel-features.h>.
4156         [__ASSUME_32BITUIDS]: Make code unconditional.
4157         [!__ASSUME_32BITUIDS]: Remove conditional code.
4158         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4159         <kernel-features.h>.
4160         [__ASSUME_32BITUIDS]: Make code unconditional.
4161         [!__ASSUME_32BITUIDS]: Remove conditional code.
4162         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4163         <kernel-features.h>.
4164         [__ASSUME_32BITUIDS]: Make code unconditional.
4165         [!__ASSUME_32BITUIDS]: Remove conditional code.
4166         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4167         <kernel-features.h>.
4168         [__ASSUME_32BITUIDS]: Make code unconditional.
4169         [!__ASSUME_32BITUIDS]: Remove conditional code.
4170         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4171         <kernel-features.h>.
4172         [__ASSUME_32BITUIDS]: Make code unconditional.
4173         [!__ASSUME_32BITUIDS]: Remove conditional code.
4174         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4175         <kernel-features.h>.
4176         [__ASSUME_32BITUIDS]: Make code unconditional.
4177         [!__ASSUME_32BITUIDS]: Remove conditional code.
4178         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4179         <kernel-features.h>.
4180         [__ASSUME_32BITUIDS]: Make code unconditional.
4181         [!__ASSUME_32BITUIDS]: Remove conditional code.
4182         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4183         <kernel-features.h>.
4184         [__ASSUME_32BITUIDS]: Make code unconditional.
4185         [!__ASSUME_32BITUIDS]: Remove conditional code.
4186         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4187         <kernel-features.h>.
4188         [__ASSUME_32BITUIDS]: Make code unconditional.
4189         [!__ASSUME_32BITUIDS]: Remove conditional code.
4190         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4191         <kernel-features.h>.
4192         [__ASSUME_32BITUIDS]: Make code unconditional.
4193         [!__ASSUME_32BITUIDS]: Remove conditional code.
4194         * sysdeps/unix/sysv/linux/kernel-features.h
4195         (__ASSUME_SETRESUID_SYSCALL): Remove.
4196         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4197         (__ASSUME_32BITUIDS): Likewise.
4198         (__ASSUME_LDT_WORKS): Likewise.
4199         (__ASSUME_O_DIRECTORY): Likewise.
4200         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4201         architecture but not kernel version.
4202         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4203         (__ASSUME_MMAP2_SYSCALL): Likewise.
4204         (__ASSUME_STAT64_SYSCALL): Likewise.
4205         (__ASSUME_IPC64): Likewise.
4206         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4207         <kernel-features.h>.
4208         [__ASSUME_32BITUIDS]: Make code unconditional.
4209         [!__ASSUME_32BITUIDS]: Remove conditional code.
4210         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4211         <kernel-features.h>.
4212         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4213         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4214         132096]: Remove conditional code.
4215         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4216         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4217         <kernel-features.h>.
4218         [__ASSUME_32BITUIDS]: Make code unconditional.
4219         [!__ASSUME_32BITUIDS]: Remove conditional code.
4220         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4221         <kernel-features.h>.
4222         [__ASSUME_32BITUIDS]: Make code unconditional.
4223         [!__ASSUME_32BITUIDS]: Remove conditional code.
4224         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4225         <kernel-features.h>.
4226         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4227         unconditional.
4228         (__setresgid): Do not declare.
4229         [__ASSUME_32BITUIDS]: Make code unconditional.
4230         [!__ASSUME_32BITUIDS]: Remove conditional code.
4231         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4232         <kernel-features.h>.
4233         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4234         unconditional.
4235         (__setresuid): Do not declare.
4236         [__ASSUME_32BITUIDS]: Make code unconditional.
4237         [!__ASSUME_32BITUIDS]: Remove conditional code.
4238         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4239         <kernel-features.h>.
4240         [__ASSUME_32BITUIDS]: Make code unconditional.
4241         [!__ASSUME_32BITUIDS]: Remove conditional code.
4242         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4243         <kernel-features.h>.
4244         [__ASSUME_32BITUIDS]: Make code unconditional.
4245         [!__ASSUME_32BITUIDS]: Remove conditional code.
4247 2012-05-25  Richard Henderson  <rth@twiddle.net>
4249         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4250         dl_hwcap to ifunc resolver.
4251         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4252         elf_ifunc_invoke.
4253         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4254         dl_hwcap to ifunc resolver.
4255         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4257 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4259         [BZ #14153]
4260         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4261         for |x| <= 2**-26, not 2**-57.
4262         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4263         exception.
4265 2012-05-24  Jeff Law  <law@redhat.com>
4267         * stdio-common/Makefile (tests): Add bug25.
4268         * stdio-common/bug25.c: New test.
4270 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4272         [BZ #13576]
4273         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4274         multiple of MALLOC_ALIGNMENT in size.
4275         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4277 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4279         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4280         Require >= 256.
4281         (FILENAME_MAX): Use macro-int-constant.
4282         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4283         (_IOFBF): Use macro-int-constant.
4284         (_IOLBF): Likewise.
4285         (_IONBF): Likewise.
4286         (SEEK_CUR): Likewise.
4287         (SEEK_END): Likewise.
4288         (SEEK_SET): Likewise.
4289         (TMP_MAX): Likewise.
4290         (EOF): Use macro-int-constant.  Require < 0.
4291         (NULL): Use macro-constant.  Require == 0.
4292         (stdin): Require type to be FILE *.
4293         (stdout): Likewise.
4294         (stderr): Likewise.
4295         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4296         macro-int-constant.
4297         (EXIT_SUCCESS): Likewise.
4298         (NULL): Use macro-constant.  Require == 0.
4299         (RAND_MAX): Use macro-int-constant.
4300         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4301         [C99-based standards] (strtof): Require function.
4302         [C99-based standards] (strtold): Likewise.
4303         [C99-based standards] (strtoll): Likewise.
4304         [C99-based standards] (strtoull): Likewise.
4305         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4306         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4307         [ISO || ISO99 || ISO11] (math.h): Likewise.
4308         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4309         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4310         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4312 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4314         [BZ #14132]
4315         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4316         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4317         * intl/dgettext.c (DCGETTEXT): Likewise.
4318         * intl/gettext.c (DCGETTEXT): Likewise.
4319         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4320         * posix/regex_internal.h (gettext): Likewise.
4321         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4322         Remove declaration.
4323         * include/argz.h (__argz_count_internal)
4324         (__argz_stringify_internal): Remove declaration.
4325         (__argz_count, __argz_stringify): Declare hidden proto.
4326         * intl/dcgettext.c: Remove use of INTDEF.
4327         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4328         * string/argz-stringify.c: Likewise.
4329         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4330         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4331         Declare hidden proto.
4332         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4333         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4334         Declare hidden proto.
4335         * include/stdio.h (__asprintf_internal): Don't declare.
4336         (__asprintf): Don't define as macro.  Declare hidden proto.
4337         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4338         (__fsetlocking): Declare hidden proto.
4339         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4340         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4341         hidden proto.
4342         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4343         (_IO_setlinebuf): Remove use of INTUSE.
4344         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4345         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4346         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4347         Remove declaration.
4348         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4349         (_IO_do_flush): Remove use of INTUSE.
4350         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4351         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4352         (_IO_adjust_column, _IO_least_wmarker)
4353         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4354         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4355         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4356         (_IO_default_doallocate, _IO_wdefault_doallocate)
4357         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4358         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4359         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4360         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4361         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4362         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4363         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4364         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4365         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4366         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4367         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4368         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4369         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4370         proto.
4371         (_IO_flush_all_internal, _IO_adjust_column_internal)
4372         (_IO_default_uflow_internal, _IO_default_finish_internal)
4373         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4374         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4375         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4376         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4377         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4378         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4379         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4380         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4381         (_IO_file_close_internal, _IO_file_close_it_internal)
4382         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4383         (_IO_file_init_internal, _IO_file_attach_internal)
4384         (_IO_file_fopen_internal, _IO_file_read_internal)
4385         (_IO_file_sync_internal, _IO_file_seek_internal)
4386         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4387         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4388         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4389         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4390         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4391         (_IO_list_all_internal, _IO_link_in_internal)
4392         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4393         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4394         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4395         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4396         (_IO_do_write_internal, _IO_padn_internal)
4397         (_IO_getline_info_internal, _IO_getline_internal)
4398         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4399         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4400         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4401         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4402         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4403         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4404         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4405         with libc_hidden_ver, remove use of INTUSE.
4406         * libio/genops.c: Likewise.
4407         * libio/freopen.c: Likewise.
4408         * libio/freopen64.c: Likewise.
4409         * libio/iofclose.c: Likewise.
4410         * libio/iofdopen.c: Likewise.
4411         * libio/iofflush.c: Likewise.
4412         * libio/iofflush_u.c: Likewise.
4413         * libio/iofgets.c: Likewise.
4414         * libio/iofgets_u.c: Likewise.
4415         * libio/iofopen.c: Likewise.
4416         * libio/iofopncook.c: Likewise.
4417         * libio/iofread.c: Likewise.
4418         * libio/iofread_u.c: Likewise.
4419         * libio/ioftell.c: Likewise.
4420         * libio/iofwrite.c: Likewise.
4421         * libio/iogetline.c: Likewise.
4422         * libio/iogets.c: Likewise.
4423         * libio/iogetwline.c: Likewise.
4424         * libio/iopadn.c: Likewise.
4425         * libio/iopopen.c: Likewise.
4426         * libio/ioseekoff.c: Likewise.
4427         * libio/ioseekpos.c: Likewise.
4428         * libio/iosetbuffer.c: Likewise.
4429         * libio/iosetvbuf.c: Likewise.
4430         * libio/ioungetc.c: Likewise.
4431         * libio/ioungetwc.c: Likewise.
4432         * libio/iovdprintf.c: Likewise.
4433         * libio/iovsprintf.c: Likewise.
4434         * libio/iovsscanf.c: Likewise.
4435         * libio/memstream.c: Likewise.
4436         * libio/obprintf.c: Likewise.
4437         * libio/oldfileops.c: Likewise.
4438         * libio/oldiofclose.c: Likewise.
4439         * libio/oldiofdopen.c: Likewise.
4440         * libio/oldiofopen.c: Likewise.
4441         * libio/oldiopopen.c: Likewise.
4442         * libio/oldstdfiles.c: Likewise.
4443         * libio/putc.c: Likewise.
4444         * libio/setbuf.c: Likewise.
4445         * libio/setlinebuf.c: Likewise.
4446         * libio/stdfiles.c: Likewise.
4447         * libio/strops.c: Likewise.
4448         * libio/vasprintf.c: Likewise.
4449         * libio/vscanf.c: Likewise.
4450         * libio/vsnprintf.c: Likewise.
4451         * libio/vswprintf.c: Likewise.
4452         * libio/wfiledoalloc.c: Likewise.
4453         * libio/wfileops.c: Likewise.
4454         * libio/wgenops.c: Likewise.
4455         * libio/wmemstream.c: Likewise.
4456         * libio/wstrops.c: Likewise.
4457         * libio/__fpurge.c: Likewise.
4458         * libio/__fsetlocking.c: Likewise.
4459         * assert/assert.c: Likewise.
4460         * debug/fgets_chk.c: Likewise.
4461         * debug/fgets_u_chk.c: Likewise.
4462         * debug/fread_chk.c: Likewise.
4463         * debug/fread_u_chk.c: Likewise.
4464         * debug/gets_chk.c: Likewise.
4465         * debug/obprintf_chk.c: Likewise.
4466         * debug/vasprintf_chk.c: Likewise.
4467         * debug/vdprintf_chk.c: Likewise.
4468         * debug/vsnprintf_chk.c: Likewise.
4469         * debug/vsprintf_chk.c: Likewise.
4470         * malloc/mtrace.c: Likewise.
4471         * misc/error.c: Likewise.
4472         * misc/syslog.c: Likewise.
4473         * stdio-common/asprintf.c: Likewise.
4474         * stdio-common/fxprintf.c: Likewise.
4475         * stdio-common/getw.c: Likewise.
4476         * stdio-common/isoc99_fscanf.c: Likewise.
4477         * stdio-common/isoc99_scanf.c: Likewise.
4478         * stdio-common/isoc99_vfscanf.c: Likewise.
4479         * stdio-common/isoc99_vscanf.c: Likewise.
4480         * stdio-common/isoc99_vsscanf.c: Likewise.
4481         * stdio-common/printf-prs.c: Likewise.
4482         * stdio-common/printf_fp.c: Likewise.
4483         * stdio-common/printf_fphex.c: Likewise.
4484         * stdio-common/printf_size.c: Likewise.
4485         * stdio-common/putw.c: Likewise.
4486         * stdio-common/scanf.c: Likewise.
4487         * stdio-common/sprintf.c: Likewise.
4488         * stdio-common/tmpfile.c: Likewise.
4489         * stdio-common/vfprintf.c: Likewise.
4490         * stdio-common/vfscanf.c: Likewise.
4491         * stdlib/strfmon_l.c: Likewise.
4492         * sunrpc/openchild.c: Likewise.
4493         * sunrpc/xdr_stdio.c: Likewise.
4494         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4495         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4497 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4499         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4501         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4502         in the third column, to generate for the shared library an IFUNC
4503         that uses _dl_vdso_vsym.
4504         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4505         * Makeconfig (object-suffixes-noshared): New variable.
4507         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4508         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4509         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4510         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4512         [BZ #14132]
4513         * include/sys/time.h (__gettimeofday): Remove macro.
4514         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4515         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4516         Remove INTDEF.
4517         (__gettimeofday): Add libc_hidden_def.
4518         (gettimeofday): Add libc_hidden_weak.
4519         * sysdeps/mach/gettimeofday.c: Likewise.
4520         * sysdeps/posix/gettimeofday.c: Likewise.
4521         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4522         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4523         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4524         (__gettimeofday_internal): Remove strong_alias.
4525         (__gettimeofday): Add libc_hidden_def.
4526         (gettimeofday): Add libc_hidden_weak.
4527         * sysdeps/unix/syscalls.list (gettimeofday):
4528         Remove __gettimeofday_internal alias.
4530 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4531             H.J. Lu  <hongjiu.lu@intel.com>
4533         [BZ #12495]
4534         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4535         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4536         (largebin_index_32_big): New.
4537         (largebin_index): Use it for 16-byte alignment.
4538         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4539         correction with front_misalign.
4541 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4543         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4544         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4545         Likewise.
4546         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4547         Likewise.
4548         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4549         Likewise.
4550         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4551         Likewise.
4552         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4553         Likewise.
4554         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4555         Likewise.
4556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4557         Likewise.
4558         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4559         Likewise.
4560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4561         Likewise.
4562         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4563         Likewise.
4564         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4565         Likewise.
4566         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4567         Likewise.
4569         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4570         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4572 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4574         [BZ #10846]
4575         [BZ #14036]
4576         * math/libm-test.inc (exp_test): Add test from bug 14036.
4577         (pow_test): Add test from bug 10846.
4579         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4580         and other flags.
4581         (special_function): Do not include flags in test name.
4582         (parse_args): Likewise.
4583         * sysdeps/i386/fpu/libm-test-ulps: Update.
4584         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4585         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4586         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4589         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4590         exceptions.
4591         * math/libm-test.inc ("Philosophy"): Update comment about
4592         exception testing.
4593         (UNDERFLOW_EXCEPTION): New macro.
4594         (UNDERFLOW_EXCEPTION_OK): Likewise.
4595         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4596         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4597         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4598         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4599         (INVALID_EXCEPTION_OK): Update value.
4600         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4601         (OVERFLOW_EXCEPTION_OK): Likewise.
4602         (IGNORE_ZERO_INF_SIGN): Likewise.
4603         (test_exceptions): Handle underflow exceptions.
4604         (acos_test): Update for underflow exception expectations.
4605         (cexp_test): Likewise.
4606         (clog_test): Likewise.
4607         (clog10_test): Likewise.
4608         (csqrt_test): Likewise.
4609         (ctan_test): Likewise.
4610         (ctanh_test): Likewise.
4611         (exp_test): Likewise.
4612         (exp10_test): Likewise.
4613         (exp2_test): Likewise.
4614         (expm1_test): Likewise.
4615         (fma_test): Likewise.
4616         (j0_test): Likewise.
4617         (jn_test): Likewise.
4618         (nexttoward_test): Likewise.
4619         (pow_test): Likewise.
4620         (scalbn_test): Likewise.
4621         (scalbln_test): Likewise.
4622         (tan_test): Likewise.
4623         (y1_test): Likewise.
4624         * sysdeps/i386/fpu/libm-test-ulps: Update.
4625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4627 2012-05-23  David S. Miller  <davem@davemloft.net>
4629         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4630         (__libc_sigaction): Remove unused local variables.
4632 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4634         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4636 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4638         mktime: avoid signed integer overflow
4639         * time/mktime.c (__mktime_internal): Do not mishandle the case
4640         where diff == INT_MIN.
4642         mktime: simplify computation of average
4643         * time/mktime.c (ranged_convert): Use new time_t_avg function
4644         instead of rolling our own (probably-slower) code.
4646         mktime: do not assume signed right shift propagates sign bit
4647         * time/mktime.c (isdst_differ): New static function.
4648         (__mktime_internal): No need to normalize tm_isdst now.
4649         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4650         tm_isdst values.
4652         mktime: merge another wrapv change from gnulib
4653         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4654         from some compilers.
4656         mktime: remove incorrect attempt at unusual arithmetics
4657         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4658         The code didn't really work on such machines anyway.
4659         (TYPE_MINIMUM): Assume two's complement.
4660         (twos_complement_arithmetic): Verify that long_int and time_t
4661         are two's complement (or unsigned, in the latter case).
4663         mktime: check signed shifts on long_int and time_t, too
4664         * time/mktime.c (SHR): Check that shifts work as desired
4665         on the types long_int and time_t too, as SHR is used on
4666         such types.
4668         mktime: do not assume 'long' is wide enough
4669         * time/mktime.c (verify): Move decl up.
4670         (long_int): New type.
4671         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4672         to remove assumption in the code that 'long' is wide enough to
4673         store year values.  This assumption is not true on x32 and on
4674         some non-glibc platforms.
4676         mktime: merge wrapv change from gnulib
4677         * time/mktime.c (WRAPV): New macro.
4678         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4679         (guess_time_tm, __mktime_internal): Do not assume that signed
4680         integer overflow wraps around; modern compilers generate code
4681         where this assumption is no longer valid.
4683 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4685         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4686         Replace "jmp L(pseudo_end)" with "ret".
4687         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4688         Likewise.
4690 2012-05-23  Andreas Jaeger  <aj@suse.de>
4692         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4693         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4695 2012-05-23  Andreas Jaeger  <aj@suse.de>
4696             Maximilian Attems  <max@stro.at>
4698         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4699         New macros.
4701 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4703         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4704         code so that pseudo_end is just ret and the stack pointer is
4705         correct also for static library in error case.
4707 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4709         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4710         move to syscalls.list.
4711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4716         * manual/install.texi (Running make install): Do not mention Linux
4717         kernel version for which pt_chown is not needed.
4718         (Linux): Do not mention problems with nscd with 2.0 kernels.
4719         * INSTALL: Regenerated.
4721 2012-05-23  Andreas Jaeger  <aj@suse.de>
4723         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4724         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4725         macro.
4726         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4727         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4728         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4729         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4730         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4731         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4732         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4733         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4734         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4735         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4736         * sysdeps/unix/sysv/linux/bits/in.h
4737         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4739 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4741         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4742         (PREPARE_VERSION): Just use assert instead, it will be elided
4743         under [NDEBUG] anyway.
4745 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4747         * sysdeps/unix/sysv/linux/Makefile: Include
4748         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4749         (sysdep_routines): Remove sysctl.
4750         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4751         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4752         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4753         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4754         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4756 2012-05-22  Andreas Jaeger  <aj@suse.de>
4758         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4759         that pseudo_end is just ret and the stack pointer is correct also
4760         for static library in error case.
4762 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4764         [BZ #14122]
4765         * nss/nsswitch.c (defconfig_entries): New variable.
4766         (__nss_database_lookup): Don't leak defconfig entries.
4767         (nss_parse_service_list): Don't leak on error paths.
4768         (free_database_entries): New function.
4769         (free_defconfig): New function.
4770         (free_mem): Move common code to free_database_entries.
4772 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4774         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4775         Add arch_prctl.
4776         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4778         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4779         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4780         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4781         New macro.
4782         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4783         (INTERNAL_SYSCALL_TYPES): Likewise.
4784         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4785         (LOAD_REGS_TYPES_[1-6]): Likewise.
4786         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4787         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4789 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4791         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4792         copysignl for GLIBC_2_0.
4793         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4794         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4795         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4796         logbl for GLIBC_2_0.
4797         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4798         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4800 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4802         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4803         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4805         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4806         Use "neg %eax".
4808         * time/mktime.c: Update copyright years.
4810 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4812         mktime: merge comment-quoting-style change from gnulib
4813         * time/mktime.c: Quote 'like this' in comments.
4814         The GNU coding standards suggest that we no longer quote `like this',
4815         as "`" and "'" are typically rendered asymmetrically nowadays.
4816         The typical gnulib style is to quote 'like this' when quoting
4817         code, and "like this" when quoting English.
4819         * time/mktime.c (compile-command): Add "-I.".
4821         mktime: merge mktime-internal.h change from gnulib
4822         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4824         mktime: merge time_r change from gnulib
4825         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4827         mktime: merge DEBUG change from gnulib
4828         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4829         case system <time.h> has a #define.
4831         mktime: merge <sys/types.h> change from gnulib
4832         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4833         since <time.t> is now guaranteed to define time_t.
4835         mktime: merge HAVE_CONFIG_H change from gnulib
4836         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4838 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4840         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4841         Use "neg %eax".
4843         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4844         __rlim_t cast.
4845         (struct rusage): Use anonymous union to pad each field to
4846         __syscall_slong_t.
4848 2012-05-21  David S. Miller  <davem@davemloft.net>
4850         * Makefules (o-iterator): Remove .s cases.
4851         (compile-command.s): Delete.
4852         (COMPILE.s): Delete.
4853         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4855 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4857         * configure.in (libc_cv_predef_stack_protector): Only consider
4858         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4859         * configure: Regenerated.
4861 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4863         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4864         New macro.  Use R*LP on int and pointer.
4865         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4866         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4867         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4868         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4870         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4871         [__WORDSIZE_TIME64_COMPAT32] instead of
4872         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4873         (struct utmp): Likewise.
4874         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4875         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4876         Renamed to ...
4877         (__WORDSIZE_TIME64_COMPAT32): This.
4878         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4879         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4880         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4881         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4882         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4883         (__WORDSIZE_TIME64_COMPAT32): New macro.
4885 2012-05-21  Andreas Jaeger  <aj@suse.de>
4887         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4888         only if [SHARED]. Add prototype for __wcschr_ia32.
4890 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4892         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4893         of %rbp unmolested in the jmp_buf while mangling the low bits.
4894         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4895         unmolested high bits of %rbp while demangling the low bits.
4896         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4898 2012-05-21  Andreas Jaeger  <aj@suse.de>
4900         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4901         * sunrpc/svc_simple.c: Use it for registerrpc.
4902         * sunrpc/xcrypt.c: Use it for passwd2des.
4904         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4906 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4908         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4909         Don't define if [__SYSCALL_WORDSIZE != 32].
4910         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4911         New macro.
4913 2012-05-21  Bruno Haible  <bruno@clisp.org>
4914             Andreas Jaeger  <aj@suse.de>
4916         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4917         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4918         inptr and inend for must_buffer_ch.
4919         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4920         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4921         * stdio-common/Makefile (tests): Remove bug15.
4922         (bug15-ENV): Remove macro.
4923         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4924         anymore.
4926 2012-05-19  Andreas Jaeger  <aj@suse.de>
4927             Roland McGrath  <roland@hack.frob.com>
4929         * manual/contrib.texi: Completely rewritten. It contains now an
4930         alphabetical list of contributors and their contributions.
4932 2012-05-21  Richard Henderson  <rth@twiddle.net>
4934         * misc/getauxval.c (__getauxval): Use unsigned long int.
4935         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4936         (getauxval): Use unsigned long int.
4938 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4940         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4942 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4944         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4945         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4946         __alignof__ (long double).
4948 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4950         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4952 2012-05-20  Richard Henderson  <rth@twiddle.net>
4954         * misc/getauxval.c: New file.
4955         * misc/sys/auxv.h: New file.
4956         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4957         (routines): Add getauxval.
4958         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4959         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4960         * elf/dl-sysdep.c (_dl_auxv): Remove.
4961         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4962         * elf/dl-support.c (_dl_auxv): New variable.
4963         (_dl_aux_init): Initialize it.
4964         * manual/startup.texi (Auxiliary Vector): New node.
4965         * sysdeps/generic/bits/hwcap.h: New file.
4966         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4967         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4968         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4969         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4970         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4971         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4973         Update.
4974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4975         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4976         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4977         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4979         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4980         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4981         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4983 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4985         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4987 2012-05-19  David S. Miller  <davem@davemloft.net>
4989         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4991 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4993         [BZ #14123]
4994         * math/s_ccosh.c: Include <float.h>
4995         (__ccosh): Avoid internal overflow calculating sinh and cosh
4996         values before multiplying by sin and cos values.
4997         * math/s_ccoshf.c: Likewise.
4998         * math/s_ccoshl.c: Likewise.
4999         * math/s_csin.c: Likewise.
5000         * math/s_csinf.c: Likewise.
5001         * math/s_csinl.c: Likewise.
5002         * math/s_csinh.c: Likewise.
5003         * math/s_csinhf.c: Likewise.
5004         * math/s_csinhl.c: Likewise.
5005         * math/libm-test.inc (ccos_test): Add more tests.
5006         (ccosh_test): Likewise.
5007         (csin_test): Likewise.
5008         (csinh_test): Likewise.
5009         * sysdeps/i386/fpu/libm-test-ulps: Update.
5010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5012 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5014         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5015         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5017         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5019 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5021         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5022         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5023         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5024         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5025         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5026         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5027         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5028         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5029         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5030         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5031         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5032         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5033         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5034         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5035         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5036         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5037         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5038         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5039         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5040         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5041         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5042         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5043         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5044         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5045         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5046         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5047         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5048         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5049         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5050         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5051         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5053 2012-05-18  Andreas Jaeger  <aj@suse.de>
5055         * csu/.gitignore: Delete.
5057 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5059         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5060         (timex): Use __syscall_slong_t.
5062 2012-05-18  Andreas Jaeger  <aj@suse.de>
5063             Carlos O'Donell  <carlos_odonell@mentor.com>
5065         * manual/install.texi (Configuring and compiling): Update
5066         description about files modified in the source directory.
5067         * INSTALL: Regenerated.
5069 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5071         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5072         value.  Use "or" to set return value to -1.
5073         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5074         negate return value.
5076 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5078         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5079         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5080         failure if the compiler has Graphite support disabled.
5081         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5082         Likewise.
5083         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5084         CFLAGS-memmove.c): Likewise.
5085         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5086         Likewise.
5088 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5090         * sysdeps/x86_64/x32/_itoa.h: New file.
5092         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5093         getdents system call only if kernel and user dirents have the
5094         same d_ino and d_off.
5096         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5097         LLONG_MAX != LONG_MAX.
5098         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5099         (_fitoa_word): Likewise.
5101         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5102         years.
5103         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5104         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5105         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5107         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5108         include <bits/wordsize.h>.  Check __x86_64__ instead of
5109         __WORDSIZE.
5110         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5111         if __x86_64__ is defined.  Use anonymous union on fpstate.
5113         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5114         anonymous union.
5116 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5118         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5119         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5120         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5121         Refer to _rtld_local_ro instead of _rtld_global_ro.
5122         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5123         Likewise.
5124         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5125         Likewise.
5126         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5127         Likewise.
5128         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5129         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5130         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5132         * sysdeps/powerpc/powerpc32/dl-machine.c
5133         (__elf_machine_runtime_setup) [PROF]: Don't reference
5134         _dl_prof_resolve.
5136 2012-05-18  Andreas Jaeger  <aj@suse.de>
5138         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5139         function only available for GCCs before 3.4 since GCC 3.4
5140         introduced a builtin.
5141         (lrint): Likewise.
5142         (llrintf): Likewise.
5143         (llrint): Likewise.
5144         (fmaxf): Likewise.
5145         (fmax): Likewise.
5146         (fminf): Likewise.
5147         (fmin): Likewise.
5148         (rint): Likewise.
5149         (rintf): Likewise.
5150         (nearbyint): Likewise.
5151         (nearbyintf): Likewise.
5152         (ceil): Likewise.
5153         (ceilf): Likewise.
5154         (floor): Likewise.
5155         (floorf): Likewise.
5157 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5159         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5160         on both fields and cast pointer to __syscall_ulong_t.
5162         * bits/types.h (__fsword_t): New type.
5163         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5164         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5165         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5166         (__FSWORD_T_TYPE): Likewise.
5167         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5168         (__FSWORD_T_TYPE): Likewise.
5169         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5170         (__FSWORD_T_TYPE): Likewise.
5171         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5172         (__FSWORD_T_TYPE): Likewise.
5173         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5174         __SWORD_TYPE with __fsword_t.
5175         (statfs64): Likewise.
5177 2012-05-17  David S. Miller  <davem@davemloft.net>
5179         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5181 2012-05-17  Andreas Jaeger  <aj@suse.de>
5183         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5184         warning.
5186 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5188         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5190 2012-05-17  Andreas Jaeger  <aj@suse.de>
5192         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5193         when it is used.
5195 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5197         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5199 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5201         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5202         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5204 2012-05-17  Andreas Jaeger  <aj@suse.de>
5205             Carlos O'Donell  <carlos_odonell@mentor.com>
5207         [BZ #14059]
5208         * sysdeps/x86_64/multiarch/init-arch.h
5209         (bit_YMM_Usable): Rename to...
5210         (bit_AVX_Usable): ... this.
5211         (bit_FMA4_Usable): New macro.
5212         (bit_XMM_state): New macro.
5213         (bit_YMM_state): New macro.
5214         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5215         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5216         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5217         (CPUID_OSXSAVE): New macro.
5218         (CPUID_AVX): New macro.
5219         (CPUID_FMA4): New macro.
5220         (index_YMM_Usable): Rename to...
5221         (index_AVX_Usable): ... this.
5222         (HAS_AVX): Use HAS_ARCH_FEATURE.
5223         (HAS_FMA4): Likewise.
5224         (HAS_YMM_USABLE): Remove.
5225         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5226         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5227         are present.
5228         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5229         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5230         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5231         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5232         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5234 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5236         * math/libm-test.c: Support platforms without multiple rounding modes.
5237         * math/bug-nextafter.c: Support platforms without FP exceptions.
5238         * math/bug-nexttoward.c: Likewise.
5239         * math/test-fenv.c: Likewise.
5240         * math/test-misc.c: Likewise.
5241         * stdlib/bug-getcontext.c: Likewise.
5243 2012-05-17  Andreas Jaeger  <aj@suse.de>
5245         * manual/examples/search.c (critter_cmp): Change signature to
5246         avoid warnings.
5247         * manual/string.texi (Collation Functions): Likewise.
5249 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5251         * bits/types.h: Fold copyright years.
5252         * bits/typesizes.h: Likewise.
5253         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5254         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5255         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5256         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5257         * time/time.h: Likewise.
5259 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5261         [BZ #208]
5262         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5263         in instead of returning them.  Return void.
5264         (__libc_mallinfo): Accumulate over all arenas.
5265         (__malloc_stats): Adjust for change in int_mallinfo interface.
5267 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5269         [BZ #10375]
5270         * configure.in (NM): Add AC_CHECK_TOOL for it.
5271         (libc_extra_cflags): New substituted variable.
5272         Check for -fstack-protector being used implicitly.
5273         * configure: Regenerated.
5274         * config.make.in (config-extra-cflags): New variable,
5275         gets @libc_extra_cflags@.
5276         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5278         [BZ #10375]
5279         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5280         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5281         * configure: Regenerated.
5282         * config.make.in (CPPUNDEFS): New substituted variable.
5283         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5284         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5285         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5287 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5289         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5290         (mq_attr): Use __syscall_slong_t.
5292 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5294         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5295         Check __x86_64__ instead of __WORDSIZE.
5296         (_STAT_VER_LINUX): Likewise.
5297         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5298         __syscall_ulong_t and __syscall_slong_t.
5299         (stat64): Likewise.
5301 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5303         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5305 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5307         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5309 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5311         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5312         __syscall_ulong_t.
5314         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5315         include <bits/wordsize.h>.  Check __x86_64__ instead of
5316         __WORDSIZE.
5317         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5318         defined.
5319         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5321         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5322         include <bits/wordsize.h>.  Check __x86_64__ instead of
5323         __WORDSIZE.
5324         (user_regs_struct): Use "__extension__ unsigned long long"
5325         instead of "unsigned long" if __x86_64__ is defined.
5326         (user): Likewise.  Pad after pointer field if __ILP32__ is
5327         defined.
5329 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5331         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5332         versions 5 to 9.
5333         * configure: Regenerated.
5334         * manual/install.texi (texinfo): Increase version requirement to
5335         4.5 or later.
5336         * INSTALL: Regenerated.
5338         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5340 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5342         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5344         * sysdeps/x86_64/x32/ffs.c: New file.
5346         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5347         __syscall_ulong_t.
5348         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5349         defined.  Use __syscall_ulong_t.
5350         (shminfo): Use __syscall_ulong_t.
5351         (shm_info): Likewise.
5353         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5354         __syscall_ulong_t.
5356         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5357         <bits/wordsize.h>.
5358         (msgqnum_t): Use __syscall_ulong_t.
5359         (msglen_t): Likewise.
5360         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5361         __syscall_ulong_t.
5363         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5364         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5366         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5368         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5369         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5371         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5372         __syscall_slong_t.
5374         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5375         include <bits/wordsize.h>.  Check __x86_64__ instead of
5376         __WORDSIZE.
5378         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5379         "unsigned long long int" if __x86_64__ is defined.
5380         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5382         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5383         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5384         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5386         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5387         <stdint.h>.
5388         (GET_PC): Cast to uintptr_t first.
5389         (GET_FRAME): Likewise.
5390         (GET_STACK): Likewise.
5392         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5393         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5394         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5395         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5396         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5397         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5398         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5399         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5400         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5401         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5402         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5403         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5404         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5405         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5406         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5407         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5408         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5409         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5410         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5411         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5412         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5413         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5414         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5415         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5416         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5417         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5418         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5419         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5420         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5422 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5424         * Makerules (+depfiles): Also collect depfiles from .oS in
5425         $(extra-objs).
5426         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5427         .oS, $(libnldbl-routines)).
5429         * Makerules (native-compile-mkdep-flags): Define.
5430         * sunrpc/Makefile (extra-objs): Add $(addprefix
5431         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5432         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5433         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5434         calling $(make-target-directory).
5436 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5438         * bits/types.h (__snseconds_t): Removed.
5439         * time/time.h (struct timespec): Replace __snseconds_t with
5440         __syscall_slong_t.
5441         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5442         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5443         Likewise.
5444         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5445         (__SNSECONDS_T_TYPE): Likewise.
5446         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5447         (__SNSECONDS_T_TYPE): Likewise.
5448         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5449         (__SNSECONDS_T_TYPE): Likewise.
5451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5453         * sysdeps/mach/hurd/bits/typesizes.h
5454         (__SYSCALL_SLONG_TYPE): New macro.
5455         (__SYSCALL_ULONG_TYPE): Likewise.
5457 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5459         * bits/types.h (__syscall_slong_t): New type.
5460         (__syscall_ulong_t): Likewise.
5462         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5463         (__SYSCALL_ULONG_TYPE): Likewise.
5464         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5465         (__SYSCALL_SLONG_TYPE): Likewise.
5466         (__SYSCALL_ULONG_TYPE): Likewise.
5467         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5468         (__SYSCALL_SLONG_TYPE): Likewise.
5469         (__SYSCALL_ULONG_TYPE): Likewise.
5470         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5471         (__SYSCALL_SLONG_TYPE): Likewise.
5472         (__SYSCALL_ULONG_TYPE): Likewise.
5474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5476         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5477         Add sigaltstack-offsets.sym.
5478         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5479         <sigaltstack-offsets.h>.
5480         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5481         longjmp_msg pointer.
5482         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5483         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5484         signal stack.
5485         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5487 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5489         * elf/stackguard-macros.h: Remove file.
5490         * sysdeps/generic/stackguard-macros.h: New file.
5491         * sysdeps/i386/stackguard-macros.h: Likewise.
5492         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5493         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5494         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5495         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5496         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5497         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5498         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5499         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5500         <elf/stackguard-macros.h>.
5502         [BZ #14109]
5503         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5504         __aligned__ in attribute.
5505         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5506         (gregset_t): Likewise.
5508 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5510         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5511         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5512         * sysdeps/x86_64/x32/Implies-after: New file.
5514 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5516         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5517         and access return value for _dl_profile_fixup.  Use R10_LP to
5518         load frame size.
5520 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5522         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5524 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5526         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5527         * sysdeps/x86_64/x32/sysdep.h: New file.
5529 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5531         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5532         * sysdeps/x86_64/setjmp.S: Likewise.
5534 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5536         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5537         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5538         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5539         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5540         remove unused global constant.
5542 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5544         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5545         include of <not-cancel.h>.
5547 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5549         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5551 2012-05-15  Jeff Law  <law@redhat.com>
5552             Andreas Jaeger  <aj@suse.de>
5554         [BZ #13594]
5555         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5556         out from...
5557         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5558         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5559         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5560         code changing __hst_map_handle.map.
5562 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5564         * configure.in (sysnames): Look for Implies-before and Implies-after
5565         files.
5566         * configure: Regenerated.
5568 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5570         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5571         8-byte data alignment with LP_SIZE alignment.
5573 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5575         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5576         into R10_LP.
5578 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5580         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5582 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5584         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5585         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5586         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5587         Likewise.
5588         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5592         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5593         (stackinfo_sub_sp): Likewise.
5595 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5597         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5598         RAX_LP.
5600 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5602         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5603         into R*_LP.
5605 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5607         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5608         sizes into R*_LP.
5610 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5612         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5616         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5617         into R11_LP and load __x86_64_shared_cache_size_half into
5618         R8_LP.
5620 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5622         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5623         R8_LP.
5625 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5627         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5628         logb for POWER7.
5629         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5630         logbf for POWER7.
5631         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5632         logbl for POWER7.
5633         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5634         powerpc32/power7/fpu/s_logb.c via #include.
5635         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5636         powerpc32/power7/fpu/s_logbf.c via #include.
5637         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5638         powerpc32/power7/fpu/s_logbl.c via #include.
5640 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5642         * README.libm: Remove file.
5644 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5646         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5647         count for x32.  Use R*_LP and omit operand-size suffix.
5649 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5651         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5652         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5653         * sysdeps/x86_64/x32/shlib-versions: New file.
5655 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5657         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5658         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5659         Use _dl_fatal_printf instead.
5661 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5663         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5664         set if not set by the user.  Do not allow for being unset.
5665         * sysdeps/unix/sysv/linux/configure: Regenerated.
5667 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5669         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5670         the `q' suffix from lea and replace .quad with ASM_ADDR.
5672 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5674         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5675         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5676         instead of $17.
5677         (PTR_DEMANGLE): Likewise.
5679 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5681         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5682         (LP_OP): Likewise.
5683         (ASM_ADDR): Likewise.
5684         (RAX_LP): Likewise.
5685         (RBP_LP): Likewise.
5686         (RBX_LP): Likewise.
5687         (RCX_LP): Likewise.
5688         (RDI_LP): Likewise.
5689         (RSI_LP): Likewise.
5690         (RSP_LP): Likewise.
5691         (R8_LP): Likewise.
5692         (R9_LP): Likewise.
5693         (R10_LP): Likewise.
5694         (R10_LP): Likewise.
5695         (R11_LP): Likewise.
5696         (R12_LP): Likewise.
5697         (R13_LP): Likewise.
5698         (R14_LP): Likewise.
5699         (R15_LP): Likewise.
5701 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5703         * sysdeps/x86_64/x32/dl-machine.h: New file.
5705 2012-05-14  Andreas Jaeger  <aj@suse.de>
5707         * manual/Makefile (subdir): Remove export of subdir.
5708         (all): Remove target.
5709         (.PHONY): Remove all from list.
5710         (mkinstalldirs): Remove.
5711         (.PHONY): Remove installdirs from list.
5712         ($(inst_infodir)/libc.info): Use make-target-directory.
5713         (installdirs): Remove.
5714         (subdir_%): Remove.
5715         (glibc-targets): Remove.
5716         (lib): Remove.
5717         (stubs): Remove.
5718         ($(objpfx)stubs ../po/manual.pot): Remove.
5719         ($(objpfx)stamp%): Remove.
5720         (make-target-directory): Remove.
5721         (subdir_install): Remove.
5722         (routines): Remove.
5723         (aux): Remove.
5724         (sources): Remove.
5725         (objects): Remove.
5726         (headers): Remove.
5728         [BZ #13750]
5729         * manual/.gitignore: Remove, it's not needed anymore.
5730         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5731         all files in it.
5732         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5733         directory.
5734         (texis): Renamed to $(objpfx)texis.
5735         (texis-path): New, contains path to generated files.
5736         (chapters.%): Use texis-path for complete path, add extra argument
5737         libc-texinfo.sh.
5738         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5739         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5740         (summary,texi, stamp-summary): Use complete path of
5741         files. Generate files in build dir.
5742         (dir-add.texi): Build in build dir.
5743         (libm-err.texi,stamp-libm-err): Likewise.
5744         (version.texi, stamp-version): Likewise.
5745         (.%c.texi): Likewise.
5746         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5747         (mostlyclean): Remove target.
5748         (realclean): Remove target.
5749         (generated): Add new variable with contents from mostlyclean and
5750         realclean, remove entries duplicated in common-mostlyclean, add
5751         stamp-libm-err and stamp-version.
5752         (generated-dirs): Add libc directory.
5753         ($(inst_infodir)/libc.info): Install files from build dir.
5755         * manual/install.texi (Configuring and compiling): Adjust since
5756         the info files are not part of the tar ball anymore.
5758 2012-05-14  Andreas Jaeger  <aj@suse.de>
5760         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5761         variable.
5763 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5765         [BZ #13717]
5766         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5767         to 2.2.0 where earlier.
5768         * sysdeps/unix/sysv/linux/configure: Regenerated.
5769         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5770         Remove conditional code.
5771         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5772         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5773         Remove conditional code.
5774         [!__NR_lchown]: Likewise.
5775         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5776         [__NR_lchown]: Likewise.
5777         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5778         comment referencing __ASSUME_LCHOWN_SYSCALL.
5779         * sysdeps/unix/sysv/linux/i386/sigaction.c
5780         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5781         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5782         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5783         Remove conditional code.
5784         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5785         (__protocol_available): Remove #if 0 code.
5786         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5787         conditional code.
5788         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5789         * sysdeps/unix/sysv/linux/kernel-features.h
5790         (__ASSUME_GETCWD_SYSCALL): Don't define.
5791         (__ASSUME_REALTIME_SIGNALS): Likewise.
5792         (__ASSUME_PREAD_SYSCALL): Likewise.
5793         (__ASSUME_PWRITE_SYSCALL): Likewise.
5794         (__ASSUME_POLL_SYSCALL): Likewise.
5795         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5796         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5797         non-SPARC.
5798         (__ASSUME_SIOCGIFNAME): Don't define.
5799         (__ASSUME_MSG_NOSIGNAL): Likewise.
5800         (__ASSUME_SENDFILE): Define unconditionally.
5801         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5802         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5803         conditional code.
5804         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5805         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5806         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5807         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5808         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5809         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5810         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5812         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5813         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5815         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5816         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5818         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5819         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5821         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5822         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5824         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5825         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5827         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5828         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5830         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5831         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5833         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5834         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5835         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5836         Remove conditional code.
5837         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5838         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5839         Remove conditional code.
5840         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5841         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5842         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5843         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5844         Remove conditional code.
5845         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5846         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5847         Remove conditional code.
5848         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5849         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5850         Remove conditional code.
5851         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5852         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5853         Remove conditional code.
5854         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5855         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5856         Remove conditional code.
5857         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5858         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5859         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5860         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5861         * sysdeps/unix/sysv/linux/sigaction.c
5862         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5863         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5864         * sysdeps/unix/sysv/linux/sigpending.c
5865         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5866         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5867         * sysdeps/unix/sysv/linux/sigprocmask.c
5868         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5869         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5870         * sysdeps/unix/sysv/linux/sigsuspend.c
5871         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5872         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5873         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5874         (__libc_missing_rt_sigs): Remove.
5875         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5876         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5877         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5878         Remove conditional code.
5879         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5880         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5881         return 1.
5882         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5883         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5884         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5885         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5887 2012-05-14  Andreas Jaeger  <aj@suse.de>
5889         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5890         it's not used in glibc.
5891         (__coshm1): Likewise.
5892         (__acosh1p): Likewise.
5893         (__sgn): Likewise.
5895         * manual/string.texi (Copying and Concatenation): Add missing
5896         variable in concat example.
5897         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5899 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5901         [BZ #14103]
5902         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5903         __builtin_clzl with __builtin_clzll.
5905 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5907         [BZ #14104]
5908         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5909         libc_freeres_ptr.
5911 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5913         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5914         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5915         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5916         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5918 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5920         * NEWS: Update ia64 info.
5922 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5924         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5925         used as bcopy.
5927 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5929         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5930         * sysdeps/unix/syscalls.list (dup3): Likewise.
5931         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5932         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5934 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5936         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5937         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5939 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5941         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5942         thread pointer.
5943         (TLS_IE): Use mov/add instead of movq/addq to load thread
5944         pointer.
5945         (TLS_GD_PREFIX): New.
5946         (TLS_GD): Use it.
5948 2012-05-11  David S. Miller  <davem@davemloft.net>
5950         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5951         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5952         (_FPU_SETCW): Likewise.
5954 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5956         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5957         is 32-byte aligned.
5959 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5961         [BZ #11837]
5962         * iconvdata/gb18030.c: Update tables.
5963         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5964         characters specially.
5965         (BODY for TO_LOOP): Add encoding of missing ranges.
5967 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5969         [BZ #13673]
5970         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5971         * sysdeps/mach/hurd/dup3.c: Likewise.
5972         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5973         * sysdeps/powerpc/memmove.c:: Likewise.
5975 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5977         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5978         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5980 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5982         * elf/elf.h (R_X86_64_RELATIVE64): New.
5983         (R_X86_64_NUM): Updated.
5984         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5985         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5986         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5987         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5988         tst-quad1pie tst-quad2pie
5989         (modules-names): Add tst-quadmod1 tst-quadmod2.
5990         ($(objpfx)tst-quad1): New dependency.
5991         ($(objpfx)tst-quad2): Likewise.
5992         ($(objpfx)tst-quad1pie): Likewise.
5993         ($(objpfx)tst-quad2pie): Likewise.
5994         * sysdeps/x86_64/tst-quad1.c: New file.
5995         * sysdeps/x86_64/tst-quad1pie.c: New file.
5996         * sysdeps/x86_64/tst-quad2.c: Likewise.
5997         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5998         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5999         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6000         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6001         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6003 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6005         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6006         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6007         * streams/stropts.h (t_scalar_t): Define type.
6009         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6010         (_PATH_PRESERVE): Set to "/var/lib".
6011         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6013         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6014         instead of int.
6016         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6017         if __dir_mkfile succeeded.
6019         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6020         checking for _hurd_dtablesize.  Unlock it right after having
6021         finished _hurd_dtable allocation.
6023 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6025         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6026         * sysdeps/mach/hurd/configure: Regenerated.
6027         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6028         special-casing to...
6029         * sysdeps/gnu/configure.in: ... this new file.
6030         * sysdeps/unix/sysv/linux/configure: Regenerated.
6031         * sysdeps/gnu/configure: New generated file.
6033         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6034         for Linux: use nsec instead of usec, as well as:
6035         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6036         members of type struct timespec.
6037         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6038         New macros.
6039         (struct stat64): Likewise.
6040         (_STATBUF_ST_NSEC): New macro.
6041         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6043         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6044         __strtoul_internal rather than strtoul.
6046 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6048         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6049         and reject them.
6051 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6053         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6054         which preserves existing values.
6055         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6057 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6059         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6060         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6061         greater than FD_SETSIZE.
6063 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6065         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6066         allocated, call __vm_protect to finish enabling the existing space, and
6067         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6068         allocate the remainder.
6070 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6072         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6073         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6075 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6077         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6078         sysdeps/mach/hurd/readlink.c.
6080         * posix/tst-sysconf.c (posix_options): Only use
6081         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6082         _POSIX_SYNCHRONIZED_IO when they are defined
6083         * sysdeps/mach/hurd/bits/posix_opt.h:
6084         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6085         (_XOPEN_REALTIME): Undefine macro.
6086         (_XOPEN_REALTIME_THREADS): Undefine macro.
6087         (_XOPEN_SHM): Undefine macro.
6088         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6089         macro to -1.
6090         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6091         macro to -1.
6092         (_POSIX_ASYNC_IO): Undefine macro.
6093         (_POSIX_PRIORITIZED_IO): Undefine macro.
6094         (_POSIX_SPIN_LOCKS): Define macro to -1.
6096         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6097         SA_NODEFER, SA_RESETHAND.
6098         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6099         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6100         F_DUPFD_CLOEXEC.
6102 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6104         * elf/Makefile (pldd-modules): Define unconditionally.
6106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6108         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6110 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6112         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6113         Return ENOENT when name is empty.
6114         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6116 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6118         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6120         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6122 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6124         Fix mlock in all cases except non-readable pages.
6125         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6126         instead of VM_PROT_ALL as parameter to __vm_wire function.
6128         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6129         (__mkdir): When path is `/', just fail with EEXIST.
6130         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6132 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6134         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6135         <sys/uio.h> (for writev).
6136         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6137         and <sys/param.h> (for MIN).
6139 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6141         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6142         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6143         if interrupted.
6145 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6147         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6148         Depend on against $(link-rpcuserlibs).
6150 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6152         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6153         (__libc_stack_end): Do not use attribute_relro.
6154         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6155         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6156         to libthread-provided value.
6157         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6158         attribute_relro.
6160 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6162         [BZ #3748]
6163         * bits/libc-lock.h (__libc_once_get): New macro.
6164         * sysdeps/mach/bits/libc-lock.h: Likewise.
6165         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6166         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6167         instead of using implementation details.
6169         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6170         * libio/freopen.c: Likewise.
6171         * libio/freopen64.c: Likewise.
6172         * misc/syslog.c: Likewise.
6173         * nscd/connections.c: Likewise.
6174         * nscd/netgroupcache.c: Likewise.
6175         * sysdeps/posix/getcwd.c: Likewise.
6177 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6179         * math/w_ilogbf.c: Add #include <limits.h>.
6181 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6183         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6184         path instead of returning without unlocking.
6186         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6187         immediate-write ioctls.
6188         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6190 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6192         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6193         __builtin_frame_address instead of making assumptions about the
6194         location of the return address relative to DATA.  Force early load of
6195         the return address.
6196         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6197         __builtin_frame_address.
6199         dup3 for GNU Hurd.
6200         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6201         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6202         implement dup3 and do some further code clean-ups.
6203         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6204         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6206 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6208         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6210         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6211         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6212         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6213         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6214         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6215         d->port.lock.
6217         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6218         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6219         when handler == SIG_ERR, not when handler != SIG_ERR.
6221 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6223         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6224         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6225         definitions.
6227         accept4 for GNU Hurd.
6228         * include/sys/socket.h (__libc_accept4): New prototype.
6229         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6230         to implement __libc_accept4.
6231         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6232         __libc_accept4.
6233         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6235         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6236         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6237         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6238         signal-defines.sym.
6240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6242         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6244 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6246         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6247         assertion on O_CLOEXEC flag.
6248         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6249         * hurd/intern-fd.c: Likewise.
6250         * hurd/port2fd.c: Likewise.
6252 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6254         [BZ #3906]
6255         * bits/in.h (IPV6_PKTINFO): Define new macro.
6256         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6258 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6260         [BZ #13954]
6261         [BZ #13955]
6262         [BZ #13956]
6263         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6264         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6265         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6266         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6267         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6268         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6269         * math/libm-test.inc (logb_test) : Additional logb tests.
6271 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6272             Andreas Jaeger  <aj@suse.de>
6274         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6275         * configure: Regenerated.
6276         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6277         * config.make.in (link-obsolete-rpc): New substituted variable.
6278         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6279         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6280         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6281         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6282         so that libc.a contains the symbols.
6283         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6284         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6285         * sunrpc/auth_none.c: Likewise.
6286         * sunrpc/auth_unix.c: Likewise.
6287         * sunrpc/authdes_prot.c: Likewise.
6288         * sunrpc/authuxprot.c: Likewise.
6289         * sunrpc/clnt_gen.c: Likewise.
6290         * sunrpc/clnt_perr.c: Likewise.
6291         * sunrpc/clnt_raw.c: Likewise.
6292         * sunrpc/clnt_simp.c: Likewise.
6293         * sunrpc/clnt_tcp.c: Likewise.
6294         * sunrpc/clnt_udp.c: Likewise.
6295         * sunrpc/clnt_unix.c: Likewise.
6296         * sunrpc/des_crypt.c: Likewise.
6297         * sunrpc/des_soft.c: Likewise.
6298         * sunrpc/get_myaddr.c: Likewise.
6299         * sunrpc/key_call.c: Likewise.
6300         * sunrpc/key_prot.c: Likewise.
6301         * sunrpc/netname.c: Likewise.
6302         * sunrpc/pm_getmaps.c: Likewise.
6303         * sunrpc/pm_getport.c: Likewise.
6304         * sunrpc/pmap_clnt.c: Likewise.
6305         * sunrpc/pmap_prot.c: Likewise.
6306         * sunrpc/pmap_prot2.c: Likewise.
6307         * sunrpc/pmap_rmt.c: Likewise.
6308         * sunrpc/publickey.c: Likewise.
6309         * sunrpc/rpc_cmsg.c: Likewise.
6310         * sunrpc/rpc_common.c: Likewise.
6311         * sunrpc/rpc_dtable.c: Likewise.
6312         * sunrpc/rpc_prot.c: Likewise.
6313         * sunrpc/rpc_thread.c: Likewise.
6314         * sunrpc/rtime.c: Likewise.
6315         * sunrpc/svc.c: Likewise.
6316         * sunrpc/svc_auth.c: Likewise.
6317         * sunrpc/svc_raw.c: Likewise.
6318         * sunrpc/svc_run.c: Likewise.
6319         * sunrpc/svc_tcp.c: Likewise.
6320         * sunrpc/svc_udp.c: Likewise.
6321         * sunrpc/svc_unix.c: Likewise.
6322         * sunrpc/svcauth_des.c: Likewise.
6323         * sunrpc/xcrypt.c: Likewise.
6324         * sunrpc/xdr.c: Likewise.
6325         * sunrpc/xdr_array.c: Likewise.
6326         * sunrpc/xdr_float.c: Likewise.
6327         * sunrpc/xdr_intXX_t.c: Likewise.
6328         * sunrpc/xdr_mem.c: Likewise.
6329         * sunrpc/xdr_rec.c: Likewise.
6330         * sunrpc/xdr_ref.c: Likewise.
6331         * sunrpc/xdr_sizeof.c: Likewise.
6332         * sunrpc/xdr_stdio.c: Likewise.
6334 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6336         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6337         change.  Update copyright years.
6339 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6341         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6343 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6344             Joseph Myers  <joseph@codesourcery.com>
6345             Paul Pluzhnikov  <ppluzhnikov@google.com>
6347         [BZ #14012]
6348         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6349         requiring rpcgen.
6350         [cross-compiling] (extra-libs): Likewise.
6351         [cross-compiling] (extra-libs-others): Likewise.
6352         [cross-compiling] (librpcsvc-routines): Likewise.
6353         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6354         [cross-compiling] (omit-deps): Likewise.
6355         (sunrpc-CPPFLAGS): New variable.
6356         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6357         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6358         (cross-rpcgen-objs): New variable.
6359         (extra-objs): Append $(cross-rpcgen-objs).
6360         ($(cross-rpcgen-objs)): New rule.
6361         ($(objpfx)cross-rpcgen): Likewise.
6362         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6363         comment.
6364         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6365         ($(objpfx)x%.stmp): Likewise.
6366         * sunrpc/proto.h [IS_IN_build] (_): Define.
6367         [IS_IN_build] (_libc_intl_domainname): Likewise.
6369 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6371         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6372         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6373         and R_X86_64_TPOFF64.
6375 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6377         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6378         sysdeps/unix/sysv/syscalls.list.
6379         (stime): Likewise.
6380         (utime): Likewise.
6381         * sysdeps/unix/sysv/syscalls.list: Remove file.
6383 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6385         [BZ #3440]
6386         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6387         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6388         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6389         (__LC_IDENTIFICATION): Make these macros useful in #if
6390         expressions, as required by C99.
6392 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6394         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6395         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6396         after this.
6398 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6400         * stdlib/longlong.h: Updated from GCC.
6402 2012-05-09  Andreas Jaeger  <aj@suse.de>
6404         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6405         default is first entry.
6406         (run_mode): Set type.
6407         (main): Remove informal message about syslog.
6408         (options): Fix typo.
6410         [BZ #14053]
6411         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6412         to asm.
6413         (lrint): Likewise.
6414         (llrintf): Likewise.
6415         (llrint): Likewise.
6416         (rint): Likewise.
6417         (rintf): Likewise.
6418         (nearbyint): Likewise.
6419         (nearbyintf): Likewise.
6421 2012-05-09  Andreas Jaeger  <aj@suse.de>
6422             Pedro Alves  <palves@redhat.com>
6424         * nscd/nscd.c (run_mode): Use enum.
6425         (main): Cleanup coding style issue.
6427 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6428             Andreas Jaeger  <aj@suse.de>
6430         * nscd/nscd.c (go_background): Replaced with...
6431         (run_mode): ... this.
6432         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6433         (options): Add -F --foreground.
6434         (main): Implement it.
6435         (parse_opt): Parse it.
6437 2012-05-09  Andreas Jaeger  <aj@suse.de>
6439         [BZ #14083]
6440         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6441         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6442         -Wconversion warning.
6443         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6444         Likewise.
6446 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6448         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6449         == 0.
6450         (LC_ALL): Use macro-int-constant.
6451         (LC_COLLATE): Likewise.
6452         (LC_CTYPE): Likewise.
6453         (LC_MESSAGES): Likewise.
6454         (LC_MONETARY): Likewise.
6455         (LC_NUMERIC): Likewise.
6456         (LC_TIME): Likewise.
6457         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6458         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6459         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6460         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6461         Specify type.
6462         [C99-based standards] (float_t): Expect type.
6463         [C99-based standards] (double_t): Expect type.
6464         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6465         type.
6466         [C99-based standards] (HUGE_VALL): Likewise.
6467         [C99-based standards] (INFINITY): Likewise.
6468         [C99-based standards] (NAN): Likewise.
6469         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6470         [C99-based standards] (FP_NAN): Likewise.
6471         [C99-based standards] (FP_NORMAL): Likewise.
6472         [C99-based standards] (FP_SUBNORMAL): Likewise.
6473         [C99-based standards] (FP_ZERO): Likewise.
6474         [C99-based standards] (FP_FAST_FMA): Use
6475         optional-macro-int-constant.  Specify type.  Require == 1.
6476         [C99-based standards] (FP_FAST_FMAF): Likewise.
6477         [C99-based standards] (FP_FAST_FMAL): Likewise.
6478         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6479         [C99-based standards] (FP_ILOGBNAN): Likewise.
6480         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6481         Specify type.
6482         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6483         [C99-based standards] (math_errhandling): Specify type.
6484         [ISO99 || ISO11] (signgam): Do not allow.
6485         [non-C99-based standards] (copysignf): Do not allow.
6486         [non-C99-based standards] (exp2f): Likewise.
6487         [non-C99-based standards] (log2f): Likewise.
6488         [non-C99-based standards] (modff): Allow.
6489         [non-C99-based standards] (erff): Do not allow.
6490         [non-C99-based standards] (erfcf): Likewise.
6491         [non-C99-based standards] (gammaf): Likewise.
6492         [non-C99-based standards] (hypotf): Likewise.
6493         [non-C99-based standards] (j0f): Likewise.
6494         [non-C99-based standards] (j1f): Likewise.
6495         [non-C99-based standards] (jnf): Likewise.
6496         [non-C99-based standards] (lgammaf): Likewise.
6497         [non-C99-based standards] (tgammaf): Likewise.
6498         [non-C99-based standards] (y0f): Likewise.
6499         [non-C99-based standards] (y1f): Likewise.
6500         [non-C99-based standards] (ynf): Likewise.
6501         [non-C99-based standards] (isnanf): Likewise.
6502         [non-C99-based standards] (acoshf): Likewise.
6503         [non-C99-based standards] (asinhf): Likewise.
6504         [non-C99-based standards] (atanhf): Likewise.
6505         [non-C99-based standards] (cbrtf): Likewise.
6506         [non-C99-based standards] (expm1f): Likewise.
6507         [non-C99-based standards] (ilogbf): Likewise.
6508         [non-C99-based standards] (log1pf): Likewise.
6509         [non-C99-based standards] (logbf): Likewise.
6510         [non-C99-based standards] (nextafterf): Likewise.
6511         [non-C99-based standards] (remainderf): Likewise.
6512         [non-C99-based standards] (rintf): Likewise.
6513         [non-C99-based standards] (scalbf): Likewise.
6514         [non-C99-based standards] (copysignl): Likewise.
6515         [non-C99-based standards] (exp2l): Likewise.
6516         [non-C99-based standards] (log2l): Likewise.
6517         [non-C99-based standards] (modfl): Allow.
6518         [non-C99-based standards] (erfl): Do not allow.
6519         [non-C99-based standards] (erfcl): Likewise.
6520         [non-C99-based standards] (gammal): Likewise.
6521         [non-C99-based standards] (hypotl): Likewise.
6522         [non-C99-based standards] (j0l): Likewise.
6523         [non-C99-based standards] (j1l): Likewise.
6524         [non-C99-based standards] (jnl): Likewise.
6525         [non-C99-based standards] (lgammal): Likewise.
6526         [non-C99-based standards] (tgammal): Likewise.
6527         [non-C99-based standards] (y0l): Likewise.
6528         [non-C99-based standards] (y1l): Likewise.
6529         [non-C99-based standards] (ynl): Likewise.
6530         [non-C99-based standards] (isnanl): Likewise.
6531         [non-C99-based standards] (acoshl): Likewise.
6532         [non-C99-based standards] (asinhl): Likewise.
6533         [non-C99-based standards] (atanhl): Likewise.
6534         [non-C99-based standards] (cbrtl): Likewise.
6535         [non-C99-based standards] (expm1l): Likewise.
6536         [non-C99-based standards] (ilogbl): Likewise.
6537         [non-C99-based standards] (log1pl): Likewise.
6538         [non-C99-based standards] (logbl): Likewise.
6539         [non-C99-based standards] (nextafterl): Likewise.
6540         [non-C99-based standards] (remainderl): Likewise.
6541         [non-C99-based standards] (rintl): Likewise.
6542         [non-C99-based standards] (scalbl): Likewise.
6543         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6544         [non-C99-based standards] (FP_*): Do not allow.
6545         [C99-based standards] (FP_*): Change to
6546         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6547         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6548         allow.
6549         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6550         (SIG_ERR): Likewise.
6551         [X/Open-based standards] (SIG_HOLD): Likewise.
6552         (SIG_IGN): Likewise.
6553         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6554         positive value.
6555         (SIGFPE): Likewise.
6556         (SIGILL): Likewise.
6557         (SIGINT): Likewise.
6558         (SIGSEGV): Likewise.
6559         (SIGTER): Likewise.
6560         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6561         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6562         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6563         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6564         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6565         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6566         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6567         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6568         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6569         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6570         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6571         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6572         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6573         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6574         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6575         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6576         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6577         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6578         [X/Open-based standards] (SIGTRAP): Likewise.
6579         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6580         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6581         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6582         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6583         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6584         allow.
6586 2012-05-08  Ian Wienand  <ianw@vmware.com>
6588         [BZ #14080]
6589         * time/tzset.c (__tzset_parse_tz): Update default rules for
6590         daylight time changes in the Energy Policy Act of 2005.
6592 2012-05-09  Andreas Jaeger  <aj@suse.de>
6594         [BZ #13983]
6595         * elf/ldconfig.c (parse_conf): Change string to make clear that
6596         ldconfig only issued a warning if ld.so.conf does not exist.
6598 2012-05-08  David S. Miller  <davem@davemloft.net>
6600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6601         movxtod instead of popping the value on the stack.
6603         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6605 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6607         * config.h.in: Add HAVE_ARM_PCS_VFP.
6609 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6611         [BZ #13979]
6612         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6613         checking but the checks are disabled for any reason.
6615 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6617         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6618         and ELF64_R_TYPE with ELFW(R_TYPE).
6620 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6622         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6623         (ulimit): Likewise.
6625         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6626         (settimeofday): Likewise.
6628 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6630         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6631         a struct th_u2 inside the union, and move tu_block/tu_code into
6632         a new th_u3 union of tu_block/tu_code inside of that.  Move
6633         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6634         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6635         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6636         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6637         (th_stuff): Change to th_u1.tu_stuff.
6638         (th_data): Define.
6639         (th_msg): Change to th_u1.th_u2.tu_data.
6641 2012-05-07  David S. Miller  <davem@davemloft.net>
6643         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6645         [BZ #14074]
6646         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6647         (SETUP_PIC_REG): Use it.
6648         (SETUP_PIC_REG_LEAF): Use it.
6650 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6652         [BZ #13885]
6653         [BZ #13923]
6654         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6655         USE_AS_EXPM1L.
6656         (EXPL_FINITE): Likewise.
6657         (FLDLOG): Likewise.
6658         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6659         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6660         e_expl.S.
6661         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6662         USE_AS_EXPM1L.
6663         (EXPL_FINITE): Likewise.
6664         (FLDLOG): Likewise.
6665         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6666         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6667         e_expl.S.
6668         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6669         test of -max_value argument for long double.
6670         * sysdeps/i386/fpu/libm-test-ulps: Update.
6671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6673 2012-05-06  David S. Miller  <davem@davemloft.net>
6675         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6676         quad soft-float symbols whose references which are compiler
6677         generated.
6678         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6680 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6682         [BZ #13884]
6683         [BZ #13914]
6684         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6685         USE_AS_EXP10L.
6686         (EXPL_FINITE): Likewise.
6687         (FLDLOG): Likewise.
6688         (c0): Likewise.
6689         (c1): Likewise.
6690         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6691         Adjust comments for base varying.
6692         (__expl_finite): Change alias to EXPL_FINITE.
6693         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6694         e_expl.S.
6695         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6696         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6697         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6698         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6699         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6700         USE_AS_EXP10L.
6701         (EXPL_FINITE): Likewise.
6702         (FLDLOG): Likewise.
6703         (c0): Likewise.
6704         (c1): Likewise.
6705         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6706         Adjust comments for base varying.
6707         (__expl_finite): Change alias to EXPL_FINITE.
6708         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6709         tests for bugs.
6710         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6712         [BZ #14064]
6713         * math/libm-test.inc (check_float_internal): Correct ulp
6714         calculation for subnormal expected results.
6716 2012-05-06  Andreas Jaeger  <aj@suse.de>
6718         * Makeconfig (+math-flags): New, set to -frounding-math.
6719         (+cflags): Add +math-flags so that all of glibc gets compiled with
6720         it.
6722         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6724 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6726         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6727         Disable one test.
6729         [BZ #13787]
6730         [BZ #13922]
6731         [BZ #14036]
6732         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6733         (__ieee754_expl): Allow for and saturate large arguments.
6734         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6735         (u_threshold): Likewise.
6736         (__exp): Call __ieee754_exp before checking for overflow and
6737         underflow.
6738         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6739         (u_threshold): Likewise.
6740         (__expf): Call __ieee754_expf before checking for overflow and
6741         underflow.
6742         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6743         (u_threshold): Likewise.
6744         (__expl): Call __ieee754_expl before checking for overflow and
6745         underflow.
6746         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6747         (__ieee754_expl): Allow for and saturate large arguments.
6748         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6749         missing overflow exception on overflow.
6750         (expm1_test): Do not allow missing overflow exception on overflow.
6752         * sysdeps/i386/fpu/e_expl.c: Move to ...
6753         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6754         rather than using inline asm.
6755         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6756         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6757         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6759         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6760         (nice): Likewise.
6761         (poll): Likewise.
6762         (signal): Likewise.
6763         (time): Likewise.
6764         (times): Likewise.
6766 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6768         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6769         sysdeps/unix/common/syscalls.list.
6770         (fchmod): Likewise.
6771         (fchown): Likewise.
6772         (ftruncate): Likewise.
6773         (getrusage): Likewise.
6774         (gettimeofday): Likewise.
6775         (setpgid): Likewise.
6776         (setregid): Likewise.
6777         (setreuid): Likewise.
6778         (sigaction): Likewise.
6779         (truncate): Likewise.
6780         (vhangup): Likewise.
6781         * sysdeps/unix/common/syscalls.list: Remove file.
6782         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6783         * sysdeps/unix/sysv/linux/Implies: Likewise.
6785 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6787         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6789         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6790         Moved to ...
6791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6792         Here.
6793         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6794         to ...
6795         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6796         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6797         to ...
6798         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6799         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6800         to ...
6801         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6802         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6803         to ...
6804         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6805         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6806         to ...
6807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6808         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6809         to ...
6810         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6811         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6812         to ...
6813         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6814         Here.
6815         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6816         to ...
6817         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6818         Here.
6819         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6820         to ...
6821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6822         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6823         Moved to ...
6824         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6825         Here.
6826         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6827         to ...
6828         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6830 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6832         * sysdeps/unix/common/bits/dirent.h: Remove file.
6833         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6835         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6836         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6837         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6838         * sysdeps/unix/bsd/isatty.c: Likewise.
6839         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6840         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6841         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6843 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6845         [BZ #13563]
6846         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6847         long double comparison inaccuracies.
6848         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6849         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6851 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6853         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6854         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6856 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6858         [BZ #14049]
6859         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6860         nonzero digits before rounding a hex value.
6861         * stdlib/tst-strtod.c (tests): Add another test.
6863 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6865         * sysdeps/s390/fpu/libm-test-ulps: Update.
6867 2012-05-03  Andreas Jaeger  <aj@suse.de>
6869         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6870         does not get optimized out.
6871         (malloc_opt_barrier): New.
6873 2012-05-03  Andreas Jaeger  <aj@suse.de>
6874             Roland McGrath  <roland@hack.frob.com>
6876         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6877         intermediate file deletion.
6878         (generated): Add .symlist files.
6880 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6882         [BZ #13775]
6883         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6884         Redirect under this condition.
6885         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6886         [__USE_GNU] (__dprintf_chk): Not under this condition.
6887         [__USE_GNU] (__vdprintf_chk): Likewise.
6888         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6889         under this condition.
6890         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6891         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6892         [__USE_XOPEN2K8] (vdprintf): Likewise.
6893         [__USE_GNU] (__dprintf_chk): Not under this condition.
6894         [__USE_GNU] (__vdprintf_chk): Likewise.
6895         [__USE_GNU] (dprintf): Likewise.
6896         [__USE_GNU] (vdprintf): Likewise.
6898 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6900         * elf/Makefile (common-generated): Set this instead of generated for
6901         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6902         $(all-built-dso)-derived lists.
6904 2012-05-03  Andreas Jaeger  <aj@suse.de>
6906         * sysdeps/i386/fpu/libm-test-ulps: Update.
6908         * FAQ: Removed.
6909         * FAQ.in: Likewise.
6910         * scripts/gen-FAQ.pl: Likewise.
6911         * manual/install.texi (Installation): Point to online location of
6912         FAQ.
6913         * Makefile (files-for-dist): Remove FAQ.
6914         (FAQ): Remove.
6916 2012-05-02  Allan McRae  <allan@archlinux.org>
6918         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6919         (LDFLAGS-reldepmod5.so): Likewise.
6920         (LDFLAGS-reldep6mod1.so): Likewise.
6921         (LDFLAGS-reldep6mod4.so): Likewise.
6922         (LDFLAGS-reldep8mod3.so): Likewise.
6923         (LDFLAGS-unload4mod1.so): Likewise.
6924         (LDFLAGS-unload4mod2.so): Likewise.
6925         (LDFLAGS-tst-initorder): Likewise.
6926         (LDFLAGS-tst-initordera2.so): Likewise.
6927         (LDFLAGS-tst-initordera3.so): Likewise.
6928         (LDFLAGS-tst-initordera4.so): Likewise.
6929         (LDFLAGS-tst-initorderb2.so): Likewise.
6930         (LDFLAGS-noload): Likewise.
6931         (LDFLAGS-next): Likewise.
6932         (LDFLAGS-order2mod1.so): Likewise.
6933         (LDFLAGS-order2mod2.so): Likewise.
6934         (LDFLAGS-tst-initorder2): Likewise.
6935         (LDFLAGS-tst-initorder2a.so): Likewise.
6936         (LDFLAGS-tst-initorder2b.so): Likewise.
6937         (LDFLAGS-tst-initorder2c.so): Likewise.
6938         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6940 2012-05-02  David S. Miller  <davem@davemloft.net>
6942         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6944 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6946         [BZ #14055]
6947         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6949 2012-05-02  Andreas Jaeger  <aj@suse.de>
6951         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6952         since we manipulate rounding mode.
6953         (CPPFLAGS-test-idouble.c): Likewise.
6954         (CPPFLAGS-test-ifloat.c): Likewise.
6955         (CFLAGS-test-ldouble.c): Likewise.
6956         (CFLAGS-test-double.c): Likewise.
6957         (CFLAGS-test-float.c): Likewise.
6958         (CFLAGS-test-misc.c): Likewise.
6959         (CFLAGS-test-test-fenv.c): Likewise.
6961 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6963         [BZ #2550]
6964         [BZ #2570]
6965         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6966         comparisons to determine direction to adjust input.
6968 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6970         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6971         output to the target.
6973         * scripts/localplt.awk: New file.
6974         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6975         (check-localplt-CFLAGS): Variable removed.
6976         ($(all-built-dso:=.jmprel)): New static pattern rule.
6977         (generated): Add those targets.
6978         (localplt-built-dso): New variable.
6979         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6981         * elf/check-localplt.c: File removed.
6983         * scripts/check-execstack.awk: New file.
6984         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6985         (check-execstack-CFLAGS): Variable removed.
6986         ($(objpfx)check-execstack.h): Target removed.
6987         ($(objpfx)execstack-default): New target.
6988         (generated): Add that instead of check-execstack.h.
6989         ($(all-built-dso:=.phdr)): New static pattern rule.
6990         (generated): Add those targets.
6991         * elf/check-execstack.c: File removed.
6993         * scripts/check-textrel.awk: New file.
6994         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6995         (check-textrel-CFLAGS): Variable removed.
6996         (all-built-dso): Use := to define.o
6997         ($(all-built-dso:=.dyn)): New static pattern rule.
6998         (generated): Add those targets.
6999         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7000         * config.make.in (READELF): New substituted variable.
7001         * elf/check-textrel.c: File removed.
7003 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7005         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7006         allow.
7007         * conform/data/ctype.h-data [C99-based standards] (isblank):
7008         Expect function.
7009         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7010         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7011         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7012         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7013         Specify type.  Require positive value.
7014         (EILSEQ): Likewise.
7015         (ERANGE): Likewise.
7016         [ISO || POSIX] (EILSEQ): Do not expect.
7017         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7018         Specify type.  Require positive value.
7019         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7020         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7021         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7022         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7023         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7024         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7025         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7026         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7027         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7028         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7029         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7030         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7031         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7032         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7033         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7034         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7035         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7036         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7037         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7038         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7039         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7040         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7041         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7042         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7043         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7044         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7045         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7046         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7047         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7048         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7049         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7050         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7051         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7052         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7053         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7054         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7055         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7056         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7057         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7058         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7059         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7060         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7061         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7062         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7063         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7064         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7065         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7066         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7067         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7068         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7069         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7070         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7071         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7072         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7073         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7074         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7075         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7076         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7077         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7078         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7079         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7080         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7081         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7082         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7083         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7084         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7085         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7086         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7087         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7088         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7089         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7090         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7091         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7092         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7093         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7094         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7095         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7096         Require >= 2.
7097         (FLT_ROUNDS): Expect as macro, not constant.
7098         (FLT_MANT_DIG): Use macro-int-constant.
7099         (DBL_MANT_DIG): Likewise.
7100         (LDBL_MANT_DIG): Likewise.
7101         (FLT_DIG): Likewise.
7102         (DBL_DIG): Likewise.
7103         (LDBL_DIG): Likewise.
7104         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7105         (DBL_MIN_EXP): Likewise.
7106         (LDBL_MIN_EXP): Likewise.
7107         (FLT_MAX_EXP): Use macro-int-constant.
7108         (DBL_MAX_EXP): Likewise.
7109         (LDBL_MAX_EXP): Likewise.
7110         (FLT_MAX_10_EXP): Likewise.
7111         (DBL_MAX_10_EXP): Likewise.
7112         (LDBL_MAX_10_EXP): Likewise.
7113         (FLT_MAX): Use macro-constant.
7114         (DBL_MAX): Likewise.
7115         (LDBL_MAX): Likewise.
7116         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7117         (DBL_EPSILON): Likewise.
7118         (LDBL_EPSILON): Likewise.
7119         (FLT_MIN): Likewise.
7120         (DBL_MIN): Likewise.
7121         (LDBL_MIN): Likewise.
7122         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7123         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7124         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7125         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7126         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7127         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7128         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7129         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7130         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7131         [ISO11] (FLT_TRUE_MIN): Likewise.
7132         [ISO11] (LDBL_TRUE_MIN): Likewise.
7133         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7134         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7135         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7136         (SCHAR_MAX): Likewise.
7137         (UCHAR_MAX): Likewise.
7138         (CHAR_MIN): Likewise.
7139         (CHAR_MAX): Likewise.
7140         (MB_LEN_MAX): Use macro-int-constant.
7141         (SHRT_MIN): Use macro-int-constant.  Specify type.
7142         (SHRT_MAX): Likewise.
7143         (USHRT_MAX): Likewise.
7144         (INT_MAX): Likewise.
7145         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7146         bound negative.
7147         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7148         bound with "U".
7149         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7150         bound with "L".
7151         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7152         bound negative.  Suffix upper bound with "L".
7153         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7154         bound with "UL".
7155         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7156         Specify type.
7157         [C99-based standards] (LLONG_MAX): Likewise.
7158         [C99-based standards] (ULLONG_MAX): Likewise.
7159         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7160         == 0.
7161         [ISO11] (max_align_t): Require type.
7162         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7164         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7165         from $CFLAGS, without defining away __attribute__ calls.
7166         (checknamespace): Use $CFLAGS_namespace.
7168         * conform/conformtest.pl (@keywords): Only include C99 keywords
7169         for standards based on C99 or C11.
7171         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7172         Disable tests.
7173         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7174         UNIX98]: Likewise.
7176         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7177         usability of symbols in #if.
7179         * conform/conformtest.pl: If macro or constant types start
7180         "promoted:", expect the symbol to be of the following type
7181         promoted by the integer promotions.
7183         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7184         in one place.  Also handle "macro-constant".
7186         * conform/conformtest.pl: Only accept expected macro values with
7187         "==".  Parse all "macro" lines in one place.
7188         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7190         * conform/conformtest.pl: Handle braced types on "constant" lines
7191         instead of handling "typed-constant".
7192         * conform/data/signal.h-data: Use "constant" instead of
7193         "typed-constant".
7195         * conform/conformtest.pl: Handle "optional-" at start of lines in
7196         one place rather than duplicating several cases.  Handle each
7197         format of "macro" line with initial "optional-".
7199         * conform/conformtest.pl: Only accept expected constant or
7200         optional-constant values with "==".  Parse all "constant" lines in
7201         one place.  Parse all "optional-constant" lines in one place.
7202         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7203         * conform/data/fmtmsg.h-data: Likewise.
7204         * conform/data/netinet/in.h-data: Likewise.
7205         * conform/data/tar.h-data: Likewise.
7206         * conform/data/limits.h-data: Use "==" form on "constant" and
7207         "optional-constant" lines.
7209         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7210         Use -std=c99 for XOPEN2K.
7211         (@knownproblems): Remove.
7212         (newtoken): Don't check %isknown.
7214         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7215         Do not expect macro.
7216         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7223         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7224         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7225         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7228         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7229         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7230         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7231         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7232         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7233         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7234         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7235         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7236         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7237         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7238         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7239         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7240         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7241         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7242         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7243         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7244         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7245         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7246         [XPG3] (acosh): Likewise.
7247         [XPG3] (asinh): Likewise.
7248         [XPG3] (atanh): Likewise.
7249         [XPG3] (cbrt): Likewise.
7250         [XPG3] (expm1): Likewise.
7251         [XPG3] (ilogb): Likewise.
7252         [XPG3] (log1p): Likewise.
7253         [XPG3] (logb): Likewise.
7254         [XPG3] (nextafter): Likewise.
7255         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7256         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7257         [XPG3] (remainder): Likewise.
7258         [XPG3] (rint): Likewise.
7259         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7260         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7261         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7262         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7263         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7264         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7265         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7266         [UNIX98 || XOPEN2K] (scalb): Expect.
7267         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7268         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7295         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7296         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7297         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7298         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7299         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7300         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7301         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7302         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7303         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7304         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7305         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7306         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7307         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7308         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7309         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7310         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7311         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7312         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7313         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7314         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7315         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7316         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7317         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7318         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7319         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7320         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7321         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7322         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7323         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7324         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7325         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7326         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7327         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7328         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7329         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7330         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7331         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7332         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7333         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7334         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7335         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7336         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7337         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7338         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7339         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7340         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7341         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7342         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7343         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7344         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7345         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7346         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7347         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7348         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7349         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7350         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7351         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7352         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7353         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7354         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7355         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7356         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7357         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7358         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7359         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7360         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7361         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7362         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7363         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7364         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7365         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7366         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7367         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7368         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7369         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7370         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7371         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7372         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7373         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7374         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7375         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7376         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7377         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7378         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7379         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7380         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7381         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7382         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7383         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7384         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7385         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7386         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7387         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7388         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7389         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7390         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7391         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7392         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7393         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7394         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7395         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7396         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7397         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7398         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7399         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7400         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7401         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7402         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7403         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7405         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7406         _XOPEN_SOURCE_EXTENDED for XPG4.
7408         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7410         * Makeconfig (localtime): Remove variable.
7411         (inst_localtime-file): Likewise.
7413 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7416         Update.
7417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7418         Update.
7419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7420         Update.
7421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7422         Update.
7423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7424         Update.
7425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7426         Update.
7427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7428         Update.
7429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7430         Update.
7431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7432         Update.
7434 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7436         [BZ #2550]
7437         [BZ #2570]
7438         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7439         comparisons to determine direction to adjust input.
7440         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7441         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7442         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7443         Likewise.
7444         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7445         Likewise.
7446         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7447         Likewise.
7448         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7449         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7450         Likewise.
7451         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7452         Likewise.
7453         * math/libm-test.inc (nexttoward_test): Add more tests.
7455 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7457         [BZ #14040]
7458         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7459         in version GLIBC_2.1, not GLIBC_2.0.
7460         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7461         Likewise.
7463 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7465         [BZ #13942]
7466         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7467         (1 - x) * (1 + x).
7468         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7469         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7470         * math/libm-test.inc (acos_test): Add more tests.
7471         (asin_test): Likewise.
7472         * sysdeps/i386/fpu/libm-test-ulps: Update.
7473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7475         [BZ #14034]
7476         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7477         of square root.
7478         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7479         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7480         * math/libm-test.inc (acos_test_tonearest): New function.
7481         (acos_test_towardzero): Likewise.
7482         (acos_test_downward): Likewise.
7483         (acos_test_upward): Likewise.
7484         (asin_test_tonearest): Likewise.
7485         (asin_test_towardzero): Likewise.
7486         (asin_test_downward): Likewise.
7487         (asin_test_upward): Likewise.
7488         (main): Call the new functions.
7489         * sysdeps/i386/fpu/libm-test-ulps: Update.
7490         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7492         [BZ #13884]
7493         [BZ #13924]
7494         * math/e_exp10.c: Include <float.h>.
7495         (__ieee754_exp10): Handle underflow here rather than multiplying
7496         large negative argument by M_LN10.
7497         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7498         of __ieee754_expf.
7499         * math/e_exp10l.c: Include <float.h>.
7500         (__ieee754_exp10l): Handle underflow here rather than multiplying
7501         large negative argument by M_LN10l.
7502         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7503         spurious overflow exception on underflow.
7505 2012-04-29  Marek Polacek  <polacek@redhat.com>
7507         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7508         (__fortify_function): New macro.
7509         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7510         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7511         __extern_always_inline.
7512         * libio/bits/stdio2.h: Likewise.
7513         * libio/bits/stdio.h: Likewise.
7514         * string/string.h: Likewise.
7515         * string/bits/string3.h: Likewise.
7516         * include/stdio.h: Likewise.
7517         * stdlib/bits/stdlib.h: Likewise.
7518         * stdlib/stdlib.h: Likewise.
7519         * rt/bits/mqueue2.h: Likewise.
7520         * rt/mqueue.h: Likewise.
7521         * posix/bits/unistd.h: Likewise.
7522         * posix/unistd.h: Likewise.
7523         * io/bits/poll2.h: Likewise.
7524         * io/bits/fcntl2.h: Likewise.
7525         * io/fcntl.h: Likewise.
7526         * io/sys/poll.h: Likewise.
7527         * misc/bits/syslog.h: Likewise.
7528         * misc/bits/syslog-ldbl.h: Likewise.
7529         * misc/sys/syslog.h: Likewise.
7530         * socket/bits/socket2.h: Likewise.
7531         * socket/sys/socket.h: Likewise.
7532         * debug/tst-chk1.c: Likewise.
7533         * wcsmbs/bits/wchar2.h: Likewise.
7534         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7535         * wcsmbs/wchar.h: Likewise.
7537 2012-04-29  Andreas Jaeger  <aj@suse.de>
7539         * Makerules (tests): Remove enable-check-abi protection.
7540         (check-abi-warn): Remove.
7541         (check-abi-%): Remove check-abi-warn usage.
7543         * configure.in: Remove check-abi configure option.
7544         * configure: Regenerated.
7545         * config.make.in (enable-check-abi): Remove.
7547 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7549         [BZ #14033]
7550         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7551         double functions to double *_finite functions.
7553         [BZ #13941]
7554         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7555         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7556         LDBL_MIN_EXP.
7557         * stdio-common/Makefile (tests): Add tst-sprintf3.
7558         * stdio-common/tst-sprintf3.c: New file.
7560         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7561         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7563 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7565         * conform/conformtest.pl: Remove duplicate typed-constant
7566         handling.
7568 2012-04-28  David S. Miller  <davem@davemloft.net>
7570         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7571         (check-abi-%): Remove AWK script prerequisite and explicit
7572         abilist directory.
7573         (check-abi): Rewrite to just diff the symlist with the abilist.
7574         (config-tls, config-abi-config): Delete, no longer used.
7575         (update-abi-%): Remove AWK script and explicit abilist directory.
7576         (update-abi): Rewrite to simply compare and conditionally copy the
7577         symlist and the sysdep abilist file.  Remove update-abi-config
7578         checks.
7579         * abilist/ld.abilist: Remove.
7580         * abilist/libBrokenLocale.abilist: Remove.
7581         * abilist/libanl.abilist: Remove.
7582         * abilist/libcrypt.abilist: Remove.
7583         * abilist/libdl.abilist: Remove.
7584         * abilist/librt.abilist: Remove.
7585         * abilist/libthread_db.abilist: Remove.
7586         * abilist/libutil.abilist: Remove.
7587         * scripts/extract-abilist.awk: Remove.
7588         * scripts/merge-abilist.awk: Remove.
7589         * sysdeps/generic/libcidn.abilist: New file.
7590         * sysdeps/generic/libnss_compat.abilist: New file.
7591         * sysdeps/generic/libnss_db.abilist: New file.
7592         * sysdeps/generic/libnss_dns.abilist: New file.
7593         * sysdeps/generic/libnss_files.abilist: New file.
7594         * sysdeps/generic/libnss_hesiod.abilist: New file.
7595         * sysdeps/generic/libnss_nis.abilist: New file.
7596         * sysdeps/generic/libnss_nisplus.abilist: New file.
7597         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7598         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7599         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7600         file.
7601         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7602         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7603         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7604         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7605         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7606         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7607         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7608         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7609         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7610         file.
7611         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7612         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7613         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7614         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7615         file.
7616         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7617         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7618         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7619         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7620         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7621         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7622         file.
7623         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7624         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7625         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7626         file.
7627         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7628         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7629         New file.
7630         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7631         New file.
7632         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7633         New file.
7634         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7635         New file.
7636         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7637         New file.
7638         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7639         New file.
7640         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7641         New file.
7642         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7643         New file.
7644         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7645         New file.
7646         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7647         New file.
7648         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7649         New file.
7650         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7651         New file.
7652         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7653         New file.
7654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7655         file.
7656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7657         New file.
7658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7659         New file.
7660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7661         file.
7662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7663         New file.
7664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7665         New file.
7666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7667         file.
7668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7669         New file.
7670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7671         New file.
7672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7673         New file.
7674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7675         New file.
7676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7677         New file.
7678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7679         New file.
7680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7681         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7682         file.
7683         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7684         New file.
7685         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7686         file.
7687         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7688         file.
7689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7690         file.
7691         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7692         file.
7693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7694         file.
7695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7696         New file.
7697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7698         file.
7699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7700         file.
7701         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7702         New file.
7703         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7704         file.
7705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7706         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7707         file.
7708         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7709         New file.
7710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7711         file.
7712         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7713         file.
7714         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7715         file.
7716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7717         file.
7718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7719         file.
7720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7721         New file.
7722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7723         file.
7724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7725         file.
7726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7727         New file.
7728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7729         file.
7730         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7731         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7732         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7733         file.
7734         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7735         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7736         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7737         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7738         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7739         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7740         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7741         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7742         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7743         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7744         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7745         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7746         file.
7747         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7748         New file.
7749         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7750         file.
7751         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7752         file.
7753         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7754         file.
7755         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7756         file.
7757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7758         file.
7759         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7760         New file.
7761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7762         New file.
7763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7764         file.
7765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7766         New file.
7767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7768         file.
7769         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7770         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7771         file.
7772         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7773         New file.
7774         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7775         file.
7776         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7777         file.
7778         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7779         file.
7780         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7781         file.
7782         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7783         file.
7784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7785         New file.
7786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7787         New file.
7788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7789         file.
7790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7791         New file.
7792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7793         file.
7795 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7797         * conform/conformtest.pl: Fix typo in handling typed-constant from
7798         allow-header.
7800 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7802         * README: Cut down references to pre-2.6 Linux kernels and
7803         Linuxthreads.  Update lists of configurations in libc and ports
7804         and sort alphabetically.  Say "or newer" with Linux kernel version
7805         requirements.
7807         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7809 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7811         [BZ #887]
7812         * math/libm-test.inc (logb_test_downward): New test to expose
7813         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7814         rounding mode.
7816 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7818         [BZ #14027]
7819         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7820         to be done.
7821         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7822         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7824 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7826         * sysdeps/unix/i386/brk.S: Remove file.
7827         * sysdeps/unix/i386/dl-brk.S: Likewise.
7828         * sysdeps/unix/i386/pipe.S: Likewise.
7829         * sysdeps/unix/i386/sigreturn.S: Likewise.
7830         * sysdeps/unix/i386/syscall.S: Likewise.
7831         * sysdeps/unix/i386/vfork.S: Likewise.
7832         * sysdeps/unix/i386/wait.S: Likewise.
7834         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7835         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7837         * configure.in (arm*-none*): Do not allow without
7838         --enable-hacker-mode.
7839         (netbsd*): Remove case setting base_os.
7840         (386bsd*): Likewise.
7841         (freebsd*): Likewise.
7842         (bsdi*): Likewise.
7843         (osf*): Likewise.
7844         (sunos*): Likewise.
7845         (ultrix*): Likewise.
7846         (newsos*): Likewise.
7847         (dynix*): Likewise.
7848         (*bsd*): Likewise.
7849         (sysv*): Likewise.
7850         (isc*): Likewise.
7851         (esix*): Likewise.
7852         (sco*): Likewise.
7853         (minix*): Likewise.
7854         (irix4*): Likewise.
7855         (irix6*): Likewise.
7856         (solaris[2-9]*): Likewise.
7857         (none): Likewise.
7858         * configure: Regenerated.
7860 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7862         [BZ #11521]
7863         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7864         overflow or cancellation in calculating denominator.
7865         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7866         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7867         down expression to avoid unexpected rounding in newer GCCs.
7868         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7870 2012-04-26  David S. Miller  <davem@davemloft.net>
7872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7873         long-double compat symbols.
7874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7885         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7886         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7888 2012-04-25  David S. Miller  <davem@davemloft.net>
7890         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7891         HWCAP_* values only after the memory barriers have been defined.
7892         (atomic_full_barrier): Define.
7893         (atomic_read_barrier): Define.
7894         (atomic_write_barrier): Define.
7896 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7898         * shlib-versions: Add libgcc_s version information.
7899         * sysdeps/generic/libgcc_s.h: Remove.
7900         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7901         libgcc_s.h.
7902         * sysdeps/gnu/unwind-resume.c: Likewise.
7903         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7905 2012-04-25  David S. Miller  <davem@davemloft.net>
7907         * sysdeps/unix/sparc/brk.S: Delete.
7908         * sysdeps/unix/sparc/dl-brk.S: Delete.
7909         * sysdeps/unix/sparc/pipe.S: Delete.
7910         * sysdeps/unix/sparc/sysdep.S: Delete.
7911         * sysdeps/unix/sparc/sysdep.h: Delete.
7912         * sysdeps/unix/sparc/vfork.S: Delete.
7913         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7914         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7915         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7916         ret_ERRVAL, r0, r1, MOVE): Define.
7917         (JUMPTARGET): Remove.
7918         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7919         sysdeps/unix/sparc/sysdep.h
7920         (ENTRY, END): Remove.
7921         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7923 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7925         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7926         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7927         -DIS_IN_build.
7929         * timezone/README: Update upstream location and email address for
7930         tzcode and tzdata.
7931         * timezone/zdump.c: Update from tzcode 2012b.
7932         * timezone/zic.c: Likewise.
7934         * configure.in (libc_cv_as_needed): Remove test.
7935         * configure: Regenerated.
7936         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7937         conditional definition.
7938         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7939         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7940         * config.make.in (have-as-needed): Remove variable.
7942 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7943             Paul Pluzhnikov  <ppluzhnikov@google.com>
7945         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7946         strings correctly.
7948 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7950         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7951         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7952         * sysdeps/sh/strlen.S: Likewise.
7954 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7956         * sysdeps/unix/fork.S: Remove file.
7957         * sysdeps/unix/i386/fork.S: Likewise.
7958         * sysdeps/unix/sparc/fork.S: Likewise.
7960         * sysdeps/unix/system.c: Remove file.
7961         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7963         * sysdeps/unix/getegid.S: Remove file.
7964         * sysdeps/unix/geteuid.S: Likewise.
7966 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7968         * scripts/check-localplt.awk: New file.
7969         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7970         of diff.
7971         * scripts/data/localplt-generic.data: Add a comment.
7973         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7974         NODE when __dir_mkfile failed.
7975         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7976         Reported by Ludovic Courtès <ludo@gnu.org>.
7978 2012-04-24  Andreas Jaeger  <aj@suse.de>
7980         * Makerules (common-clean): Also remove gen-as-const-headers
7981         files.
7983 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7985         * Makerules (native-compile): Do not change working directory for
7986         build.  Use $(OUTPUT_OPTION) in command.
7987         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7989 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7991         [BZ #13886]
7992         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7993         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7994         * math/libm-test.inc (floor_test): Add more tests.
7995         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7997 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7999         * sysdeps/unix/getdents.c: Remove file.
8000         * sysdeps/unix/sysv/getdents.c: Likewise.
8001         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8003         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8004         sysdeps/unix/mman/syscalls.list.
8005         (mmap): Likewise.
8006         (mprotect): Likewise.
8007         (msync): Likewise.
8008         (munmap): Likewise.
8009         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8010         * sysdeps/unix/mman/syscalls.list: Remove.
8011         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8013         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8014         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8015         * configure: Regenerated.
8016         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8017         $(libgcc_s_suffix).
8018         * config.make.in (libgcc_s_suffix): Remove variable.
8020 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8022         * sysdeps/unix/sysv/gethostname.c: Move to ...
8023         * sysdeps/posix/gethostname.c: ... here.
8025         * sysdeps/unix/execve.S: Remove file.
8027         * sysdeps/unix/_exit.S: Remove file.
8029 2012-04-23  Andreas Jaeger  <aj@suse.de>
8031         [BZ #13739]
8032         * manual/Makefile: Remove make dist support, there's no
8033         need for a stand-alone documentation tar ball.
8034         (TEXI2DVI): Define always, it's not in Makeconfig.
8035         (dist): Removed.
8036         (tar-it): Removed.
8037         (edition): Removed.
8038         (glibc-doc-$(edition).tar): Removed
8039         (%.Z): Removed.
8040         (%.gz): Removed.
8041         (%.uu): Removed.
8042         (ETAGS): Remove, it's in Makeconfig.
8043         (move-if-change): Remove, it's in Makeconfig.
8045 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8047         [BZ #13970]
8048         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8049         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8050         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8051         (strtod_l, strtof_l, strtold_l): Remove __wur.
8052         It is not necessarily an error to ignore strtol's return value.
8053         One can reliably look at the stored endptr to decide whether
8054         the number had valid syntax.
8056 2012-04-21  Andreas Jaeger  <aj@suse.de>
8058         [BZ #13739]
8059         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8061 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8063         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8064         * sysdeps/unix/sysv/Versions: Remove file.
8066 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8068         [BZ #13927]
8069         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8071 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8073         [BZ #7064]
8074         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8075         version from __vm86.
8077 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8079         * sysdeps/unix/common/lxstat.c: Remove file.
8080         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8082         * sysdeps/unix/sysv/Makefile: Remove file.
8084         * sysdeps/unix/sysv/direct.h: Remove file.
8086         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8087         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8088         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8089         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8090         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8091         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8092         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8094         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8096         * sysdeps/unix/xmknod.c: Remove file.
8097         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8099         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8101         * sysdeps/unix/sysv/i386/time.S: Remove file.
8103         * sysdeps/unix/fxstat.c: Remove file.
8104         * sysdeps/unix/xstat.c: Likewise.
8105         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8107         * sysdeps/unix/sysv/sigaction.c: Remove file.
8109         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8110         (sysdep_headers): Remove variable.
8111         [termio.h not in sysdep_headers] (generated): Likewise.
8112         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8113         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8114         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8115         * sysdeps/unix/sysv/tcflow.c: Likewise.
8116         * sysdeps/unix/sysv/tcflush.c: Likewise.
8117         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8118         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8119         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8120         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8121         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8123         * sysdeps/unix/siglist.c: Remove file.
8125         * sysdeps/unix/getppid.S: Remove file.
8127         * sysdeps/unix/mkdir.c: Remove file.
8128         * sysdeps/unix/rmdir.c: Likewise.
8130 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8132         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8133         ERR_MAX value.
8134         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8135         errlist-compat value.
8137 2012-04-18  David S. Miller  <davem@davemloft.net>
8139         * sysdeps/generic/memcopy.h (reg_char): Delete.
8140         * debug/strcat_chk.c: Use char, not reg_char.
8141         * debug/strcpy_chk.c: Likewise.
8142         * debug/strncat_chk.c: Likewise.
8143         * debug/strncpy_chk.c: Likewise.
8144         * string/memchr.c: Likewise.
8145         * string/memrchr.c: Likewise.
8146         * string/rawmemchr.c: Likewise.
8147         * string/strcat.c: Likewise.
8148         * string/strchr.c: Likewise.
8149         * string/strchrnul.c: Likewise.
8150         * string/strcmp.c: Likewise.
8151         * string/strcpy.c: Likewise.
8152         * string/strncat.c: Likewise.
8153         * string/strncmp.c: Likewise.
8154         * string/strncpy.c: Likewise.
8156 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8158         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8159         __builtin_memcopy is called when src and dest ranges are known to not
8160         overlap.
8162 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8164         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8165         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8166         fwd_align_merge macro call.
8167         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8168         bwd_align_merge macro call.
8169         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8171 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8173         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8174         bwd_align_merge macros.
8175         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8176         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8177         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8179 2012-04-18  David S. Miller  <davem@davemloft.net>
8181         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8183 2012-04-18  Andreas Jaeger  <aj@suse.de>
8185         [BZ# 6794]
8186         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8187         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8188         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8190         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8191         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8192         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8194         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8195         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8196         Adjust for changed ldbl-128 files.
8198         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8199         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8200         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8202 2012-04-17  David S. Miller  <davem@davemloft.net>
8204         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8206 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8208         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8209         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8210         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8211         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8212         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8213         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8215 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8217         [BZ #6794]
8218         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8219         * math/libm-test.inc: Add ilogb errno and exception tests.
8220         * math/w_ilogb.c: New file: ilogb wrapper.
8221         * math/w_ilogbf.c: New file: ilogbf wrapper.
8222         * math/w_ilogbl.c: New file: ilogbl wrapper.
8223         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8224         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8225         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8226         exception being thrown with 0.0 as argument.
8227         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8228         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8229         exception being thrown with 0.0 as argument.
8230         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8231         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8232         exception being thrown with 0.0 as argument.
8233         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8234         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8235         exception being thrown with 0.0 as argument.
8236         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8237         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8238         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8239         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8240         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8241         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8242         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8243         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8244         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8246 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8248         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8249         with altivec.
8251 2012-04-16  Marek Polacek  <polacek@redhat.com>
8253         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8255 2012-04-16  Marek Polacek  <polacek@redhat.com>
8257         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8258         operands of fdivp instruction.
8260 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8262         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8263         * elf/tst-auditmod3b.c: Likewise.
8264         * elf/tst-auditmod4b.c: Likewise.
8265         * elf/tst-auditmod5b.c: Likewise.
8266         * elf/tst-auditmod6b.c: Likewise.
8267         * elf/tst-auditmod6c.c: Likewise.
8268         * elf/tst-auditmod7b.c: Likewise.
8269         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8270         * sysdeps/x86_64/preconfigure.in: Likewise.
8271         * sysdeps/x86_64/preconfigure: Regenerated.
8273 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8275         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8276         __ILP32__.
8278 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8280         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8281         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8283 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8285         [BZ #13973]
8286         * locale/iso-639.def: Fix gl language name. Spotted by
8287         Yaron Shahrabani.
8289 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8291         [BZ #2074]
8292         * libio/libio.h (__io_write_fn): Update comment.
8294 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8296         [BZ #2074]
8297         * stdio.texi (Hook Functions): The user provided writer function
8298         is not allowed to return -1.
8300 2012-04-11  David S. Miller  <davem@davemloft.net>
8302         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8304 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8306         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8307         Add a leading slash to rtkaio.
8309 2012-04-11  Jim Meyering  <meyering@redhat.com>
8311         [BZ #11959]
8312         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8313         It is not necessarily an error to ignore fwrite's return
8314         value.  One can reliably use ferror to test for errors after
8315         the fact.
8317 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8319         * bits/types.h (__snseconds_t): New type.
8320         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8322         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8323         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8324         (__SNSECONDS_T_TYPE): Likewise.
8325         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8326         (__SNSECONDS_T_TYPE): Likewise.
8327         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8328         (__SNSECONDS_T_TYPE): Likewise.
8330 2012-04-10  Andreas Jaeger  <aj@suse.de>
8332         [BZ #2636]
8333         * manual/time.texi (Processor Time): Return type of times is
8334         elapsed real time since an arbitrary point in the past.
8335         (CPU Time): Move CLK_TCK from here...
8336         (Processor Time): ...to here.  Correct description.
8337         * manual/conf.texi (Constants for Sysconf): Correct description of
8338         _SC_CLK_TCK.
8340 2012-04-10  David S. Miller  <davem@davemloft.net>
8342         [BZ #13967]
8343         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8344         where the is a gap between DT_REL(A) and DT_JMPREL.
8346 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8348         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8349         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8350         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8352 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8354         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8355         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8356         (dl_main): Handle --inhibit-cache.
8357         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8358         _dl_inhibit_cache.
8359         * elf/dl-load.c (_dl_map_object): Use it.
8360         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8362 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8364         [BZ #13872]
8365         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8366         (__ieee754_powl): Saturate large exponents rather than testing for
8367         overflow of y*log2(x).
8368         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8369         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8370         exceptions.
8372         [BZ #11521]
8373         * math/s_ctan.c: Include <float.h>.
8374         (__ctan): Avoid internal overflow or cancellation in calculating
8375         denominator.
8376         * math/s_ctanf.c: Likewise.
8377         * math/s_ctanl.c: Likewise.
8378         * math/s_ctanh.c: Likewise.
8379         * math/s_ctanhf.c: Likewise.
8380         * math/s_ctanhl.c: Likewise.
8381         * math/libm-test.inc (ctan_test): Add more tests.
8382         (ctanh_test): Likewise.
8383         * sysdeps/i386/fpu/libm-test-ulps: Update.
8384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8386 2012-04-09  Andreas Jaeger  <aj@suse.de>
8388         [BZ #6894]
8389         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8390         is an optional BSD extension.
8392         [BZ #10254]
8393         * manual/stdio.texi (Opening Streams): Document additional fopen
8394         parameters.
8396 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8398         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8399         %eax without telling the compiler.
8401 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8403         [BZ # 13963]
8404         * manual/install.texi: Use sourceware.org.
8406 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8408         [BZ #13873]
8409         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8410         (__ieee754_pow): Generate overflow and underflow using huge*huge
8411         and tiny*tiny rather than just returning constant infinity or zero
8412         for large exponents.
8413         * math/libm-test.inc (pow_test): Require overflow exceptions for
8414         applicable cases of large exponents.
8416         [BZ #706]
8417         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8418         (__ieee754_pow): Use iterative multiplication algorithm only for
8419         integer exponents with absolute value below 1024.  Check for odd
8420         integer exponents when using algorithm for real exponents.
8421         * math/libm-test.inc (pow_test): Add more tests.
8422         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8424 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8426         [BZ #13705]
8427         * math/libm-test.inc (exp_test): Do not allow overflow exception
8428         on underflow test.
8430 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8432         [BZ #13705]
8433         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8434         instead of __kernel_standard_f.
8436 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8438         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8439         * sysdeps/x86_64/memset_chk.S: Likewise.
8441 2012-04-08  Andreas Jaeger  <aj@suse.de>
8443         [BZ #10153]
8444         * manual/startup.texi (Environment Access): Describe return value
8445         for putenv and setenv.
8447         [BZ #6895]
8448         * manual/filesys.texi (Directory Entries): Add description for
8449         DT_LNK.
8451         [BZ #6890]
8452         * manual/filesys.texi (Directory Entries): Clarify that it's file
8453         system not operating system in the description of DT_UNKNOWN.
8455         [BZ #6578]
8456         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8458 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8460         [BZ #6649]
8461         * manual/llio.texi (Opening and Closing Files): Add cross
8462         reference to explain mode argument.
8464 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8466         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8467         * sysdeps/x86_64/memset_chk.S: Likewise.
8469 2012-04-07  David S. Miller  <davem@davemloft.net>
8471         * elf/elf.h (R_SPARC_WDISP10): Define.
8472         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8473         R_SPARC_SIZE32.
8474         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8475         R_SPARC_SIZE64 and R_SPARC_H34.
8477 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8479         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8480         conditions and remove no longer applicable assertion.
8482 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8484         * bits/byteswap.h: Include <features.h>.
8485         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8486         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8488 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8490         * bits/byteswap.h (__bswap_16): Removed.
8491         Include <bits/byteswap-16.h> to get __bswap_16.
8492         * sysdeps/i386/bits/byteswap.h: Likewise.
8493         * sysdeps/s390/bits/byteswap.h: Likewise.
8494         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8495         * bits/byteswap-16.h: New file.
8496         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8497         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8498         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8499         * string/Makefile (headers): Add bits/byteswap-16.h.
8501 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8503         [BZ #13895]
8504         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8505         extra indirection.
8506         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8507         * nss/tst-nss-static.c: New.
8509 2012-04-06  Robert Millan  <rmh@gnu.org>
8511         [BZ #6486]
8512         * manual/llio.texi (File Position Primitive): lseek
8513         refers to WHENCE when it really means OFFSET.
8515 2012-04-06  Andreas Jaeger  <aj@suse.de>
8517         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8518         strncmp declarations.
8520         * abilist/libc.abilist: Add __poll and __ppoll.
8522 2012-04-05  David S. Miller  <davem@davemloft.net>
8524         * scripts/check-local-headers.sh: Accept a host triplet in the
8525         path matched by the exclude regexp.
8527         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8528         definition.
8529         * sysdeps/powerpc/powerpc32/dl-machine.h
8530         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8531         * sysdeps/s390/s390-32/dl-machine.h
8532         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8533         * sysdeps/sparc/sparc32/dl-machine.h
8534         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8535         * sysdeps/sparc/sparc64/dl-machine.h
8536         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8538         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8539         lazy binding.
8540         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8541         undefined symbol errors.
8543         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8544         DT_NEEDED entries.
8546 2012-04-05  Michael Matz  <matz@suse.de>
8548         [BZ #13592]
8549         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8551 2012-04-05  Andreas Jaeger  <aj@suse.de>
8553         [BZ #13908]
8554         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8555         comment.
8557 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8559         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8560         which ROUND is no valid rounding mode.
8562 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8564         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8565         read again.
8566         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8568 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8570         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8571         an exception using FPU order intentionally.
8573 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8575         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8576         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8577         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8578         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8580 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8582         [BZ #12340]
8583         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8584         EINVAL when BUFLEN is too smal.
8586 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8588         [BZ #13553]
8589         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8590         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8592 2012-04-03  Andreas Jaeger  <aj@suse.de>
8594         [BZ #13938]
8595         * manual/setjmp.texi (System V contexts): Fix sentence.
8597         [BZ #13926]
8598         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8599         New macro for this case.
8600         [!__GNUC__] (__bswap_64): New inline function for this case.
8601         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8602         * bits/byteswap.h: Likewise.
8603         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8604         ull, guard with __GLIBC_HAVE_LONG_LONG.
8606         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8607         __GLIBC_HAVE_LONG_LONG.
8609         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8610         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8612 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8614         [BZ #13691]
8615         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8616         inptr and inend, rather than using last_ch.
8618 2012-04-02  David S. Miller  <davem@davemloft.net>
8620         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8621         * stdio-common/printf-parse.h (read_int): Change return type to
8622         'int', return -1 on INT_MAX overflow.
8623         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8624         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8625         overflows INT_MAX.  Check for overflow of in-format-string precision
8626         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8627         SIZE_MAX not INT_MAX for integer overflow test.
8628         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8629         skip the construct in the format string but do not record anything.
8630         * stdio-common/bug22.c: Adjust to test both width/prevision
8631         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8632         explicitly for proper errno values.
8634 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8636         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8637         CHAR_MAX.
8638         * string/test-strcmp.c [! WIDE]: Likewise.
8639         * time/tst-mktime2.c: Likewise for INT_MAX.
8640         * string/test-string.h: #include <sys/param.h> for MIN.
8642         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8643         * sysdeps/i386/init-first.c (init): Likewise.
8644         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8645         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8646         * sysdeps/sh/init-first.c (init): Likewise.
8648 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8650         * po/ru.po: Update from translation team.
8651         * po/vi.po: Likewise.
8653 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8655         * resolv/nss_dns/dns-host.c: Merge copyright years.
8657 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8659         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8660         Optimize memcpy with prefetch if
8661         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8662         src, dst pointers have unequal 16 byte alignments.
8664 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8666         [BZ #13928]
8667         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8668         from a CNAME entry and return the minimum ttl for the query.
8669         (gaih_getanswer_slice): Likewise.
8671 2012-03-30  Jeff Law  <law@redhat.com>
8673         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8674         due to long keys.
8675         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8676         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8678         * resolv/nss_dns/dns-host.c: Update copyright year.
8680 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8682         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8683         requests to save a system call.  Fix check that all bytes are sent.
8685         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8686         comments for sendmmsg.
8688 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8690         [BZ #13691]
8691         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8692         with only 1 character between 0x0041 and 0x01b0.
8693         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8694         * wcsmbs/tst-mbsnrtowcs.c: New file.
8696 2012-03-29  David S. Miller  <davem@davemloft.net>
8698         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8699         small copies by hand.
8701 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8703         [BZ #13761]
8704         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8705         _nss_compat_initgroups_dyn): Fall back to malloc/free
8706         for large group memberships.
8708 2012-03-28  David S. Miller  <davem@davemloft.net>
8710         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8711         that branches into memcpy.
8712         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8713         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8714         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8715         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8716         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8717         bits.
8718         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8719         implementation too.
8720         * sysdeps/sparc/mempcpy.S: New file.
8722         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8723         the IFUNC routine in the libc case.
8724         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8726         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8727         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8728         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8729         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8730         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8731         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8732         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8733         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8735         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8736         loop to 256 bytes instead of 64 bytes and fix test signedness.
8738         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8739         * sysdeps/sparc/sparc32/Makefile: rather than here...
8740         * sysdeps/sparc/sparc64/Makefile: and here.
8742 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8744         * malloc/mallocbug.c: Avoid warnings about unused variables.
8746 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8748         [BZ #13760]
8749         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8750         in the right place. Discard and retry query if response is
8751         larger than input buffer size.
8753 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8755         [BZ #369]
8756         [BZ #2678]
8757         [BZ #3866]
8758         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8759         x for large integer exponent.
8760         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8761         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8762         sign of result as needed afterwards.
8763         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8764         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8765         result for underflowing pow the same as for overflow.
8766         (__kernel_standard_l): Handle powl overflow and underflow here
8767         rather than calling __kernel_standard.
8768         * math/libm-test.inc (pow_test): Add more tests.
8770         [BZ #3868]
8771         [BZ #13879]
8772         [BZ #13910]
8773         [BZ #13911]
8774         [BZ #13912]
8775         [BZ #13913]
8776         [BZ #13915]
8777         [BZ #13916]
8778         [BZ #13917]
8779         [BZ #13918]
8780         [BZ #13919]
8781         [BZ #13920]
8782         [BZ #13921]
8783         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8784         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8785         (__kernel_standard_l): New function.
8786         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8787         __kernel_standard.
8788         * math/w_acosl.c (__acosl): Likewise.
8789         * math/w_asinl.c (__asinl): Likewise.
8790         * math/w_atan2l.c (__atan2l): Likewise.
8791         * math/w_atanhl.c (__atanhl): Likewise.
8792         * math/w_coshl.c (__coshl): Likewise.
8793         * math/w_exp10l.c (__exp10l): Likewise.
8794         * math/w_exp2l.c (__exp2l): Likewise.
8795         * math/w_fmodl.c (__fmodl): Likewise.
8796         * math/w_hypotl.c (__hypotl): Likewise.
8797         * math/w_j0l.c (__j0l, __y0l): Likewise.
8798         * math/w_j1l.c (__j1l, __y1l): Likewise.
8799         * math/w_jnl.c (__jnl, __ynl): Likewise.
8800         * math/w_lgammal.c (__lgammal): Likewise.
8801         * math/w_log10l.c (__log10l): Likewise.
8802         * math/w_log2l.c (__log2l): Likewise.
8803         * math/w_logl.c (__logl): Likewise.
8804         * math/w_powl.c (__powl): Likewise.
8805         * math/w_remainderl.c (__remainderl): Likewise.
8806         * math/w_scalbl.c (sysv_scalbl): Likewise.
8807         * math/w_sinhl.c (__sinhl): Likewise.
8808         * math/w_sqrtl.c (__sqrtl): Likewise.
8809         * math/w_tgammal.c (__tgammal): Likewise.
8810         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8811         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8812         * math/libm-test.inc (acos_test): Add more tests.
8813         (acosh_test): Likewise.
8814         (asin_test): Likewise.
8815         (atanh_test): Likewise.
8816         (exp_test): Likewise.
8817         (exp10_test): Likewise.
8818         (exp2_test): Likewise.
8819         (expm1_test): Likewise.
8820         (lgamma_test): Likewise.
8821         (log_test): Likewise.
8822         (log10_test): Likewise.
8823         (log1p_test): Likewise.
8824         (log2_test): Likewise.
8825         (pow_test): Do not allow some spurious overflow exceptions.
8826         (sqrt_test): Add more tests.
8827         (tgamma_test): Likewise.
8828         (y0_test): Likewise.
8829         (y1_test): Likewise.
8830         (yn_test): Likewise.
8832 2012-03-27  Anton Blanchard  <anton@samba.org>
8834         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8835         MAP_HUGETLB.
8836         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8837         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8838         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8840 2012-03-27  David S. Miller  <davem@davemloft.net>
8842         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8844         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8845         have-as-vis3 check.
8847 2012-03-27  Andreas Jaeger  <aj@suse.de>
8849         * sysdeps/x86_64/elf/configure.in: Moved to ...
8850         * sysdeps/x86_64/configure.in: ... here.
8851         * sysdeps/x86_64/elf/start.S: Moved to ...
8852         * sysdeps/x86_64/start.S: ... here.
8853         * sysdeps/x86_64/elf/configure: Delete.
8855         * sysdeps/x86_64/configure.in: Merge contents from
8856         sysdeps/i386/configure.in (without i686 check).
8858         * sysdeps/i386/elf/Versions: Merge into ...
8859         * sysdeps/i386/Versions: ... this.
8860         * sysdeps/i386/elf/Versions: Delete file.
8861         * sysdeps/i386/elf/start.S: Moved to ...
8862         * sysdeps/i386/start.S: ...here.
8863         * sysdeps/i386/elf/configure.in: Merge into...
8864         * sysdeps/i386/configure.in: ...here.
8865         * sysdeps/i386/elf/configure.in: Delete file.
8866         * sysdeps/i386/elf/configure: Delete file.
8868         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8869         * debug/backtracesyms.c: ... here.
8870         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8871         * debug/backtracesymsfd.c: ... here.
8872         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8873         * sysdeps/generic/ifunc-sel.h: ... here.
8875         * sysdeps/unix/i386/start.c: Delete file.
8876         * sysdeps/unix/sparc/start.c: Delete file.
8877         * sysdeps/unix/start.c: Delete file.
8879         * sysdeps/sh/elf/configure.in: Moved to ...
8880         * sysdeps/sh/configure.in: ... here.
8881         * sysdeps/sh/elf/start.S: Moved to ...
8882         * sysdeps/sh/start.S: ... here.
8883         * sysdeps/sh/elf/configure: Delete file.
8885         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8886         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8887         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8888         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8889         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8890         * sysdeps/powerpc/powerpc64/start.S: here.
8891         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8892         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8893         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8894         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8895         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8897         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8898         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8899         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8900         * sysdeps/powerpc/powerpc32/start.S: ... here.
8901         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8902         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8903         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8905         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8906         * sysdeps/powerpc/ifunc-sel.h: ... here.
8907         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8908         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8910         * sysdeps/sparc/elf/configure.in: Moved to ...
8911         * sysdeps/sparc/configure.in: ... here.
8912         * sysdeps/sparc/elf/configure: Delete file.
8913         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8914         * sysdeps/sparc/sparc32/start.S: ... here.
8915         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8916         * sysdeps/sparc/sparc64/start.S: ... here.
8917         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8918         * sysdeps/sparc/sparc32/Makefile: ... this.
8919         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8920         * sysdeps/sparc/sparc64/Makefile: ... this.
8922         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8923         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8924         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8925         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8926         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8927         * sysdeps/s390/s390-32/setjmp.S: ... here.
8928         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8929         * sysdeps/s390/s390-32/configure.in: ... here.
8930         * sysdeps/s390/s390-32/elf/configure: Delete file.
8931         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8932         * sysdeps/s390/s390-32/start.S: ... here.
8934         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8935         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8936         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8937         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8938         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8939         * sysdeps/s390/s390-64/setjmp.S: ... here.
8940         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8941         * sysdeps/s390/s390-64/configure.in: ... here
8942         * sysdeps/s390/s390-64/elf/configure: Delete file.
8943         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8944         * sysdeps/s390/s390-64/start.S: ... here.
8945         * sysdeps/s390/s390-64/elf/configure: Delete.
8947         * configure.in: Remove support for elf directories in sysdeps.
8949         * configure: Regenerated.
8950         * sysdeps/i386/configure: Regenerated.
8951         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8952         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8953         * sysdeps/s390/s390-32/configure: Regenerated.
8954         * sysdeps/s390/s390-64/configure: Regenerated.
8955         * sysdeps/sh/configure: Regenerated.
8956         * sysdeps/sparc/configure: Regenerated.
8957         * sysdeps/x86_64/configure: Regenerated.
8959 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8963         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8964         denormal result into account.
8966 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8968         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8969         Reported by Allan McRae <allan@archlinux.org>.
8971 2012-03-23  Jeff Law  <law@redhat.com>
8973         * nss/getnssent.c (__nss_getent): Fix typo.
8975 2012-03-23  David S. Miller  <davem@davemloft.net>
8977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8979 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8981         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8982         to pad to uint64_t for each field.
8983         (dl_tls_index): Replace unsigned long with uint64_t.
8985 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8986         Paul Pluzhnikov  <ppluzhnikov@google.com>
8988         [BZ #6528]
8989         * grp/Makefile (otherlibs): Don't set it.
8990         * inet/Makefile (otherlibs): Likewise.
8991         * login/Makefile (otherlibs): Likewise.
8992         * nscd/Makefile (otherlibs): Likewise.
8993         * posix/Makefile (otherlibs): Likewise.
8994         * pwd/Makefile (otherlibs): Likewise.
8995         * rt/Makefile (otherlibs): Likewise.
8996         * sunrpc/Makefile (otherlibs): Likewise.
8997         * nss/Makefile (otherlibs): Likewise.
8998         Add libnss_files to routines and static-only-routines.
8999         ($(objpfx)getent): Remove rule.
9000         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9001         static-only-routines.
9003 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9005         [BZ #13892]
9006         * math/s_cexp.c: Include <float.h>.
9007         (__cexp): Handle exp result overflowing not necessarily
9008         overflowing both real and imaginary parts of result.
9009         * math/s_cexpf.c: Likewise.
9010         * math/s_cexpl.c: Likewise.
9011         * math/libm-test.inc (cexp_test): Add more tests.
9012         * sysdeps/i386/fpu/libm-test-ulps: Update.
9013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9015 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9017         * include/link.h (ELFW): New macro.
9018         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9019         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9021 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9023         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9024         with uint64_t.
9026 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9028         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9029         declaration.
9030         (struct La_x32_retval): Likewise.
9032 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9034         * sysdeps/x86_64/preconfigure.in: New file.
9035         * sysdeps/x86_64/preconfigure: New generated file.
9037 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9039         [BZ #13824]
9040         * math/e_exp2l.c: Include <float.h>.
9041         (__ieee754_exp2l): Handle overflow and underflow cases
9042         separately.  Only pass fractional part of argument to
9043         __ieee754_expl.
9044         * math/libm-test.inc (exp2_test): Add more tests.
9046         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9047         negating x to take absolute value.
9048         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9049         Likewise.
9050         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9051         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9052         Likewise.
9053         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9054         computing low part if x was negated.
9055         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9057 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9059         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9060         la_x32_gnu_pltexit.
9061         (pltexit): Cast int_retval to ptrdiff_t.
9062         * elf/tst-auditmod3b.c: Likewise.
9063         * elf/tst-auditmod4b.c: Likewise.
9064         * elf/tst-auditmod5b.c: Likewise.
9065         * elf/tst-auditmod6b.c: Likewise.
9066         * elf/tst-auditmod6c.c: Likewise.
9067         * elf/tst-auditmod7b.c: Likewise.
9069         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9070         and x32_gnu_pltexit.
9072         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9073         __ELF_NATIVE_CLASS.
9074         (La_x32_regs): New macro.
9075         (La_x32_retval): Likewise.
9076         (la_x32_gnu_pltenter): New function prototype.
9077         (la_x32_gnu_pltexit): Likewise.
9079 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9081         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9082         exponent.
9084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9086         * configure.in (libc_cv_cc_nofma): Check for option to disable
9087         generation of FMA instructions.
9088         * configure: Regenerate.
9089         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9090         * sysdeps/ieee754/dbl-64/Makefile: New file.
9091         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9092         Remove brandred-fma4.
9093         (CFLAGS-brandred-fma4.c): Remove.
9094         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9095         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9096         define.
9097         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9098         define.
9100 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9102         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9103         LLONG_MAX != LONG_MAX.
9104         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9105         (_fitoa_word): Likewise.
9106         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9107         LLONG_MAX != LONG_MAX.
9108         * stdio-common/_itowa.h: Include <_itoa.h>.
9109         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9110         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9111         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9112         only if not defined.
9113         (_ITOA_WORD_TYPE): Likewise.
9114         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9115         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9117 2012-03-21  David S. Miller  <davem@davemloft.net>
9119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9121 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9123         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9124         of x86_64 when setting libc_cv_slibdir, libdir and
9125         libc_cv_localedir.
9126         * sysdeps/unix/sysv/linux/configure: Regenerated.
9128 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9130         * manual/lang.texi (Old Varargs): Remove section.
9131         (How Variadic): Update menu.
9132         (va_start): Do not mention varargs.h.
9134 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9135             Joseph Myers  <joseph@codesourcery.com>
9137         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9138         link test.
9139         * configure: Regenerated.
9141 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9143         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9144         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9145         conformtest.pl
9147 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9149         * NOTES: Remove.
9150         * Makefile (files-for-dist): Remove NOTES.
9151         (NOTES): Remove rule.
9152         * README: Don't refer to NOTES.
9153         * manual/creature.texi: Don't include macros.texi.
9154         * manual/intro.texi (creature.texi): Remove comment referring to
9155         NOTES.
9157         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9158         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9159         * configure: Regenerated.
9160         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9161         LIBC_TRY_CC_OPTION.
9162         (libc_cv_as_i686): Likewise.
9163         (libc_cv_cc_avx): Likewise.
9164         (libc_cv_cc_sse2avx): Likewise.
9165         (libc_cv_cc_fma4): Likewise.
9166         (libc_cv_cc_novzeroupper): Likewise.
9167         * sysdeps/i386/configure: Regenerated.
9169         [BZ #13883]
9170         * sysdeps/i386/fpu/s_cexp.S: Remove.
9171         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9172         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9173         * math/libm-test.inc (cexp_test): Add more tests.
9174         * sysdeps/i386/fpu/libm-test-ulps: Update.
9175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9177 2012-03-21  Allan McRae  <allan@archlinux.org>
9179         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9181 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9183         [BZ #13871]
9184         * math/w_exp2.c: Do not include <float.h>.
9185         (o_threshold, u_threshold): Remove.
9186         (__exp2): Calculate result before checking finiteness and calling
9187         __kernel_standard.
9188         * math/w_exp2f.c: Likewise.
9189         * math/w_exp2l.c: Likewise.
9190         * math/libm-test.inc (exp2_test): Require overflow exception for
9191         1e6 input.
9193         [BZ #3866]
9194         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9195         range of signed 64-bit integers before using fistpll.  Remove
9196         checks for whether integers fit in mantissa bits.
9197         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9198         the range of signed 32-bit integers before using fistpl.  Remove
9199         checks for whether integers fit in mantissa bits.
9200         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9201         (__ieee754_powl): Test for y outside the range of signed 64-bit
9202         integers before using fistpll.  Reduce 64-bit values to 63-bit
9203         ones as needed.
9204         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9205         divide-by-zero is raised for zero to large negative powers.
9206         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9207         (__ieee754_powl): Test for y outside the range of signed 64-bit
9208         integers before using fistpll.  Reduce 64-bit values to 63-bit
9209         ones as needed.
9210         * math/libm-test.inc (pow_test): Add more tests.
9212 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9214         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9215         <stdio-common/_itoa.h>.
9216         * debug/segfault.c: Likewise.
9217         * elf/dl-cache.c: Likewise.
9218         * elf/dl-minimal.c: Likewise.
9219         * elf/dl-misc.c: Likewise.
9220         * elf/dl-sysdep.c: Likewise.
9221         * elf/dl-version.c: Likewise.
9222         * elf/rtld.c: Likewise.
9223         * hurd/hurdsock.c: Likewise.
9224         * hurd/lookup-retry.c: Likewise.
9225         * malloc/malloc.c: Likewise.
9226         * malloc/mtrace.c: Likewise.
9227         * nscd/nscd_getgr_r.c: Likewise.
9228         * nscd/nscd_getpw_r.c: Likewise.
9229         * nscd/nscd_getserv_r.c: Likewise.
9230         * posix/getopt_init.c: Likewise.
9231         * posix/wordexp.c: Likewise.
9232         * stdio-common/_itoa.c: Likewise.
9233         * stdio-common/printf_fphex.c: Likewise.
9234         * stdio-common/vfprintf.c: Likewise.
9235         * string/_strerror.c: Likewise.
9236         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9237         * sysdeps/i386/i686/hp-timing.h: Likewise.
9238         * sysdeps/mach/_strerror.c: Likewise.
9239         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9240         * sysdeps/mach/hurd/sethostid.c: Likewise.
9241         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9242         * sysdeps/mach/xpg-strerror.c: Likewise.
9243         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9244         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9245         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9246         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9247         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9248         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9249         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9250         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9251         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9252         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9253         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9254         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9255         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9256         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9257         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9258         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9259         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9260         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9261         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9262         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9263         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9265         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9267         * stdio-common/_itoa.h: Moved to ...
9268         * sysdeps/generic/_itoa.h: Here.
9270         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9272         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9273         instead of "_itoa.h" and "_itowa.h".
9274         * stdio-common/vfprintf.: Likewise.
9276 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9278         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9279         <bits/wordsize.h>.
9280         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9281         (__signbit): Likwise.
9282         (llrintf): Likwise.
9283         (llrint): Likwise.
9285 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9287         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9288         __WORDSIZE != 64.
9290 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9292         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9293         OVERFLOW_EXCEPTION_OK.
9294         * math/libm-test.inc ("Philosophy"): Update comment about
9295         exception testing.
9296         (OVERFLOW_EXCEPTION): Define.
9297         (OVERFLOW_EXCEPTION_OK): Likewise.
9298         (INVALID_EXCEPTION_OK): Renumber.
9299         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9300         (IGNORE_ZERO_INF_SIGN): Likewise.
9301         (test_exceptions): Handle FE_OVERFLOW.
9302         (exp10_test): Expect overflow exceptions.
9303         (exp2_test): Likewise.
9304         (expm1_test): Likewise.
9305         (nextafter_test): Likewise.
9306         (pow_test): Likewise.
9307         (scalbn_test): Likewise.
9308         (scalbln_test): Likewise.
9310 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9312         * sysdeps/x86_64/bits/atomic.h
9313         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9314         64bit integer.
9315         (atomic_exchange_acq): Likewise.
9316         (__arch_exchange_and_add_body): Likewise.
9317         (__arch_add_body): Likewise.
9318         (atomic_add_negative): Likewise.
9319         (atomic_add_zero): Likewise.
9321 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9323         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9324         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9326 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9328         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9329         Check __x86_64__ instead of __WORDSIZE.
9331 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9333         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9335 2012-03-19  David S. Miller  <davem@davemloft.net>
9337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9339         * sysdeps/sparc/fpu/fenv_private.h: New file.
9340         * sysdeps/sparc/fpu/math_private.h: Use it.
9341         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9342         Remove.
9343         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9344         (libc_feholdexcept_setroundl): Remove.
9345         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9346         Remove.
9347         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9348         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9350 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9352         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9353         int64_t instead of long int.
9354         (INSERT_WORDS64): Likwise.
9356 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9358         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9359         _Unwind_GetCFA return to _Unwind_Ptr first.
9361 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9363         [BZ #13629]
9364         * math/s_clog.c: Include <float.h>.
9365         (__clog): Scale large or subnormal inputs.
9366         * math/s_clogf.c: Likewise.
9367         * math/s_clogl.c: Likewise.
9368         * math/s_clog10.c: Include <float.h>.
9369         (M_LOG10_2): Define.
9370         (__clog10): Scale large or subnormal inputs.
9371         * math/s_clog10f.c: Likewise.
9372         * math/s_clog10l.c: Likewise.
9373         * math/libm-test.inc (clog_test): Add more tests.
9374         (clog10_test): Likewise.
9375         * sysdeps/i386/fpu/libm-test-ulps: Update.
9376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9378         [BZ #11451]
9379         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9380         x and y.
9381         * math/libm-test.inc (atan2_test): Add another test.
9383         * Makerules (common-objdir-compile): Remove.
9384         * sysdeps/unix/Makefile (config-generated): Do not add
9385         $(unix-generated) to variable.
9386         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9387         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9388         Remove rule.
9389         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9390         Likewise.
9391         [generic bits/local_lim.h] (before-compile): Do not append to
9392         variable.
9393         [generic bits/local_lim.h] (common-generated): Likewise.
9394         [generic sys/param.h] (before-compile): Do not append to variable.
9395         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9396         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9397         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9398         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9399         include.
9400         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9401         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9402         [generic sys/param.h] ($(addprefix
9403         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9404         [generic sys/param.h] (common-generated): Do not append to
9405         variable.
9406         [generic sys/param.h] (sysdep_headers): Likewise.
9407         [generic bits/errno.h] (before-compile): Do not append to
9408         variable.
9409         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9410         rule.
9411         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9412         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9413         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9414         [generic bits/errno.h] (common-generated): Do not append to
9415         variable.
9416         [generic bits/ioctls.h] (before-compile): Do not append to
9417         variable.
9418         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9419         rule.
9420         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9421         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9422         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9423         rule.
9424         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9425         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9426         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9427         [generic bits/ioctls.h] (common-generated): Do not append to
9428         variable.
9429         [generic sys/syscall.h] (syscall.h): Remove variable.
9430         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9431         rule.
9432         [generic sys/syscall.h] (before-compile): Do not append to
9433         variable.
9434         [generic sys/syscall.h] (common-generated): Likewise.
9435         * sysdeps/unix/errnos-tmpl.c: Remove file.
9436         * sysdeps/unix/errnos.awk: Likewise.
9437         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9438         * sysdeps/unix/ioctls.awk: Likewise.
9439         * sysdeps/unix/mk-local_lim.c: Likewise.
9440         * sysdeps/unix/snarf-ioctls: Likewise.
9442 2012-03-19  Richard Henderson  <rth@twiddle.net>
9444         * sysdeps/i386/fpu/fenv_private.h: New file.
9445         * sysdeps/i386/fpu/math_private.h: Use it.
9446         (math_opt_barrier, math_force_eval): Remove.
9447         (libc_feholdexcept_setround_53bit): Remove.
9448         (libc_feupdateenv_53bit): Remove.
9449         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9450         (math_opt_barrier, math_force_eval): Remove.
9451         (libc_feholdexcept): Remove.
9452         (libc_feholdexcept_setround): Remove.
9453         (libc_fetestexcept, libc_fesetenv): Remove.
9454         (libc_feupdateenv_test): Remove.
9455         (libc_feupdateenv, libc_feholdsetround): Remove.
9456         (libc_feresetround): Remove.
9458         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9459         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9461         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9462         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9463         (libc_feupdateenv_testl): New.
9464         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9465         (libc_feupdateenv_testf): New.
9466         (libc_feupdateenv): Use libc_feupdateenv_test.
9467         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9468         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9470         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9471         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9472         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9473         (libc_feresetround_noex): New.
9474         (libc_feresetround_noexf): New.
9475         (libc_feresetround_noexl): New.
9476         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9477         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9478         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9479         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9480         SET_RESTORE_ROUND.
9481         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9482         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9483         (__cos): Likewise.
9484         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9485         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9486         SET_RESTORE_ROUND_NOEX.
9487         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9488         SET_RESTORE_ROUND_NOEXF.
9489         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9490         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9491         (libc_feholdsetroundf): New.
9492         (libc_feresetround, libc_feresetroundf): New.
9494         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9495         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9496         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9498         * sysdeps/generic/math_private.h: Include <fenv.h>.
9499         (default_libc_feholdexcept): New.
9500         (default_libc_feholdexcept_setround): New.
9501         (default_libc_fesetenv, default_libc_feupdateenv): New.
9502         (libc_feholdexcept): Only define if undefined.
9503         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9504         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9505         (libc_feholdexcept_setroundl): Likewise.
9506         (libc_feholdexcept_setround_53bit): Likewise.
9507         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9508         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9509         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9510         (libc_feupdateenv_53bit): Likewise.
9511         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9512         (libc_feholdexcept): Convert from macro to inline function.
9513         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9514         (libc_fesetenv, libc_feupdateenv): Likewise.
9516         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9517         not previously defined.
9518         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9519         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9520         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9521         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9522         * sysdeps/ieee754/flt-32/math_private.h: New file.
9523         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9524         math_private.h below SET_FLOAT_WORD.
9525         (__isnan, __isinf_ns, __finite): Remove.
9526         (__isnanf, __isinf_nsf, __finitef): Remove.
9528 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9532 2012-03-17  David S. Miller  <davem@davemloft.net>
9534         [BZ #6471]
9535         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9536         for 2.16.
9538 2012-03-16  David S. Miller  <davem@davemloft.net>
9540         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9541         warnings.
9543         [BZ #6471]
9544         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9545         properly.
9546         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9547         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9548         sysdep_routines when subdir is sysvipc.
9549         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9550         __getshmlba helper.
9552         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9554 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9556         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9557         [__LP64__].
9559 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9561         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9562         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9563         (__lround): Renamed to ...
9564         (__llround): This.  Replace long int with long long int.
9565         Define lround functions as aliases of llround functions.
9566         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9568 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9570         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9571         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9572         adresses to uintptr_t.  Replace "long int" and "unsigned long
9573         int" with "greg_t" on va_arg.
9575 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9577         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9578         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9580         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9581         Move e_machine check before EI_CLASS check.  Handle x32
9582         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9583         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9584         SKIP_EM_IA_64 and include
9585         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9587         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9588         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9589         (add_system_dir): New macro.
9591         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9592         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9594 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9596         [BZ #2551]
9597         [BZ #2552]
9598         [BZ #2553]
9599         [BZ #2554]
9600         [BZ #2562]
9601         [BZ #2563]
9602         [BZ #2565]
9603         [BZ #2566]
9604         [BZ #2576]
9605         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9606         (y0): Likewise.
9607         * math/w_j0f.c (j0f): Likewise.
9608         (y0f): Likewise.
9609         * math/w_j0l.c (__j0l): Likewise.
9610         (__y0l): Likewise.
9611         * math/w_j1.c (j1): Likewise.
9612         (y1): Likewise.
9613         * math/w_j1f.c (j1f): Likewise.
9614         (y1f): Likewise.
9615         * math/w_j1l.c (__j1l): Likewise.
9616         (__y1l): Likewise.
9617         * math/w_jn.c (jn): Likewise.
9618         (yn): Likewise.
9619         * math/w_jnf.c (jnf): Likewise.
9620         (ynf): Likewise.
9621         * math/w_jnl.c (__jnl): Likewise.
9622         (__ynl): Likewise.
9623         * math/libm-test.inc (j0_test): Add more tests.
9624         (j1_test): Likewise.
9625         (jn_test): Likewise.  Add trailing semicolon to existing test.
9626         (y0_test): Likewise.
9627         (y1_test): Likewise.
9628         * sysdeps/i386/fpu/libm-test-ulps: Update.
9629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9631         [BZ #13851]
9632         [BZ #13854]
9633         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9634         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9635         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9636         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9637         (__tanl): Set errno for infinite argument.
9638         * sysdeps/i386/fpu/mptan.c: Remove.
9639         * sysdeps/i386/fpu/s_tan.S: Likewise.
9640         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9641         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9642         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9643         * math/libm-test.inc (tan_test): Add more tests and enable more
9644         tests for double and long double.
9645         * sysdeps/i386/fpu/libm-test-ulps: Update.
9646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9648 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9650         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9651         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9653 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9655         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9656         * configure.in: Use it for both main tree and add-ons.
9657         * configure: Regenerated.
9659 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9661         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9663 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9665         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9666         in comment.
9668         [BZ #13851]
9669         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9670         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9671         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9672         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9673         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9674         infinite argument.
9675         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9676         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9677         != 0 for prec == 2.
9678         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9679         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9680         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9681         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9682         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9683         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9684         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9685         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9686         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9687         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9688         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9689         * math/libm-test.inc (cos_test): Add more tests and enable more
9690         tests for long double.
9691         (sin_test): Likewise.
9692         (sincos_test): Likewise.
9693         * sysdeps/i386/fpu/libm-test-ulps: Update.
9694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9696 2012-03-16  David S. Miller  <davem@davemloft.net>
9698         * sysdeps/sparc/fpu/math_private.h: New file.
9700 2012-03-15  David S. Miller  <davem@davemloft.net>
9702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9703         file.
9704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9706         file.
9707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9708         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9710         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9711         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9712         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9713         sysdep routines.
9714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9716         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9717         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9719         * sysdeps/sparc/sparc-ifunc.h: New file.
9720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9721         sparc-ifunc.h
9722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9724         Likewise.
9725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9726         Likewise.
9727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9731         Likewise.
9732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9737         Likewise.
9738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9739         Likewise.
9740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9744         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9745         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9746         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9747         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9748         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9749         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9752         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9753         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9756         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9757         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9758         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9759         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9760         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9761         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9762         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9763         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9765 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9767         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9768         scaling.
9769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9771 2012-03-15  Andreas Jaeger  <aj@suse.de>
9773         [BZ #13852]
9774         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9775         ieee754/flt-32 implementation for sin, cos and sincos.
9776         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9777         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9778         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9779         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9780         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9781         ieee754/flt-32 implementation for tan.
9783         * math/libm-test.inc (cos_test): Enable some large input tests for
9784         float as well
9785         (sin_test): Likewise.
9786         (sincos_test): Likewise.
9787         (tan_test): Add tests for large input.
9789         * sysdeps/i386/fpu/libm-test-ulps: Update.
9791 2012-03-15  Andreas Jaeger  <aj@suse.de>
9793         [BZ #13658]
9794         * math/libm-test.inc (cos_test): Add more test cases.
9795         (sin_test): Likewise.
9796         (sincos_test): Likewise.
9798 2012-03-15  Andreas Jaeger  <aj@suse.de>
9800         [BZ #13837]
9801         * math/libm-test.inc (cos_test): Add a test case for large input
9802         value.
9803         (sin_test): Likewise.
9804         (sincos_test): Likewise.
9806 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9807         Joseph Myers  <joseph@codesourcery.com>
9809         [BZ #13658]
9810         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9811         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9812         * sysdeps/i386/fpu/branred.c: Likewise.
9813         * sysdeps/i386/fpu/dosincos.c: Likewise.
9814         * sysdeps/i386/fpu/mpa.c: Likewise.
9815         * sysdeps/i386/fpu/s_cos.S: Likewise.
9816         * sysdeps/i386/fpu/s_sin.S: Likewise.
9817         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9818         * sysdeps/i386/fpu/sincos32.c: Likewise.
9820         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9821         Define.
9822         (libc_feupdateenv_53bit): Define.
9823         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9824         Define.
9825         (libc_feupdateenv_53bit): Define.
9827         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9828         53 bit (without extend i386 double precision).
9830         * math/libm-test.inc (sincos_test): Add tests for large input.
9831         (sin): Likewise.
9832         (cos): Likewise.
9834         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9836 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9838         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9840 2012-03-15  David S. Miller  <davem@davemloft.net>
9842         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9843         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9844         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9845         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9850         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9851         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9852         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9853         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9854         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9855         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9856         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9858         file.
9859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9861         file.
9862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9864         file.
9865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9867         file.
9868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9869         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9870         fmin/fmax sysdep routines.
9871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9873 2012-03-14  David S. Miller  <davem@davemloft.net>
9875         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9876         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9877         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9878         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9879         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9880         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9881         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9882         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9883         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9884         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9885         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9886         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9887         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9888         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9889         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9890         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9891         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9892         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9893         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9894         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9895         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9896         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9897         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9898         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9899         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9900         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9901         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9902         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9903         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9904         routines.
9905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9906         file.
9907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9909         file.
9910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9912         file.
9913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9915         file.
9916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9918         file.
9919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9921         file.
9922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9923         file.
9924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9925         file.
9926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9927         file.
9928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9929         New file.
9930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9931         file.
9932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9933         file.
9934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9936         file.
9937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9939         file.
9940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9942         file.
9943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9945         VIS3 routines.
9947         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9948         New file.
9950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9952         * sysdeps/sparc/configure.in: New file.
9953         * sysdeps/sparc/configure: Generate.
9954         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9955         * configure: Regenerate.
9956         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9957         * config.make.in (have-as-vis3): New.
9958         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9959         available use -Av9d instead of -Av9a.
9960         * sysdeps/sparc/sparc64/Makefile: Likewise.
9961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9963         New file.
9964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9965         file.
9966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9967         New file.
9968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9969         file.
9970         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9971         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9972         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9973         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9974         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9976         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9977         fzeros/fnegs to load 0x80000000 into a float register instead of
9978         using the stack.
9979         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9981 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9983         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9984         bits/syscall.h.
9985         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9986         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9987         ($(inst_includedir)/bits/syscall.h): Remove rule.
9988         ($(objpfx)bits/syscall.d): Include instead of
9989         $(objpfx)syscall-list.d.
9990         (generated): Change syscall-list.h and syscall-list.d to
9991         bits/syscall.h and bits/syscall.d.
9993 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9995         [BZ #13846]
9996         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9998 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10000         [BZ #13841]
10001         * math/s_csqrt.c: Include <float.h>.
10002         (__csqrt): Scale large or subnormal inputs.
10003         * math/s_csqrtf.c: Likewise.
10004         * math/s_csqrtl.c: Likewise.
10005         * math/libm-test.inc (csqrt_test): Add more tests.
10006         * sysdeps/i386/fpu/libm-test-ulps: Update.
10007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10009         [BZ #13840]
10010         * math/libm-test.inc (hypot_test): Add more tests.
10012 2012-03-13  David S. Miller  <davem@davemloft.net>
10014         [BZ #13840]
10015         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10016         double-precision for the calculation instead of scaling.
10018 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10020         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10021         manipulate bits before adding and subtracting TWO52[sx].
10022         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10023         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10024         Likewise.
10025         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10027 2012-03-13  David S. Miller  <davem@davemloft.net>
10029         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10030         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10031         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10032         rtld-global-offsets.h
10033         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10035         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10036         large parameters.
10038         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10040         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10041         'err' in the ifdef scope in which it is actually used.
10043         * nss/nss_db/db-init.c: Include string.h
10045 2012-03-12  David S. Miller  <davem@davemloft.net>
10047         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10048         masking out of the most significant byte of random value used.
10049         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10050         Fix coding style in previous change.
10052         * sysdeps/unix/sysv/linux/kernel-features.h
10053         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10054         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10055         expression.
10056         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10057         later.
10059 2012-03-11  David S. Miller  <davem@davemloft.net>
10061         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10062         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10063         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10064         for 'resultvar' otherwise things get truncated on 64-bit.
10066         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10067         Fix masking out of the most significant byte of random value used.
10069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10071 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10075 2012-03-09  David S. Miller  <davem@davemloft.net>
10077         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10078         variables with appropriate CPP guards.
10079         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10080         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10081         on resulting framesize and the management of the outregs buffer for pltexit.
10082         Preserve floating point return values across _dl_call_pltexit call.
10083         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10084         framesize and the management of the outregs buffer for pltexit.
10085         Preserve floating point return values across _dl_call_pltexit
10086         call.
10087         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10088         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10089         (print_exit): Fix format string for return register value.
10091 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10093         * sunrpc/Makefile (others): Add rpcgen.
10094         ($(objpfx)rpcgen): Remove special build rule and dependency on
10095         libc.
10096         * sunrpc/rpcgen.c: New file.
10098 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10100         [BZ #13673]
10101         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10102         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10103         * sysdeps/i386/crti.S: Likewise.
10104         * sysdeps/i386/crtn.S: Likewise.
10105         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10106         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10107         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10108         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10109         * sysdeps/sh/crti.S: Likewise.
10110         * sysdeps/sh/crtn.S: Likewise.
10111         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10113         [BZ #13673]
10114         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10115         with URL.
10116         * locale/programs/locfile-kw.gperf: Likewise.
10117         * locale/programs/charmap-kw.h: Regenerated.
10118         * locale/programs/locfile-kw.h: Likewise.
10120         [BZ #13673]
10121         * intl/plural.y: Replace FSF snail mail address with URL.
10122         * intl/plural.c: Regenerated.
10124 2012-03-09  Richard Henderson  <rth@twiddle.net>
10126         * include/math_private.h: Remove file.
10127         * math/math_private.h: Move file ...
10128         * sysdeps/generic/math_private.h: ... here.
10130         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10131         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10132         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10134         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10135         and <math_private.h>.
10136         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10137         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10138         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10139         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10140         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10141         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10142         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10143         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10144         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10145         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10146         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10147         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10148         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10149         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10150         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10151         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10152         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10153         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10154         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10155         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10156         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10157         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10158         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10159         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10160         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10161         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10162         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10163         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10164         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10165         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10166         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10167         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10168         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10169         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10170         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10171         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10172         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10173         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10174         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10175         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10176         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10177         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10178         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10179         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10180         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10181         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10182         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10183         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10184         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10185         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10186         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10187         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10188         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10189         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10190         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10191         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10192         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10193         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10194         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10195         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10196         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10197         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10198         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10199         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10200         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10201         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10202         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10203         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10204         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10205         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10206         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10207         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10208         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10209         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10210         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10211         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10212         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10213         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10214         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10215         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10216         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10217         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10218         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10219         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10220         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10221         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10222         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10223         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10224         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10225         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10226         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10227         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10228         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10229         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10230         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10231         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10232         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10233         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10234         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10235         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10236         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10237         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10238         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10239         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10240         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10241         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10242         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10243         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10244         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10245         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10246         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10247         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10248         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10249         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10250         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10251         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10252         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10253         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10254         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10255         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10256         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10257         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10258         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10259         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10260         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10261         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10262         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10263         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10264         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10265         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10266         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10267         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10268         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10269         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10270         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10271         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10272         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10273         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10274         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10275         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10276         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10277         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10278         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10279         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10280         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10281         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10282         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10283         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10284         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10285         * sysdeps/ieee754/k_standard.c: Likewise.
10286         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10287         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10288         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10290         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10291         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10292         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10293         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10294         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10295         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10296         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10297         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10298         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10299         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10300         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10301         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10302         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10303         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10304         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10305         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10306         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10307         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10308         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10309         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10310         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10311         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10312         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10313         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10314         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10316         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10317         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10318         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10319         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10320         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10321         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10322         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10323         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10324         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10325         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10326         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10327         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10328         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10329         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10330         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10331         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10332         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10333         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10334         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10335         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10336         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10337         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10338         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10340         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10341         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10342         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10343         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10344         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10345         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10346         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10347         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10348         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10349         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10350         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10351         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10352         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10353         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10354         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10355         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10356         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10357         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10358         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10359         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10360         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10361         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10362         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10363         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10364         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10365         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10366         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10367         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10368         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10369         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10370         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10371         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10372         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10373         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10374         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10375         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10376         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10377         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10378         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10379         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10380         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10381         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10382         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10383         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10384         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10385         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10386         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10387         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10388         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10389         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10390         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10391         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10392         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10393         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10394         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10395         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10396         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10397         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10398         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10399         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10400         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10401         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10402         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10403         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10404         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10405         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10406         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10407         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10408         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10409         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10410         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10411         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10412         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10413         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10414         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10415         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10416         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10417         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10418         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10419         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10421         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10422         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10423         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10425         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10427         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10428         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10429         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10430         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10431         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10432         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10433         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10434         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10435         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10436         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10437         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10438         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10439         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10440         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10441         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10442         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10443         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10444         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10445         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10446         * sysdeps/ieee754/s_lib_version.c: Likewise.
10447         * sysdeps/ieee754/s_matherr.c: Likewise.
10448         * sysdeps/ieee754/s_signgam.c: Likewise.
10449         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10450         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10451         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10452         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10453         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10454         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10455         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10456         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10457         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10458         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10459         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10460         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10461         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10462         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10463         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10464         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10465         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10466         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10467         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10468         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10469         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10471 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10473         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10474         * sunrpc/rpc_main.c: Likewise.
10475         * sunrpc/rpc_svcout.c: Likewise.
10477 2012-03-09  David S. Miller  <davem@davemloft.net>
10479         * include/math_private.h: New file.
10481 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10483         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10484         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10485         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10486         from <bits/socket_type.h>.
10487         (enum __socket_type): Don't define here.
10488         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10489         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10490         bits/socket_type.h.
10492         [BZ #13566]
10493         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10494         checking __USE_GNU.
10496         * Makerules ($(inst_includedir)/%.h): New rule.
10497         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10498         (install-others): Remove variable setting.
10499         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10501 2012-03-08  Richard Henderson  <rth@twiddle.net>
10503         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10504         from macro to inline function; merge with the
10505         !__LIBC_INTERNAL_MATH_INLINES version.
10506         (__ieee754_sqrtf): Likewise.
10508         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10509         to inline function.
10510         (__rintf, __floor, __floorf): Likewise.
10512         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10513         macro to inline function.
10514         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10516         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10517         not <math/math_private.h>.
10519 2012-03-08  David S. Miller  <davem@davemloft.net>
10521         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10522         copyright year.
10523         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10525 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10527         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10528         normalization.
10529         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10530         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10532 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10534         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10535         be defined individually, they must be defined as a block.  Define
10536         S for printing a string instead of hidint the different by using a
10537         macro for adding the 'l'.
10538         * stdio-common/tst-fphex-wide.c: Adjust.
10540 2012-03-07  Marek Polacek  <polacek@redhat.com>
10542         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10544 2012-03-08  Marek Polacek  <polacek@redhat.com>
10546         [BZ #13806]
10547         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10548         * stdio-common/tst-fphex.c: Define a few macros to make the
10549         test reusable.  Use them.
10550         * stdio-common/tst-fphex-wide.c: New file.
10552 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10554         [BZ #6911]
10555         * manual/macros.texi (gnusystems): New macro.
10556         (nongnusystems): Likewise.
10557         (gnulinuxhurdsystems): Likewise.
10558         (gnuhurdsystems): Likewise..
10559         (gnulinuxsystems): Likewise.
10560         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10561         variants of the GNU system, not "GNU system".
10562         * manual/conf.texi: Likewise.
10563         * manual/errno.texi: Likewise.  Update example of errno macro
10564         expansion.
10565         * manual/filesys.texi: Likewise.
10566         (getumask): Document as specific to GNU/Hurd.
10567         * manual/install.texi: Likewise.  Reword some references to
10568         GNU/Linux.
10569         * manual/intro.texi: Likewise.
10570         * manual/io.texi: Likewise.
10571         (File Name Portability): Detail which constraints are inapplicable
10572         to all GNU systems and which are only inapplicable to GNU/Hurd.
10573         * manual/job.texi: Likewise.
10574         * manual/llio.texi: Likewise.
10575         (O_NOCTTY): Document as present on GNU/Linux.
10576         * manual/maint.texi: Likewise.
10577         * manual/memory.texi: Likewise.
10578         * manual/pattern.texi: Likewise.
10579         * manual/pipe.texi: Likewise.
10580         * manual/process.texi: Likewise.
10581         * manual/resource.texi: Likewise.
10582         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10583         child on GNU/Hurd.
10584         * manual/setjmp.texi: Likewise.
10585         * manual/signal.texi: Likewise.
10586         * manual/startup.texi: Likewise.
10587         * manual/stdio.texi: Likewise.
10588         * manual/terminal.texi: Likewise.
10589         (ONLCR): Document as POSIX.
10590         (OXTABS): Document availability on GNU/Linux as XTABS.
10591         (ONOEOT): Document availability separately from other bits.
10592         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10593         * manual/time.texi: Likewise.
10594         * manual/users.texi: Likewise.
10595         * INSTALL: Regenerated.
10596         * sysdeps/gnu/errlist.c: Regenerated.
10598         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10599         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10600         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10601         puts.
10602         * configure: Regenerated.
10604 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10606         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10607         default includes instead of AC_HEADER_CHECK.
10608         * sysdeps/i386/configure: Regenerated.
10610         [BZ #10716]
10611         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10612         * math/s_cacoshf.c (__cacoshf): Likewise.
10613         * math/s_cacoshl.c (__cacoshl): Likewise.
10614         * math/s_casinh.c (__casinh): Set signs of result from argument.
10615         * math/s_casinhf.c (__casinhf): Likewise.
10616         * math/s_casinhl.c (__casinhl): Likewise.
10617         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10618         (casinh_test): Add more tests.
10619         * sysdeps/i386/fpu/libm-test-ulps: Update.
10620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10622 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10624         * po/zh_TW.po: Update from translation team.
10626         * login/Makefile (distribute): Remove variable.
10627         * catgets/Makefile: Likewise.
10628         * mach/Makefile: Likewise.
10629         * malloc/Makefile: Likewise.
10630         * misc/Makefile: Likewise.
10631         * iconv/Makefile: Likewise.
10632         * nscd/Makefile: Likewise.
10633         * hurd/Makefile: Likewise.
10634         * manual/Makefile: Likewise.
10635         * locale/Makefile: Likewise.
10636         * intl/Makefile: Likewise.
10637         * conform/Makefile: Likewise.
10638         * nss/Makefile: Likewise.
10639         * time/Makefile: Likewise.
10640         * soft-fp/Makefile: Likewise.
10641         * dirent/Makefile: Likewise.
10642         * gmon/Makefile: Likewise.
10643         * po/Makefile: Likewise.
10644         * rt/Makefile: Likewise.
10645         * socket/Makefile: Likewise.
10646         * math/Makefile: Likewise.
10647         * signal/Makefile: Likewise.
10648         * debug/Makefile: Likewise.
10649         * elf/Makefile: Likewise.
10650         * timezone/Makefile: Likewise.
10651         * stdlib/Makefile: Likewise.
10652         * iconvdata/Makefile: Likewise.
10653         * sunrpc/Makefile: Likewise.
10654         * io/Makefile: Likewise.
10655         * argp/Makefile: Likewise.
10656         * inet/Makefile: Likewise.
10657         * hesiod/Makefile: Likewise.
10658         * grp/Makefile: Likewise.
10659         * csu/Makefile: Likewise.
10660         * wctype/Makefile: Likewise.
10661         * crypt/Makefile: Likewise.
10662         * libio/Makefile: Likewise.
10663         * string/Makefile: Likewise.
10664         * nis/Makefile: Likewise.
10665         * resolv/Makefile: Likewise.
10666         * stdio-common/Makefile: Likewise.
10667         * wcsmbs/Makefile: Likewise.
10668         * dlfcn/Makefile: Likewise.
10669         * posix/Makefile: Likewise.
10671         [BZ #6959]
10672         * timezone/Makefile: Don't install timezone files, just the programs
10673         and scripts.
10675 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10677         * nss/databases.def: Add missing gshadow entry.
10679         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10681 2012-03-06  Marek Polacek  <polacek@redhat.com>
10683         [BZ #13726]
10684         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10685         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10686         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10687         * stdio-common/tst-long-dbl-fphex.c: New file.
10689 2012-03-06  David S. Miller  <davem@davemloft.net>
10691         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10692         (set_obp_int): New function.
10693         (get_obp_int): New function.
10694         (__get_clockfreq_via_dev_openprom): Likewise.
10695         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10696         Avoid unused variable warnings on 'val' and use builtin_expect.
10697         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10698         __builtin_expect.
10699         (INLINE_CLONE_SYSCALL): Likewise.
10701 2012-03-05  David S. Miller  <davem@davemloft.net>
10703         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10705 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10707         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10709         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10710         only for |x| >= 40.
10711         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10713 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10715         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10716         Replace gettimeofday with __vdso_gettimeofday.
10718         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10719         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10720         __vdso_clock_gettime and __vdso_getcpu.
10722         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10723         time with __vdso_time.
10725 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10727         * manual/lang.texi (size_t): Note types to which size_t may be
10728         equivalent with the GNU C Library, but do not describe when
10729         differences between them are significant.
10731 2012-03-05  Andreas Jaeger  <aj@suse.de>
10733         * sysdeps/i386/fpu/libm-test-ulps: Update.
10735 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10737         [BZ #3976]
10738         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10739         (__ieee754_pow): Save and restore rounding mode and use
10740         round-to-nearest for main computations.
10741         * math/libm-test.inc (pow_test_tonearest): New function.
10742         (pow_test_towardzero): Likewise.
10743         (pow_test_downward): Likewise.
10744         (pow_test_upward): Likewise.
10745         (main): Call the new functions.
10746         * sysdeps/i386/fpu/libm-test-ulps: Update.
10747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10749         [BZ #3976]
10750         * math/libm-test.inc (cosh_test_tonearest): New function.
10751         (cosh_test_towardzero): Likewise.
10752         (cosh_test_downward): Likewise.
10753         (cosh_test_upward): Likewise.
10754         (sinh_test_tonearest): Likewise.
10755         (sinh_test_towardzero): Likewise.
10756         (sinh_test_downward): Likewise.
10757         (sinh_test_upward): Likewise.
10758         (main): Call the new functions.
10759         * sysdeps/i386/fpu/libm-test-ulps: Update.
10760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10762 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10764         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10765         default stack guard is set in last bytes.
10766         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10768 2012-03-05  Kees Cook  <keescook@chromium.org>
10770         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10772         [BZ #13656]
10773         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10774         possibly allocate from heap instead of stack.
10775         * stdio-common/bug-vfprintf-nargs.c: New file.
10776         * stdio-common/Makefile (tests): Add nargs overflow test.
10778 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10782 2012-03-03  Marek Polacek  <polacek@redhat.com>
10784         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10785         * math/math_private.h: Likewise.
10786         * stdlib/tst-strtod.c: Likewise.
10787         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10788         * sysdeps/x86_64/bits/atomic.h: Likewise.
10790 2012-03-02  David S. Miller  <davem@davemloft.net>
10792         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10793         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10794         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10795         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10796         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10797         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10798         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10799         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10801 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10803         [BZ #13792]
10804         * manual/examples/README: New file, says the example source files
10805         can be used under GPL>=2.
10806         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10807         line containing just "*/".
10808         * manual/examples/add.c: Add copyright header (GPL>=2).
10809         * manual/examples/argp-ex1.c: Likewise.
10810         * manual/examples/argp-ex2.c: Likewise.
10811         * manual/examples/argp-ex3.c: Likewise.
10812         * manual/examples/argp-ex4.c: Likewise.
10813         * manual/examples/atexit.c: Likewise.
10814         * manual/examples/db.c: Likewise.
10815         * manual/examples/dir.c: Likewise.
10816         * manual/examples/dir2.c: Likewise.
10817         * manual/examples/execinfo.c: Likewise.
10818         * manual/examples/filecli.c: Likewise.
10819         * manual/examples/filesrv.c: Likewise.
10820         * manual/examples/fmtmsgexpl.c: Likewise.
10821         * manual/examples/genpass.c: Likewise.
10822         * manual/examples/inetcli.c: Likewise.
10823         * manual/examples/inetsrv.c: Likewise.
10824         * manual/examples/isockad.c: Likewise.
10825         * manual/examples/longopt.c: Likewise.
10826         * manual/examples/memopen.c: Likewise.
10827         * manual/examples/memstrm.c: Likewise.
10828         * manual/examples/mkfsock.c: Likewise.
10829         * manual/examples/mkisock.c: Likewise.
10830         * manual/examples/mygetpass.c: Likewise.
10831         * manual/examples/pipe.c: Likewise.
10832         * manual/examples/popen.c: Likewise.
10833         * manual/examples/rprintf.c: Likewise.
10834         * manual/examples/search.c: Likewise.
10835         * manual/examples/select.c: Likewise.
10836         * manual/examples/setjmp.c: Likewise.
10837         * manual/examples/sigh1.c: Likewise.
10838         * manual/examples/sigusr.c: Likewise.
10839         * manual/examples/stpcpy.c: Likewise.
10840         * manual/examples/strdupa.c: Likewise.
10841         * manual/examples/strftim.c: Likewise.
10842         * manual/examples/strncat.c: Likewise.
10843         * manual/examples/subopt.c: Likewise.
10844         * manual/examples/swapcontext.c: Likewise.
10845         * manual/examples/termios.c: Likewise.
10846         * manual/examples/testopt.c: Likewise.
10847         * manual/examples/testpass.c: Likewise.
10848         * manual/examples/timeval_subtract.c: Likewise.
10850         [BZ #13792]
10851         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10852         function to ...
10853         * manual/timeval_subtract.c.texi: ... here, new file.
10855 2012-03-02  David S. Miller  <davem@davemloft.net>
10857         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10859 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10861         [BZ #3976]
10862         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10863         (__sin): Save and restore rounding mode and use round-to-nearest
10864         for all computations.
10865         (__cos): Save and restore rounding mode and use round-to-nearest
10866         for all computations.
10867         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10868         <fenv.h>.
10869         (tan): Save and restore rounding mode and use round-to-nearest for
10870         all computations.
10871         * math/libm-test.inc (cos_test_tonearest): New function.
10872         (cos_test_towardzero): Likewise.
10873         (cos_test_downward): Likewise.
10874         (cos_test_upward): Likewise.
10875         (sin_test_tonearest): Likewise.
10876         (sin_test_towardzero): Likewise.
10877         (sin_test_downward): Likewise.
10878         (sin_test_upward): Likewise.
10879         (tan_test_tonearest): Likewise.
10880         (tan_test_towardzero): Likewise.
10881         (tan_test_downward): Likewise.
10882         (tan_test_upward): Likewise.
10883         (main): Call the new functions.
10884         * sysdeps/i386/fpu/libm-test-ulps: Update.
10885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10887         [BZ #10135]
10888         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10889         small n, then large n, before computing and testing k+n.
10890         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10891         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10892         Likewise.
10893         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10894         Likewise.
10895         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10896         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10897         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10898         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10899         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10900         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10901         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10902         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10903         * math/libm-test.inc (scalbn_test): Add more tests.
10904         (scalbln_test): Likewise.
10906         * manual/filesys.texi (mode_t): Describe constraints on size and
10907         signedness, not exact equivalence to a particular type.
10908         (ino_t): Likewise.
10909         (ino64_t): Likewise.
10910         (dev_t): Likewise.
10911         (nlink_t): Likewise.
10912         (blkcnt_t): Likewise.
10913         (blkcnt64_t): Likewise.
10914         * manual/llio.texi (off_t): Likewise.
10916         [BZ #3976]
10917         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10918         (__ieee754_exp): Save and restore rounding mode and use
10919         round-to-nearest for all computations.
10920         * math/libm-test.inc (exp_test_tonearest): New function.
10921         (exp_test_towardzero): Likewise.
10922         (exp_test_downward): Likewise.
10923         (exp_test_upward): Likewise.
10924         (main): Call the new functions.
10925         * sysdeps/i386/fpu/libm-test-ulps: Update.
10926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10928 2012-03-01  Chris Demetriou  <cgd@google.com>
10930         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10931         have predictable order.
10933 2012-03-01  David S. Miller  <davem@davemloft.net>
10935         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10937         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10938         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10939         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10940         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10942         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10943         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10944         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10945         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10946         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10947         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10948         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10949         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10950         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10952         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10954         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10955         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10956         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10958         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10959         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10960         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10961         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10962         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10963         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10964         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10965         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10966         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10967         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10968         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10969         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10970         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10971         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10972         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10973         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10974         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10975         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10976         * sysdeps/sparc/elf/configure: Regenerated.
10978 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10980         * configure.in (AS, LD): Require binutils 2.20 or later.
10981         * configure: Regenerated.
10982         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10983         as required minimum version.
10984         * INSTALL: Regenerated.
10986         [BZ #2541]
10987         [BZ #4108]
10988         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10989         before squaring exponent.
10990         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10991         bottom long double and 27 bits of top long double before squaring
10992         exponent.
10993         * math/libm-test.inc (erfc_test): Add more tests.
10994         * sysdeps/i386/fpu/libm-test-ulps: Update.
10995         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10998 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11000         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11001         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11002         containing bit-fields.
11003         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11004         * soft-fp/single.h (_FP_UNION_S): Likewise.
11005         * soft-fp/double.h (_FP_UNION_D): Likewise.
11007 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11009         [BZ #13786]
11010         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11011         not include ../strcmp.S.
11012         [USE_AS_STRNCASECMP_L]: Likewise.
11013         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11014         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11015         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11016         (__strncasecmp_l_ia32): Define as alias to
11017         __strncasecmp_l_nonascii.
11019         [BZ #5794]
11020         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11021         * sysdeps/i386/fpu/libm-test-ulps: Update.
11022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11024         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11027 2012-02-29  Jeff Law  <law@redhat.com>
11029         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11030         out of bounds read.
11032 2012-02-29  Marek Polacek  <polacek@redhat.com>
11034         [BZ #13706]
11035         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11036         * elf/Makefile: Add rules to run tst-unused-dep.out.
11038 2012-02-28  David S. Miller  <davem@davemloft.net>
11040         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11041         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11042         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11043         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11044         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11045         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11047 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11049         * math/libm-test.inc (llround_test): Move one test from
11050         lround_test.  Use TEST_f_L in moved test.
11051         (lround_test): Move misplaced test to llround_test.  Add testcase
11052         from bug 2561.
11054 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11056         * sysdeps/x86_64/fpu/e_expf.S: New file.
11057         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11059 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11061         [BZ #13637]
11062         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11063         of remain_len that may cause incomplete multi-byte character and
11064         false match.
11065         * posix/bug-regex33.c: New file.
11066         * posix/Makefile (tests): Add bug-regex33.
11068 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11070         * manual/macros.texi: New file.
11071         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11072         * manual/libc.texinfo: Include macros.texi.
11073         * manual/creatute.texi: Likewise.
11074         * manual/install.texi: Likewise.
11075         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11076         @glibcadj{} in references to the GNU C Library.
11077         * manual/charset.texi: Likewise.
11078         * manual/conf.texi: Likewise.
11079         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11080         when not using those macros.
11081         * manual/creature.texi: Likewise.
11082         * manual/crypt.texi: Likewise.
11083         * manual/errno.texi: Likewise.
11084         * manual/filesys.texi: Likewise.
11085         * manual/header.texi: Likewise.
11086         * manual/install.texi: Likewise.
11087         * manual/intro.texi: Likewise.
11088         * manual/io.texi: Likewise.
11089         * manual/job.texi: Likewise.
11090         * manual/lang.texi: Likewise.
11091         * manual/libc.texiinfo: Likewise.
11092         * manual/llio.texi: Likewise.
11093         * manual/locale.texi: Likewise.
11094         * manual/maint.texi: Likewise.
11095         * manual/math.texi: Likewise.
11096         * manual/memory.texi: Likewise.
11097         * manual/message.texi: Likewise.
11098         * manual/nss.texi: Likewise.
11099         * manual/pattern.texi: Likewise.
11100         * manual/process.texi: Likewise.
11101         * manual/resource.texi: Likewise.
11102         * manual/search.texi: Likewise.
11103         * manual/setjmp.texi: Likewise.
11104         * manual/signal.texi: Likewise.
11105         * manual/socket.texi: Likewise.
11106         * manual/startup.texi: Likewise.
11107         * manual/stdio.texi: Likewise.
11108         * manual/string.texi: Likewise.
11109         * manual/sysinfo.texi: Likewise.
11110         * manual/syslog.texi: Likewise.
11111         * manual/terminal.texi: Likewise.
11112         * manual/time.texi: Likewise.
11113         * manual/users.texi: Likewise.
11114         * INSTALL: Regenerated.
11115         * NOTES: Regenerated.
11116         * sysdeps/gnu/errlist.c: Regenerated.
11118 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11120         * include/dirent.h: Include <dirstream.h> before
11121         <dirent/dirent.h>.
11123 2012-02-28  David S. Miller  <davem@davemloft.net>
11125         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11126         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11127         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11128         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11130 2012-02-27  David S. Miller  <davem@davemloft.net>
11132         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11134         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11135         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11137         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11138         frame pointer instead of stack pointer relative arg slot.
11139         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11140         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11141         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11143 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11145         [BZ #3992]
11146         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11148 2012-02-27  David S. Miller  <davem@davemloft.net>
11150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11152         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11154         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11155         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11156         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11157         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11159 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11161         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11162         later.  Allow versions 5-9.
11163         * configure: Regenerated.
11164         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11165         required minimum version and 4.6 as recommended version.  Do not
11166         mention bugs in GCC 2.7 and 2.8.
11167         * INSTALL: Regenerated.
11169 2012-02-27  David S. Miller  <davem@davemloft.net>
11171         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11172         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11175         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11176         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11177         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11178         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11180         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11181         manipulate bits before adding and subtracting TWO112[sx].
11182         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11184 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11186         [BZ #13775]
11187         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11188         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11189         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11190         being in POSIX, because they are in 1003.1-2008.
11192         * rt/tst-aio.c: Include <fcntl.h>.
11193         * rt/tst-aio7.c: Likewise.
11194         * rt/tst-aio64.c: Likewise.
11196         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11198 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11200         * manual/install.texi (--with-headers): Describe headers as
11201         interface headers, not private headers.
11202         (Specific advice for GNU/Linux systems): Describe use of headers
11203         from "make headers_install", not private headers from older
11204         kernels.
11205         * INSTALL: Regenerated.
11206         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11207         Change to 2.6.19.
11208         * sysdeps/unix/sysv/linux/configure: Regenerated.
11210         * manual/llio.texi (fclean): Remove documentation.
11212         * manual/Makefile (libc-texi-generated): New variable.  Include
11213         version.texi.
11214         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11215         $(libc-texi-generated), not duplicated list of files.
11216         (version.texi, stamp-version): New rules.
11217         (realclean): Remove $(libc-texi-generated), not individual files
11218         from that list.  Do not remove dir-add.texinfo.
11219         * manual/libc.texinfo: Comment out uses of edition numbers and
11220         references to printed manual.  Remove last-updated dates.
11221         (EDITION): Comment out.
11222         (ISBN): Likewise.
11223         (VERSION, UPDATED): Remove.
11224         (version.texi): Include.
11226 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11228         * sysdeps/posix/spawni.c: Include <signal.h>.
11229         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11230         * sysdeps/pthread/aio_fsync.c: Likewise.
11232 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11234         * conform/Makefile (tests): Run only when not cross-compiling and
11235         when fast-check is not defined.
11237         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11238         * conform/data/limits.h-data: Fixes for POSIX2008.
11239         * conform/run-conformtest.sh: Run all tests.
11240         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11241         headers.
11242         * include/bits/dlfcn.h: Likewise.
11243         * include/langinfo.h: Likewise.
11244         * include/monetary.h: Likewise.
11245         * include/sys/poll.h: Likewise.
11247         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11248         for __USE_GNU.
11249         * posix/spawn.h: Define __need_sigset_t.
11250         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11251         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11252         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11253         to get sigevent_t only.
11254         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11255         only for __USE_GNU.
11256         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11257         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11258         process_vm_writev only for __USE_GNU.
11259         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11261         * conform/Makefile: For now ignore errors from run-conformtest.
11262         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11263         POSIX to avoid namespace pollution.  Don't prepend headers.
11264         * conform/data/aio.h-data: Fixes for POSIX testing.
11265         * conform/data/fcntl.h-data: Likewise.
11266         * conform/data/glob.h-data: Likewise.
11267         * conform/data/grp.h-data: Likewise.
11268         * conform/data/pthread.h-data: Likewise.
11269         * conform/data/pwd.h-data: Likewise.
11270         * conform/data/signal.h-data: Likewise.
11271         * conform/data/spawn.h-data: Likewise.
11272         * conform/data/stdio.h-data: Likewise.
11273         * conform/data/stdlib.h-data: Likewise.
11274         * conform/data/stropts.h-data: Likewise.
11275         * conform/data/sys/mman.h-data: Likewise.
11276         * conform/data/sys/stat.h-data: Likewise.
11277         * conform/data/sys/types.h-data: Likewise.
11278         * conform/data/sys/wait.h-data: Likewise.
11279         * conform/data/time.h-data: Likewise.
11280         * conform/data/unistd.h-data: Likewise.
11281         * conform/data/utime.h-data: Likewise.
11283         * io/sys/stat.h: fchmod was always in POSIX.
11284         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11285         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11286         * rt/aio.h: Define __need_timespec before including <time.h>.
11287         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11288         struct.  Add forward declaration of pthread_attr_t and use it in
11289         sigevent.
11290         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11291         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11292         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11293         always remove CLK_TCK definition.
11295 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11297         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11299 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11301         * conform/run-conformtest.sh: New file.
11302         * conform/Makefile: Run run-conformtest for tests.
11303         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11304         support.
11306         * conform/data/uchar.h-data: New file.
11307         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11308         * conform/data/arpa/inet.h-data: Likewise.
11309         * conform/data/assert.h-data: Likewise.
11310         * conform/data/complex.h-data: Likewise.
11311         * conform/data/cpio.h-data: Likewise.
11312         * conform/data/ctype.h-data: Likewise.
11313         * conform/data/dirent.h-data: Likewise.
11314         * conform/data/dlfcn.h-data: Likewise.
11315         * conform/data/errno.h-data: Likewise.
11316         * conform/data/fcntl.h-data: Likewise.
11317         * conform/data/float.h-data: Likewise.
11318         * conform/data/fmtmsg.h-data: Likewise.
11319         * conform/data/fnmatch.h-data: Likewise.
11320         * conform/data/ftw.h-data: Likewise.
11321         * conform/data/glob.h-data: Likewise.
11322         * conform/data/grp.h-data: Likewise.
11323         * conform/data/iconv.h-data: Likewise.
11324         * conform/data/inttypes.h-data: Likewise.
11325         * conform/data/langinfo.h-data: Likewise.
11326         * conform/data/libgen.h-data: Likewise.
11327         * conform/data/limits.h-data: Likewise.
11328         * conform/data/locale.h-data: Likewise.
11329         * conform/data/math.h-data: Likewise.
11330         * conform/data/monetary.h-data: Likewise.
11331         * conform/data/mqueue.h-data: Likewise.
11332         * conform/data/ndbm.h-data: Likewise.
11333         * conform/data/net/if.h-data: Likewise.
11334         * conform/data/netdb.h-data: Likewise.
11335         * conform/data/netinet/in.h-data: Likewise.
11336         * conform/data/nl_types.h-data: Likewise.
11337         * conform/data/poll.h-data: Likewise.
11338         * conform/data/pthread.h-data: Likewise.
11339         * conform/data/pwd.h-data: Likewise.
11340         * conform/data/regex.h-data: Likewise.
11341         * conform/data/sched.h-data: Likewise.
11342         * conform/data/search.h-data: Likewise.
11343         * conform/data/semaphore.h-data: Likewise.
11344         * conform/data/setjmp.h-data: Likewise.
11345         * conform/data/signal.h-data: Likewise.
11346         * conform/data/spawn.h-data: Likewise.
11347         * conform/data/stdarg.h-data: Likewise.
11348         * conform/data/stdio.h-data: Likewise.
11349         * conform/data/stdlib.h-data: Likewise.
11350         * conform/data/string.h-data: Likewise.
11351         * conform/data/strings.h-data: Likewise.
11352         * conform/data/stropts.h-data: Likewise.
11353         * conform/data/sys/ipc.h-data: Likewise.
11354         * conform/data/sys/mman.h-data: Likewise.
11355         * conform/data/sys/msg.h-data: Likewise.
11356         * conform/data/sys/resource.h-data: Likewise.
11357         * conform/data/sys/select.h-data: Likewise.
11358         * conform/data/sys/sem.h-data: Likewise.
11359         * conform/data/sys/shm.h-data: Likewise.
11360         * conform/data/sys/socket.h-data: Likewise.
11361         * conform/data/sys/stat.h-data: Likewise.
11362         * conform/data/sys/statvfs.h-data: Likewise.
11363         * conform/data/sys/time.h-data: Likewise.
11364         * conform/data/sys/timeb.h-data: Likewise.
11365         * conform/data/sys/times.h-data: Likewise.
11366         * conform/data/sys/types.h-data: Likewise.
11367         * conform/data/sys/uio.h-data: Likewise.
11368         * conform/data/sys/un.h-data: Likewise.
11369         * conform/data/sys/utsname.h-data: Likewise.
11370         * conform/data/sys/wait.h-data: Likewise.
11371         * conform/data/syslog.h-data: Likewise.
11372         * conform/data/tar.h-data: Likewise.
11373         * conform/data/termios.h-data: Likewise.
11374         * conform/data/utime.h-data: Likewise.
11375         * conform/data/utmpx.h-data: Likewise.
11376         * conform/data/varargs.h-data: Likewise.
11377         * conform/data/wchar.h-data: Likewise.
11378         * conform/data/wctype.h-data: Likewise.
11379         * conform/data/wordexp.h-data: Likewise.
11381         * include/stropts.h: New file.
11382         * include/uchar.h: New file.
11383         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11384         * include/assert.h: Likewise.
11385         * include/ctype.h: Likewise.
11386         * include/dirent.h: Likewise.
11387         * include/dlfcn.h: Likewise.
11388         * include/fcntl.h: Likewise.
11389         * include/fnmatch.h: Likewise.
11390         * include/glob.h: Likewise.
11391         * include/grp.h: Likewise.
11392         * include/libio.h: Likewise.
11393         * include/locale.h: Likewise.
11394         * include/math.h: Likewise.
11395         * include/net/if.h: Likewise.
11396         * include/netdb.h: Likewise.
11397         * include/netinet/in.h: Likewise.
11398         * include/pthread.h: Likewise.
11399         * include/pwd.h: Likewise.
11400         * include/regex.h: Likewise.
11401         * include/sched.h: Likewise.
11402         * include/search.h: Likewise.
11403         * include/setjmp.h: Likewise.
11404         * include/signal.h: Likewise.
11405         * include/stdio.h: Likewise.
11406         * include/stdlib.h: Likewise.
11407         * include/string.h: Likewise.
11408         * include/sys/cdefs.h: Likewise.
11409         * include/sys/mman.h: Likewise.
11410         * include/sys/msg.h: Likewise.
11411         * include/sys/resource.h: Likewise.
11412         * include/sys/select.h: Likewise.
11413         * include/sys/socket.h: Likewise.
11414         * include/sys/stat.h: Likewise.
11415         * include/sys/statvfs.h: Likewise.
11416         * include/sys/time.h: Likewise.
11417         * include/sys/times.h: Likewise.
11418         * include/sys/uio.h: Likewise.
11419         * include/sys/utsname.h: Likewise.
11420         * include/sys/wait.h: Likewise.
11421         * include/termios.h: Likewise.
11422         * include/time.h: Likewise.
11423         * include/ulimit.h: Likewise.
11424         * include/unistd.h: Likewise.
11425         * include/utime.h: Likewise.
11426         * include/wchar.h: Likewise.
11427         * include/wctype.h: Likewise.
11428         * include/wordexp.h: Likewise.
11430         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11432         * time/time.h: TIME_UTC must be a macro.
11433         Make timespec_get available for ISO C11 only as well.
11435 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11437         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11438         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11440 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11442         * configure.in: Use -o not -a in test for unsupported multi-arch.
11444 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11446         * manual/texinfo.tex: Update to version 2012-01-19.16.
11448 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11450         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11452 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11454         [BZ #13738]
11455         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11456         * manual/fdl-1.3.texi: New file.
11457         * manual/fdl-1.1.texi: File removed.
11459         [BZ #13738]
11460         * manual/libc.texinfo (FDL_VERSION): New @set.
11461         Use it for mention of FDL in cover text.
11462         (Documentation License): Use it in @include file name.
11464 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11465             Roland McGrath  <roland@hack.frob.com>
11467         [BZ #5461]
11468         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11469         not LONG_LONG_MAX and LONG_LONG_MIN.
11470         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11471         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11472         name.
11473         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11475 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11477         [BZ #2547]
11478         [BZ #11365]
11479         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11480         manipulate bits before adding and subtracting TWO23[sx].
11481         * math/libm-test.inc (nearbyint_test): Add more tests.
11483 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11485         [BZ #2548]
11486         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11487         bits before adding and subtracting TWO23[sx].
11488         * math/libm-test.inc (rint_test): Add more tests.
11489         (rint_test_tonearest): Likewise.
11490         (rint_test_towardzero): Likewise.
11491         (rint_test_downward): Likewise.
11492         (rint_test_upward: Likewise.
11494 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11496         [BZ #10110]
11497         * include/stdc-predef.h: New file.  Extracted from features.h.
11498         * include/features.h: Include stdc-predef.h.
11499         * Makefile (headers): Add stdc-predef.h.
11500         * CONFORMANCE (Compiler limitations): Update.
11502 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11504         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11506 2012-02-21  David S. Miller  <davem@davemloft.net>
11508         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11509         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11511 2012-02-20  David S. Miller  <davem@davemloft.net>
11513         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11514         using a normal save/restore sequence, rather than allocating a
11515         dummy stack frame just to store a frame pointer and restore.
11516         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11518 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11520         * manual/install.texi: Fix stray word in line-wrapped comment.
11522 2012-02-20  David S. Miller  <davem@davemloft.net>
11524         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11525         both binutils and gcc support GOTDATA.
11527         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11528         "rd %pc" in the PIC register setup sequences.
11530         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11531         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11532         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11533         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11534         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11535         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11536         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11537         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11538         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11539         (SYSCALL_ERROR_HANDLER): Likewise.
11540         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11541         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11542         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11543         (SYSCALL_ERROR_HANDLER): Likewise.
11545         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11546         (HAVE_GCC_GOTDATA): New.
11547         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11548         relocation support in both binutils and gcc.
11549         * sysdeps/sparc/elf/configure: Regenerate.
11551         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11552         * sysdeps/sparc/sparc32/elf/configure: Delete.
11553         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11554         * sysdeps/sparc/sparc64/elf/configure: Delete.
11555         * sysdeps/sparc/elf/configure.in: New file.
11556         * sysdeps/sparc/elf/configure: Generate.
11558         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11559         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11560         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11561         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11562         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11564 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11566         * manual/install.texi: Do not mention specific glibc version
11567         numbers.
11568         * manual/libc.texinfo (VERSION, UPDATED): Update.
11569         (@copying): Use @copyright{} and range of years.
11571 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11573         [BZ #13695]
11574         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11575         [crti.S not in sysdirs] (generated): Do not append.
11576         [crti.S not in sysdirs] (omit-deps): Likewise.
11577         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11578         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11579         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11580         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11581         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11582         Likewise.
11583         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11584         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11585         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11586         * csu/defs.awk: Remove file.
11587         * sysdeps/generic/initfini.c: Likewise.
11588         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11589         variable.
11590         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11591         Likewise.
11593 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11595         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11596         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11597         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11598         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11599         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11600         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11601         <bits/epoll.h>.
11602         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11603         (__EPOLL_PACKED): Define to empty if not defined by
11604         <bits/epoll.h>.
11605         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11606         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11607         bits/epoll.h.
11609 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11611         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11612         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11613         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11614         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11615         <bits/timerfd.h>.
11616         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11617         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11618         bits/timerfd.h.
11620 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11622         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11623         in C locale.
11624         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11625         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11626         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11627         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11629 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11631         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11632         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11634 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11636         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11637         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11638         defined.
11639         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11640         Likewise.
11641         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11642         entry for 2.16.
11644 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11646         * math/w_acos.c: Use non-signaling floating-point comparisons.
11647         * math/w_acosf.c: Likewise.
11648         * math/w_acosh.c: Likewise.
11649         * math/w_acoshf.c: Likewise.
11650         * math/w_acoshl.c: Likewise.
11651         * math/w_acosl.c: Likewise.
11652         * math/w_asin.c: Likewise.
11653         * math/w_asinf.c: Likewise.
11654         * math/w_asinl.c: Likewise.
11655         * math/w_atanh.c: Likewise.
11656         * math/w_atanhf.c: Likewise.
11657         * math/w_atanhl.c: Likewise.
11658         * math/w_exp2.c: Likewise.
11659         * math/w_exp2f.c: Likewise.
11660         * math/w_exp2l.c: Likewise.
11661         * math/w_j0.c: Likewise.
11662         * math/w_j0f.c: Likewise.
11663         * math/w_j0l.c: Likewise.
11664         * math/w_j1.c: Likewise.
11665         * math/w_j1f.c: Likewise.
11666         * math/w_j1l.c: Likewise.
11667         * math/w_jn.c: Likewise.
11668         * math/w_jnf.c: Likewise.
11669         * math/w_log.c: Likewise.
11670         * math/w_log10.c: Likewise.
11671         * math/w_log10f.c: Likewise.
11672         * math/w_log10l.c: Likewise.
11673         * math/w_log2.c: Likewise.
11674         * math/w_log2f.c: Likewise.
11675         * math/w_log2l.c: Likewise.
11676         * math/w_logf.c: Likewise.
11677         * math/w_logl.c: Likewise.
11678         * math/w_sqrt.c: Likewise.
11679         * math/w_sqrtf.c: Likewise.
11680         * math/w_sqrtl.c: Likewise.
11681         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11682         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11683         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11684         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11685         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11687 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11689         [BZ #9739]
11690         * manual/string.texi (strnlen): Use correct parameter name in
11691         equivalent expression.
11693 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11695         [BZ #11174]
11696         * manual/users.texi (seteuid): Consistently use neweuid for
11697         argument name.
11699 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11701         [BZ #13704]
11702         * manual/nss.texi (Services in the NSS configuration): Correct
11703         list of services in example configuration file.
11705 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11707         [BZ #11322]
11708         * manual/arith.texi: Remove statements about negative zero
11709         behaving identically to zero.
11711 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11713         [BZ #5993]
11714         * manual/install.texi: Do not document upgrading from libc5.
11716 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11718         [BZ #4596]
11719         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11721 2012-02-18  David S. Miller  <davem@davemloft.net>
11723         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11724         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11725         %o7 across the call.
11726         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11727         instead.
11728         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11729         SETUP_PIC_REG_LEAF.
11730         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11731         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11732         * sysdeps/sparc/crtn.S: Likewise.
11734 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11736         * aout/Makefile: Remove.
11738 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11740         [BZ #13058]
11741         * manual/examples/argp-ex1.c (main): Format definition in GNU
11742         style.
11743         * manual/examples/argp-ex2.c (main): Likewise.
11744         * manual/examples/argp-ex3.c (main): Likewise.
11745         * manual/examples/argp-ex4.c (main): Likewise.
11746         * manual/examples/longopt.c (main): Use new-style prototype
11747         definition.
11748         * manual/examples/strncat.c (main): Specify return type and use
11749         (void) for arguments.
11750         * manual/examples/subopt.c (main): Use char **argv argument.
11752 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11754         [BZ #5077]
11755         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11756         rounding modes.
11758 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11760         [BZ #6907]
11761         * manual/string.texi (strchr): Change when strchrnul is
11762         recommended.
11764 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11766         [BZ #174]
11767         * manual/locale.texi (setlocale): Document LOCPATH.
11769 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11771         [BZ #10210]
11772         * manual/process.texi (execle): Move @dots{} before last argument.
11774 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11776         [BZ #12047]
11777         * manual/charset.texi (Generic Charset Conversion): Fix typo
11778         (LC_TYPE -> LC_CTYPE).
11780 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11782         [BZ #5805]
11783         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11784         (scalbnf): Likewise.
11785         (scalbnl): Likewise.
11786         (scalbln): Likewise.
11787         (scalblnf): Likewise.
11788         (scalblnl): Likewise.
11789         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11790         (vwarnx): Likewise.
11791         (verr): Likewise.
11792         (verrx): Likewise.
11793         * manual/filesys.texi (telldir): Use braces around return type.
11794         * manual/llio.texi (mmap): Add space after comma.
11795         (mmap64): Likewise.
11796         * manual/math.texi (jn): Use @var{} on parameter names.
11797         (jnf): Likewise.
11798         (jnl): Likewise.
11799         (yn): Likewise.
11800         (ynf): Likewise.
11801         (ynl): Likewise.
11802         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11803         line.
11804         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11805         "...".
11806         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11807         (sched_get_priority_max): Likewise.
11808         * manual/signal.texi (sigvec): Add space after comma.
11809         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11810         names.
11811         (if_indextoname): Likewise.
11812         (if_freenameindex): Likewise.
11813         (sendto): Use ',' instead of '.' in prototype.
11814         * manual/startup.texi (syscall): Use @dots{} instead of literal
11815         "...".
11816         * manual/stdio.texi (__fpending): Separate initial words of
11817         paragraph from @deftypefun line.
11818         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11819         "...".
11820         (vsyslog): Use @var{} on parameter names.
11821         * manual/terminal.texi (stty): Use @var{} on parameter names.
11822         * manual/users.texi (getutmp): Use @var{} on parameter names.
11823         (getutmpx): Likewise.
11825 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11827         [BZ #6884]
11828         * manual/stdio.texi (fopen): Fix typos in description of
11829         ",ccs=STRING".
11831 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11833         [BZ #4026]
11834         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11835         get clock_id definition.
11837 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11839         [BZ #4822]
11840         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11841         (madvise): Cast every argument to void on its own.
11843 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11845         [BZ #9902]
11846         * manual/startup.texi (Exit Status): Fix typo.
11848 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11850         [BZ #10140]
11851         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11852         * manual/examples/argp-ex2.c: Likewise.
11853         * manual/examples/argp-ex3.c: Likewise.
11855 2012-02-16  Richard Henderson  <rth@redhat.com>
11857         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11858         * sysdeps/s390/s390-32/initfini.c: Remove.
11859         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11860         * sysdeps/s390/s390-64/initfini.c: Remove.
11862 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11864         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11865         compiler output for sysdeps/generic/initfini.c.
11866         * sysdeps/sh/elf/initfini.c: Remove file.
11868 2012-02-16  David S. Miller  <davem@davemloft.net>
11870         [BZ #11494]
11871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11873         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11874         * sysdeps/sparc/crti.S: New file.
11875         * sysdeps/sparc/crtn.S: New file.
11876         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11877         * sysdeps/sparc/sparc64/Makefile: Likewise.
11879 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11881         [BZ #3335]
11882         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11884 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11886         [BZ #4822]
11887         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11889         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11890         (write, read, close): Likewise.
11891         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11893 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11895         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11896         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11897         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11898         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11899         <bits/signalfd.h>.
11900         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11901         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11902         bits/signalfd.h.
11904 2012-02-14  Marek Polacek  <polacek@redhat.com>
11906         * sysdeps/x86_64/crti.S: New file.
11907         * sysdeps/x86_64/crtn.S: New file.
11908         * sysdeps/x86_64/elf/initfini.c: Remove file.
11910 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11912         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11913         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11914         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11915         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11916         <bits/inotify.h>.
11917         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11918         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11919         bits/inotify.h.
11921 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11923         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11924         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11925         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11926         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11927         <bits/eventfd.h>.
11928         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11929         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11930         bits/eventfd.h.
11932 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11934         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11935         __feraiseexcept instead of feraiseexcept.
11937         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11938         nanosleep invocations.
11939         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11940         strings, and add error checking for a nanosleep invocations.
11942 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11944         Replace FSF snail mail address with URLs, as per GNU coding standards.
11945         Most of the snail mail addresses were wrong anyway, and omitting
11946         them makes the source code easier to maintain.  Almost all of the
11947         changes are to license notices and to locale LC_IDENTIFICATION
11948         addresses, except for this one:
11949         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11950         not its snail mail address.
11952 2012-02-09  Richard Henderson  <rth@twiddle.net>
11954         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11955         of kernel-features.h.
11957         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11959 2012-02-08  Marek Polacek  <polacek@redhat.com>
11961         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11962         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11963         * sysdeps/gnu/_G_config.h: Likewise.
11964         * sysdeps/generic/_G_config.h: Likewise.
11966 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11968         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11969         tests.
11970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11972         * sysdeps/powerpc/powerpc32/crti.S: New file.
11973         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11974         * sysdeps/powerpc/powerpc64/crti.S: New file.
11975         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11977         * Makeconfig (have-initfini): Don't set.
11978         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11979         * configure.in (nopic_initfini): Don't substitute.
11980         * config.h.in (HAVE_INITFINI): Don't #undef.
11981         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11982         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11984 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11986         Support crti.S and crtn.S provided directly by architectures.
11987         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11988         [crti.S in sysdirs] (omit-deps): Likewise.
11989         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11990         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11991         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11992         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11993         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11994         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11995         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11996         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11997         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11998         compiler output for sysdeps/generic/initfini.c.
11999         * sysdeps/i386/elf/Makefile: Remove file.
12000         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12002 2012-02-07  Marek Polacek  <polacek@redhat.com>
12004         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12005         * sysdeps/gnu/_G_config.h: Likewise.
12006         * sysdeps/mach/hurd/_G_config.h: Likewise.
12008 2012-02-07  Marek Polacek  <polacek@redhat.com>
12010         * math/Makefile (tests): Add tst-CMPLX2.
12011         * math/tst-CMPLX2.c: New file.
12013 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12015         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12017         * math/libm-test.inc (jn_test): Add missing L suffix.
12019 2012-02-06  Marek Polacek  <polacek@redhat.com>
12021         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12022         * sysdeps/i386/fpu/e_powf.S: Likewise.
12023         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12024         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12025         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12026         * sysdeps/i386/fpu/e_pow.S: Likewise.
12027         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12028         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12029         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12030         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12031         * sysdeps/i386/fpu/e_log2.S: Likewise.
12032         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12033         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12034         * sysdeps/i386/fpu/e_powl.S: Likewise.
12035         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12036         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12037         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12038         * sysdeps/i386/fpu/e_logl.S: Likewise.
12039         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12040         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12041         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12042         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12043         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12044         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12045         * sysdeps/i386/fpu/e_log.S: Likewise.
12046         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12047         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12048         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12049         * sysdeps/i386/fpu/e_logf.S: Likewise.
12050         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12051         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12052         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12053         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12054         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12055         * sysdeps/i386/fpu/e_log10.S: Likewise.
12056         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12057         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12058         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12059         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12060         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12061         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12062         * sysdeps/i386/asm-syntax.h: Likewise.
12063         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12064         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12065         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12066         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12067         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12068         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12069         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12070         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12071         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12072         * sysdeps/powerpc/sysdep.h: Likewise.
12073         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12074         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12076 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12078         [BZ #411]
12079         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12081 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12083         * sysdeps/i386/sysdep.h: Include <features.h>.
12084         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12085         version.
12087 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12089         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12090         Define.
12091         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12092         LOAD_PIC_REG_STR.
12094 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12096         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12097         (SETUP_PIC_REG): Use GET_PC_THUNK.
12098         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12099         macro.
12101 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12103         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12104         for non-PIC compilation.
12105         (SETUP_PIC_REG): Add .p2align directive.
12106         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12107         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12108         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12109         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12110         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12111         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12112         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12113         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12114         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12115         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12116         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12117         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12118         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12119         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12120         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12121         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12122         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12123         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12124         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12125         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12126         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12127         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12128         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12129         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12130         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12131         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12132         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12133         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12134         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12135         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12136         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12137         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12138         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12139         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12140         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12141         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12142         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12143         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12144         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12145         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12146         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12148 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12150         * math/tst-CMPLX.c: Include <stdio.h>.
12152 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12154         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12155         float.
12156         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12157         * sysdeps/sparc/bits/mathdef.h: Likewise.
12159 2012-01-31  Marek Polacek  <polacek@redhat.com>
12161         * libio/libio.h: Don't define _PARAMS.
12162         * locale/programs/config.h: Don't define PARAMS.
12163         * stdlib/strtol_l.c: Likewise.
12164         (__strtol_l): Remove PARAMS from the prototype.
12166 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12168         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12169         names.  Just use the correct names.  Remove unnecessary wrapper
12170         functions.
12171         * malloc/arena.c: Likewise.
12172         * malloc/hooks.c: Likewise.
12174         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12175         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12176         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12178 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12180         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12181         into tail calls.
12182         (update_get_addr): New function.
12183         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12184         GET_ADDR_MODULE parameter.
12186 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12188         * crypt/cert.c: Remove __STDC__ conditionals.
12189         * crypt/crypt-entry.c: Likewise.
12190         * crypt/crypt_util.c: Likewise.
12191         * libio/filedoalloc.c: Likewise.
12192         * libio/fileops.c: Likewise.
12193         * libio/genops.c: Likewise.
12194         * libio/iofclose.c: Likewise.
12195         * libio/iofdopen.c: Likewise.
12196         * libio/iofopen.c: Likewise.
12197         * libio/iofopen64.c: Likewise.
12198         * libio/iogetdelim.c: Likewise.
12199         * libio/iopopen.c: Likewise.
12200         * libio/obprintf.c: Likewise.
12201         * libio/oldfileops.c: Likewise.
12202         * libio/oldiofclose.c: Likewise.
12203         * libio/oldiofdopen.c: Likewise.
12204         * libio/oldiofopen.c: Likewise.
12205         * libio/oldiopopen.c: Likewise.
12206         * libio/wfiledoalloc.c: Likewise.
12207         * libio/wgenops.c: Likewise.
12208         * locale/programs/xmalloc.c: Likewise.
12209         * misc/syslog.c: Likewise.
12210         * stdio-common/xbug.c: Likewise.
12211         * string/memchr.c: Likewise.
12212         * string/memcmp.c: Likewise.
12213         * string/memrchr.c: Likewise.
12214         * string/rawmemchr.c: Likewise.
12215         * sysdeps/posix/getcwd.c: Likewise.
12216         * time/strftime_l.c: Likewise.
12218 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12220         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12221         * config.make.in (config-cflags-sse2avx): Define.
12222         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12223         Fix typo.
12225 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12227         * scripts/config.guess: Update from upstream config git repository.
12228         * scripts/config.sub: Likewise.
12230 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12232         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12233         (EM_NUM): Update.
12234         (R_TILEPRO_*, R_TILEGX_*): New macros.
12236         * scripts/firstversions.awk: Fix bug in version range handling.
12238         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12240         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12242         * include/sys/epoll.h: New file.
12243         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12244         libc_hidden_def.
12246 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12248         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12249         Avoid unnecessary __WORDSIZE == 64 test.
12250         (fmaxf): Use VEX format if possible.
12251         (fmax): Likewise.
12252         (fminf): Likewise.
12253         (fmin): Likewise.
12255         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12256         * math/math_private.h: Remove libc_fegetround* and
12257         libc_fesetround*.
12258         * sysdeps/i386/configure.in: Check for -msse2avx.
12259         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12260         also if SSE2AVX is defined.
12261         Remove libc_fegetround* and libc_fesetround*.
12262         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12263         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12264         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12265         of HAS_YMM_USABLE.
12266         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12267         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12268         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12269         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12270         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12272         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12274 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12276         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12277         size is not set.
12278         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12280 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12282         [BZ #13618]
12283         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12284         relocation.
12285         * Makeconfig (libm): Define.
12286         * elf/Makefile: Add rules to build and run tst-relsort1.
12287         * elf/tst-relsort1.c: New file.
12288         * elf/tst-relsort1mod1.c: New file.
12289         * elf/tst-relsort1mod2.c: New file.
12291 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12293         * math/s_ldexp.c: Remove __STDC__ conditionals.
12294         * math/s_ldexpf.c: Likewise.
12295         * math/s_ldexpl.c: Likewise.
12296         * math/s_nextafter.c: Likewise.
12297         * math/s_nexttowardf.c: Likewise.
12298         * math/s_significand.c: Likewise.
12299         * math/s_significandf.c: Likewise.
12300         * math/s_significandl.c: Likewise.
12301         * math/w_jnl.c: Likewise.
12302         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12303         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12304         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12305         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12306         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12307         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12308         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12309         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12310         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12311         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12312         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12313         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12314         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12315         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12316         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12317         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12318         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12319         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12320         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12321         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12322         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12323         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12324         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12325         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12326         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12327         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12328         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12329         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12330         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12331         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12332         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12333         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12334         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12335         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12336         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12337         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12338         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12339         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12340         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12341         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12342         * sysdeps/ieee754/k_standard.c: Likewise.
12343         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12344         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12345         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12346         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12347         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12348         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12349         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12350         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12351         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12352         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12353         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12354         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12355         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12356         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12357         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12358         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12359         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12360         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12361         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12362         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12363         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12364         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12365         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12366         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12367         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12368         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12369         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12370         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12371         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12372         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12373         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12374         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12375         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12376         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12377         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12378         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12379         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12380         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12381         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12382         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12383         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12384         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12385         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12386         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12387         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12388         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12389         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12390         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12391         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12392         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12393         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12394         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12395         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12396         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12397         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12398         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12399         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12400         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12401         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12402         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12403         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12404         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12405         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12406         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12407         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12408         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12409         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12410         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12411         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12412         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12413         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12414         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12415         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12416         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12417         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12418         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12419         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12420         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12421         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12422         * sysdeps/ieee754/s_matherr.c: Likewise.
12423         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12424         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12425         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12426         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12428 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12430         * crypt/md5.h: Remove __STDC__ conditionals.
12431         * libio/libioP.h: Likewise.
12432         * locale/programs/config.h: Likewise.
12433         * sysdeps/generic/sysdep.h: Likewise.
12434         * sysdeps/i386/asm-syntax.h: Likewise.
12435         * sysdeps/s390/asm-syntax.h: Likewise.
12436         * sysdeps/unix/sysdep.h: Likewise.
12437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12440 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12442         * libio/libio.h: Remove __STDC__ conditionals.
12443         * malloc/obstack.h: Likewise.
12444         * math/complex.h: Likewise.
12445         * math/math.h: Likewise.
12446         * sysdeps/generic/_G_config.h: Likewise.
12447         * sysdeps/gnu/_G_config.h: Likewise.
12448         * sysdeps/mach/hurd/_G_config.h: Likewise.
12449         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12450         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12451         * sysdeps/sparc/bits/mathdef.h: Likewise.
12453 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12455         [BZ #13583]
12456         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12457         Clean up HAS_* macros.
12458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12459         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12460         possible.
12461         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12462         HAS_AVX.
12463         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12464         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12465         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12466         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12467         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12469 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12471         * elf/tst-unique3.cc (gets): Remove declaration.
12472         * elf/tst-unique3lib.cc (gets): Likewise.
12473         * elf/tst-unique3lib2.cc (gets): Likewise.
12474         * elf/tst-unique4.cc (gets): Likewise.
12476 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12478         * include/stdio.h: Add C++ protection.  Add gets declarations and
12479         definitions.
12480         * debug/tst-chk1.c: Don't declare gets here.
12481         * stdio-common/tst-gets.c: Likewise.
12483 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12485         * posix/glob: Remove directory.
12487 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12489         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12491 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12493         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12494         of the non-standard EPFNOSUPPORT.
12496 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12498         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12499         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12500         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12502 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12504         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12506 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12508         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12509         transient errors.
12510         * nscd/grpcache.c (cache_addgr): Likewise.
12511         * nscd/hstcache.c (cache_addhst): Likewise.
12512         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12513         * nscd/pwdcache.c (cache_addpw): Likewise.
12514         * nscd/servicescache.c (cache_addserv): Likewise.
12516 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12518         * malloc/malloc.c: Various cleanups.
12519         * malloc/hooks.c: Likewise.
12521         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12522         * stdlib/bug-fmtmsg1.c: New file.
12524         * stdlib/fmtmsg.c (init): Add missing unlock.
12525         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12527 2012-01-12  Marek Polacek  <polacek@redhat.com>
12529         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12530         and _GNU_SOURCE.
12532 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12534         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12535         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12536         macro to ensure uniqueness of label name.
12537         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12538         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12540 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12542         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12544         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12545         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12546         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12547         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12549 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12551         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12553         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12554         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12555         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12557         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12559         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12560         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12561         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12562         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12564         * math/bits/math-finite.h: Add ldexp support.
12566 2012-01-10  Marek Polacek  <polacek@redhat.com>
12568         * locale/programs/localedef.h (show_archive_content): Add noreturn
12569         attribute.
12571 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12573         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12575 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12577         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12579         * io/Makefile (headers): Add bits/poll2.h.
12581 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12584         typo #include statement.
12586 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12588         * include/sys/cdefs.h: Define __attribute_alloc_size.
12589         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12590         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12591         * elf/pldd.c: Likewise.
12592         * iconv/iconv_charmap.c: Likewise.
12593         * iconv/iconvconfig.c: Likewise.
12594         * iconv/strtab.c: Likewise.
12595         * locale/programs/locale.c: Likewise.
12596         * locale/programs/localedef.h: Likewise.
12597         * locale/programs/simple-hash.c: Likewise.
12598         * nscd/nscd.h: Likewise.
12599         * nss/makedb.c: Likewise.
12600         * sysdeps/generic/ldconfig.h: Likewise.
12601         * locale/programs/localedef.c: Remove xmalloc prototype.
12602         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12604 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12606         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12607         appropriate.
12609 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12611         * math/Makefile (tests): Add tst-CMPLX.
12612         * math/tst-CMPLX.c: New file.
12614         * math/complex.h (CMPLXL): Fix typo.
12616         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12617         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12618         GLIBC_2.16.
12619         * debug/tst-chk1.c: Add poll and ppoll tests.
12620         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12621         * include/sys/poll.h: Add hidden proto for ppoll.
12622         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12623         * sysdeps/mach/hurd/ppoll.c: Likewise.
12624         * io/ppoll.c: Likewise.
12625         * debug/poll_chk.c: New file.
12626         * debug/ppoll_chk.c: New file.
12627         * include/bits/poll2.h: New file.
12628         * io/bits/poll2.h: New file.
12630         [BZ #1350]
12631         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12633         * configure.in: static is always set to yes.  Remove.
12634         * config.make.in: Don't set build-static.
12635         * Makeconfig: Remove use of build-static.
12636         * dlfcn/Makefile: Likewise.
12637         * elf/Makefile: Likewise.
12638         * math/Makefile: Likewise.
12639         * misc/Makefile: Likewise.
12640         * nptl/Makefile: Likewise.
12641         * sysdeps/mach/hurd/Makefile: Likewise.
12643         * configure.in: PWD_P is not used anymore.
12644         * config.make.in: Remove PWD_P entry.
12646         * configure.in: Remove last remnants of RANLIB.
12647         No need to check for signed size_t anymore.
12648         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12649         and IA-64.
12650         Remove __builtin_expect test because we require at least gcc 3.4.
12651         * aclocal.m4: Likewise.
12653         * wcsmbs/mbrtoc16.c: Implement using towc function.
12654         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12655         * wcsmbs/wcsmbsload.c: Likewise.
12656         * iconv/gconv_simple.c: Likewise.
12657         * iconv/gconv_int.h: Likewise.
12658         * iconv/gconv_builtin.h: Likewise.
12659         * iconv/iconv_prog.c: Remove CHAR16 handling.
12661         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12663         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12665         * configure.in: Remove --with-elf and --enable-bounded options.
12666         Dont set base_machine for ia64.  More non-ELF conditions removed.
12667         Remove testing and setting of leading underscore information.
12668         * config.make.in (build-bounded): Set to no.
12669         * config.h.in: Remove NO_UNDERSCORES entry.
12670         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12671         them.
12672         * csu/start.c: Remove !NO_UNDERSCORE code.
12673         * locale/localeinfo.h: Likewise.
12674         * sysdeps/generic/machine-gmon.h: Likewise.
12675         * sysdeps/generic/sysdep.h: Likewise.
12676         * sysdeps/i386/sysdep.h: Likewise.
12677         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12678         * sysdeps/mach/sysdep.h: Likewise.
12679         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12680         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12681         * sysdeps/sh/sysdep.h: Likewise.
12682         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12683         * sysdeps/unix/i386/sysdep.S: Likewise.
12684         * sysdeps/unix/sparc/start.c: Likewise.
12685         * sysdeps/unix/sparc/sysdep.S: Likewise.
12686         * sysdeps/unix/sparc/sysdep.h: Likewise.
12687         * sysdeps/unix/start.c: Likewise.
12688         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12689         * sysdeps/x86_64/sysdep.h: Likewise.
12691 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12693         [BZ #13553]
12694         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12695         for non-gcc.
12696         * argp/argp-fmtstream.h: Use const instead __const.
12697         * argp/argp.h: Likewise.
12698         * assert/assert.h: Likewise.
12699         * bits/fenv.h: Likewise.
12700         * bits/sched.h: Likewise.
12701         * bits/sigset.h: Likewise.
12702         * bits/sigthread.h: Likewise.
12703         * catgets/nl_types.h: Likewise.
12704         * conform/data/pthread.h-data: Likewise.
12705         * crypt/crypt-private.h: Likewise.
12706         * crypt/crypt.h: Likewise.
12707         * crypt/crypt_util.c: Likewise.
12708         * ctype/ctype.h: Likewise.
12709         * debug/execinfo.h: Likewise.
12710         * debug/mbsnrtowcs_chk.c: Likewise.
12711         * debug/mbsrtowcs_chk.c: Likewise.
12712         * debug/wcsnrtombs_chk.c: Likewise.
12713         * debug/wcsrtombs_chk.c: Likewise.
12714         * debug/wcstombs_chk.c: Likewise.
12715         * dirent/dirent.h: Likewise.
12716         * dlfcn/dlfcn.h: Likewise.
12717         * elf/neededtest4.c: Likewise.
12718         * grp/grp.h: Likewise.
12719         * gshadow/gshadow.h: Likewise.
12720         * iconv/gconv.h: Likewise.
12721         * iconv/gconv_int.h: Likewise.
12722         * iconv/gconv_simple.c: Likewise.
12723         * iconv/iconv.h: Likewise.
12724         * iconv/loop.c: Likewise.
12725         * iconv/skeleton.c: Likewise.
12726         * include/aio.h: Likewise.
12727         * include/aliases.h: Likewise.
12728         * include/argz.h: Likewise.
12729         * include/arpa/inet.h: Likewise.
12730         * include/assert.h: Likewise.
12731         * include/dirent.h: Likewise.
12732         * include/dlfcn.h: Likewise.
12733         * include/execinfo.h: Likewise.
12734         * include/fcntl.h: Likewise.
12735         * include/fenv.h: Likewise.
12736         * include/glob.h: Likewise.
12737         * include/grp.h: Likewise.
12738         * include/libintl.h: Likewise.
12739         * include/mntent.h: Likewise.
12740         * include/netdb.h: Likewise.
12741         * include/pwd.h: Likewise.
12742         * include/rpc/netdb.h: Likewise.
12743         * include/sched.h: Likewise.
12744         * include/search.h: Likewise.
12745         * include/shadow.h: Likewise.
12746         * include/signal.h: Likewise.
12747         * include/stdio.h: Likewise.
12748         * include/stdlib.h: Likewise.
12749         * include/string.h: Likewise.
12750         * include/sys/socket.h: Likewise.
12751         * include/sys/stat.h: Likewise.
12752         * include/sys/statfs.h: Likewise.
12753         * include/sys/statvfs.h: Likewise.
12754         * include/sys/syslog.h: Likewise.
12755         * include/sys/time.h: Likewise.
12756         * include/sys/uio.h: Likewise.
12757         * include/time.h: Likewise.
12758         * include/unistd.h: Likewise.
12759         * include/utmp.h: Likewise.
12760         * include/wchar.h: Likewise.
12761         * include/wctype.h: Likewise.
12762         * inet/aliases.h: Likewise.
12763         * inet/arpa/inet.h: Likewise.
12764         * inet/netinet/ether.h: Likewise.
12765         * inet/netinet/in.h: Likewise.
12766         * intl/libintl.h: Likewise.
12767         * io/bits/fcntl2.h: Likewise.
12768         * io/fcntl.h: Likewise.
12769         * io/ftw.h: Likewise.
12770         * io/sys/poll.h: Likewise.
12771         * io/sys/stat.h: Likewise.
12772         * io/sys/statfs.h: Likewise.
12773         * io/sys/statvfs.h: Likewise.
12774         * io/utime.h: Likewise.
12775         * libio/bits/stdio.h: Likewise.
12776         * libio/bits/stdio2.h: Likewise.
12777         * libio/libio.h: Likewise.
12778         * libio/libioP.h: Likewise.
12779         * libio/stdio.h: Likewise.
12780         * locale/lc-ctype.c: Likewise.
12781         * locale/locale.h: Likewise.
12782         * login/utmp.h: Likewise.
12783         * malloc/arena.c: Likewise.
12784         * malloc/malloc.c: Likewise.
12785         * malloc/malloc.h: Likewise.
12786         * malloc/mcheck.c: Likewise.
12787         * malloc/mtrace.c: Likewise.
12788         * math/bits/mathcalls.h: Likewise.
12789         * math/fenv.h: Likewise.
12790         * math/math_private.h: Likewise.
12791         * misc/bits/error.h: Likewise.
12792         * misc/bits/syslog.h: Likewise.
12793         * misc/err.h: Likewise.
12794         * misc/error.h: Likewise.
12795         * misc/fstab.h: Likewise.
12796         * misc/mntent.h: Likewise.
12797         * misc/regexp.h: Likewise.
12798         * misc/search.h: Likewise.
12799         * misc/sgtty.h: Likewise.
12800         * misc/sys/mman.h: Likewise.
12801         * misc/sys/syslog.h: Likewise.
12802         * misc/sys/uio.h: Likewise.
12803         * misc/sys/xattr.h: Likewise.
12804         * misc/ttyent.h: Likewise.
12805         * nis/rpcsvc/ypclnt.h: Likewise.
12806         * nss/nss.h: Likewise.
12807         * posix/bits/unistd.h: Likewise.
12808         * posix/fnmatch.h: Likewise.
12809         * posix/glob.h: Likewise.
12810         * posix/sched.h: Likewise.
12811         * posix/spawn.h: Likewise.
12812         * posix/sys/wait.h: Likewise.
12813         * posix/unistd.h: Likewise.
12814         * posix/wordexp.h: Likewise.
12815         * pwd/pwd.h: Likewise.
12816         * resolv/netdb.h: Likewise.
12817         * resource/sys/resource.h: Likewise.
12818         * rt/aio.h: Likewise.
12819         * rt/bits/mqueue2.h: Likewise.
12820         * rt/mqueue.h: Likewise.
12821         * shadow/shadow.h: Likewise.
12822         * signal/signal.h: Likewise.
12823         * socket/send.c: Likewise.
12824         * socket/sendto.c: Likewise.
12825         * socket/sys/socket.h: Likewise.
12826         * stdio-common/printf.h: Likewise.
12827         * stdlib/bits/stdlib.h: Likewise.
12828         * stdlib/fmtmsg.h: Likewise.
12829         * stdlib/monetary.h: Likewise.
12830         * stdlib/stdlib.h: Likewise.
12831         * stdlib/ucontext.h: Likewise.
12832         * streams/stropts.h: Likewise.
12833         * string/argz.h: Likewise.
12834         * string/bits/string2.h: Likewise.
12835         * string/string.h: Likewise.
12836         * string/strings.h: Likewise.
12837         * sunrpc/rpc/auth.h: Likewise.
12838         * sunrpc/rpc/auth_des.h: Likewise.
12839         * sunrpc/rpc/clnt.h: Likewise.
12840         * sunrpc/rpc/netdb.h: Likewise.
12841         * sunrpc/rpc/pmap_clnt.h: Likewise.
12842         * sunrpc/rpc/xdr.h: Likewise.
12843         * sysdeps/generic/inttypes.h: Likewise.
12844         * sysdeps/generic/net/if.h: Likewise.
12845         * sysdeps/generic/sys/swap.h: Likewise.
12846         * sysdeps/gnu/net/if.h: Likewise.
12847         * sysdeps/gnu/utmpx.h: Likewise.
12848         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12849         * sysdeps/i386/i486/bits/string.h: Likewise.
12850         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12851         * sysdeps/s390/bits/string.h: Likewise.
12852         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12853         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12854         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12855         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12856         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12857         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12858         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12859         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12860         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12861         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12862         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12863         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12864         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12865         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12866         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12867         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12868         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12869         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12870         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12871         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12872         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12873         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12874         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12875         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12876         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12877         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12878         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12879         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12880         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12881         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12882         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12883         * sysvipc/sys/ipc.h: Likewise.
12884         * sysvipc/sys/msg.h: Likewise.
12885         * sysvipc/sys/sem.h: Likewise.
12886         * sysvipc/sys/shm.h: Likewise.
12887         * termios/termios.h: Likewise.
12888         * time/sys/time.h: Likewise.
12889         * time/time.h: Likewise.
12890         * wcsmbs/bits/wchar2.h: Likewise.
12891         * wcsmbs/uchar.h: Likewise.
12892         * wcsmbs/wchar.h: Likewise.
12893         * wctype/wctype.h: Likewise.
12895         [BZ #13551]
12896         * Makeconfig: Remove all but ELF support including AIX support.
12897         * Makerules: Likewise.
12898         * config.h.in: Likewise.
12899         * config.make.in: Likewise.
12900         * configure: Likewise.
12901         * configure.in: Likewise.
12902         * csu/Makefile: Likewise.
12903         * csu/version.c: Likewise.
12904         * debug/Makefile: Likewise.
12905         * dlfcn/Makefile: Likewise.
12906         * elf/Makefile: Likewise.
12907         * extra-lib.mk: Likewise.
12908         * iconv/Makefile: Likewise.
12909         * include/libc-symbols.h: Likewise.
12910         * include/shlib-compat.h: Likewise.
12911         * resolv/Makefile: Likewise.
12912         * resolv/res_libc.c: Likewise.
12913         * rt/Makefile: Likewise.
12914         * sysdeps/i386/asm-syntax.h: Likewise.
12915         * sysdeps/i386/sysdep.h: Likewise.
12916         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12917         * sysdeps/mach/sysdep.h: Likewise.
12918         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12919         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12920         * sysdeps/s390/asm-syntax.h: Likewise.
12921         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12922         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12923         * sysdeps/sh/sysdep.h: Likewise.
12924         * sysdeps/unix/sparc/sysdep.h: Likewise.
12925         * sysdeps/wordsize-32/divdi3.c: Likewise.
12926         * sysdeps/x86_64/sysdep.h: Likewise.
12928         * argp/Versions: Remove _argp_unlock_xxx.
12930         [BZ #13559]
12931         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12932         * abilist/libBrokenLocale.abilist: Likewise.
12933         * abilist/libanl.abilist: Likewise.
12934         * abilist/libc.abilist: Likewise.
12935         * abilist/libcrypt.abilist: Likewise.
12936         * abilist/libdl.abilist: Likewise.
12937         * abilist/libm.abilist: Likewise.
12938         * abilist/libnsl.abilist: Likewise.
12939         * abilist/libpthread.abilist: Likewise.
12940         * abilist/libresolv.abilist: Likewise.
12941         * abilist/librt.abilist: Likewise.
12942         * abilist/libthread_db.abilist: Likewise.
12943         * abilist/libutil.abilist: Likewise.
12944         * abilist/libnss_db.abilist: New file.
12946         * scripts/abilist.awk: Add support for indirect functions.
12948         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12950         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12952         * shlib-versions: Remove entries for ports architectures.
12954         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12955         files in ports.
12956         * elf/stackguard-macros.h: Remove support for IA-64.
12957         * elf/tst-auditmod1.c: Likewise.
12958         * sysdeps/generic/ldsodefs.h: Likewise.
12960         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12961         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12962         configure files.
12964         [BZ #13552]
12965         * configure.in: Remove --enable-omitfp support.
12966         * FAQ.in: Adjust.
12967         * config.make.in: Likewise.
12968         * Makeconfig: Likewise.
12969         * manual/install.texi: Likewise.
12971         In case anyone cares, the IA-64 architecture could move to ports.
12972         * sysdeps/ia64/*: Removed.
12973         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12974         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12976         [BZ #13555]
12977         * configure.in: Remove entries for unsupported architectures.
12979         [BZ #13533]
12980         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12981         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12982         routines.
12983         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12984         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12985         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12986         fall back to using wcrtomb.
12987         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12988         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12989         renaming.
12990         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12991         * wcsmbs/tst-c16c32-1.c: New file.
12993         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12994         local variable.
12996         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12998         * elf/tst-unique3.cc: Add explicit declaration of gets.
12999         * elf/tst-unique3lib.cc: Likewise.
13000         * elf/tst-unique3lib2.cc: Likewise.
13001         * elf/tst-unique4.cc: Likewise.
13003         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13005 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13007         [BZ #13566]
13008         * assert/assert.h (static_assert): Don't define for C++.
13009         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13010         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13012 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13014         * iconv/loop.c (single loop): Fix assertion in storing of
13015         remaining bytes.
13017         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13019 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13021         * posix/getconf.c: Update copyright year.
13022         * nss/getent.c: Likewise.
13023         * nss/makedb.c: Likewise.
13024         * iconv/iconvconfig.c: Likewise.
13025         * iconv/iconv_prog.c: Likewise.
13026         * elf/ldconfig.c: Likewise.
13027         * elf/pldd.c: Likewise.
13028         * elf/sotruss.ksh: Likewise.
13029         * catgets/gencat.c: Likewise.
13030         * csu/version.c: Likewise.
13031         * elf/ldd.bash.in: Likewise.
13032         * elf/sprof.c (print_version): Likewise.
13033         * locale/programs/locale.c: Likewise.
13034         * locale/programs/localedef.c: Likewise.
13035         * login/programs/pt_chown.c: Likewise.
13036         * nscd/nscd.c (print_version): Likewise.
13037         * debug/xtrace.sh: Likewise.
13038         * malloc/memusage.sh: Likewise.
13039         * malloc/mtrace.pl: Likewise.
13040         * debug/catchsegv.sh: Likewise.
13042 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13044         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13045         pure attribute.
13047 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13049         [BZ #13533]
13050         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13051         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13052         transformations.
13053         * iconv/gconv_int.h: Likewise.
13054         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13055         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13056         from libc for GLIBC_2.16.
13057         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13058         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13059         * wcsmbs/uchar.h: Really define mbstate_t.
13060         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13061         * wcsmbs/c16rtomb.c: New file.
13062         * wcsmbs/mbrtoc16.c: New file.
13063         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13064         for C/POSIX locale.
13065         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13066         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13068         * wcsmbs/wchar.h: Add missing __restrict.
13070 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13072         [BZ #13532]
13073         * time/Makefile (routines): Add timespec_get.
13074         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13075         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13076         timespec for ISO C11.
13077         * time/timespec_get.c: New file.
13078         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13079         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13081         [BZ #13531]
13082         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13083         * stdlib/stdlib.h: Declare aligned_alloc.
13084         * Versions.def: Add GLIBC_2.16 for libc.
13085         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13087         [BZ 13527]
13088         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13089         ISO C11.
13091         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13092         code.
13094         [BZ #13528]
13095         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13097         [BZ #13529]
13098         * assert/assert.h (static_assert): Define.
13100         * version.h: Update for 2.16 development version.
13102         [BZ #13526]
13103         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13104         _ISOC11_SOURCE.
13106         * version.h (RELEASE): Bump for 2.15 release.
13107         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13109         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13110         Patch by Marek Polacek <mpolacek@redhat.com>.
13112         * bits/byteswap.h: Protect long long constants with __extension__.
13113         * sysdeps/i386/bits/byteswap.h: Likewise.
13114         * sysdeps/ia64/bits/byteswap.h: Likewise.
13115         * sysdeps/s390/bits/byteswap.h: Likewise.
13116         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13118 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13120         [BZ #13540]
13121         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13122         destination buffer.
13123         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13125 2011-12-23  Marek Polacek  <polacek@redhat.com>
13127         * elf/dl-addr.c (determine_info): Add inline keyword.
13128         * elf/tst-auditmod4b.c (check_avx): Likewise.
13129         * elf/tst-auditmod6b.c (check_avx): Likewise.
13130         * elf/tst-auditmod6c.c (check_avx): Likewise.
13131         * elf/tst-auditmod7b.c (check_avx): Likewise.
13133 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13135         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13136         !__SSE_MATH__.
13138 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13140         [BZ #13540]
13141         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13142         processing for last bytes.
13144 2011-08-06  Bruno Haible  <bruno@clisp.org>
13146         [BZ #13061]
13147         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13148         U+0385, not to U+1FEE.
13150         [BZ #13062]
13151         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13152         entry for U+00A5 U+0301.
13154 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13156         [BZ #13166]
13157         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13158         buffer for the output is too small.
13160         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13161         optimization.
13163         [BZ #13185]
13164         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13165         SSE flags if possible.
13167 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13169         [BZ #13540]
13170         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13171         processing for last bytes.
13173 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13175         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13176         (syscall-list-default-options, syscall-list-default-condition)
13177         (syscall-list-includes): Define.
13178         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13179         list of ABIs and options and #if conditions for each ABI.  Do not
13180         handle common syscalls between ABIs specially.
13181         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13182         Remove.
13183         (syscall-list-variants, syscall-list-32bit-options)
13184         (syscall-list-32bit-condition, syscall-list-64bit-options)
13185         (syscall-list-64bit-condition): Define.
13186         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13187         (syscall-list-variants, syscall-list-32bit-options)
13188         (syscall-list-32bit-condition, syscall-list-64bit-options)
13189         (syscall-list-64bit-condition): Define.
13190         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13191         Remove.
13192         (syscall-list-variants, syscall-list-32bit-options)
13193         (syscall-list-32bit-condition, syscall-list-64bit-options)
13194         (syscall-list-64bit-condition): Define.
13195         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13196         Remove.
13197         (syscall-list-variants, syscall-list-32bit-options)
13198         (syscall-list-32bit-condition, syscall-list-64bit-options)
13199         (syscall-list-64bit-condition): Define.
13201 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13203         * locale/iso-639.def: Add brx entry.
13205         [BZ #13328]
13206         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13207         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13209         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13210         __feraiseexcept_renamed.
13212 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13214         [BZ #13538]
13215         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13216         EPOLLET with unsigned values.
13217         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13218         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13220         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13221         to large cancellation.
13222         * math/s_cacoshf.c: Likewise.
13223         * math/s_cacoshl.c: Likewise.
13225 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13227         [BZ #13305]
13228         [BZ #12786]
13229         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13230         * math/s_cacoshf.c: Likewise.
13231         * math/s_cacoshl.c: Likewise.
13233 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13235         [BZ #13439]
13236         * iconv/gconv.h: Define __GCONV_SWAP.
13237         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13238         * iconvdata/utf-16.c: Likewise.
13239         * iconvdata/utf-32.c: Likewise.
13241 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13243         [BZ #13524]
13244         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13245         numerator after shifting it by one limb.
13247 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13249         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13250         under [__USE_EXTERN_INLINES].
13252 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13254         [BZ #13446]
13255         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13257 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13259         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13260         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13261         optimized code.
13262         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13263         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13264         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13265         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13266         for strncasecmp/strncasecmp_l compilation.
13267         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13268         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13270 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13272         [BZ #13484]
13273         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13274         of __asm__.
13276 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13278         [BZ #13506]
13279         * time/tzfile.c (__tzfile_read): Check values from file header.
13281 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13283         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13284         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13285         * powerpc/powerpc32/dl-start.S: Likewise.
13286         * powerpc/powerpc32/elf/start.S: Likewise.
13287         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13288         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13289         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13290         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13291         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13292         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13293         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13294         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13295         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13296         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13297         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13298         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13299         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13300         * powerpc/powerpc32/memset.S: Likewise.
13301         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13302         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13303         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13304         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13305         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13306         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13307         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13308         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13309         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13310         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13311         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13312         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13313         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13315 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13317         * math/libm-test.inc: Added more nearbyint tests.
13318         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13319         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13320         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13321         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13323 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13325         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13326         FD_CLOEXEC.
13328 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13330         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13331         Add wcscpy-ssse3 wcscpy-c.
13332         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13333         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13334         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13335         * sysdeps/x86_64/wcschr.S: New file.
13336         * sysdeps/x86_64/wcsrchr.S: New file.
13337         * string/test-strcmp.c: Remove checking of wcscmp function for
13338         wrong alignments.
13339         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13340         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13341         wcsrchr-sse2 wcsrchr-c.
13342         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13343         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13344         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13345         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13346         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13347         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13348         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13349         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13350         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13351         * wcsmbc/wcschr.c (WCSCHR): New macro.
13353 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13355         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13356         * wcsmbs/test-wcsrchr.c: New file.
13357         * string/test-strrchr.c: Add wcsrchr support.
13358         (WIDE): New macro.
13359         * wcsmbs/test-wcscpy.c: New file.
13360         * string/test-strcpy.c: Add wcscpy support.
13361         (WIDE): New macro.
13363 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13365         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13366         the inner loop.
13368 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13370         [BZ #13472]
13371         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13373 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13375         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13376         Minor optimizations.
13378         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13379         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13380         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13382 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13384         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13385         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13386         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13387         for gcc to avoid warnings.
13388         * inet/Makefile (tests): Add tst-checks.
13389         * inet/tst-checks.c: New file.
13391         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13392         warning.
13394         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13395         __wmemcmp_sse2.
13397         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13398         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13400         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13402 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13404         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13405         problem.
13407         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13409 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13411         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13412         conditional on GCC version.
13413         (__arch_compare_and_exchange_val_8_acq)
13414         (__arch_compare_and_exchange_val_16_acq)
13415         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13416         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13417         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13419 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13421         * sysdeps/sh/backtrace.c: New file.
13423 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13425         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13426         parenthesis.
13428 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13430         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13431         falling back to utime.
13433 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13435         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13436         expectations for float.
13438 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13440         * locale/weight.h (findidx): Add parameter len.
13441         * locale/weightwc.h (findidx): Likewise.
13442         * posix/fnmatch_loop.c (FCT): Adjust caller.
13443         * posix/regcomp.c (build_equiv_class): Likewise.
13444         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13445         * posix/regexec.c (check_node_accept_bytes): Likewise.
13446         * string/strcoll_l.c (STRCOLL): Likewise.
13447         * string/strxfrm_l.c (STRXFRM): Likewise.
13449 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13451         * Makefile.in: Remove CVSOPT handling.
13452         * configure.in: Remove use of AC_REVISION.
13453         * iconvdata/Makefile (distribute): No need to filter out CVS.
13454         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13455         handling.
13457 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13459         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13460         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13461         [USE_AS_STRNCASECMP_L]: Likewise.
13462         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13463         NO_TLS_DIRECT_SEG_REFS.
13464         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13465         Fix argument offsets for non-PIC.
13466         [USE_AS_STRNCASECMP_L]: Likewise.
13467         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13468         NO_TLS_DIRECT_SEG_REFS.
13470 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13472         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13473         O_CLOEXEC.
13474         * locale/loadlocale.c (_nl_load_locale): Likewise.
13476 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13478         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13479         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13480         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13481         (SYSCALL_GETTIME): Set errno on error.
13483         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13484         count references to noai6ai_cached.
13486 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13488         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13490         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13491         FD_CLOEXEC for /proc/self/maps.
13493         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13494         FD_CLOEXEC for /proc/meminfo.
13496         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13497         gai.conf.
13499         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13500         FD_CLOEXEC for given file.
13502         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13504         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13505         FD_CLOEXEC for /etc/hosts.
13506         (_gethtent): Likewise.
13508         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13510         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13511         cancellation and set FD_CLOEXEC for /etc/netgroup.
13513         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13514         reading /etc/publickey.
13516         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13517         allow cancellation when reading /etc/group.
13519         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13520         cancellation.
13521         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13523         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13524         when using data file.
13526         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13528         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13529         (write_nis_obj): Use "c" and "e" in fopen.
13531         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13533         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13535         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13537         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13539         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13540         locale.alias.
13542         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13544         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13546         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13548         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13549         file parsing and set FD_CLOEXEC.
13551 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13553         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13555 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13557         * malloc/arena.c (arena_get2): Don't call reused_arena when
13558         _int_new_arena failed.
13560 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13562         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13563         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13564         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13565         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13566         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13567         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13568         to compile strcasecmp and strncasecmp.
13569         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13570         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13572         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13574 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13576         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13577         locale-defines.sym to gen-as-const-headers.
13578         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13579         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13580         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13581         to compile strcasecmp and strncasecmp.
13582         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13583         strcasecmp_l and strncasecmp_l.
13584         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13585         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13586         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13587         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13588         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13589         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13590         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13591         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13592         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13593         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13594         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13596 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13598         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13599         result of SYSDEP_GETTIME_CPU to retval.
13600         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13601         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13603         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13604         variable.
13606         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13607         mantissa words.
13608         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13610         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13611         from unused variable.
13613         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13614         DWARF definitions.
13615         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13616         for assembling.
13618         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13619         over namespaces.
13621         * sunrpc/rpc_prot.c (rejected): Fix case value.
13623         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13624         unsigned long long int to avoid warnings in shift.
13626         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13627         of use of trans.
13628         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13629         variable tmp.
13631         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13632         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13633         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13635         * nis/nis_table.c (nis_list): Use variable of correct type for
13636         result of __follow_path call.
13638 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13640         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13641         of math functions ceil, trunc, floor, round, and sqrt, when
13642         avaliable on the platform.
13643         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13644         name clash.
13645         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13646         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13647         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13649 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13651         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13652         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13654 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13656         * include/unistd.h: Fix __readlink return type.
13657         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13659 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13661         * stdlib/ucontext.h: Undo last change for makecontext.
13663 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13665         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13667         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13668         * setjmp/setjmp.h: Mark functions as non-leaf.
13669         * setjmp/bits/setjmp2.h: Likewise.
13670         * stdlib/ucontext.h: Likewise.
13672 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13674         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13675         (reused_arena): Don't check arena limit.
13676         (arena_get2): Atomically check arena limit.
13678 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13680         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13681         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13683         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13684         instructions.
13686 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13688         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13689         handler when locking.
13691         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13692         Fix size of allocated buffer.
13694 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13696         [BZ #10103]
13697         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13698         declarations for long double functions.
13699         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13701         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13703 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13705         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13706         installed.
13708         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13709         is disabled.
13711 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13713         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13715 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13717         * include/alloca.h (stackinfo_alloca_round): Define.
13718         (extend_alloca): Use it.
13719         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13720         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13721         here.
13723         * scripts/check-local-headers.sh: Ignore libaudit.h.
13725         * nscd/Makefile (extra-objs): Make recursively expanded.
13727 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13729         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13730         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13732         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13733         * posix/tst-rfc3484-2.c: Likewise.
13734         * posix/tst-rfc3484-3.c: Likewise.
13736         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13737         process_vm_writev.
13738         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13739         process_vm_writev.
13740         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13741         process_vm_writev from libc using GLIBC_2.15 version.
13743         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13745 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13747         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13748         stack usage.
13750 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13752         [BZ #13367]
13753         * nss/getent.c (initgroups_keys): Show error message in case no group
13754         names are given.
13756         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13757         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13758         __bump_nl_timestamp.
13759         * nscd/connections (nscd_init): When host database is served open
13760         netlink socket and request notification about configuration changes.
13761         (main_loop_poll): Track netlink file descriptor and bump timestamp
13762         in case data becomes available.
13763         (main_loop_epoll): Likewise.
13764         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13765         (database_pers_head): Add extra_data fileds.
13766         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13767         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13768         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13769         Adjust caller.
13770         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13771         in6ai data, call __free_in6ai.
13772         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13773         Add -DHAVE_NETLINK.
13774         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13775         interface information.  Reuse previous data if netlink timestamp
13776         is not changed.
13777         (__bump_nl_timestamp): New function.
13778         (__free_in6ai): New function.
13780 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13782         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13783         close_not_cancel_no_status here.
13784         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13786 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13788         [BZ #13276]
13789         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13790         return value.
13792         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13793         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13794         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13796 2011-07-03  Andreas Jaeger  <aj@suse.de>
13798         [BZ #10709]
13799         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13800         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13801         * math/libm-test.inc (sin_test): Add test case.
13803 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13805         [BZ #13337]
13806         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13807         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13809         * elf/chroot_canon.c (chroot_canon): Cleanups.
13811         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13813         [BZ #13335]
13814         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13815         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13817         * string/test-strchr.c: Make usable for strchrnul testing.
13818         * string/test-strchrnul.c: New file.
13819         * string/Makefile (strop-tests): Add strchrnul.
13821         * po/it.po: Update from translation team.
13822         * po/es.po: Likewise.
13824 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13826         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13827         the three constants needed as parameters.  Drop the others.
13828         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13829         __m128i_strloadu_tolower.
13830         Create and initialize variable zero and use it in all the places
13831         where _mm_setzero_si128 was used.
13833         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13834         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13835         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13836         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13837         anymore.
13838         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13839         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13840         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13841         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13842         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13843         __mpranred, __mptan.
13844         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13845         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13846         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13847         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13848         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13849         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13850         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13851         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13852         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13854 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13856         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13857         redefine if SHARED.
13858         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13860         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13861         wide char related routines to wcsmbs subdir.
13863 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13865         [BZ #13344]
13866         * misc/sys/cdefs.h (__THROWNL): Define.
13867         * posix/unistd.h: Use __THREADNL instead of __THREAD
13868         for memory synchronization functions.
13870 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13872         [BZ #13349]
13873         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13874         doesn't exist.
13875         * manual/stdio.texi (Obstack Streams): Node removed.
13877 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13879         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13880         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13881         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13883         * math/math_private.h (math_force_eval): Allow non-addressable
13884         arguments.
13885         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13887 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13889         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13890         file is not needed.
13892         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13893         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13894         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13895         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13896         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13897         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13898         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13899         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13900         Add AVX variants.
13901         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13902         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13903         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13904         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13905         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13906         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13907         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13908         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13909         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13910         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13911         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13912         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13913         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13914         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13915         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13916         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13917         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13918         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13919         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13921         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13922         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13924         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13925         place.  Use VEX encoding when compiling for AVX.
13927 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13929         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13930         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13932         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13934 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13936         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13937         useless if() expression.
13938         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13939         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13940         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13941         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13942         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13943         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13944         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13945         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13946         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13947         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13948         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13949         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13950         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13951         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13952         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13953         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13954         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13955         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13956         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13958         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13960 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13962         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13963         condition.
13964         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13966 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13968         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13969         .text section.  Avoid duplicate constants.
13970         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13971         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13972         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13973         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13974         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13975         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13976         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13977         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13978         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13979         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13980         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13981         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13982         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13983         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13984         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13985         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13986         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13987         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13988         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13989         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13990         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13991         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13992         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13993         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13994         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13995         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13996         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13997         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13998         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13999         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14000         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14001         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14002         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14003         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14004         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14005         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14006         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14007         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14008         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14009         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14010         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14011         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14012         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14013         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14014         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14016 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14018         * sysdeps/x86_64/dla.h: Move to ...
14019         * sysdeps/x86_64/fpu/dla.h: ...here.
14020         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14021         situations.  Use __builtin_fma only for gcc 4.6 and up.
14023         * config.make.in: Add have-mfma4 entry.
14024         * configure.in: Substitute libc_cv_cc_fma4.
14025         * math/Makefile (dbl-only-routines): Add sincostab.
14026         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14027         Use __sincostab not sincos.
14028         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14029         name is a macro.
14030         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14031         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14032         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14033         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14034         using __copysign.
14035         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14036         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14037         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14038         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14039         and __inv.
14040         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14041         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14042         __copysign.
14043         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14044         define aliases when function name is a macro.
14045         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14046         sysdeps/ieee754/dbl-64/sincos.tbl.
14047         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14048         fma4-enabled routines.
14049         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14050         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14051         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14052         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14053         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14054         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14055         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14056         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14057         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14058         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14059         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14060         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14061         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14062         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14063         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14064         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14065         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14066         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14067         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14068         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14069         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14070         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14071         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14072         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14073         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14074         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14075         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14076         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14077         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14078         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14080         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14081         rename.
14082         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14083         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14084         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14085         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14086         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14087         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14088         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14089         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14091 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14093         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14095 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14097         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14099         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14100         prediction.
14101         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14103         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14104         Remove unused variable magic_bits.
14105         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14107         * string/strnlen.c: Define and use STRNLEN macro.
14108         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14109         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14110         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14111         * wcsmbs/wcslen.c: Define and use WCSLEN.
14112         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14113         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14114         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14115         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14116         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14117         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14118         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14120 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14122         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14123         strnlen-sse2-no-bsf.
14124         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14125         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14126         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14127         Add strnlen support.
14128         (USE_AS_STRNLEN): New macro.
14129         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14130         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14131         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14132         * sysdeps/x86_64/wcslen.S: New file.
14134 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14136         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14137         XMM-moves are used for copying on small sizes.
14139 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14141         * wcsmbs/Makefile (strop-tests): Add wcschr.
14142         * wcsmbs/test-wcschr.c: New file.
14143         * string/test-strchr.c: Update.
14144         Add wcschr support.
14145         (WIDE): New macro.
14147 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14149         * wcsmbs/Makefile (strop-tests): Add wcslen.
14150         * wcsmbs/test-wcslen.c: New file.
14151         * string/test-strlen.c: Update.
14152         Add wcslen support.
14153         (WIDE): New macro.
14155 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14157         * po/it.po: Update from translation team.
14159 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14161         * sysdeps/x86_64/wcscmp.S: Update.
14162         Fix wrong comparison semantics.
14163         wcscmp shall use signed comparison not unsigned.
14164         Don't use substraction to avoid overflow bug.
14165         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14166         * wcsmbc/wcscmp.c: Likewise.
14167         * string/test-strcmp.c: Likewise.
14168         Add new tests to check cases with negative values.
14170 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14172         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14173         * sysdeps/x86_64/dla.h: ...here.  New file.
14174         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14175         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14176         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14177         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14178         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14179         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14180         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14181         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14182         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14184 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14186         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14187         __ynl_finite aliases.
14189 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14191         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14193         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14194         define DLA_FMA.
14195         [DLA_FMA] (EMULV): Use DLA_FMA.
14196         [DLA_FMA] (MUL12): Use EMULV.
14197         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14198         that are not needed.
14199         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14200         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14201         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14202         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14203         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14204         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14205         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14207 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14209         * math/s_nan.c: Undef __nan.
14210         * math/s_nanf.c: Undef __nanf.
14211         * math/s_nanl.c: Undef __nanl.
14212         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14213         "math_private.h".
14215 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14217         * math/s_catan.c: Add branch predictions.
14218         * math/s_catanf.c: Likewise.
14219         * math/s_catanh.c: Likewise.
14220         * math/s_catanhf.c: Likewise.
14221         * math/s_catanhl.c: Likewise.
14222         * math/s_catanl.c: Likewise.
14223         * math/s_cexp.c: Likewise.
14224         * math/s_cexpf.c: Likewise.
14225         * math/s_cexpl.c: Likewise.
14226         * math/s_clog.c: Likewise.
14227         * math/s_clog10.c: Likewise.
14228         * math/s_clog10f.c: Likewise.
14229         * math/s_clog10l.c: Likewise.
14230         * math/s_clogf.c: Likewise.
14231         * math/s_clogl.c: Likewise.
14232         * math/s_csqrt.c: Likewise.
14233         * math/s_csqrtf.c: Likewise.
14234         * math/s_csqrtl.c: Likewise.
14235         * math/s_ctanf.c: Likewise.
14236         * math/s_ctanh.c: Likewise.
14237         * math/s_ctanhf.c: Likewise.
14238         * math/s_ctanhl.c: Likewise.
14239         * math/s_ctanl.c: Likewise.
14241         * math/math_private.h: Define __nan, __nanf, __nanl.
14242         * math/s_cacosh.c: Include <math_private.h>.
14243         * math/s_cacoshl.c: Likewise.
14244         * math/s_casinh.c: Likewise.
14245         * math/s_casinhf.c: Likewise.
14246         * math/s_casinhl.c: Likewise.
14247         * math/s_ccos.c: Rely entire on ccosh.
14248         * math/s_ccosf.c: Rely entire on ccoshf.
14249         * math/s_ccosl.c: Rely entirely on ccoshl.
14250         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14251         Remove tests for FE_INVALID.
14252         * math/s_ccoshf.c: Likewise.
14253         * math/s_ccoshl.c: Likewise.
14254         * math/s_csin.c: Likewise.
14255         * math/s_csinf.c: Likewise.
14256         * math/s_csinh.c Likewise.
14257         * math/s_csinhf.c: Likewise.
14258         * math/s_csinhl.c: Likewise.
14259         * math/s_csinl.c: Likewise.
14260         * math/s_ctan.c: Likewise.
14261         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14262         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14263         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14265 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14267         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14268         compilation problems.
14270         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14271         __builtin_expect.
14273 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14275         * sysdeps/i386/configure.in: Test for -mfma4 option.
14276         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14277         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14278         COMMON_CPUID_INDEX_80000001.
14279         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14280         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14281         use it if FMA3 is not supported.
14282         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14284         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14285         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14287 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14289         [BZ #12892]
14290         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14291         it would create a cycle with a link time dependency.
14293 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14295         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14296         instruction.
14297         * string/Makefile (strop-tests): Add rawmemchr.
14298         * string/test-rawmemchr.c: New file.
14300         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14301         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14302         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14303         when compiling str{,n}casecmp and when AVX is available.  Hook up
14304         new optimized code in initializers.
14306 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14308         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14309         __feraiseexcept instead of feraiseexcept.
14311 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14313         * math/math_private.h: Define defaults for libc_fetestexcept and
14314         libc_feupdateenv.
14315         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14316         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14317         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14318         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14319         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14320         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14321         libc_fetestexcept and libc_feupdateenv.
14323         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14324         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14325         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14326         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14327         libc_feholdexcept_setround.
14329         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14330         Add s_nearbyint-c and s_nearbyintf-c.
14331         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14332         nearbyintf inlines.
14333         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14334         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14335         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14336         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14338         * math/math_private.h: Define defaults for libc_fegetround,
14339         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14340         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14341         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14342         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14343         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14344         standard functions.
14345         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14346         Remove comments and hacks for old compiler versions.
14347         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14348         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14349         libc_feholdexceptl.
14351 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14353         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14354         (__feraiseexcept_renamed): Add __NTH.
14355         (feraiseexcept): Add __NTH.  Rename local variables to fix
14356         namespace violations.
14358 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14360         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14362         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14364         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14365         recently added interfaces.
14366         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14368         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14369         about macro parameter expansion.
14371         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14372         __NO_MATH_INLINES is defined.  Cleanups.
14374         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14375         and __floorf is target has SSE4.1.
14376         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14377         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14378         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14379         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14381         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14382         name.
14383         (floorf): Likewise.
14385         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14387 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14389         * misc/sys/cdefs.h: Fix last change.
14391         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14392         database lookup.
14394 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14396         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14398         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14399         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14400         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14401         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14402         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14403         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14404         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14405         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14406         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14407         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14408         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14409         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14410         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14411         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14412         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14413         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14414         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14415         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14416         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14417         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14418         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14419         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14421         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14422         ceil, ceilf, floor, floorf.
14424         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14425         Perform IRELATIVE relocations last.
14427         * elf/do-rel.h: Add another parameter nrelative, replacing the
14428         local variable with the same name.  Change name of the function
14429         to end in Rel or Rela (uppercase).
14430         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14431         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14432         elf_dynamic_do_##reloc function.
14434 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14436         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14437         is sufficient, at least on modern CPUs.
14439         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14441         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14442         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14444         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14445         __expl_finite.
14446         * math/bits/math-finite.h: Add entries for exp.
14447         * math/e_expl.c: Add __*_finite alias.
14448         * sysdeps/i386/fpu/e_exp.S: Likewise.
14449         * sysdeps/i386/fpu/e_expf.S: Likewise.
14450         * sysdeps/i386/fpu/e_expl.c: Likewise.
14451         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14452         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14453         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14454         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14455         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14456         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14457         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14459         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14460         is sufficient, at least on modern CPUs.
14462         * ctype/ctype-info.c (__ctype_init): Define.
14463         * include/ctype.h (__ctype_init): Declare.
14464         (__ctype_b_loc): The variable is always initialized.
14465         (__ctype_toupper_loc): Likewise.
14466         (__ctype_tolower_loc): Likewise.
14467         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14468         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14470 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14472         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14474         * configure.in: Also look in $cxxmachine/include for C++ system
14475         headers.
14477 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14479         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14480         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14481         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14482         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14483         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14484         (USE_AS_WMEMCMP): New macro.
14485         Fixing indents.
14486         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14487         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14488         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14489         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14490         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14491         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14492         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14493         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14494         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14495         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14496         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14497         (USE_AS_WMEMCMP): New macro.
14498         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14499         * sysdeps/string/test-memcmp.c: Update.
14500         Fix simple_wmemcmp.
14501         Add new tests.
14502         * wcsmbs/wmemcmp.c: Update.
14503         (WMEMCMP): New macro.
14504         Fix overflow bug.
14506 2011-10-12  Andreas Jaeger  <aj@suse.de>
14508         [BZ #13268]
14509         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14511 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14513         * libio/iofwide.c (do_length): Avoid warning.
14515         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14517 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14519         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14521         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14522         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14523         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14524         * sysdeps/i386/i686/fpu/e_log.S: New file.
14525         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14526         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14528         * ctype/ctype.h: Add support for inlined isXXX functions when
14529         compiling C++ code.
14531 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14533         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14535         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14537 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14539         [BZ #13291]
14540         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14542 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14544         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14545         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14546         feraiseexcept.
14548         * sysdeps/x86_64/memrchr.S: Check for zero size.
14550         * string/stratcliff.c: Add memrchr tests.
14552 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14554         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14555         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14556         rawmemchr-sse2 rawmemchr-sse2-bsf.
14557         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14558         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14559         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14560         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14561         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14562         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14563         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14564         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14565         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14566         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14567         * string/memrchr.c (MEMRCHR): New macro.
14569 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14571         Add integration with gcc's -ffinite-math-only and optimize wrapper
14572         functions in libm.
14573         * Versions.def: Define GLIBC_2.15 version for libm.
14574         * math/Makefile (headers): Add bits/math-finite.h.
14575         * math/bits/math-finite.h: New file.
14576         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14577         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14578         * math/e_acoshl.c: Add __*_finite alias.
14579         * math/e_acosl.c: Likewise.
14580         * math/e_asinl.c: Likewise.
14581         * math/e_atan2l.c: Likewise.
14582         * math/e_atanhl.c: Likewise.
14583         * math/e_coshl.c: Likewise.
14584         * math/e_exp10.c: Likewise.
14585         * math/e_exp10f.c: Likewise.
14586         * math/e_exp10l.c: Likewise.
14587         * math/e_exp2l.c: Likewise.
14588         * math/e_fmodl.c: Likewise.
14589         * math/e_gammal_r.c: Likewise.
14590         * math/e_hypotl.c: Likewise.
14591         * math/e_j0l.c: Likewise.
14592         * math/e_j1l.c: Likewise.
14593         * math/e_jnl.c: Likewise.
14594         * math/e_lgammal_r.c: Likewise.
14595         * math/e_log10l.c: Likewise.
14596         * math/e_log2l.c: Likewise.
14597         * math/e_logl.c: Likewise.
14598         * math/e_powl.c: Likewise.
14599         * math/e_sinhl.c: Likewise.
14600         * math/e_sqrtl.c: Likewise.
14601         * math/e_scalb.c: Completely rewritten and optimized.
14602         * math/e_scalbf.c: Likewise.
14603         * math/e_scalbl.c: Likewise.
14604         * math/w_acos.c: Likewise.
14605         * math/w_acosf.c: Likewise.
14606         * math/w_acosl.c: Likewise.
14607         * math/w_acosh.c: Likewise.
14608         * math/w_acoshf.c: Likewise.
14609         * math/w_acoshl.c: Likewise.
14610         * math/w_asin.c: Likewise.
14611         * math/w_asinf.c: Likewise.
14612         * math/w_asinl.c: Likewise.
14613         * math/w_atan2.c: Likewise.
14614         * math/w_atan2f.c: Likewise.
14615         * math/w_atan2l.c: Likewise.
14616         * math/w_atanh.c: Likewise.
14617         * math/w_atanhf.c: Likewise.
14618         * math/w_atanhl.c: Likewise.
14619         * math/w_exp10.c: Likewise.
14620         * math/w_exp10f.c: Likewise.
14621         * math/w_exp10l.c: Likewise.
14622         * math/w_fmod.c: Likewise.
14623         * math/w_fmodf.c: Likewise.
14624         * math/w_fmodl.c: Likewise.
14625         * math/w_j0.c: Likewise.
14626         * math/w_j0f.c: Likewise.
14627         * math/w_j0l.c: Likewise.
14628         * math/w_j1.c: Likewise.
14629         * math/w_j1f.c: Likewise.
14630         * math/w_j1l.c: Likewise.
14631         * math/w_jn.c: Likewise.
14632         * math/w_jnf.c: Likewise.
14633         * math/w_log.c: Likewise.
14634         * math/w_logf.c: Likewise.
14635         * math/w_logl.c: Likewise.
14636         * math/w_log10.c: Likewise.
14637         * math/w_log10f.c: Likewise.
14638         * math/w_log10l.c: Likewise.
14639         * math/w_log2.c: Likewise.
14640         * math/w_log2f.c: Likewise.
14641         * math/w_log2l.c: Likewise.
14642         * math/w_pow.c: Likewise.
14643         * math/w_powf.c: Likewise.
14644         * math/w_powl.c: Likewise.
14645         * math/w_remainder.c: Likewise.
14646         * math/w_remainderf.c: Likewise.
14647         * math/w_remainderl.c: Likewise.
14648         * math/w_scalb.c: Likewise.
14649         * math/w_scalbf.c: Likewise.
14650         * math/w_scalbl.c: Likewise.
14651         * math/w_sqrt.c: Likewise.
14652         * math/w_sqrtf.c: Likewise.
14653         * math/w_sqrtl.c: Likewise.
14654         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14655         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14656         used.
14657         * math/math_private.h: Declare __kernel_standard_f.
14658         * math/w_cosh.c: Remove cruft and optimize a bit.
14659         * math/w_coshf.c: Likewise.
14660         * math/w_coshl.c: Likewise.
14661         * math/w_exp2.c: Likewise.
14662         * math/w_exp2f.c: Likewise.
14663         * math/w_exp2l.c: Likewise.
14664         * math/w_hypot.c: Likewise.
14665         * math/w_hypotf.c: Likewise.
14666         * math/w_hypotl.c: Likewise.
14667         * math/w_lgamma.c: Likewise.
14668         * math/w_lgamma_r.c: Likewise.
14669         * math/w_lgammaf.c: Likewise.
14670         * math/w_lgammaf_r.c: Likewise.
14671         * math/w_lgammal.c: Likewise.
14672         * math/w_lgammal_r.c: Likewise.
14673         * math/w_sinh.c: Likewise.
14674         * math/w_sinhf.c: Likewise.
14675         * math/w_sinhl.c: Likewise.
14676         * math/w_tgamma.c: Likewise.
14677         * math/w_tgammaf.c: Likewise.
14678         * math/w_tgammal.c: Likewise.
14679         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14680         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14681         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14682         Minor optimizations.  Pretty printing.  Remove cruft.
14683         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14684         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14685         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14686         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14687         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14688         * sysdeps/i386/fpu/e_asin.S: Likewise.
14689         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14690         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14691         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14692         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14693         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14694         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14695         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14696         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14697         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14698         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14699         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14700         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14701         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14702         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14703         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14704         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14705         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14706         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14707         * sysdeps/i386/fpu/e_log.S: Likewise.
14708         * sysdeps/i386/fpu/e_log10.S: Likewise.
14709         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14710         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14711         * sysdeps/i386/fpu/e_log2.S: Likewise.
14712         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14713         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14714         * sysdeps/i386/fpu/e_logf.S: Likewise.
14715         * sysdeps/i386/fpu/e_logl.S: Likewise.
14716         * sysdeps/i386/fpu/e_pow.S: Likewise.
14717         * sysdeps/i386/fpu/e_powf.S: Likewise.
14718         * sysdeps/i386/fpu/e_powl.S: Likewise.
14719         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14720         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14721         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14722         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14723         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14724         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14725         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14726         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14727         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14728         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14729         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14730         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14731         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14732         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14733         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14734         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14735         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14736         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14737         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14738         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14739         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14740         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14741         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14742         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14743         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14744         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14745         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14746         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14747         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14748         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14749         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14750         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14751         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14752         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14753         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14754         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14755         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14756         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14757         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14758         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14759         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14760         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14761         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14762         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14763         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14764         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14765         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14766         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14767         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14768         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14769         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14770         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14771         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14772         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14773         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14774         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14775         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14776         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14777         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14778         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14779         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14780         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14781         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14782         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14783         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14784         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14785         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14786         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14787         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14788         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14789         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14790         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14791         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14792         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14793         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14794         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14795         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14796         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14797         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14798         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14799         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14800         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14801         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14802         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14803         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14804         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14805         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14806         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14807         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14808         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14809         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14810         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14811         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14812         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14813         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14814         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14815         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14816         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14817         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14818         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14819         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14820         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14821         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14822         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14823         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14824         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14825         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14826         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14827         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14828         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14829         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14830         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14831         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14832         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14833         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14834         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14835         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14836         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14837         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14838         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14839         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14840         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14841         (__isnanf): Likewise.
14842         (__isinf_ns): Likewise.
14843         (__isinf_nsf): Likewise.
14844         (__finite): Likewise.
14845         (__finitef): Likewise.
14846         (__ieee754_sqrt): Define as macro.
14847         (__ieee754_sqrtf): Define as macro.
14848         (__ieee754_sqrtl): Define as macro.
14849         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14850         inlined copy.
14851         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14852         __FINITE_MATH_ONLY__ consistent.
14853         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14855 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14857         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14858         of rawmemchr.
14860         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14862 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14864         * po/ja.po: Update from translation team.
14866 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14868         * locale/programs/locarchive.c (prepare_address_space): New function.
14869         (create_archive, enlarge_archive, open_archive): Use it.
14871         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14872         inside [SHARED], where it is used.
14874         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14876         * nss/getent.c (netgroup_keys): Remove unused variable.
14877         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14879 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14881         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14882         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14883         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14884         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14885         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14886         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14887         * math/Makefile (libm-calls): Add s_isinf_ns.
14888         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14889         * math/multc3.c: Likewise.
14890         * math/s_casin.c: Likewise.
14891         * math/s_casinf.c: Likewise.
14892         * math/s_casinl.c: Likewise.
14893         * math/s_ccos.c: Likewise.
14894         * math/s_ccosf.c: Likewise.
14895         * math/s_ccosl.c: Likewise.
14896         * math/s_ctan.c: Likewise.
14897         * math/s_ctanf.c: Likewise.
14898         * math/s_ctanh.c: Likewise.
14899         * math/s_ctanhf.c: Likewise.
14900         * math/s_ctanhl.c: Likewise.
14901         * math/s_ctanl.c: Likewise.
14902         * math/w_fmod.c: Likewise.
14903         * math/w_fmodf.c: Likewise.
14904         * math/w_fmodl.c: Likewise.
14905         * math/w_remainder.c: Likewise.
14906         * math/w_remainderf.c: Likewise.
14907         * math/w_remainderl.c: Likewise.
14908         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14909         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14910         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14911         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14912         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14913         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14914         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14915         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14917         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14918         of the number.
14919         * stdio-common/printf_fphex.c: Likewise.
14920         * stdio-common/printf_size.c: Likewise.
14922         * math/e_exp10.c: Include math_private.h using <...> not "...".
14923         * math/e_exp10f.c: Likewise.
14924         * math/e_exp10l.c: Likewise.
14925         * math/e_exp2l.c: Likewise.
14926         * math/e_j0l.c: Likewise.
14927         * math/e_j1l.c: Likewise.
14928         * math/e_jnl.c: Likewise.
14929         * math/e_lgammal_r.c: Likewise.
14930         * math/e_rem_pio2l.c: Likewise.
14931         * math/e_scalb.c: Likewise.
14932         * math/e_scalbf.c: Likewise.
14933         * math/e_scalbl.c: Likewise.
14934         * math/k_cosl.c: Likewise.
14935         * math/k_sinl.c: Likewise.
14936         * math/k_tanl.c: Likewise.
14937         * math/s_cacoshf.c: Likewise.
14938         * math/s_catan.c: Likewise.
14939         * math/s_catanf.c: Likewise.
14940         * math/s_catanh.c: Likewise.
14941         * math/s_catanhf.c: Likewise.
14942         * math/s_catanhl.c: Likewise.
14943         * math/s_catanl.c: Likewise.
14944         * math/s_ccosh.c: Likewise.
14945         * math/s_ccoshf.c: Likewise.
14946         * math/s_ccoshl.c: Likewise.
14947         * math/s_cexp.c: Likewise.
14948         * math/s_cexpf.c: Likewise.
14949         * math/s_cexpl.c: Likewise.
14950         * math/s_clog.c: Likewise.
14951         * math/s_clog10.c: Likewise.
14952         * math/s_clog10f.c: Likewise.
14953         * math/s_clog10l.c: Likewise.
14954         * math/s_clogf.c: Likewise.
14955         * math/s_clogl.c: Likewise.
14956         * math/s_csin.c: Likewise.
14957         * math/s_csinf.c: Likewise.
14958         * math/s_csinh.c: Likewise.
14959         * math/s_csinhf.c: Likewise.
14960         * math/s_csinhl.c: Likewise.
14961         * math/s_csinl.c: Likewise.
14962         * math/s_csqrt.c: Likewise.
14963         * math/s_csqrtf.c: Likewise.
14964         * math/s_csqrtl.c: Likewise.
14965         * math/s_ctan.c: Likewise.
14966         * math/s_ctanf.c: Likewise.
14967         * math/s_ctanh.c: Likewise.
14968         * math/s_ctanhf.c: Likewise.
14969         * math/s_ctanhl.c: Likewise.
14970         * math/s_ctanl.c: Likewise.
14971         * math/s_ldexp.c: Likewise.
14972         * math/s_ldexpf.c: Likewise.
14973         * math/s_ldexpl.c: Likewise.
14974         * math/s_significand.c: Likewise.
14975         * math/s_significandf.c: Likewise.
14976         * math/s_significandl.c: Likewise.
14977         * math/w_acos.c: Likewise.
14978         * math/w_acosf.c: Likewise.
14979         * math/w_acosh.c: Likewise.
14980         * math/w_acoshf.c: Likewise.
14981         * math/w_acoshl.c: Likewise.
14982         * math/w_acosl.c: Likewise.
14983         * math/w_asin.c: Likewise.
14984         * math/w_asinf.c: Likewise.
14985         * math/w_asinl.c: Likewise.
14986         * math/w_atan2.c: Likewise.
14987         * math/w_atan2f.c: Likewise.
14988         * math/w_atan2l.c: Likewise.
14989         * math/w_atanh.c: Likewise.
14990         * math/w_atanhf.c: Likewise.
14991         * math/w_atanhl.c: Likewise.
14992         * math/w_cosh.c: Likewise.
14993         * math/w_coshf.c: Likewise.
14994         * math/w_coshl.c: Likewise.
14995         * math/w_dremf.c: Likewise.
14996         * math/w_exp10.c: Likewise.
14997         * math/w_exp10f.c: Likewise.
14998         * math/w_exp10l.c: Likewise.
14999         * math/w_exp2.c: Likewise.
15000         * math/w_exp2f.c: Likewise.
15001         * math/w_fmod.c: Likewise.
15002         * math/w_fmodf.c: Likewise.
15003         * math/w_fmodl.c: Likewise.
15004         * math/w_hypot.c: Likewise.
15005         * math/w_hypotf.c: Likewise.
15006         * math/w_hypotl.c: Likewise.
15007         * math/w_j0.c: Likewise.
15008         * math/w_j0f.c: Likewise.
15009         * math/w_j0l.c: Likewise.
15010         * math/w_j1.c: Likewise.
15011         * math/w_j1f.c: Likewise.
15012         * math/w_j1l.c: Likewise.
15013         * math/w_jn.c: Likewise.
15014         * math/w_jnf.c: Likewise.
15015         * math/w_jnl.c: Likewise.
15016         * math/w_lgamma.c: Likewise.
15017         * math/w_lgamma_r.c: Likewise.
15018         * math/w_lgammaf.c: Likewise.
15019         * math/w_lgammaf_r.c: Likewise.
15020         * math/w_lgammal.c: Likewise.
15021         * math/w_lgammal_r.c: Likewise.
15022         * math/w_log.c: Likewise.
15023         * math/w_log10.c: Likewise.
15024         * math/w_log10f.c: Likewise.
15025         * math/w_log10l.c: Likewise.
15026         * math/w_log2.c: Likewise.
15027         * math/w_log2f.c: Likewise.
15028         * math/w_log2l.c: Likewise.
15029         * math/w_logf.c: Likewise.
15030         * math/w_logl.c: Likewise.
15031         * math/w_pow.c: Likewise.
15032         * math/w_powf.c: Likewise.
15033         * math/w_powl.c: Likewise.
15034         * math/w_remainder.c: Likewise.
15035         * math/w_remainderf.c: Likewise.
15036         * math/w_remainderl.c: Likewise.
15037         * math/w_scalb.c: Likewise.
15038         * math/w_scalbf.c: Likewise.
15039         * math/w_scalbl.c: Likewise.
15040         * math/w_sinh.c: Likewise.
15041         * math/w_sinhf.c: Likewise.
15042         * math/w_sinhl.c: Likewise.
15043         * math/w_sqrt.c: Likewise.
15044         * math/w_sqrtf.c: Likewise.
15045         * math/w_sqrtl.c: Likewise.
15046         * math/w_tgamma.c: Likewise.
15047         * math/w_tgammaf.c: Likewise.
15048         * math/w_tgammal.c: Likewise.
15050         * po/ja.po: Update from translation team.
15052 2011-09-29  Andreas Jaeger  <aj@suse.de>
15054         [BZ #13179]
15055         * sunrpc/netname.c (netname2host): Fix logic.
15057         [BZ #6779]
15058         [BZ #6783]
15059         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15060         correctly.
15061         * math/w_remainder.c (__remainder): Likewise.
15062         * math/w_remainderf.c (__remainderf): Likewise.
15063         * math/libm-test.inc (remainder_test): Add test cases.
15065 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15067         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15068         sdiv_qrnnd.
15070 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15072         * string/test-memcmp.c: Avoid unncessary #defines.
15073         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15075 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15077         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15078         Use new sse2 version for core i3 - i7 as it's faster
15079         than sse42 version.
15080         (bit_Prefer_PMINUB_for_stringop): New.
15081         * sysdeps/x86_64/rawmemchr.S: Update.
15082         Replace with faster SSE2 version.
15083         * sysdeps/x86_64/memrchr.S: New file.
15084         * sysdeps/x86_64/memchr.S: Update.
15085         Replace with faster SSE2 version.
15087 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15089         * elf/dl-load.c (lose): Add cast to avoid warning.
15091 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15093         * po/ca.po: Update from translation team.
15095         * inet/getnetgrent_r.c: Hook up nscd.
15096         * nscd/Makefile (routines): Add nscd_netgroup.
15097         (nscd-modules): Add netgroupcache.
15098         (CFLAGS-netgroupcache.c): Define.
15099         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15100         (cache_search): Add const to second parameter.
15101         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15102         INNETGR.
15103         (dbs): Add netgrdb entry.
15104         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15105         (verify_persistent_db): Handle netgrdb.
15106         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15107         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15108         GETFDNETGR.
15109         (netgroup_response_header): Define.
15110         (innetgroup_response_header): Define.
15111         (datahead): Add netgroup_response_header and innetgroup_response_header
15112         elements.
15113         * nscd/nscd.conf: Add entries for netgroup cache.
15114         * nscd/nscd.h (dbtype): Add netgrdb.
15115         (_PATH_NSCD_NETGROUP_DB): Define.
15116         (netgroup_iov_disabled): Declare.
15117         (xmalloc, xcalloc, xrealloc): Move declarations here.
15118         (cache_search): Adjust prototype.
15119         Add netgroup-related prototypes.
15120         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15121         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15122         (__nscd_innetgr): Declare.
15123         * nscd/selinux.c (perms): Use access_vector_t as element type and
15124         add netgroup-related initializers.
15125         * nscd/netgroupcache.c: New file.
15126         * nscd/nscd_netgroup.c: New file.
15127         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15128         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15129         For four parameters use innetgr.
15130         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15131         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15132         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15133         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15135         * nscd/connections.c (register_traced_file): Don't register file
15136         for disabled databases.
15138 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15140         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15142         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15143         from tree and freeing node.
15145 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15147         * nss/nsswitch.c (__nss_database_lookup): Handle
15148         nss_parse_service_list out of memory case.
15150 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15152         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15153         out of memory case.
15155 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15157         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15158         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15159         pass it down.
15160         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15161         elf_machine_rela, elf_machine_lazy_rel.
15162         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15163         (ELF_DYNAMIC_DO_REL): Likewise.
15164         (ELF_DYNAMIC_DO_RELA): Likewise.
15165         (ELF_DYNAMIC_RELOCATE): Likewise.
15166         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15167         to ELF_DYNAMIC_DO_REL.
15168         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15169         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15170         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15171         elf_machine_rela.
15172         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15173         skip_ifunc, don't call ifunc function if non-zero.
15174         (elf_machine_rela): Likewise.
15175         (elf_machine_lazy_rel): Likewise.
15176         (elf_machine_lazy_rela): Likewise.
15177         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15178         (elf_machine_lazy_rel): Likewise.
15179         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15180         Likewise.
15181         (elf_machine_lazy_rel): Likewise.
15182         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15183         Likewise.
15184         (elf_machine_lazy_rel): Likewise.
15185         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15186         (elf_machine_lazy_rel): Likewise.
15187         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15188         (elf_machine_lazy_rel): Likewise.
15189         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15190         (elf_machine_lazy_rel): Likewise.
15191         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15192         (elf_machine_lazy_rel): Likewise.
15193         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15194         (elf_machine_lazy_rel): Likewise.
15195         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15196         (elf_machine_lazy_rel): Likewise.
15198 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15200         * nss/nss_files/files-init.c (_nss_files_init): Use static
15201         initialization for all the *_traced_file variables.
15203 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15205         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15207 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15209         [BZ #13226]
15210         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15212 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15214         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15215         Reread the line before reparsing it.
15217 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15219         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15221 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15222             Maxim Kuvyrkov  <maxim@codesourcery.com>
15223             Joseph Myers  <joseph@codesourcery.com>
15225         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15226         if needed for __stack_chk_guard.
15228 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15230         * sysdeps/posix/spawni.c (script_execute): Always define it.
15231         It will be optimized away if unused.
15232         (maybe_script_execute): New function.
15233         (__spawni): Call it.
15235         * Makerules: Don't include tls.make.
15236         (config-tls): Always set to thread.
15237         * tls.make.c: File removed.
15239 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15241         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15242         * config.make.in (CPPFLAGS-config): New substituted variable.
15244 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15246         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15248         [BZ #13192]
15249         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15250         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15252 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15254         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15255         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15256         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15257         (CALL_FAIL): Likewise.
15258         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15259         (CALL_FAIL): Macro removed.
15260         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15262 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15264         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15265         for __FINITE_MATH_ONLY__ == 1.
15267 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15269         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15270         __ieee754_sqrt instead of sqrt.
15271         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15272         __ieee754_sqrtf instead of sqrtf.
15273         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15274         __floorf instead of floorf.
15275         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15276         __floorf, __truncf instead of floorf, truncf.
15278 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15280         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15282         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15283         __extern_always_inline.
15284         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15285         32-bit.
15287 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15289         * elf/rtld.c (dl_main): Also relocate in dependency order when
15290         doing symbol dependency testing.
15292 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15294         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15295         Always define `refsym'.
15297 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15299         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15300         (__FD_ELT): Renamed from __FDELT.
15301         * misc/bits/select2.h (__FD_ELT): Likewise.
15302         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15303         __FD_MASK instead of __FDELT, __FDMASK.
15304         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15305         Likewise.
15306         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15307         Likewise.
15309         * elf/Makefile (gen-ldd): Fix pattern.
15311         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15312         (init_tls): Likewise.
15314 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15316         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15318 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15320         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15321         `struct cmsghdr *' instead of `void *'.
15322         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15323         Likewise.
15325 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15327         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15328         if non-absolute.
15329         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15330         ldd_rewrite_script.
15332 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15334         * configure.in: Remove --with-tls option.
15335         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15336         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15337         out in case it is missing.
15338         * sysdeps/ia64/elf/configure.in: Likewise.
15339         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15340         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15341         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15342         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15343         * sysdeps/sh/elf/configure.in: Likewise.
15344         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15345         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15346         * sysdeps/x86_64/elf/configure.in: Likewise.
15347         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15348         * sysdeps/mach/hurd/tls.h: Likewise.
15350         [BZ #13067]
15351         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15353         [BZ #13090]
15354         * configure.in: Fix use of AC_INIT.
15356         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15358 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15360         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15361         __set_errno.
15362         * malloc/hooks.c: Likewise.
15364         [BZ #11929]
15365         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15366         variables statically.
15367         (narenas): Initialize.
15368         (list_lock): Initialize.
15369         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15370         initializtion of main_arena and list_lock.  Small cleanups.
15371         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15372         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15373         Add initializers to main_arena and mp_.
15374         (malloc_state): Remove pagesize member.  Change all users to use
15375         GLRO(dl_pagesize).
15377         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15378         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15379         is always initialized.
15381         * malloc/malloc.c: Removed unused configurations and dead code.
15382         * malloc/arena.c: Likewise.
15383         * malloc/hooks.c: Likewise.
15384         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15386         * include/tls.h: Removed.  USE___THREAD must always be defined.
15387         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15388         * elf/dl-libc.c: Likewise.
15389         * elf/dl-tsd.c: Likewise.
15390         * include/errno.h: Likewise.
15391         * include/netdb.h: Likewise.
15392         * include/resolv.h: Likewise.
15393         * inet/herrno-loc.c: Likewise.
15394         * inet/herrno.c: Likewise.
15395         * malloc/arena.c: Likewise.
15396         * malloc/hooks.c: Likewise.
15397         * malloc/malloc.c: Likewise.
15398         * resolv/res-state.c: Likewise.
15399         * resolv/res_libc.c: Likewise.
15400         * sysdeps/i386/dl-machine.h: Likewise.
15401         * sysdeps/ia64/dl-machine.h: Likewise.
15402         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15403         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15404         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15405         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15406         * sysdeps/sh/dl-machine.h: Likewise.
15407         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15408         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15409         * sysdeps/unix/i386/sysdep.S: Likewise.
15410         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15411         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15412         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15413         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15414         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15415         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15416         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15417         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15418         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15419         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15420         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15421         * sysdeps/x86_64/dl-machine.h: Likewise.
15422         * tls.make.c: Likewise.
15424         * configure.in: Remove --with-__thread option.  Make tests for
15425         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15426         tls_model attribute fail if no support is available.  Remove
15427         USE_IN_LIBIO.
15428         * Makeconfig: Adjust for dropped configure option.  All features are
15429         now mandatory.
15430         * Makerules: Likewise.
15431         * Versions.def: Likewise.
15432         * argp/argp-fmtstream.c: Likewise.
15433         * argp/argp-fmtstream.h: Likewise.
15434         * argp/argp-help.c: Likewise.
15435         * assert/assert.c: Likewise.
15436         * config.h.in: Likewise.
15437         * config.make.in: Likewise.
15438         * configure: Likewise.
15439         * configure.in: Likewise.
15440         * csu/Versions: Likewise.
15441         * csu/init.c: Likewise.
15442         * elf/tst-audit2.c: Likewise.
15443         * elf/tst-tls10.c: Likewise.
15444         * elf/tst-tls10.h: Likewise.
15445         * elf/tst-tls11.c: Likewise.
15446         * elf/tst-tls12.c: Likewise.
15447         * elf/tst-tls14.c: Likewise.
15448         * elf/tst-tlsmod11.c: Likewise.
15449         * elf/tst-tlsmod12.c: Likewise.
15450         * elf/tst-tlsmod13.c: Likewise.
15451         * elf/tst-tlsmod13a.c: Likewise.
15452         * elf/tst-tlsmod14a.c: Likewise.
15453         * elf/tst-tlsmod15b.c: Likewise.
15454         * elf/tst-tlsmod16a.c: Likewise.
15455         * elf/tst-tlsmod16b.c: Likewise.
15456         * elf/tst-tlsmod7.c: Likewise.
15457         * elf/tst-tlsmod8.c: Likewise.
15458         * elf/tst-tlsmod9.c: Likewise.
15459         * gmon/gmon.c: Likewise.
15460         * grp/fgetgrent_r.c: Likewise.
15461         * grp/putgrent.c: Likewise.
15462         * hurd/fopenport.c: Likewise.
15463         * include/libc-symbols.h: Likewise.
15464         * include/tls.h: Likewise.
15465         * intl/gettextP.h: Likewise.
15466         * intl/loadinfo.h: Likewise.
15467         * locale/global-locale.c: Likewise.
15468         * locale/localeinfo.h: Likewise.
15469         * mach/devstream.c: Likewise.
15470         * malloc/arena.c: Likewise.
15471         * malloc/set-freeres.c: Likewise.
15472         * misc/err.c: Likewise.
15473         * misc/getttyent.c: Likewise.
15474         * misc/mntent_r.c: Likewise.
15475         * posix/getopt.c: Likewise.
15476         * posix/wordexp.c: Likewise.
15477         * pwd/fgetpwent_r.c: Likewise.
15478         * resolv/Versions: Likewise.
15479         * resolv/res_hconf.c: Likewise.
15480         * shadow/fgetspent_r.c: Likewise.
15481         * shadow/putspent.c: Likewise.
15482         * stdio-common/printf_fphex.c: Likewise.
15483         * stdio-common/tmpfile.c: Likewise.
15484         * stdlib/abort.c: Likewise.
15485         * stdlib/fmtmsg.c: Likewise.
15486         * sunrpc/auth_unix.c: Likewise.
15487         * sunrpc/clnt_perr.c: Likewise.
15488         * sunrpc/clnt_tcp.c: Likewise.
15489         * sunrpc/clnt_udp.c: Likewise.
15490         * sunrpc/clnt_unix.c: Likewise.
15491         * sunrpc/openchild.c: Likewise.
15492         * sunrpc/svc_simple.c: Likewise.
15493         * sunrpc/svc_tcp.c: Likewise.
15494         * sunrpc/svc_udp.c: Likewise.
15495         * sunrpc/svc_unix.c: Likewise.
15496         * sunrpc/xdr.c: Likewise.
15497         * sunrpc/xdr_array.c: Likewise.
15498         * sunrpc/xdr_rec.c: Likewise.
15499         * sunrpc/xdr_ref.c: Likewise.
15500         * sunrpc/xdr_stdio.c: Likewise.
15502 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15504         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15506 2011-07-03  Andreas Jaeger  <aj@suse.de>
15508         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15509         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15510         regenerate with gen-libm-tests.pl.
15512 2010-05-12  Petr Baudis  <pasky@suse.cz>
15514         [BZ #11589]
15515         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15516         around j0() zero points by switching to j1().
15517         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15518         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15519         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15520         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15522 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15524         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15525         instead of 0.
15526         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15527         instead of 0.                              .
15528         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15529         Patch in part by Pavel Roskin <proski@gnu.org>.
15531         [BZ #13138]
15532         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15533         realloc.
15534         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15535         Free memory block if necessary.
15537         [BZ #12847]
15538         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15539         be NULL.  Don't lock in this case.
15541 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15543         * elf/elf.h (ELFOSABI_GNU): New macro.
15544         (ELFOSABI_LINUX): Define to that.
15546 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15548         * string/strncat.c (strncat): Undef the symbol in case it has been
15549         defined in bits/string.h.
15551 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15553         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15555         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15556         link map.
15558 2011-08-17  Andreas Jaeger  <aj@suse.de>
15560         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15562 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15563             Ian Lance Taylor  <iant@google.com>
15565         * math/libm-test.inc (lround_test): New testcase.
15566         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15568 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15570         * Makefile: Remove support for automatic cvs check-ins.
15571         * Makerules: Likewise.
15572         * config.make.in: Likewise.
15573         * configure.in: Likewise.
15574         * intl/Makefile: Likewise.
15575         * locale/Makefile: Likewise.
15576         * po/Makefile: Likewise.
15577         * posix/Makefile: Likewise.
15578         * sysdeps/gnu/Makefile: Likewise.
15579         * sysdeps/mach/hurd/Makefile: Likewise.
15580         * sysdeps/sparc/sparc32/Makefile: Likewise.
15582         [BZ #13118]
15583         * posix/Makefile (bug-regex32-ENV): Define.
15584         Patch by John Stanley <jpsinthemix@verizon.net>.
15586         * misc/Makefile (headers): Add bits/select2.h.
15587         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15588         * misc/bits/select2.h: New file.
15589         * include/bits/select2.h: New file.
15590         * debug/Makefile (routines): Add fdelt_chk.
15591         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15592         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15593         FD_ISSET.
15594         * debug/fdelt_chk.c: New file.
15596         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15597         * wcsmbs/test-wmemcmp.c: Likewise.
15598         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15599         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15601 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15603         * string/Makefile (strop-tests): Add memcmp.
15604         * string/test-wmemcmp.c: New file.
15605         * string/test-memcmp.c: Add wmemcmp support.
15607 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15609         [BZ #13153]
15610         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15611         2011-07-19 change.
15613         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15614         garbage value in a __mach_port_mod_refs call in the cases of the
15615         task-self and thread-self ports.
15617 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15619         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15621 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15623         * elf/dl-load.c (lose): Check for non-null L.
15625 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15627         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15629         * elf/dl-libc.c (dlerror_run): Pass back error code from
15630         dl_catch_error.
15632         [BZ #13123]
15633         * elf/dl-load.c (lose): Free l_origin if it is valid.
15635         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15636         names.
15637         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15638         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15639         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15640         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15641         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15642         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15644 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15646         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15647         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15648         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15649         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15650         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15651         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15652         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15653         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15654         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15655         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15657 2011-08-15  Alan Modra  <amodra@gmail.com>
15659         [BZ #13092]
15660         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15661         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15662         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15663         ppc_mcount to static-only-routines.
15664         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15665         __mcount_internal.
15666         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15667         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15669 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15671         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15672         for finite and infinity parameters.
15674 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15676         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15677         and add nop instructions for throughput optimization.
15678         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15680 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15682         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15683         aligned copy for power7 with vector-scalar instructions.
15684         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15686 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15688         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15689         AVX check.
15691 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15693         [BZ #13144]
15694         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15695         last change.
15697 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15699         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15700         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15701         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15702         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15703         clock_gettime.
15705 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15707         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15708         Forgot to demangle the pointer.
15710         * sysdeps/i386/sysdep.h: Define atom_text_section.
15711         * sysdeps/x86_64/sysdep.h: Likewise.
15712         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15713         section with atom_text_section.
15714         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15715         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15716         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15717         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15718         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15720         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15721         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15722         already be defined.  Change to take two parameters and don't assign
15723         result to variable.  Adjust all users.
15724         Define INTERNAL_GETTIME if not already defined.
15725         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15726         call.
15727         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15728         HAVE_CLOCK_GETTIME_VSYSCALL.
15729         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15731         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15732         gettimeofday vsyscall, just use time.
15734 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15736         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15737         <errno.h>.
15739 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15741         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15742         syscall on x86-64.
15743         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15744         syscall.
15745         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15746         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15747         syscall if possible.
15749 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15751         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15752         e_ident.  Don't pass to find_mapsXX.
15753         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15755 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15757         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15758         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15759         * sysdeps/x86_64/multiarch/strchr.S: Update.
15760         Check bit_slow_BSF bit.
15761         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15762         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15763         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15765 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15767         [BZ #13134]
15768         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15769         before glibc 2.15.
15770         (tryshell): Define.
15771         (__spawni): Change last parameter to be flag.  Test
15772         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15773         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15774         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15775         * posix/spawni.c: Likewise.
15776         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15777         * posix/spawnp.c: Likewise.  Change normal version to use
15778         SPAWN_XFLAGS_USE_PATH.
15779         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15780         SPAWN_XFLAGS_TRY_SHELL.
15782         [BZ #13150]
15783         * posix/glob.h: Remove gcc 1.x support.
15785         [BZ #13068]
15786         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15788 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15790         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15791         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15792         strrchr-sse2-bsf
15793         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15794         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15795         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15796         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15797         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15798         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15800 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15802         * sysdeps/x86_64/wcscmp.S: New file.
15804         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15805         wcscmp-c wcscmp-sse2
15806         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15807         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15808         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15809         * wcsmbs/wcscmp.c: Allow renaming.
15811 2011-09-05  David S. Miller  <davem@davemloft.net>
15813         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15814         stack slot, rather than the struct return pointer slot.
15815         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15816         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15817         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15818         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15820 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15822         * po/ja.po: Update from translation team.
15824         [BZ #13144]
15825         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15826         kernel in 64-bit binaries.
15828 2011-09-01  David S. Miller  <davem@davemloft.net>
15830         * elf/elf.h (HWCAP_SPARC_*): Move to..
15831         * sysdeps/sparc/sysdep.h: this new file and add new values.
15832         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15833         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15834         _DL_HWCAP_COUNT to 24.
15835         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15836         entries.
15837         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15838         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15839         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15840         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15841         instead of magic constants.
15842         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15844 2011-08-31  David S. Miller  <davem@davemloft.net>
15846         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15847         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15848         Reimplement to do errno handling inline.
15849         (SYSCALL_ERROR_HANDLER): New macro.
15850         (__SYSCALL_STRING): Do not do errno handling in asm.
15851         (__CLONE_SYSCALL_STRING): Delete.
15852         (__INTERNAL_SYSCALL_STRING): Delete.
15853         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15854         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15855         (PSEUDO): Reimplement to do errno handling inline.
15856         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15857         (SYSCALL_ERROR_HANDLER): New macro.
15858         (__SYSCALL_STRING): Do not do errno handling in asm.
15859         (__CLONE_SYSCALL_STRING): Delete.
15860         (__INTERNAL_SYSCALL_STRING): Delete.
15861         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15862         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15863         i386.
15864         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15865         (inline_syscall*): Add 'err' argument.
15866         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15867         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15868         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15869         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15871         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15872         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15874 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15876         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15878 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15880         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15881         directive.
15883 2011-08-24  David S. Miller  <davem@davemloft.net>
15885         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15887 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15889         * elf/Makefile: Add rules to build and run unload8 test.
15890         * elf/unload8.c: New file.
15891         * elf/unload8mod1.c: New file.
15892         * elf/unload8mod1x.c: New file.
15893         * elf/unload8mod2.c: New file.
15894         * elf/unload8mod3.c: New file.
15896         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15897         it wasn't used.
15899 2011-08-23  David S. Miller  <davem@davemloft.net>
15901         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15902         subtract stack bias.
15903         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15904         %sp not %fp in calculations.
15905         (_JMPBUF_UNWINDS_ADJ): Likewise.
15907         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15908         (aio_suspend): Call it to force an exception region around the
15909         AIO_MISC_WAIT() invocation.
15911 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15913         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15914         backslash.
15916 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15918         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15919         protection macro.
15920         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15921         and <dl-machine.h>.
15922         (Elf64_FuncDesc): Remove.
15924 2011-08-22  David S. Miller  <davem@davemloft.net>
15926         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15927         sigaltstack check, add missing cfi directives.
15928         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15929         missing cfi directives, and sigaltstack handling.
15931 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15933         [BZ #11724]
15934         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15935         object is seen twice.
15936         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15938         * elf/Makefile (distribute): Add tst-initorder2.c.
15939         (tests): Add tst-initorder2.
15940         (modules-names): Add tst-initorder2a tst-initorder2b
15941         tst-initorder2c tst-initorder2d.  Add rules to build them.
15942         ($(objpfx)tst-initorder2.out): New rule.
15943         * elf/tst-initorder2.c: New file.
15944         * elf/tst-initorder2.exp: New file.
15946 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15948         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15950         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15951         dependencies back to end of function.
15953         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15954         $(elfobjdir)/ld.so.
15956 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15958         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15959         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15960         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15961         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15962         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15963         of __vdso_gettimeofday.
15964         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15965         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15966         attribute_hidden.
15967         (_libc_vdso_platform_setup): Remove initialization of
15968         __vdso_gettimeofday and __vdso_time.
15970 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15972         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15973         and fgetc_unlocked.
15974         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15975         getc_unlocked.
15977         * elf/dl-open.c (add_to_global): Report additions to the global scope
15978         for LD_DEBUG=scopes.
15979         (dl_open_worker): Also print scope of newly loaded dependencies.
15980         (_dl_show_scope): Indicate if there is no scope.
15982         [BZ #13114]
15983         * stdio-common/Makefile (tests): Add bug24.
15984         * stdio-common/bug24.c: New file.
15986 2011-08-19  Andreas Jaeger  <aj@suse.de>
15988         [BZ #13114]
15989         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15990         non-existant file when using close-on-exec mode.
15992 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15994         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15995         the very first instruction.
15997         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15998         the CFI state in the end.
15999         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16000         inclusion of dl-trampoline.h.
16001         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16003 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16005         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16006         expectations for long double.
16008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16009         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16011 2011-08-14  David S. Miller  <davem@davemloft.net>
16013         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16014         artificual limit depends upon the system page size.
16016 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16018         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16019         * resolv/Makefile: Define CFLAGS-libresolv.
16021 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16023         * nss/makedb.c (compute_tables): Make variables used in nested
16024         function static.
16026 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16028         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16029         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16030         if buffer was too small.
16032         * elf/pldd.c (main): Attach to all threads in the process.
16033         Rewrite /proc handling to use *at functions.
16035 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16037         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16038         specifies first scope to show.
16039         (dl_open_worker): Update callers.  Move printing scope of new
16040         object to before the relocation.
16041         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16042         * sysdeps/generic/ldsodefs.h: Update declaration.
16044         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16045         string for the scope number.
16047 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16049         * nscd/servicescache.c (cache_addserv): Make sure written is always
16050         initialized.
16052 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16054         * sysdeps/i386/i486/bits/atomic.h
16055         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16056         statement expression, so as to suppress "set but not used" warning.
16057         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16059         * string/strncat.c (STRNCAT): Use prototype definition.
16061         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16062         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16063         -Iprograms here.
16064         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16065         (localedef-modules): Add localedef.
16066         (locale-modules): Add locale.
16068         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16069         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16070         to avoid a warning.
16072 2011-08-14  David S. Miller  <davem@davemloft.net>
16074         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16075         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16077 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16079         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16080         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16081         * elf/rtld.c (dl_main): Set l_name of vDSO.
16082         Call _dl_show_scope when DL_DEBUG_SCOPES.
16083         (process_dl_debug): Recognize scopes flag and also set it for all.
16084         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16085         Declare _dl_show_scope.
16087         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16088         (do_dlopen): Pass caller_dlopen to dl_open.
16089         (__libc_dlopen_mode): Initialize caller_dlopen.
16091         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16092         of libc.  Make tolower call locale-independent.  Optimize a bit by
16093         using isdigit instead of isalnum.
16094         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16096 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16098         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16099         was a dependency or dynamically loaded.
16101 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16103         * intl/l10nflist.c: Allow architecture-specific pop function.
16104         * sysdeps/x86_64/l10nflist.c: New file.
16106         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16107         classification.
16109 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16111         * include/dirent.h: Add libc_hidden_proto for scandirat and
16112         scandirat64.  Don't declare __scandirat64.
16113         * dirent/scandirat.c: Add libc_hidden_def.
16114         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16115         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16117 2011-08-10  David S. Miller  <davem@davemloft.net>
16119         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16120         enum.
16121         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16122         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16123         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16125 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16127         * Versions.def [libc]: Add GLIBC_2.15.
16128         * dirent/Makefile (routines): Add scandirat and scandirat64.
16129         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16130         GLIBC_2.15.
16131         * dirent/dirent.h: Declare scandirat and scandirat64.
16132         * dirent/scandirat.c: New file.
16133         * dirent/scandirat64.c: New file.
16134         * sysdeps/wordsize-64/scandirat.c: New file.
16135         * sysdeps/wordsize-64/scandirat64.c: New file.
16136         * dirent/opendir.c: Define opendirat.
16137         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16138         using scandirat.
16139         * dirent/scandir64.c: Adjust for scandir.c change.
16140         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16141         __scandirat64, and __scandir_cancel_handler.
16142         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16143         additional parameter and use openat instead of open (outside of ld.so).
16144         Add new __opendir as wrapper around __opendirat.
16145         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16146         here without requiring old scandirat implementation.
16148 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16150         * dirent/scandir.c (cancel_handler): Renamed to
16151         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16152         defined.  Adjust users.
16153         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16154         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16156 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16158         * string/test-string.h (IMPL): Use __STRING to expand name and then
16159         stringify it.
16161         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16162         of cleanups.
16164 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16166         * string/Makefile: Update.
16167         (strop-tests): Append strncat.
16168         * string/test-wcscmp.c: New file.
16169         New comprehensive test for wcscmp.
16170         * string/test-strcmp.c: Update.
16171         (WIDE): New define.
16173 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16175         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16176         line.
16178 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16180         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16181         encoding to ACE if AI_IDN.
16183 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16185         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16186         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16188 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16190         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16191         Fix overflow bug in strncat.
16192         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16194         * string/test-strncat.c: Update.
16195         Add new tests for checking overflow bugs.
16197 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16199         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16200         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16201         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16202         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16203         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16204         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16205         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16206         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16207         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16209         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16210         (USE_AS_STRCAT): Define.
16211         Add strcat and strncat support.
16212         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16214 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16216         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16217         __n bigger than INT_MAX+1.
16218         (__strncmp_g): Likewise.
16220 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16222         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16223         * libio/stido.h: Likewise.
16225         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16226         (AF_NFC): Define.
16227         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16228         (AF_NFC): Define.
16230         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16231         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16232         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16233         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16234         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16236         [BZ #13021]
16237         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16238         installed.
16240         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16241         typo.
16242         (_dl_x86_64_save_sse): Likewise.
16244 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16246         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16247         OSXSAVE.
16248         (_dl_x86_64_save_sse): Likewise.
16250         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16252         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16254 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16256         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16257         change.
16258         (_dl_x86_64_save_sse): Use correct AVX check.
16260 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16262         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16263         bug in strncpy/strncat.
16264         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16266 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16268         * string/tester.c (test_strcat): Add tests for different alignments
16269         of source and destination.
16270         (test_strncat): Likewise.
16272 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16274         [BZ #12852]
16275         * posix/glob.c (glob): Check passed in values before using them in
16276         expressions to avoid some overflows.
16277         (glob_in_dir): Likewise.
16279         [BZ #13007]
16280         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16281         check for AVX enablement so that we don't crash with old kernels and
16282         new hardware.
16283         * elf/tst-audit4.c: Add same checks here.
16284         * elf/tst-audit6.c: Likewise.
16286         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16288 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16290         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16292 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16294         * po/cs.po: Update from translation team.
16295         * po/bg.po: Likewise.
16297 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16299         * misc/sys/cdefs.h: Add support for const attribute.
16300         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16301         to gnu_dev_{major,minor,makedev} functions.
16303 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16305         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16307 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16309         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16310         strlen results.
16312 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16314         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16315         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16316         register in order to avoid conflicts with the soft frame pointer
16317         being held in r11 when necessary.
16318         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16319         (INTERNAL_VSYSCALL_NCS): Likewise.
16321 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16323         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16324         * elf/dl-fini.c (_dl_fini): Adjust caller.
16325         * elf/dl-close.c (_dl_close_worker): Likewise.
16326         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16328 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16330         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16331         "aux_cache->nlibs < 0".
16333         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16334         in the reload-count case.
16336 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16338         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16339         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16340         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16341         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16342         * sysdeps/x86_64/multiarch/strcat.S: New file.
16343         * sysdeps/x86_64/multiarch/strncat.S: New file.
16344         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16345         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16346         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16347         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16348         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16349         (USE_AS_STRCAT): Define.
16350         Add strcat and strncat support.
16351         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16352         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16353         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16354         * string/strncat.c: Update.
16355         (USE_AS_STRNCAT): Define.
16356         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16357         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16358         and i7.
16359         * sysdeps/x86_64/multiarch/init-arch.h
16360         (bit_Prefer_PMINUB_for_stringop): New.
16361         (index_Prefer_PMINUB_for_stringop): Likewise.
16362         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16363         bit_Prefer_PMINUB_for_stringop.
16365 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16367         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16368         buffer64.
16369         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16370         of casting of buffer.
16371         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16372         buffer32 and buffer64.
16373         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16374         writes instead of casting of buffer.
16375         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16376         buffer32.
16377         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16378         casting of buffer.
16380 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16382         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16384 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16386         * nscd/nscd.c (termination_handler): Don't do anything for a database
16387         if it has not yet been initialized.
16389 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16391         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16393 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16395         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16397 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16399         * po/nl.po: Update from translation team.
16400         * po/sv.po: Likewise.
16402 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16404         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16405         now disallowed by GCC.
16407         * configure.in (use-default-link): Default to yes if a test -shared
16408         link meets our qualifications.
16409         * configure: Regenerated.
16411         * config.make.in (output-format): New variable.
16412         * configure.in: Check for ld --print-output-format support.
16413         * configure: Regenerated.
16414         * Makerules ($(common-objpfx)format.lds)
16415         [$(output-format) != unknown]: Just use $(output-format),
16416         instead of the linker-script munging.
16418 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16420         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16421         of $(common-objpfx)shlib.lds.
16422         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16424         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16425         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16427         * configure.in (-z relro check): Adjust test code to add a large
16428         writable data section after it.
16429         * configure: Regenerated.
16431 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16433         * configure.in (-z relro check): Fix test code to make the variable
16434         truly const.
16435         * configure: Regenerated.
16437 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16439         * nscd/nscd.h (struct traced_file): Define.
16440         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16441         elements.  Add traced_files.
16442         (inotify_fd): Declare.
16443         (register_traced_file): Declare.
16444         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16445         (inotify_fd): Export.
16446         (resolv_conf_descr): Remove.
16447         (nscd_init): Move inotify descriptor creation to main.
16448         Don't register files for notification here.
16449         (register_traced_file): New function.
16450         (invalidate_cache): Don't use reset_res to determine whether to call
16451         res_init, go through the list of registered files.
16452         (main_loop_poll): The inotify descriptors are now stored in the
16453         structures for the traced files.
16454         (main_loop_epoll): Likewise
16455         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16456         to __nss_disable_nscd.
16457         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16458         for a database anymore.  Check the records for all the registered
16459         files instead.
16460         * nss/Makefile (libnss_files-routines): Add files-init.
16461         (libnss_db-routines): Add db-init.
16462         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16463         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16464         * nss/nss_db/db-init.c: New file.
16465         * nss/nss_files/files-init.c: New file.
16466         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16467         __nss_lookup_function.
16468         (__nss_lookup_function): Call nss_load_library.
16469         (nss_load_all_libraries): New function.
16470         (__nss_disable_nscd): Take parameter with callback function for files
16471         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16472         used for the cached services.
16473         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16474         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16475         options for features to all the files in nscd.
16477         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16479 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16481         * csu/elf-init.c (__libc_csu_init): Comment typo.
16483 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16485         * po/pl.po: Update from translation team.
16486         * po/ja.po: Likewise.
16487         * po/ru.po: Likewise.
16488         * po/ko.po: Likewise.
16489         * po/fr.po: Likewise.
16491 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16493         * configure.in (.ctors/.dtors header and trailer check):
16494         Use an empirical test on a built program.
16495         * configure: Regenerated.
16497         * configure.in (-z relro check): Use an empirical test on a built DSO.
16498         Detect, but do not require, on ia64.
16499         * configure: Regenerated.
16501         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16502         Update tests that use readelf to use $READELF instead.
16503         * configure: Regenerated.
16505 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16507         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16508         if the result is not used.
16510 2011-07-05  Andreas Jaeger  <aj@suse.de>
16512         [BZ#9696]
16513         * stdlib/tst-strtod.c: Add testcase.
16515 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16517         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16518         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16519         The latter has a higher limit.  Take additional parameter to pass to
16520         the new function.
16521         (__pathconf): Pass file to __statfs_link_max.
16522         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16523         __statfs_link_max.
16524         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16525         __statfs_link_max.
16527         [BZ #12868]
16528         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16529         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16530         Handle Lustre.
16531         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16532         (__statfs_filesize_max): Likewise.
16533         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16535 2011-07-05  Andreas Jaeger  <aj@suse.de>
16537         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16539 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16541         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16542         `status' variable.
16543         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16544         Likewise.
16546 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16548         * Makefile (strop-tests): Add strncat.
16549         * string/test-strncat.c: New file.
16551 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16553         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16555 2011-06-21  Andreas Jaeger  <aj@suse.de>
16557         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16558         Copy rule from iconvdata/Makefile.
16560 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16562         [BZ #12922]
16563         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16564         but no long options are defined, just return 'W'.
16566 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16568         [BZ #9696]
16569         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16571 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16573         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16574         netgroups to read.
16575         (innetgr): Likewise.
16577 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16579         * config.make.in (install_root): Default to $(DESTDIR).
16581 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16583         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16585 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16587         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16589         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16590         containing directory rather than embedding absolute directory names.
16592         * scripts/check-local-headers.sh: Rewritten using awk.
16593         Match by word, not by line.  Print error messages for matches.
16594         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16596         * Makerules [shlib-lds-flags empty]:
16597         ($(common-objpfx)libc_pic.opts): New target.
16598         ($(common-objpfx)libc_pic.os.clean): New target.
16599         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16601         * config.make.in (OBJCOPY): New variable.
16602         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16603         * configure: Regenerated.
16605         * config.make.in (use-default-link): New variable.
16606         * configure.in (use_default_link): Grok --with-default-link to set it.
16607         * configure: Regenerated.
16608         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16609         (shlib-lds, shlib-lds-flags): Define to empty.
16611         * Makerules (shlib-lds): New variable.
16612         (shlib-lds-flags): New variable.
16613         (build-shlib, build-moduile, build-module-asneeded): Use it.
16614         ($(common-objpfx)libc.so): Use $(shlib-lds).
16615         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16616         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16618         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16619         DT_FLAGS/DT_FLAGS_1 with zero flags.
16621         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16622         linker script munging.
16624 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16626         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16627         as 128-bit value.
16628         * crypt/sha512.c (sha512_process_block): Perform total addition using
16629         128-bit if possible.
16630         (__sha512_finish_ctx): Likewise.
16631         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16632         as 64-bit value.
16633         * crypt/sha256.c (SWAP64): Define.
16634         (sha256_process_block): Perform total addition using 64-bit if
16635         possible.
16636         (__sha256_finish_ctx): Likewise.
16638 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16640         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16641         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16642         * nscd/hstcache.c (cache_addhst): Likewise.
16643         * nscd/grpcache.c (cache_addgr): Likewise.
16644         * nscd/aicache.c (addhstaiX): Likewise
16645         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16647 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16649         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16650         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16651         * nscd/hstcache.c (cache_addhst): Likewise.
16652         * nscd/grpcache.c (cache_addgr): Likewise.
16653         * nscd/aicache.c (addhstaiX): Likewise
16655 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16657         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16658         domain only when needed.
16660 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16662         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16663         is always restored.
16665 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16667         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16668         are re-adding the entry.
16669         * nscd/servicescache.c (cache_addserv): Likewise.
16671 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16673         * sysdeps/generic/dl-irel.h: fix protection against multiple
16674         inclusions.
16675         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16677 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16679         [BZ #12935]
16680         * malloc/memusage.sh: Fix quoting in message.
16681         * debug/xtrace.sh: Likewise.
16683         * configure.in: Remove support for --experimental-malloc option, make
16684         it the default.
16685         * config.make.in: Likewise.
16686         * malloc/Makefile: Likewise.
16688 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16690         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16691         two-byte characters.
16693 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16695         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16696         AC_CACHE_CHECK invocation.
16697         * configure: Regenerated.
16699         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16701 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16703         [BZ #12350]
16704         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16705         bit from old_res_options.
16707         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16709         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16710         value type for setfct.
16712 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16714         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16715         __gettimeofday instead of gettimeofday.
16717 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16719         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16721 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16723         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16725         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16726         info.
16728 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16731         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16732         strcpy-sse2-unaligned strncpy-sse2-unaligned
16733         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16734         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16735         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16736         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16737         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16738         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16739         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16740         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16741         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16742         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16743         (STRCPY): Support SSE2 and SSSE3 versions.
16745 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16747         [BZ #12874]
16748         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16749         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16750         kernels which artificially limit size of requests.
16752 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16754         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16755         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16756         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16757         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16758         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16759         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16760         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16761         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16762         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16763         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16764         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16765         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16766         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16767         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16768         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16769         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16770         Enable unaligned load optimization for Intel Core i3, i5 and i7
16771         processors.
16772         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16773         Define.
16774         (index_Fast_Unaligned_Load): Define.
16775         (HAS_FAST_UNALIGNED_LOAD): Define.
16777 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16779         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16781 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16783         [BZ #12907]
16784         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16785         until it is clear that the information is realy needed.
16786         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16788 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16790         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16792 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16794         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16795         /sys/devices/system/cpu/online if it is usable.
16797         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16798         reading the information from the /proc filesystem to once a second.
16800 2011-06-21  Andreas Jaeger  <aj@suse.de>
16802         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16803         NULL after inclusion of kernel headers.
16805 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16807         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16808         calls to internal_setent.
16810         [BZ #12885]
16811         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16812         addresses using gethostbyname4_r ignore IPv4 addresses.
16814         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16815         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16817         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16819 2011-06-20  David S. Miller  <davem@davemloft.net>
16821         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16822         inclusions.
16823         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16825         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16826         (elf_irel): Use it.
16827         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16828         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16829         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16830         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16831         * sysdeps/x86_64/dl-irel.h: Likewise.
16833         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16834         * elf/dl-sym.c: Likewise.
16836 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16838         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16839         need to dereference resplen2.
16841 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16843         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16845 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16847         * Makeconfig: Define vardbdir and inst_vardbdir.
16848         * nss/Makefile: Add rules to install db-Makefile.
16850         * nss/nss_db/db-XXX.c: Cleanup.
16852         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16853         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16854         GLIBC_PRIVATE.
16855         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16856         * nss/makedb.c: Implement -g option to specify that value strings
16857         are generated and should not be added to table iterated over for
16858         get*ent calls.
16859         * nss/nss_db/db-initgroups.c: New file.
16861         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16862         interface.
16864         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16865         (internal_getgrouplist): Adjust to name change.
16866         Update use_initgroups_entry if this is not the first call.
16867         * nss/databases.def: Add initgroups entry.
16869         * nss/makedb.c (compute_tables): Check result of multiple hash table
16870         sizes to minimize maximum chain length.
16872 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16874         * Versions.def: Add entry for libnss_db.
16875         * shlib-versions: Likewise.
16876         * nss/Makefile: Add rules to build libnss_db.
16877         * nss/Versions: Add libnss_db information.  Organize libnss_files
16878         entries better.
16879         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16880         makedb progra.  Some minor improvements to generate smaller files.
16881         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16882         here from...
16883         * nss/makedb.c: ...here.
16884         Improve database format to be smaller and require less memory at
16885         runtime.
16886         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16887         db anymore.
16888         * nss/nss_db/db-netgrp.c: Likewise.
16889         * nss/nss_db/db-open.c: Likewise.
16890         * nss/nss_files/flies-XXX.x: Adjust comments.
16891         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16892         * nss/nss_files/files-grp.c: Likewise.
16893         * nss/nss_files/files-hosts.c: Likewise.
16894         * nss/nss_files/files-network.c: Likewise.
16895         * nss/nss_files/files-proto.c: Likewise.
16896         * nss/nss_files/files-pwd.c: Likewise.
16897         * nss/nss_files/files-rpc.c: Likewise.
16898         * nss/nss_files/files-service.c: Likewise.
16899         * nss/nss_files/files-sgrp.c: Likewise.
16900         * nss/nss_files/files-spwd.c: Likewise.
16901         * nss/nss_db/db-alias.c: Removed.
16902         * nss/nss_db/dummy-db.h: Removed.
16904 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16906         * nss/makedb.c: Rewritten to not use database library.
16907         * nss/Makefile: Update to build new makedb program.
16909 2011-06-14  Andreas Jaeger  <aj@suse.de>
16911         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16912         memset declaration.
16914 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16916         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16917         tmpbuf.
16919 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16921         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16922         * elf/Makefile ($(objpfx)ld.so): Likewise.
16924         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16925         Don't list ld.so twice in dependencies.
16927         * posix/bug-regex31.c: Include <stdlib.h>.
16929         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16931         * nis/nss_compat/compat-spwd.c
16932         (getspent_next_nss_netgr): Remove unused variable.
16933         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16935         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16936         nonmembers" output to use the right array.
16938         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16940         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16942         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16943         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16944         * catgets/gencat.c (read_input_file): Likewise.
16945         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16947         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16948         variable definition inside #if's controlling its use.
16950         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16952         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16954         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16956         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16957         unreachable code.
16959         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16961         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16962         * configure: Regenerated.
16964         * Makerules: Revert last change.
16965         * elf/Makefile: Likewise.
16967 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16969         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16970         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16971         (reloc-link): Likewise.
16973 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16975         * elf/Makefile: Add rules to build pldd.
16976         * elf/pldd.c: New file.
16977         * elf/pldd-xx.c: New file.
16979 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16981         * version.h: Update for 2.15 development version.
16983 2011-06-07  David S. Miller  <davem@davemloft.net>
16985         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16986         ifuncs.
16987         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16988         elf_machine_lazy_rel): Likewise.
16989         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16990         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16991         elf_machine_lazy_rel): Likewise.
16992         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16993         dl_hwcap via passed in argument.
16994         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16995         Likewise.
16997 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16999         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17001 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17003         [BZ #12849]
17004         * manual/fdl-1.1.texi: New file, verbatim from:
17005         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17006         * manual/lgpl-2.1.texi: New file, verbatim from:
17007         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17008         * manual/Makefile (licenses): New variable, list those new file names.
17009         (texis): Use it.
17010         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17012         * manual/fdl.texi: File removed.
17013         * manual/lesser.texi: File removed.
17014         * manual/libc.texinfo (Copying, Documentation License):
17015         Use new @include file names, put @appendix directive before @include.
17017 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17019         [BZ #12841]
17020         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17021         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17022         (mq_open): Add __NTH.
17024 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17026         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17027         Assume Intel Core i3/i5/i7 processor if AVX is available.
17029 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17031         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17032         typo.
17034 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17036         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17037         memory.  Use alloca_account.  Fix memory leak when retrying.
17039 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17041         * version.h (RELEASE): Bump for 2.14 release.
17042         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17044         * config.make.in (RANLIB): Remove entry.
17046 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17048         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17049         (libc.pot): Work around missing support for .ksh extension in xgettext.
17051         [BZ #12684]
17052         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17053         if both request failed.
17054         (send_dg): In case of server errors clear resplen or *resplen2.
17056         [BZ #12454]
17057         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17058         when there are multiple maps.
17059         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17060         (_dl_fini): Remove test here.
17062         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17064 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17066         [BZ #12350]
17067         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17068         bit from old_res_options.
17069         (gaih_inet): Likewise.
17071         [BZ #11099]
17072         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17073         as signed.
17075         * resolv/res_init.c (res_setoptions): Make the code more compact.
17077         [BZ #11558]
17078         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17079         set RES_USEVC.
17081         [BZ #11634]
17082         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17084         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17086         [BZ #11781]
17087         * malloc/malloc.h: Declare malloc hook variables as volatile.
17089         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17090         in last patch.
17092         [BZ #11799]
17093         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17094         raise in the comment.
17095         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17096         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17097         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17099 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17101         [BZ #12811]
17102         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17103         grow the buffers more if it already has to be sufficient.
17104         (build_wcs_upper_buffer): Likewise.
17105         * posix/regexec.c (check_matching): Likewise.
17106         (clean_state_log_if_needed): Likewise.
17107         (extend_buffers): Don't enlarge buffers beyond size of the input
17108         buffer.
17109         Patches mostly by Emil Wojak <emil@wojak.eu>.
17110         * posix/bug-regex32.c: New file.
17111         * posix/Makefile (tests): Add bug-regex32.
17113         * locale/findlocale.c (_nl_find_locale): Return right away if
17114         _nl_explode_name failed.
17115         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17117         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17119         * debug/xtrace.sh: Unify messages.
17120         * malloc/memusage.sh: Likewise.
17122         [BZ #12813]
17123         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17124         time symbol from vDSO.  Substitute with vsyscall if not available.
17125         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17126         __vdso_time.
17128         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17129         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17130         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17131         Add sendmmsg and internal_sendmmsg.
17132         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17133         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17134         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17136         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17137         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17138         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17140 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17142         [BZ #12813]
17143         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17144         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17145         available.
17146         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17147         __vdso_getcpu.
17149         [BZ #12814]
17150         * iconvdata/Makefile (tests): Add bug-iconv9.
17151         * iconvdata/bug-iconv9.c: New file.
17153 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17155         [BZ #12814]
17156         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17158 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17160         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17161         (struct user_regs_struct): Change intcs field back to cs.
17163 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17165         * po/ja.po: Update from translation team.
17167 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17169         [BZ #12795]
17170         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17171         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17173 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17175         * stdlib/longlong.h: Update from GCC.
17177 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17179         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17180         parameter name.
17181         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17182         Add parameter name.
17183         (__sysconf): Pass it down.
17185 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17187         [BZ #12671]
17188         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17189         some situations.
17190         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17191         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17192         add in in __libc_use_alloca calls.  Adjust callers.
17193         (glob): Use malloc in some situations.
17195         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17196         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17197         pltexit.
17199 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17201         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17202         and CLOCK_BOOTTIME_ALARM.
17204         [BZ #12782]
17205         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17206         is returned.
17208         * string/_strerror.c (__strerror_r): Print negative errors as signed
17209         numbers.
17211         [BZ #12777]
17212         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17213         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17214         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17216         * configure.in: Fix typo in redirection and correct removal of test
17217         files in two cases.
17219         [BZ #12788]
17220         * locale/setlocale.c (new_composite_name): Fix test to check for
17221         identical name of all categories.
17223         [BZ #12792]
17224         * libio/filedoalloc.c (local_isatty): New function.
17225         (_IO_file_doallocate): Use local_isatty.
17226         * stdio-common/perror.c (perror): In case a new stream is used
17227         forward the stream error.
17228         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17229         error flag.
17231 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17233         [BZ #11869]
17234         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17235         alloca.
17236         * include/alloca.h (extend_alloca_account): Define.
17238         [BZ #11857]
17239         * posix/regex.h: Fix comments with documentation of user-accessible
17240         fields after compilation and describe correct free'ing of pattern
17241         after re_compile_pattern.
17242         Patch by Reuben Thomas <rrt@sc3d.org>.
17244 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17246         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17247         and -mno-altivec to prevent the compiler from using Altivec and/or
17248         VSX instructions when the corresponding registers are not available.
17250 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17252         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17254 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17256         * libio/freopen.c (freopen): Use __dup2, not dup2.
17257         * libio/freopen64.c (freopen64): Likewise.
17259 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17261         [BZ #12775]
17262         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17263         * math/Makefile (tests): Add test-powl.
17264         (CFLAGS-test-powl.c): Define.
17265         * math/test-powl.c: New file.
17267 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17269         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17271 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17273         [BZ #11837]
17274         * iconvdata/gb18030.c: Update to GB18020-2005.
17276 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17278         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17279         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17280         Patch by Aharon Robbins <arnold@skeeve.com>.
17282         [BZ #11892]
17283         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17284         on the stack.
17286         [BZ #11895]
17287         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17288         through underflows.
17290         [BZ #12766]
17291         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17292         point to strings before performing equality test for error_one_per_line
17293         mode.
17295         [BZ #11697]
17296         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17298         [BZ #11820]
17299         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17300         (struct user_fpregs_struct): Avoid __uint*_t types.
17302         [BZ #6420]
17303         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17304         symbol info.  Use it instead of calling _dl_addr locally.
17305         (lock_and_info): New function.
17306         (tr_freehook): Call lock_and_info and pass symbol info as additional
17307         parameter to tr_where.
17308         (tr_mallochook): Likewise.
17309         (tr_reallochook): Likewise.
17310         (tr_memalignhook): Likewise.
17312         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17313         used and couldn't be at all thread-safe.
17315 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17317         * libio/freopen.c (freopen): Don't close old file descriptor
17318         before the new one is opened.  Instead dup the new file descriptor
17319         to the old one after the new stream is created.
17320         * libio/freopen64.c (freopen64): Likewise.
17321         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17322         * libio/fileops.c (_IO_new_file_close_it): Handle new
17323         _IO_FLAGS2_NOCLOSE flag.
17324         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17325         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17326         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17327         _IO_FLAGS2_NOCLOSE flag.
17328         * include/unistd.h: Add hidden_proto for dup3.
17329         Define __have_dup3.
17330         * io/dup3.c: Define hidden symbol.
17331         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17333         [BZ #7101]
17334         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17335         when an incomplete long option is used.
17336         * posix/tst-getopt_long1.c: New file.
17337         * posix/Makefile (tests): Add tst-getopt_long1.
17339         [BZ #10138]
17340         * scripts/config.guess: Update from autoconf-2.68.
17341         * scripts/config.sub: Likewise.
17343         [BZ #10157]
17344         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17345         tests into ...
17346         (has_cpuclock): ...this.  New function.
17347         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17348         macro here based on has_cpuclock code.
17350         [BZ #10149]
17351         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17352         First byte (not low byte) is now always NUL.
17353         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17355         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17356         Use non-cancelable interfaces.
17358         [BZ #9809]
17359         * locale/iso-639.def: Add entry for Sorani.
17361         [BZ #11901]
17362         * include/stdlib.h: Move include protection to the right place.
17363         Define abort_msg_s.  Declare __abort_msg with it.
17364         * stdlib/abort.c (__abort_msg): Adjust type.
17365         * assert/assert.c (__assert_fail_base): New function.  Majority
17366         of code from __assert_fail.  Allocate memory for __abort_msg with
17367         mmap.
17368         (__assert_fail): Now call __assert_fail_base.
17369         * assert/assert-perr.c: Remove bulk of implementation.  Use
17370         __assert_fail_base.
17371         * include/assert.hL Declare __assert_fail_base.
17372         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17373         mmap.
17374         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17376 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17378         [BZ #11952]
17379         [BZ #12453]
17380         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17381         until all modules are registered in the DTV.
17382         * elf/Makefile: Add rules to build and run tst-tls19.
17383         * elf/tst-tls19.c: New file.
17384         * elf/tst-tls19mod1.c: New file.
17385         * elf/tst-tls19mod2.c: New file.
17386         * elf/tst-tls19mod3.c: New file.
17387         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17389         [BZ #12083]
17390         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17391         correctly.
17393         [BZ #12601]
17394         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17395         two-byte sequence errors.
17396         * iconvdata/Makefile (tests): Add bug-iconv8.
17397         * iconvdata/bug-iconv8.c: New file.
17399         [BZ #12626]
17400         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17401         buf2 definition.
17403         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17405         [BZ #12432]
17406         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17407         (dummy_getcfa): New function.
17408         (init): Get _Unwind_GetCFA address, use dummy if not found.
17409         (backtrace_helper): In recursion check, also check whether CFA changes.
17410         (__backtrace): Completely initialize arg.
17412         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17413         storing incomplete byte sequence in state object.  Avoid testing for
17414         guaranteed too small input if we know there is enough data available.
17416 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17418         * Makeconfig (+link-pie): Indent.
17419         * Rules (binaries-pie): Define if $(have-fpie) and
17420         $(build-shared).
17421         (binaries-shared): Also filter out $(binaries-pie).
17422         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17423         * nscd/Makefile (others-pie): Add nscd.
17424         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17425         ($(objpfx)nscd): Remove command override.
17426         * login/Makefile (others-pie): Add pt_chown.
17427         ($(objpfx)pt_chown): Remove command override.
17428         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17429         remove command overrides.
17431 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17433         * libio/tst_putwc.c: Fix error messages.
17435         [BZ #12724]
17436         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17437         currently writing and seek to current position when not.
17438         * libio/Makefile (tests): Add bug-fclose1.
17439         * libio/bug-fclose1.c: New file.
17441 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17443         [BZ #12511]
17444         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17445         don't set DF_1_NODELETE here.
17446         (do_lookup_x): When entering new entry test for copy relocation
17447         and if necessary set DF_1_NODELETE flag.
17448         * elf/tst-unique4.cc: New file.
17449         * elf/tst-unique4.h: New file.
17450         * elf/tst-unique4lib.cc: New file.
17451         * elf/Makefile: Add rules to build and run tst-unique4.
17452         Patch by Piotr Bury <pbury@goahead.com>.
17454 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17456         [BZ #12052]
17457         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17459         [BZ #12625]
17460         * misc/mntent_r.c (addmntent): Flush the stream after the output
17462         [BZ #12393]
17463         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17464         (is_trusted_path_normalize): Skip initial colon.  Append slash
17465         to empty buffer.  Duplicate is_trusted_path code but allow
17466         constructed patch to be prefix.
17467         (is_dst): Allow $ORIGIN followed by /.
17468         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17469         Correct testing of result of is_trusted_path_normalize
17470         (decompose_rpath): Fix warning.
17472 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17474         [BZ #11257]
17475         * grp/initgroups.c (internal_getgrouplist): When we found the service
17476         list through the initgroups entry in nsswitch.conf do not always
17477         continue on a successful lookup.  Don't always use the
17478         __nss_group_database value if it is set.
17479         * nss/nsswitch.conf (initgroups): Change action for successful db
17480         lookup to continue for compatibility.
17482 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17484         [BZ #11532]
17485         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17486         and CP774 modules.
17487         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17488         and CP774 modules.
17489         * iconvdata/tst-tables.sh: Likewise.
17490         * iconvdata/cp770.c: New file.
17491         * iconvdata/cp771.c: New file.
17492         * iconvdata/cp772.c: New file.
17493         * iconvdata/cp773.c: New file.
17494         * iconvdata/cp774.c: New file.
17495         * iconvdata/testdata/CP770: New file.
17496         * iconvdata/testdata/CP770..UTF8: New file.
17497         * iconvdata/testdata/CP771: New file.
17498         * iconvdata/testdata/CP771..UTF8: New file.
17499         * iconvdata/testdata/CP772: New file.
17500         * iconvdata/testdata/CP772..UTF8: New file.
17501         * iconvdata/testdata/CP773: New file.
17502         * iconvdata/testdata/CP773..UTF8: New file.
17503         * iconvdata/testdata/CP774: New file.
17504         * iconvdata/testdata/CP774..UTF8: New file.
17506         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17507         END CHARMAP line.
17508         * iconvdata/gen-8bit-gap.sh: Likewise.
17509         * iconvdata/gen-8bit.sh: Likewise.
17511         * locale/iso-639.def: Add ary entry.
17513         [BZ #11258]
17514         * locale/C-translit.h.in: Add U20A1 transliteration.
17516         [BZ #12178]
17517         * locale/iso-639.def: Add wae entry.
17518         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17520         [BZ #12545]
17521         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17522         for n.
17524         [BZ #12711]
17525         * locale/C-translit.h.in: Add entry for U20B9.
17526         Patch by pravin.d.s@gmail.com.
17528 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17530         [BZ #12713]
17531         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17532         ENAMETOOLONG use generic getcwd.
17533         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17534         in rtld.  Use *stat64.
17535         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17536         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17537         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17538         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17539         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17540         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17541         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17542         __fstatat64 macros.
17543         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17544         * dirent/rewinddir.c: Add libc_hidden_def.
17545         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17546         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17548         * include/dirent.h (__alloc_dir): Add flags parameter.
17549         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17550         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17551         __alloc_dir.
17552         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17553         from fdopendir if O_CLOEXEC is already set.
17555 2011-03-15  Alan Modra  <amodra@gmail.com>
17557         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17558         l_tls_firstbyte_offset non-zero.  Save padding offset in
17559         l_tls_firstbyte_offset for later use.
17560         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17561         freeing static tls block.
17563 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17565         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17566         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17567         being defined by the kernel headers.
17569 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17571         [BZ #12734]
17572         * resolv/resolv.h: Define RES_NOTLDQUERY.
17573         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17574         no-tld-query and set RES_NOTLDQUERY.
17575         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17576         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17577         modern BIND to search name as TLD unless forbidden.
17579 2011-05-07  Petr Baudis  <pasky@suse.cz>
17580             Ulrich Drepper  <drepper@gmail.com>
17582         [BZ #12393]
17583         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17584         (is_trusted_path): ...to here.
17585         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17586         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17587         using is_trusted_path_normalize() in setuid scripts.
17589 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17591         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17592         __BEGIN/__END_DECLS.
17594 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17596         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17597         NSS_STATUS_NOTFOUND if no record was found.
17599 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17601         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17602         (headers-not-in-tirpc): Remove rpc/netdb.h
17603         * resolv/netdb.h: Revert last change.
17605 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17607         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17608         circular dependency between libgcc.a and libc.a.
17610 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17612         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17613         * nis/Makefile: Don't install rpcsvc/*.
17614         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17615         instead of <rpc/types.h>.
17616         (MAXHOSTNAMELEN): Define.
17618 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17620         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17622 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17624         [BZ #12714]
17625         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17626         gethostbyname4_r when IPv6 results are possible.
17628 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17630         [BZ #12723]
17631         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17632         _PC_PIPE_BUF handling.
17634 2011-04-30  Bruno Haible  <bruno@clisp.org>
17636         [BZ #12717]
17637         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17638         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17639         to 'int'.
17640         * inet/getnameinfo.c (getnameinfo): Likewise.
17642 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17644         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17645         to groups setting in database lookup.
17646         * nss/nsswitch.conf: Add initgroups entry.
17648 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17650         [BZ #12685]
17651         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17652         mode string.
17653         Patch by Eric Blake <eblake@redhat.com>.
17655 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17657         * sunrpc/Makefile (need-export-routines): Add svc_run.
17658         (routines): Remove svc_run.
17659         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17660         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17661         * sunrpc/svc_run.c (svc_run): Likewise.
17662         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17664 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17666         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17667         problem in reallocation in last patch.
17669 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17671         * sunrpc/Makefile: Move inclusion of Rules.
17673 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17675         * nss/nss_files/files-initgroups.c: New file.
17676         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17677         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17678         _nss_files_initgroups_dyn.
17680 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17682         * elf/elf.h (R_ARM_IRELATIVE): Define.
17684 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17686         * po/ru.po: Update from translation team.
17688 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17690         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17691         dependencies.
17693 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17695         [BZ #12653]
17696         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17697         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17698         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17699         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17700         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17702 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17704         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17705         differing bytes.
17706         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17707         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17708         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17710 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17712         [BZ #12420]
17713         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17714         storing it.
17715         * stdlib/bug-getcontext.c: New file.
17716         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17718 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17720         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17721         instructions into .machine "z9-109".
17722         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17723         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17725 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17727         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17728         between environment variables and auxiliary vector.
17730 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17732         * Makefile: Add rules to build linkobj/libc.so.
17733         * include/libc-symbols.h: Define libc_hidden_nolink.
17734         * include/rpc/auth.h: Mark functions which are to be hidden.
17735         * include/rpc/auth_des.h: Likewise.
17736         * include/rpc/auth_unix.h: Likewise.
17737         * include/rpc/clnt.h: Likewise.
17738         * include/rpc/des_crypt.h: Likewise.
17739         * include/rpc/key_prot.h: Likewise.
17740         * include/rpc/pmap_clnt.h: Likewise.
17741         * include/rpc/pmap_prot.h: Likewise.
17742         * include/rpc/pmap_rmt.h: Likewise.
17743         * include/rpc/rpc_msg.h: Likewise.
17744         * include/rpc/svc.h: Likewise.
17745         * include/rpc/svc_auth.h: Likewise.
17746         * include/rpc/xdr.h: Likewise.
17747         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17748         * nss/Makefile: Likewise.
17749         * sunrpc/Makefile: Don't install headers.  Build library with normal
17750         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17751         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17752         for the compat linking library.  Remove use of INTDEF/INTUSE.
17753         * sunrpc/auth_none.c: Likewise.
17754         * sunrpc/auth_unix.c: Likewise.
17755         * sunrpc/authdes_prot.c: Likewise.
17756         * sunrpc/authuxprot.c: Likewise.
17757         * sunrpc/clnt_gen.c: Likewise.
17758         * sunrpc/clnt_perr.c: Likewise.
17759         * sunrpc/clnt_raw.c: Likewise.
17760         * sunrpc/clnt_simp.c: Likewise.
17761         * sunrpc/clnt_tcp.c: Likewise.
17762         * sunrpc/clnt_udp.c: Likewise.
17763         * sunrpc/clnt_unix.c: Likewise.
17764         * sunrpc/des_crypt.c: Likewise.
17765         * sunrpc/des_soft.c: Likewise.
17766         * sunrpc/get_myaddr.c: Likewise.
17767         * sunrpc/key_call.c: Likewise.
17768         * sunrpc/key_prot.c: Likewise.
17769         * sunrpc/netname.c: Likewise.
17770         * sunrpc/pm_getmaps.c: Likewise.
17771         * sunrpc/pm_getport.c: Likewise.
17772         * sunrpc/pmap_clnt.c: Likewise.
17773         * sunrpc/pmap_prot.c: Likewise.
17774         * sunrpc/pmap_prot2.c: Likewise.
17775         * sunrpc/pmap_rmt.c: Likewise.
17776         * sunrpc/publickey.c: Likewise.
17777         * sunrpc/rpc_cmsg.c: Likewise.
17778         * sunrpc/rpc_common.c: Likewise.
17779         * sunrpc/rpc_dtable.c: Likewise.
17780         * sunrpc/rpc_prot.c: Likewise.
17781         * sunrpc/rpc_thread.c: Likewise.
17782         * sunrpc/rtime.c: Likewise.
17783         * sunrpc/svc.c: Likewise.
17784         * sunrpc/svc_auth.c: Likewise.
17785         * sunrpc/svc_authux.c: Likewise.
17786         * sunrpc/svc_raw.c: Likewise.
17787         * sunrpc/svc_run.c: Likewise.
17788         * sunrpc/svc_simple.c: Likewise.
17789         * sunrpc/svc_tcp.c: Likewise.
17790         * sunrpc/svc_udp.c: Likewise.
17791         * sunrpc/svc_unix.c: Likewise.
17792         * sunrpc/svcauth_des.c: Likewise.
17793         * sunrpc/xcrypt.c: Likewise.
17794         * sunrpc/xdr.c: Likewise.
17795         * sunrpc/xdr_array.c: Likewise.
17796         * sunrpc/xdr_float.c: Likewise.
17797         * sunrpc/xdr_intXX_t.c: Likewise.
17798         * sunrpc/xdr_mem.c: Likewise.
17799         * sunrpc/xdr_rec.c: Likewise.
17800         * sunrpc/xdr_ref.c: Likewise.
17801         * sunrpc/xdr_sizeof.c: Likewise.
17802         * sunrpc/xdr_stdio.c: Likewise.
17804 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17806         [BZ #12650]
17807         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17808         * sysdeps/ia64/dl-tls.h: Likewise.
17809         * sysdeps/powerpc/dl-tls.h: Likewise.
17810         * sysdeps/s390/dl-tls.h: Likewise.
17811         * sysdeps/sh/dl-tls.h: Likewise.
17812         * sysdeps/sparc/dl-tls.h: Likewise.
17813         * sysdeps/x86_64/dl-tls.h: Likewise.
17814         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17816 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17818         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17819         rpath element also skip the following colon.
17820         (expand_dynamic_string_token): Add is_path parameter and pass
17821         down to DL_DST_REQUIRED and _dl_dst_substitute.
17822         (decompose_rpath): Call expand_dynamic_string_token with
17823         non-zero is_path.  Ignore empty rpaths.
17824         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17825         with zero is_path.
17827 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17830         Make cancelable.
17832 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17834         [BZ #12655]
17835         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17836         Patch by Filipe David Manana <fdmanana@apache.org>.
17838 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17840         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17841         Maintain aligned stack.
17842         (CHECK_RSP): Remove unused macro.
17844 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17846         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17847         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17849 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17851         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17853         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17855 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17857         [BZ #12518]
17858         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17859         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17860         * sysdeps/x86_64/memmove.c: New file.
17861         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17862         (memcpy): Renamed to ...
17863         (__new_memcpy): This.
17864         (memcpy): Provide GLIBC_2_14 memcpy.
17865         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17866         (memcpy): Provide GLIBC_2_2_5 memcpy.
17868 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17870         [BZ #12631]
17871         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17873 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17875         * misc/syncfs.c: New file.
17876         * misc/Makefile (routines): Add syncfs.
17877         * posix/unistd.h: Declare syncfs.
17878         * sysdeps/unix/syscalls.list: Add syncfs.
17880 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17882         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17883         open_by_handle_at.
17884         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17885         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17886         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17887         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17888         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17889         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17890         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17892 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17894         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17895         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17896         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17897         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17898         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17899         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17900         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17902         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17903         sync_file_range.c with -fexceptions.
17904         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17905         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17906         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17907         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17908         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17909         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17910         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17911         sync_file_range as cancellation point
17912         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17913         now a wrapper around __call_sync_file_range with cancellation handling.
17914         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17915         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17916         function name to __call_sync_file_range.
17917         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17918         Add call_sync_file_range.
17920 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17922         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17923         bits/timex.h.
17925 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17927         * iconv/iconv.h: Fix typo in comment.
17928         * io/fcntl.h: Likewise.
17929         * libio/stdio.h: Likewise.
17930         * posix/spawn.h: Likewise.
17931         * posix/unistd.h: Likewise.
17932         * stdlib/stdlib.h: Likewise.
17933         * time/time.h: Likewise.
17934         * wcsmbs/wchar.h: Likewise.
17936         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17937         open_by_handle): Add.
17938         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17939         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17940         Augment a few comments.
17941         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17942         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17943         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17944         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17945         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17946         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17947         open_by_handle.
17949         * io/fcntl.h (AT_EMPTY_PATH): Define.
17951 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17953         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17954         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17955         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17956         to...
17957         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17958         * Versions.def: Add GLIBC_2.14.
17959         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17960         Export.
17962 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17964         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17965         round counter.
17966         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17968 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17970         [BZ #12597]
17971         * string/test-strncmp.c (do_page_test): New function.
17972         (check2): Likewise.
17973         (test_main): Call check2.
17974         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17976 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17978         [BZ #12587]
17979         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17980         Handle cache information in CPU leaf 4.
17981         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17983 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17985         [BZ #12583]
17986         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17987         character representation.
17988         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17990 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17992         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17993         END(__isnan) to END(__isnanf) to match function entry point/label
17994         EALIGN(__isnanf,...).
17996 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17998         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18000 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18002         [BZ #12510]
18003         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18004         copy from the symbol referenced in the relocation to initialize the
18005         used variable.
18006         Patch by Piotr Bury <pbury@goahead.com>.
18007         * elf/Makefile: Add rules to build and tst-unique3.
18008         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18009         * elf/tst-unique3.cc: New file.
18010         * elf/tst-unique3.h: New file.
18011         * elf/tst-unique3lib.cc: New file.
18012         * elf/tst-unique3lib2.cc: New file.
18014         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18016 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18018         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18019         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18020         to _start.
18022 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18024         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18025         to-be-loaded object along a path to loader is ld.so.
18027 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18028             Ulrich Drepper  <drepper@gmail.com>
18030         * sysdeps/x86_64/memset.S: After aligning destination, code
18031         branches to different locations depending on the value of
18032         misalignment, when multiarch is enabled. Fix this.
18034 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18036         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18037         Set _x86_64_preferred_memory_instruction for AMD processsors.
18038         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18039         Set bit_Prefer_SSE_for_memop for AMD processors.
18041 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18043         * libio/fmemopen.c (fmemopen): Optimize a bit.
18045 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18047         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18049 2011-03-03  Roland McGrath  <roland@redhat.com>
18051         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18053 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18055         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18056         __bzero_ultra1 instead of __memset_ultra1.
18058 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18059             Ulrich Drepper  <drepper@gmail.com>
18061         [BZ #12509]
18062         * include/link.h (struct link_map): Add l_orig_initfini.
18063         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18064         returning unsuccessfully.
18065         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18066         close of a file loaded at startup, restore the original l_initfini
18067         list.
18068         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18069         list, store the pointer.
18070         * elf/Makefile ($(objpfx)noload-mem): New rule.
18071         (noload-ENV): Define.
18072         (tests): Add $(objpfx)noload-mem.
18073         * elf/noload.c: Include <memcheck.h>.
18074         (main): Call mtrace.  Close all opened handles.
18076 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18078         [BZ #12454]
18079         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18080         dependencies are missing.
18082 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18084         Fix __if_freereq crash: Unlike the generic version which uses free,
18085         Hurd needs munmap.
18086         * sysdeps/mach/hurd/ifreq.h: New file.
18088 2011-01-27  Petr Baudis  <pasky@suse.cz>
18089             Ulrich Drepper  <drepper@gmail.com>
18091         [BZ 12445]#
18092         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18093         to extend_alloca().
18094         * stdio-common/bug23.c: New file.
18095         * stdio-common/Makefile (tests): Add bug23.
18097 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18098             Ulrich Drepper  <drepper@gmail.com>
18100         [BZ #12489]
18101         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18102         before performing relro protection.  At old place add assertion
18103         to make sure nothing changed.
18105 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18106             Glauber de Oliveira Costa  <glommer@gmail.com>
18108         * elf/elf.h: Add new ARM TLS relocs.
18110 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18113         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18114         cast from r3.
18115         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18116         'tests' variable.
18117         * sysdeps/wordsize-64/tst-writev.c: New file.
18119 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18121         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18122         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18123         insns in _dl_start to prevent a TOC reference before relocs are
18124         resolved.
18126 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18128         [BZ #12469]
18129         * Makeconfig: Remove RANLIB definition.
18130         * Makerules: Don't use RANLIB.
18131         * aclocal.m4: Remove ranlib test.
18132         * configure.in: No need to check for ranlib.
18133         * elf/rtld-Rules: Don't use RANLIB.
18135 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18137         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18138         protection macro.
18139         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18140         inclusion protection macro.
18142         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18143         SIGRTMIN and SIGRTMAX and print information in that case only when
18144         SIGRTMIN is defined.
18146 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18148         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18149         arginfo fn returning -1.
18151         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18152         and thousands string is zero terminated.
18154 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18156         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18157         sysdeps/unix/sysv/linux/bits/socket.h.
18159 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18161         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18162         (__CPU_COUNT): Remove old macros.
18163         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18164         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18165         (__CPU_ALLOC, __CPU_FREE): Add macros.
18166         (__sched_cpualloc, __sched_cpufree): Add declarations.
18168 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18170         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18171         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18172         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18173         (readdhstai): Return value of addhstaiX call.
18174         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18175         (addgrbyX): Return value returned by cache_addgr.
18176         (readdgrbyname): Return value returned by addgrbyX.
18177         (readdgrbygid): Likewise.
18178         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18179         (addpwbyX): Return value returned by cache_addpw.
18180         (readdpwbyname): Return value returned by addhstbyX.
18181         (readdpwbyuid): Likewise.
18182         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18183         (addservbyX): Return value returned by cache_addserv.
18184         (readdservbyname): Return value returned by addservbyX:
18185         (readdservbyport): Likewise.
18186         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18187         (addhstbyX): Return value returned by cache_addhst.
18188         (readdhstbyname): Return value returned by addhstbyX.
18189         (readdhstbyaddr): Likewise.
18190         (readdhstbynamev6): Likewise.
18191         (readdhstbyaddrv6): Likewise.
18192         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18193         (readdinitgroups): Return value returned by addinitgroupsX.
18194         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18195         (prune_cache): Keep track of timeout value of re-added entries.
18196         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18197         * nscd/nscd.h: Adjust prototypes of readd* functions.
18199 2011-02-04  Roland McGrath  <roland@redhat.com>
18201         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18202         (nis_stats): Likewise.
18203         * nis/nis_modify.c (nis_modify): Likewise.
18204         * nis/nis_remove.c (nis_remove): Likewise.
18205         * nis/nis_add.c (nis_add): Likewise.
18207         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18209         * posix/fnmatch_loop.c: Add some consts.
18211         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18213 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18215         [BZ #12460]
18216         * config.make.in (config-cflags-novzeroupper): Define.
18217         * configure.in: Substitute libc_cv_cc_novzeroupper.
18218         * elf/Makefile (AVX-CFLAGS): Define.
18219         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18220         (CFLAGS-tst-auditmod4a.c): Likewise.
18221         (CFLAGS-tst-auditmod4b.c): Likewise.
18222         (CFLAGS-tst-auditmod6b.c): Likewise.
18223         (CFLAGS-tst-auditmod6c.c): Likewise.
18224         (CFLAGS-tst-auditmod7b.c): Likewise.
18225         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18227 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18229         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18230         function to the callback.
18231         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18233 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18235         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18236         of errno.
18238 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18240         [BZ #11724]
18241         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18242         of constructors.
18243         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18244         of destructors.
18245         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18247         [BZ #11724]
18248         * elf/Makefile: Add rules to build and run new test.
18249         * elf/tst-initorder.c: New file.
18250         * elf/tst-initorder.exp: New file.
18251         * elf/tst-initordera1.c: New file.
18252         * elf/tst-initordera2.c: New file.
18253         * elf/tst-initordera3.c: New file.
18254         * elf/tst-initordera4.c: New file.
18255         * elf/tst-initorderb1.c: New file.
18256         * elf/tst-initorderb2.c: New file.
18257         * elf/tst-order-a1.c: New file.
18258         * elf/tst-order-a2.c: New file.
18259         * elf/tst-order-a3.c: New file.
18260         * elf/tst-order-a4.c: New file.
18261         * elf/tst-order-b1.c: New file.
18262         * elf/tst-order-b2.c: New file.
18263         * elf/tst-order-main.c: New file.
18264         New test case by George Gensure <werkt0@gmail.com>.
18266 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18268         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18269         decoding ACE if AI_CANONIDN.
18271 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18273         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18275 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18277         * version.h (RELEASE): Bump for 2.13 release.
18278         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18280         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18282         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18283         MADV_NOHUGEPAGE.
18284         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18285         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18286         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18287         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18288         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18289         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18291         * posix/getconf.c: Update copyright year.
18292         * catgets/gencat.c: Likewise.
18293         * csu/version.c: Likewise.
18294         * debug/catchsegv.sh: Likewise.
18295         * debug/xtrace.sh: Likewise.
18296         * elf/ldconfig.c: Likewise.
18297         * elf/ldd.bash.in: Likewise.
18298         * elf/sprof.c (print_version): Likewise.
18299         * iconv/iconv_prog.c: Likewise.
18300         * iconv/iconvconfig.c: Likewise.
18301         * locale/programs/locale.c: Likewise.
18302         * locale/programs/localedef.c: Likewise.
18303         * malloc/memusage.sh: Likewise.
18304         * malloc/mtrace.pl: Likewise.
18305         * nscd/nscd.c (print_version): Likewise.
18306         * nss/getent.c: Likewise.
18308         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18309         PF_CAIF, and PF_ALG.
18310         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18312 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18314         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18315         (modules-names): Use them.
18316         (ifunc-test-modules, ifunc-pie-tests): Define.
18317         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18318         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18319         (test-extras): Likewise.
18320         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18321         $(compile-command.c).
18322         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18323         (all-built-dso): Define.
18324         (check-textrel.out, check-execstack.out): Depend on it.
18326         * configure.in: Don't override --enable-multi-arch.
18328 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18330         [BZ #6812]
18331         * nscd/hstcache.c (tryagain): Define.
18332         (cache_addhst): Return tryagain not notfound for temporary errors.
18333         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18334         failed.
18336 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18338         [BZ #10563]
18339         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18340         to make the syscall.
18341         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18343         [BZ #12378]
18344         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18345         and fall back to matching as normal character if the string ends before
18346         the matching ']' is found.  This is what POSIX requires.
18347         * posix/testfnm.c: Adjust test result.
18348         * posix/globtest.sh: Adjust test result.  Add new test.
18349         * posix/tst-fnmatch.input: Likewise.
18350         * posix/tst-fnmatch2.c: Add new test.
18352 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18354         * elf/Makefile (check-execstack): Revert last change.  Depend on
18355         check-execstack.h.
18356         (check-execstack.h): New target.
18357         (generated): Add check-execstack.h.
18358         * elf/check-execstack.c: Include "check-execstack.h".
18359         (main): Revert last change.
18360         (handle_file): Return zero if GNU_STACK is absent and
18361         DEFAULT_STACK_PERMS doesn't include PF_X.
18363 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18365         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18366         in child fails because the descriptor is already closed.
18367         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18368         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18369         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18371         [BZ #12397]
18372         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18373         syscall.
18375         [BZ #10484]
18376         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18377         temporary buffer used to handle multi lookups locally.
18378         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18380 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18382         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18383         loader is ld.so.
18385 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18387         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18388         alignment for SSE2.
18390 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18392         [BZ #12394]
18393         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18394         characters.  When rounding increased number of integer digits recompute
18395         number of groups.
18396         * stdio-common/tst-grouping.c: New file.
18397         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18399 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18401         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18402         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18404         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18405         void.
18406         * bits/select.h: Likewise.
18408 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18410         * po/ja.po: Update from translation team.
18412 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18414         [BZ #11155]
18415         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18416         implementation just like for lxstat, fxstatat, et al.
18418 2010-12-27  Jim Meyering  <meyering@redhat.com>
18420         [BZ #12348]
18421         * posix/regexec.c (build_trtable): Return failure indication upon
18422         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18424 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18426         [BZ #12201]
18427         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18428         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18429         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18430         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18432         [BZ #12207]
18433         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18435         [BZ #12204]
18436         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18437         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18439 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18441         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18442         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18443         script has SORT_BY_INIT_PRIORITY.
18444         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18445         NO_CTORS_DTORS_SECTIONS is defined.
18446         * elf/soinit.c: Likewise.
18447         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18448         NO_CTORS_DTORS_SECTIONS is defined.
18449         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18450         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18451         * sysdeps/sh/init-first.c: Likewise.
18452         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18454 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18456         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18457         always use the slow path.
18459 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18461         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18462         similar rule which adds the sysdep directories to the header search in
18463         order to pick up the correct platform stackinfo.h.
18464         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18465         perform test if it is, otherwise return successfully without testing.
18466         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18467         DEFAULT_STACK_PERMS define in stackinfo.h.
18468         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18469         defined in stackinfo.h.
18470         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18471         DEFAULT_STACK_PERMS defined in stackinfo.h.
18472         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18473         * sysdeps/ia64/stackinfo.h: Likewise.
18474         * sysdeps/s390/stackinfo.h: Likewise.
18475         * sysdeps/sh/stackinfo.h: Likewise.
18476         * sysdeps/sparc/stackinfo.h: Likewise.
18477         * sysdeps/x86_64/stackinfo.h: Likewise.
18478         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18479         PF_X for powerpc64.  Retain PF_X for powerpc32.
18481 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18483         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18484         accurately.
18485         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18486         GETDENTS_64BIT_ALIGNED.
18488 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18490         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18492 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18494         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18495         _GNU_SOURCE.
18497         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18498         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18499         Remove __restrict.
18500         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18501         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18503 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18505         [BZ #11655]
18506         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18507         are initialized.
18509 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18511         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18513 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18515         * po/it.po: Update from translation team.
18517 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18519         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18520         unused codes.
18522 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18524         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18526 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18528         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18529         specially.
18530         (gaih_getanswer_slice): Likewise.
18532 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18534         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18536 2010-05-31  Petr Baudis  <pasky@suse.cz>
18538         [BZ #11149]
18539         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18540         silently even in the chroot mode.
18542 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18544         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18545         last patch a bit.  Pretty printing
18547 2010-05-31  Petr Baudis <pasky@suse.cz>
18549         [BZ #10085]
18550         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18551         initialization of skip_initgroups_dyn.
18553 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18555         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18556         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18558 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18560         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18562 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18564         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18565         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18566         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18567         ($(objpfx)tst-fnmatch-mem): New rule.
18568         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18569         * posix/tst-fnmatch.c (main): Call mtrace.
18571 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18573         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18574         Support Intel processor model 6 and model 0x2c.
18576 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18578         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18579           signed comparison.
18581 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18583         [BZ #12205]
18584         * string/test-strncasecmp.c (check_result): New function.
18585         (do_one_test): Use it.
18586         (check1): New function.
18587         (test_main): Use it.
18588         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18589         Support strcasecmp and strncasecmp.
18591 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18593         [BZ #12194]
18594         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18595         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18597 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18599         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18600         IFUNC support.
18601         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18602         memset-x86-64.
18603         * sysdeps/x86_64/multiarch/bzero.S: New file.
18604         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18605         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18606         * sysdeps/x86_64/multiarch/memset.S: New file.
18607         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18608         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18609         Set bit_Prefer_SSE_for_memop for Intel processors.
18610         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18611         Define.
18612         (index_Prefer_SSE_for_memop): Define.
18613         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18615 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18617         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18618         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18620 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18622         [BZ #12191]
18623         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18624         (__x86_64_raw_data_cache_size_half): Likewise.
18625         (__x86_64_raw_shared_cache_size): Likewise.
18626         (__x86_64_raw_shared_cache_size_half): Likewise.
18628         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18629         (__x86_64_raw_data_cache_size_half): Likewise.
18630         (__x86_64_raw_shared_cache_size): Likewise.
18631         (__x86_64_raw_shared_cache_size_half): Likewise.
18632         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18633         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18634         and __x86_64_raw_shared_cache_size_half.  Round
18635         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18636         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18637         to multiple of 256 bytes.
18639 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18641         [BZ #12167]
18642         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18643         of inacessible symlinks.  Verify result of symlink before returning it.
18644         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18645         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18647 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18649         * math/math.h (isinf): Fix typo in comment.
18651 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18653         * po/da.po: Update from translation team.
18655 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18657         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18658         is added to the list.
18660 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18661             Ulrich Drepper  <drepper@gmail.com>
18663         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18664         the global list here.  Move code to...
18665         (_dl_add_to_namespace_list): ...here.  New function.
18666         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18667         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18668         * elf/dl-load.c (lose): Don't remove the element from the list.
18669         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18670         (_dl_map_object): Likewise.
18672 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18674         [BZ #12159]
18675         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18676         into all bytes of SSE register.
18677         Patch by Richard Li <richardpku@gmail.com>.
18679 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18681         [BZ #12140]
18682         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18683         perturbing.
18685 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18687         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18688         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18689         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18690         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18692         submachine.
18693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18695 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18697         * include/dlfcn.h (__RTLD_SECURE): Define.
18698         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18699         mode & __RTLD_SECURE instead.
18700         (open_path): Rename preloaded parameter to secure.
18701         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18702         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18703         * elf/dl-deps.c (openaux): Likewise.
18704         * elf/rtld.c (struct map_args): Remove is_preloaded.
18705         (map_doit): Don't use it.
18706         (dl_main): Likewise.
18707         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18708         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18710 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18712         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18713         (sysd-rules-targets): Remove duplicates.
18714         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18715         rtld-%.$o dependency.
18717 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18719         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18720         _dl_map_object do it.
18722 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18724         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18725         fast fma builtins, define the macros in the C99 standard.
18726         (FP_FAST_FMAF): Likewise.
18727         (FP_FAST_FMAL): Likewise.
18728         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18730         * bits/mathdef.h: Update copyright year.
18731         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18733 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18735         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18736         builtins, define the macros in the C99 standard.
18737         (FP_FAST_FMAF): Likewise.
18738         (FP_FAST_FMAL): Likewise.
18739         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18740         multiply/add.
18741         (FP_FAST_FMAF): Likewise.
18743 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18745         [BZ #3268]
18746         * math/libm-test.inc (fma_test): Some new testcases.
18747         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18748         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18749         y and infinite z.  Do multiplication by C already in long double.
18750         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18751         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18752         y and infinite z.  Do bitwise or of inexact bit into u.d.
18753         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18754         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18755         * sysdeps/i386/fpu/s_fma.S: Removed.
18756         * sysdeps/i386/fpu/s_fmal.S: Removed.
18758 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18760         [BZ #3268]
18761         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18762         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18763         computation is not scheduled after fetestexcept.  Fix value
18764         of minimum denormal long double.
18766 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18768         [BZ #3268]
18769         * math/libm-test.inc (fma_test): Add some more tests.
18770         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18771         correctly.
18773 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18775         * scripts/data/localplt-s390-linux-gnu.data: New file.
18776         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18778 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18780         [BZ #3268]
18781         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18782         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18783         instead of dbl-64.
18784         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18785         inlines.
18786         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18787         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18788         if one of x and y is very large and the other is subnormal.
18789         * sysdeps/s390/fpu/s_fmaf.c: New file.
18790         * sysdeps/s390/fpu/s_fma.c: New file.
18791         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18792         * sysdeps/powerpc/fpu/s_fma.S: New file.
18793         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18794         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18795         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18797 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18799         [BZ #3268]
18800         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18801         fma tests.
18802         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18803         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18804         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18805         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18806         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18807         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18808         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18810 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18812         [BZ #12078]
18813         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18814         * posix/bug-regex31.input: Add test case.
18816 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18818         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18819         * posix/bug-regex31.input: New file.
18821         [BZ #12078]
18822         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18823         (parse_sub_exp): Fix last change, use postorder.
18825         * posix/bug-regex31.c: New file.
18826         * posix/Makefile: Add rules to build and run bug-regex31.
18828         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18830         [BZ #12078]
18831         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18833         [BZ #12108]
18834         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18835         to have entries in sys_siglist.
18837         [BZ #12093]
18838         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18839         be NULL.
18841 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18843         [BZ #3268]
18844         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18845         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18846         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18847         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18848         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18849         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18850         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18851         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18852         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18853         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18854         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18855         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18856         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18857         * math/ftestexcept.c (fetestexcept): Likewise.
18858         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18859         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18860         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18861         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18862         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18863         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18864         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18866 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18868         [BZ #12107]
18869         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18870         newline.
18872 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18874         * string/bug-strstr1.c: New file.
18875         * string/Makefile: Add rules to build and run bug-strstr1.
18877 2010-10-05  Eric Blake  <eblake@redhat.com>
18879         [BZ #12092]
18880         * string/str-two-way.h (two_way_long_needle): Always clear memory
18881         when skipping input due to the shift table.
18883 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18885         [BZ #12005]
18886         * malloc/mcheck.c: Handle large requests.
18888         [BZ #12077]
18889         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18890         for strncmp and strncasecmp.
18891         * string/stratcliff.c: Add tests for strcmp and strncmp.
18892         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18894 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18896         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18897         __set_fpscr.
18899 2010-09-30  Andreas Jaeger  <aj@suse.de>
18901         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18902         (CGROUP_SUPER_MAGIC): Define.
18903         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18904         Handle btrfs and cgroup file systems.
18905         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18906         Likewise.
18908 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18910         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18911         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18913 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18915         [BZ #12067]
18916         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18917         trying to locate the ELF header.
18919 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18921         [BZ #11611]
18922         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18923         Mask out sign-bit copies when constructing f_fsid.
18925 2010-09-24  Petr Baudis <pasky@suse.cz>
18927         * debug/stack_chk_fail_local.c: Add missing licence exception.
18928         * debug/warning-nop.c: Likewise.
18930 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18932         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18933         implementing getdents64 using getdents syscall, set d_type if
18934         __ASSUME_GETDENTS32_D_TYPE.
18936 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18938         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18939         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18941 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18943         [BZ #12037]
18944         * posix/unistd.h: Undo change of feature selection for ftruncate from
18945         2010-01-11.
18947 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18949         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18950         detection.
18952 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18954         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18955         fanotify_mark.
18956         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18958 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18960         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18961         variables after CHECK_SP call.
18962         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18964 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18965             Ulrich Drepper  <drepper@redhat.com>
18967         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18968         re-relocationg ld.so.
18969         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18970         _dl_init_paths call.
18971         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18972         here anymore.
18974 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18976         * resolv/res_init.c (__res_vinit): Count the default server we added.
18978 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18979             Ulrich Drepper  <drepper@redhat.com>
18981         [BZ #11968]
18982         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18983         (____longjmp_chk): Use %ebx for saving value across system call.
18984         Add unwind info.
18986 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18988         * manual/Makefile: Don't mix pattern rules with normal rules.
18990 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18992         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18993         operation.
18994         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18995         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18996         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18997         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18998         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18999         Likewise.
19001 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19003         [BZ #11979]
19004         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19005         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19007 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19009         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19010         * sysdeps/x86_64/addmul_1.S: Likewise.
19011         * sysdeps/x86_64/lshift.S: Likewise.
19012         * sysdeps/x86_64/mul_1.S: Likewise.
19013         * sysdeps/x86_64/rshift.S: Likewise.
19014         * sysdeps/x86_64/sub_n.S: Likewise.
19015         * sysdeps/x86_64/submul_1.S: Likewise.
19017 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19019         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19020         Define __sched_param instead of SCHED_* and sched_param when
19021         <bits/sched.h> is included with __need_schedparam defined.
19022         * bits/sched.h [__need_schedparam]
19023         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19024         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19025         (__defined_schedparam): Define to 1.
19026         (__sched_param): New structure, identical to sched_param.
19027         (__need_schedparam): Undefine.
19029 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19031         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19032         (epoll_create1): Declare.
19034         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19036 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19038         [BZ #7066]
19039         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19040         shifting retval into place.
19042 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19044         * nis/rpcsvc/nis.h: Update copyright notice.
19045         * nis/rpcsvc/nis.x: Likewise.
19046         * nis/rpcsvc/nis_callback.h: Likewise.
19047         * nis/rpcsvc/nis_callback.x: Likewise.
19048         * nis/rpcsvc/nis_object.x: Likewise.
19049         * nis/rpcsvc/nis_tags.h: Likewise.
19050         * nis/rpcsvc/yp.h: Likewise.
19051         * nis/rpcsvc/yp.x: Likewise.
19052         * nis/rpcsvc/ypupd.h: Likewise.
19053         * nis/yp_xdr.c: Likewise.
19054         * nis/ypupdate_xdr.c: Likewise.
19056         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19057         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19058         (pmap_getport): Use __libc_rpc_getport.
19059         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19060         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19061         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19063 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19066         fanotify_mark.
19068 2010-08-27  Roland McGrath  <roland@redhat.com>
19070         * sysdeps/i386/i686/multiarch/Makefile
19071         (CFLAGS-varshift.c): New variable.
19073 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19075         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19076         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19078         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19080         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19082 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19084         * sysdeps/x86_64/strlen.S: Unroll the loop.
19085         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19086         strlen-sse2 strlen-sse2-bsf.
19087         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19088         __strlen_no_bsf if bit_Slow_BSF is set.
19089         (__strlen_sse42): Removed.
19090         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19091         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19093 2010-08-25  Roland McGrath  <roland@redhat.com>
19095         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19096         * sysdeps/x86_64/multiarch/varshift.c: New file.
19097         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19098         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19099         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19100         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19102 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19104         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19105         strlen-sse2 strlen-sse2-bsf.
19106         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19107         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19108         (__strlen_sse2): Removed.
19109         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19110         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19111         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19112         bit_Slow_BSF for Atom.
19113         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19114         (index_Slow_BSF): Define.
19115         (HAS_SLOW_BSF): Define.
19117 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19119         [BZ #10851]
19120         * resolv/res_init.c (__res_vinit): When no server address at all
19121         is given default to loopback.
19123 2010-08-24  Roland McGrath  <roland@redhat.com>
19125         * configure.in: Remove config-name.h generation.
19126         * configure: Regenerated.
19127         * config-name.in: File removed.
19128         * scripts/config-uname.sh: New file.
19129         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19130         ($(objdir)config-name.h): New target.
19132         * sunrpc/rpc_parse.h: Avoid nested comment.
19134 2010-08-24  Richard Henderson  <rth@redhat.com>
19135             Ulrich Drepper  <drepper@redhat.com>
19136             H.J. Lu  <hongjiu.lu@intel.com>
19138         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19139         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19140         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19141         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19142         _mm_alignr_epi8 with _mm_loadu_si128.
19143         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19144         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19145         (__m128i_shift_right): Removed.
19146         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19147         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19148         * sysdeps/x86_64/multiarch/varshift.h: New file.
19149         * sysdeps/x86_64/multiarch/varshift.S: New file.
19151 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19153         * configure.in: Move assembler checks to before sysdep dir checking.
19155 2010-08-20  Petr Baudis  <pasky@suse.cz>
19157         * LICENSES: Sync the sunrpc license.
19159 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19161         * sunrpc/auth_des.c: Update copyright notice once again.
19162         * sunrpc/auth_none.c: Likewise.
19163         * sunrpc/auth_unix.c: Likewise.
19164         * sunrpc/authdes_prot.c: Likewise.
19165         * sunrpc/authuxprot.c: Likewise.
19166         * sunrpc/bindrsvprt.c: Likewise.
19167         * sunrpc/clnt_gen.c: Likewise.
19168         * sunrpc/clnt_perr.c: Likewise.
19169         * sunrpc/clnt_raw.c: Likewise.
19170         * sunrpc/clnt_simp.c: Likewise.
19171         * sunrpc/clnt_tcp.c: Likewise.
19172         * sunrpc/clnt_udp.c: Likewise.
19173         * sunrpc/clnt_unix.c: Likewise.
19174         * sunrpc/des_crypt.c: Likewise.
19175         * sunrpc/des_soft.c: Likewise.
19176         * sunrpc/get_myaddr.c: Likewise.
19177         * sunrpc/getrpcport.c: Likewise.
19178         * sunrpc/key_call.c: Likewise.
19179         * sunrpc/key_prot.c: Likewise.
19180         * sunrpc/openchild.c: Likewise.
19181         * sunrpc/pm_getmaps.c: Likewise.
19182         * sunrpc/pm_getport.c: Likewise.
19183         * sunrpc/pmap_clnt.c: Likewise.
19184         * sunrpc/pmap_prot.c: Likewise.
19185         * sunrpc/pmap_prot2.c: Likewise.
19186         * sunrpc/pmap_rmt.c: Likewise.
19187         * sunrpc/rpc/auth.h: Likewise.
19188         * sunrpc/rpc/auth_unix.h: Likewise.
19189         * sunrpc/rpc/clnt.h: Likewise.
19190         * sunrpc/rpc/des_crypt.h: Likewise.
19191         * sunrpc/rpc/key_prot.h: Likewise.
19192         * sunrpc/rpc/netdb.h: Likewise.
19193         * sunrpc/rpc/pmap_clnt.h: Likewise.
19194         * sunrpc/rpc/pmap_prot.h: Likewise.
19195         * sunrpc/rpc/pmap_rmt.h: Likewise.
19196         * sunrpc/rpc/rpc.h: Likewise.
19197         * sunrpc/rpc/rpc_des.h: Likewise.
19198         * sunrpc/rpc/rpc_msg.h: Likewise.
19199         * sunrpc/rpc/svc.h: Likewise.
19200         * sunrpc/rpc/svc_auth.h: Likewise.
19201         * sunrpc/rpc/types.h: Likewise.
19202         * sunrpc/rpc/xdr.h: Likewise.
19203         * sunrpc/rpc_clntout.c: Likewise.
19204         * sunrpc/rpc_cmsg.c: Likewise.
19205         * sunrpc/rpc_common.c: Likewise.
19206         * sunrpc/rpc_cout.c: Likewise.
19207         * sunrpc/rpc_dtable.c: Likewise.
19208         * sunrpc/rpc_hout.c: Likewise.
19209         * sunrpc/rpc_main.c: Likewise.
19210         * sunrpc/rpc_parse.c: Likewise.
19211         * sunrpc/rpc_parse.h: Likewise.
19212         * sunrpc/rpc_prot.c: Likewise.
19213         * sunrpc/rpc_sample.c: Likewise.
19214         * sunrpc/rpc_scan.c: Likewise.
19215         * sunrpc/rpc_scan.h: Likewise.
19216         * sunrpc/rpc_svcout.c: Likewise.
19217         * sunrpc/rpc_tblout.c: Likewise.
19218         * sunrpc/rpc_util.c: Likewise.
19219         * sunrpc/rpc_util.h: Likewise.
19220         * sunrpc/rpcinfo.c: Likewise.
19221         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19222         * sunrpc/rpcsvc/key_prot.x: Likewise.
19223         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19224         * sunrpc/rpcsvc/mount.x: Likewise.
19225         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19226         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19227         * sunrpc/rpcsvc/rex.x: Likewise.
19228         * sunrpc/rpcsvc/rstat.x: Likewise.
19229         * sunrpc/rpcsvc/rusers.x: Likewise.
19230         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19231         * sunrpc/rpcsvc/spray.x: Likewise.
19232         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19233         * sunrpc/rtime.c: Likewise.
19234         * sunrpc/svc.c: Likewise.
19235         * sunrpc/svc_auth.c: Likewise.
19236         * sunrpc/svc_authux.c: Likewise.
19237         * sunrpc/svc_raw.c: Likewise.
19238         * sunrpc/svc_run.c: Likewise.
19239         * sunrpc/svc_simple.c: Likewise.
19240         * sunrpc/svc_tcp.c: Likewise.
19241         * sunrpc/svc_udp.c: Likewise.
19242         * sunrpc/svc_unix.c: Likewise.
19243         * sunrpc/svcauth_des.c: Likewise.
19244         * sunrpc/xcrypt.c: Likewise.
19245         * sunrpc/xdr.c: Likewise.
19246         * sunrpc/xdr_array.c: Likewise.
19247         * sunrpc/xdr_float.c: Likewise.
19248         * sunrpc/xdr_mem.c: Likewise.
19249         * sunrpc/xdr_rec.c: Likewise.
19250         * sunrpc/xdr_ref.c: Likewise.
19251         * sunrpc/xdr_sizeof.c: Likewise.
19252         * sunrpc/xdr_stdio.c: Likewise.
19254         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19255         handling.
19257 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19259         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19261 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19263         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19264         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19265         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19266         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19267         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19268         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19269         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19270         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19271         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19272         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19273         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19274         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19275         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19276         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19278 2010-07-26  Anton Blanchard  <anton@samba.org>
19280         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19281         * malloc/arena.c (heap_trim): Likewise.
19283 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19285         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19286         here.  Not...
19287         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19288         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19290 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19292         * sysdeps/i386/elf/Makefile: New file.
19294 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19296         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19297         from fanotify_init.
19298         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19299         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19301 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19303         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19304         of strncasecmp_l.
19305         * sysdeps/multiarch/strcmp.S: Likewise.
19307 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19309         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19310         strncase_l-nonascii.
19311         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19312         Add strncase_l-ssse3.
19313         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19314         * sysdeps/x86_64/strcmp.S: Likewise.
19315         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19316         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19317         * sysdeps/x86_64/strncase.S: New file.
19318         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19319         * sysdeps/x86_64/strncase_l.S: New file.
19320         * string/Makefile (strop-tests): Add strncasecmp.
19321         * string/test-strncasecmp.c: New file.
19323         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19324         warning.
19326         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19327         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19329 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19331         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19333 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19335         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19336         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19337         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19339 2010-05-01  Alan Modra  <amodra@gmail.com>
19341         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19342         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19343         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19344         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19345         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19346         tidying.  Don't tail-call __sigjmp_save for static lib.
19347         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19348         save location.
19349         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19350         (CALL_MCOUNT): Add eh info, and nop after bl.
19351         (TAIL_CALL_SYSCALL_ERROR): New macro.
19352         (PSEUDO_RET): Use it.
19353         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19354         Correct save location of integer regs and cr.
19355         (_dl_profile_resolve): Correct cr save location.  Delete nops
19356         after bl when SHARED.  Reduce cfi size a little by better
19357         placement of cfi directives.
19358         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19359         make a stack frame.  Instead use parm save area as a temp.
19360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19361         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19363         Don't make a stack frame for parent, use parm save area.
19364         Increase child stack frame to 112 bytes.  Don't save unused reg,
19365         and adjust reg usage.  Set up cfi on error recovery and
19366         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19368         (__makecontext): Add dummy nop after jump to exit.
19369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19370         Use correct parm save area and cr save, reduce stack frame.
19371         Correct cfi for possible PSEUDO_RET frame setup.
19372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19373         Branch to local label emitted by PSEUDO_RET rather than
19374         __syscall_error.
19376 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19378         [BZ #11904]
19379         * locale/programs/locale.c (print_assignment): New function.
19380         (show_locale_vars): Use it.
19382 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19384         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19385         field.
19386         (struct statfs64): Likewise.
19387         (_STATFS_F_FLAGS): Define.
19388         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19389         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19390         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19391         (ST_VALID): Define locally.
19392         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19393         __statvfs_getflags, use the provided value.
19394         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19395         __ASSUME_STATFS_F_FLAGS.
19397         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19399         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19400         Add sys/fanotify.h.
19401         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19402         fanotify_mask for GLIBC_2.13.
19403         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19404         fanotify_init and fanotify_mark.
19405         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19406         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19408         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19409         Add prlimit.
19410         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19411         prlimit64 for GLIBC_2.13.
19412         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19413         prlimit64.
19414         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19415         syscall.
19416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19417         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19418         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19419         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19420         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19421         add prlimit alias.
19422         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19424         [BZ #11903]
19425         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19426         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19428         * nss/Makefile: Add rules to build and run tst-nss-test1.
19429         * shlib-versions: Add entry for libnss_test1.
19430         * nss/nss_test1.c: New file.
19431         * nss/tst-nss-test1.c: New file.
19433         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19434         (__nss_configure_lookup): Set appropriate entry in
19435         __nss_configure_lookup to true.
19436         * nss/nsswitch.h: Define enum with indeces of databases in
19437         databases and __nss_database_custom arrays.  Declare
19438         __nss_database_custom.
19439         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19440         to avoid using nscd when custom rules are installed.
19441         * nss/getXXbyYY_r.c: Likewise.
19442         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19444         * nss/nss_files/files-parse.c: Whitespace fixes.
19446 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19448         [BZ #11883]
19449         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19450         * posix/fnmatch_loop.c: Likewise.
19452 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19454         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19455         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19456         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19457         * Versions.def [GLIBC_2.13]: Add.
19459 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19461         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19462         Also fail if tpwd after pwuid call is NULL.
19464 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19466         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19467         when converting to ms.
19469 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19471         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19472         EOPNOTSUPP errors with ENOTTY.
19473         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19474         EOPNOTSUPP errors with ENOTTY.
19476 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19478         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19479         Add strcasecmp_l-ssse3.
19480         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19481         strcasecmp.
19482         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19483         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19484         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19486 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19488         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19490         * string/Makefile (strop-tests): Add strcasecmp.
19491         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19492         strcasecmp_l-nonascii.
19493         (gen-as-const-headers): Add locale-defines.sym.
19494         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19495         * sysdeps/x86_64/strcasecmp.S: New file.
19496         * sysdeps/x86_64/strcasecmp_l.S: New file.
19497         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19498         * sysdeps/x86_64/locale-defines.sym: New file.
19499         * string/test-strcasecmp.c: New file.
19501         * string/test-strcasestr.c: Test both ends of the range of characters.
19502         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19504 2010-07-29  Roland McGrath  <roland@redhat.com>
19506         [BZ #11856]
19507         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19509 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19511         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19512         for ld.so.
19514 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19516         * manual/memory.texi (Malloc Tunable Parameters): Document
19517         M_PERTURB.
19519 2010-07-26  Roland McGrath  <roland@redhat.com>
19521         [BZ #11840]
19522         * configure.in (-fgnu89-inline check): Set and substitute
19523         gnu89_inline, not libc_cv_gnu89_inline.
19524         * configure: Regenerated.
19525         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19527 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19529         * string/test-strnlen.c: New file.
19530         * string/Makefile (strop-tests): Add strnlen.
19531         * string/tester.c (test_strnlen): Add a few more test cases.
19532         * string/tst-strlen.c: Better error reporting.
19534         * sysdeps/x86_64/strnlen.S: New file.
19536 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19538         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19539         lower-latency instructions.
19541 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19543         * string/test-strcasestr.c: New file.
19544         * string/test-strstr.c: New file.
19545         * string/Makefile (strop-tests): Add strstr and strcasestr.
19546         * string/str-two-way.h: Don't undefine MAX.
19547         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19549 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19551         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19552         strcasestr-nonascii.
19553         (CFLAGS-strcasestr-nonascii.c): Define.
19554         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19555         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19556         Remove unused attribute.
19558 2010-07-20  Roland McGrath  <roland@redhat.com>
19560         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19561         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19562         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19563         like LD_HWCAP_MASK can disable hwcaps.
19565 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19567         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19569 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19571         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19572         call in strcasestr.
19573         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19574         __strcasestr_sse42_nonascii.
19575         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19576         strcasestr-nonascii.c.
19577         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19579 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19581         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19582         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19583         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19584         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19586 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19588         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19589         fcntl.
19591 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19593         [BZ #11577]
19594         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19595         dl_signal_cerror.
19597 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19599         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19600         _PC_PIPE_BUF using F_GETPIPE_SZ.
19602 2010-07-05  Roland McGrath  <roland@redhat.com>
19604         * manual/arith.texi (Rounding Functions): Fix rint description
19605         implicit in round description.
19607 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19609         * elf/Makefile: Fix linking for a few tests to make recent linker
19610         happy.
19612 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19614         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19615         $(common-objpfx)libc_nonshared.a.
19617 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19619         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19620         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19621         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19622         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19623         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19624         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19625         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19626         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19641         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19642         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19643         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19644         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19645         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19646         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19647         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19648         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19649         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19650         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19651         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19652         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19668 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19670         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19671         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19672         * string/memmove.c (memmove): Renamed to ...
19673         (MEMMOVE): ...this.  Default to memmove.
19674         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19675         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19676         (END_CHK): Define.
19677         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19678         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19679         mempcpy-ssse3-back memmove-ssse3-back.
19680         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19681         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19682         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19683         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19684         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19685         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19686         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19687         * sysdeps/x86_64/multiarch/memmove.c: New file.
19688         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19689         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19690         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19691         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19692         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19693         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19694         Define.
19695         (index_Fast_Copy_Backward): Define.
19696         (HAS_ARCH_FEATURE): Define.
19697         (HAS_FAST_REP_STRING): Define.
19698         (HAS_FAST_COPY_BACKWARD): Define.
19700 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19702         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19703         Restore proper fallback handling.
19705 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19707         [BZ #11701]
19708         * posix/group_member.c (__group_member): Correct checking loop.
19710         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19711         OOM in getpwuid_r correctly.  Return error number when the caller
19712         should return, otherwise -1.
19713         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19714         call returning > 0 value.
19715         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19717 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19719         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19720         libc_nonshared.a from targets in modules-names.
19722 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19724         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19725         requires it.
19727 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19729         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19730         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19731         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19732         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19734 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19736         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19738 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19740         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19741         and F_GETPIPE_SZ.
19742         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19743         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19744         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19745         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19746         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19747         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19749 2010-06-14  Roland McGrath  <roland@redhat.com>
19751         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19753 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19755         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19756         __REDIRECT followed by __THROW.
19757         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19758         * posix/getopt.h (getopt): Likewise.
19760 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19762         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19763         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19764         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19765         in AT_FLAGS.
19766         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19767         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19769 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19771         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19773 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19775         [BZ #11640]
19776         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19777         Properly check family and model.
19779 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19781         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19783 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19785         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19787 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19789         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19790         symbol reference.
19792 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19794         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19795         symbol reference.
19797 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19799         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19800         and internal_recvmmsg.
19801         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19802         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19803         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19804         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19806         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19807         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19808         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19810 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19812         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19814 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19816         POWER7 optimizations.
19817         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19818         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19820 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19822         * version.h: Update for 2.13 development version.
19824 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19826         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19827         exceptions.  Return 0.
19829 2010-05-07  Roland McGrath  <roland@redhat.com>
19831         * elf/ldconfig.c (main): Add a const.
19833 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19835         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19836         (args_options): Add no-idn option.
19837         (ahosts_keys_int): Add idn_flags to ai_flags.
19838         (parse_option): Handle 'i' option to clear idn_flags.
19840         * malloc/malloc.c (_int_free): Possible race in the most recently
19841         added check.  Only act on the data if no current modification
19842         happened.
19844 See ChangeLog.17 for earlier changes.