Add a strstr test for page boundary
[glibc.git] / ChangeLog
blobfe1e019398670174bfb920fc322bceedc059c2eb
1 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
3         * string/test-strstr.c (check2): Add a test for page boundary.
5 2012-10-05  David S. Miller  <davem@davemloft.net>
7         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
8         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9         file.
10         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
11         sysdep_routines.
12         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
13         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
14         and bzero when HWCAP_SPARC_CRYPTO is present.
16 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18         [BZ #14602]
19         * string/test-strstr.c (check2): New function.
20         (test_main): Call check2.
22         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
23         and bug-strchr1.
24         * string/bug-strcasestr1.c (do_test): Moved to ...
25         * string/test-strcasestr.c (check1): Here.  New function.
26         (do_one_test): Break out result checking code into ...
27         (check_result): This.  New function.
28         (do_one_test): Call check_result.
29         (test_main): Call check1.
30         * string/bug-strchr1.c (do_test): Moved to ...
31         * string/test-strchr.c (check1): Here.  New function.
32         (do_one_test): Break out result checking code into ...
33         (check_result): This.  New function.
34         (do_one_test): Call check_result.
35         (test_main): Call check1.
36         * string/bug-strstr1.c (main): Moved to ...
37         * string/test-strchr.c (check1): Here.  New function.
38         (do_one_test): Break out result checking code into ...
39         (check_result): This.  New function.
40         (do_one_test): Call check_result.
41         (test_main): Call check1.
42         * string/bug-strcasestr1.c: Removed.
43         * string/bug-strchr1.c: Likewise.
44         * string/bug-strstr1.c: Likewise.
46         * elf/Makefile (dl-routines): Add hwcaps.
47         * elf/dl-support.c (_dl_important_hwcaps): Removed.
48         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
49         (_dl_important_hwcaps): Moved to ...
50         * elf/dl-hwcaps.c: Here.  New file.
51         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
53         [BZ #14557]
54         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
55         if IS_IN_rtld isn't defined.
57         * elf/dl-support.c (_dl_sysinfo_map): New.
58         Include "get-dynamic-info.h" and "setup-vdso.h".
59         (_dl_non_dynamic_init): Call setup_vdso.
60         * elf/dynamic-link.h: Don't include <assert.h>.
61         (elf_get_dynamic_info): Moved to ...
62         * elf/get-dynamic-info.h: Here.  New file.
63         * elf/dynamic-link.h: Include "get-dynamic-info.h".
64         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
65         * elf/setup-vdso.h: Here.  New file.
66         * elf/rtld.c: Include "setup-vdso.h".
67         (dl_main): Call setup_vdso.
69 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
71         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
72         creal in comment listing functions tested.  List finite, isinf,
73         isnan, isless, islessequal, isgreater, isgreaterequal,
74         islessgreater, isunordered, lgamma_r and pow10 as functions and
75         macros not tested.  Mention which functions not tested are aliases
76         for other functions.  Fix typo.  Note that signs of NaNs are not
77         tested.
79         * scripts/config.guess: Update from config.git.
80         * scripts/config.sub: Likewise.
82 2012-10-04  Roland McGrath  <roland@hack.frob.com>
84         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
85         * misc/madvise.c (madvise): Renamed to __madvise.
86         Make madvise a weak alias.
87         * include/sys/mman.h: Declare __madvise.
88         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
89         * sysdeps/unix/syscalls.list
90         (madvise): Make __madvise the strong name, and madvise a weak alias.
91         * sysdeps/unix/sysv/linux/syscalls.list
92         (madvise, mmap): Remove redundant entries.
93         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
94         * malloc/malloc.c (mtrim): Likewise.
95         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
97 2012-10-03  Roland McGrath  <roland@hack.frob.com>
99         * sysdeps/mach/hurd/dl-cache.c: File removed.
100         * config.h.in (USE_LDCONFIG): New #undef.
101         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
102         * configure: Regenerated.
103         * elf/Makefile (dl-routines): Add dl-cache only under
104         [$(use-ldconfig) = yes].
105         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
106         cache on [USE_LDCONFIG].
107         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
108         [USE_LDCONFIG].
109         * elf/rtld.c (dl_main): Likewise.
111 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
113         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
114         _SC_LEVEL4_CACHE_LINESIZE.
116 2012-10-03  Roland McGrath  <roland@hack.frob.com>
118         * sysdeps/unix/bsd/confstr.h: File removed.
120 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
122         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
123         sys/sdt-config.h.
125 2012-10-02  Roland McGrath  <roland@hack.frob.com>
127         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
128         Make 'mapoff' field ElfW(Off) rather than off_t.
130 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
132         * nscd/Makefile: Remove nscd-cflags and all its users.
133         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
134         (CFLAGS-nonlib): Add compiler flags for nscd modules.
136         [BZ #10631]
137         * malloc.c (malloc_printerr): Clarify error message.
139 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
141         [BZ #14648]
142         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
143         Set bit_FMA_Usable if FMA is supported.
144         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
145         macro.
146         (bit_FMA4_Usable): Updated.
147         (index_FMA_Usable): New macro.
148         (CPUID_FMA): Likewise
149         (HAS_FMA): Defined with bit_FMA_Usable.
151 2012-10-01  Roland McGrath  <roland@hack.frob.com>
153         * bits/types.h (__swblk_t): Type removed.
154         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
155         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
156         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
157         (__SWBLK_T_TYPE): Likewise.
158         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
159         (__SWBLK_T_TYPE): Likewise.
160         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
161         (__SWBLK_T_TYPE): Likewise.
162         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
163         (__SWBLK_T_TYPE): Likewise.
165 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
166             Honza Horak <hhorak@redhat.com>
168         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
169         (xdr_mapname): Use YPMAXMAP as maxsize.
170         (xdr_peername): Use YPMAXPEER as maxsize.
171         (xdr_keydat): Use YPAXRECORD as maxsize.
172         (xdr_valdat): Use YPMAXRECORD as maxsize.
174 2012-10-01  Roland McGrath  <roland@hack.frob.com>
176         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
178         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
179         * csu/init-first.c: ... here.
180         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
181         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
182         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
183         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
184         * sysdeps/i386/init-first.c: File removed.
185         * sysdeps/sh/init-first.c: File removed.
187 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
189         [BZ #14645]
190         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
191         if x * y might underflow to zero and z is zero.
192         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
193         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
194         * math/libm-test.inc (min_subnorm_value): New variable.
195         (fma_test): Add more tests.
196         (fma_test_towardzero): Likewise.
197         (fma_test_downward): Likewise
198         (fma_test_upward): Likewise.
199         (initialize): Set min_subnorm_value.
201 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
203         [BZ #14638]
204         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
205         0 + 0.
206         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
207         mode for addition resulting in exact zero.
208         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
209         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
210         exact 0 + 0.
211         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
212         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
213         * math/libm-test.inc (fma_test): Add more tests.
214         (fma_test_towardzero): New function.
215         (fma_test_downward): Likewise.
216         (fma_test_upward): Likewise.
217         (main): Call the new functions.
219 2012-09-28  David S. Miller  <davem@davemloft.net>
221         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
223 2012-09-28  Roland McGrath  <roland@hack.frob.com>
225         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
226         instead of SIGALRM.
228         * sysdeps/gnu/_G_config.h: Moved to ...
229         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
230         * sysdeps/mach/hurd/_G_config.h: Moved to ...
231         * sysdeps/generic/_G_config.h: ... here.
233         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
235         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
237         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
238         Conditionalize target on [libnss_test1.so-version].
240         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
242         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
243         (elfobjdir): Move out of conditionals.
245         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
246         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
247         (__nss_lookup_function): Conditionalize label remove_from_tree on
248         [!DO_STATIC_NSS || SHARED], matching its only use.
250 2012-09-28  David S. Miller  <davem@davemloft.net>
252         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
253         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
254         file.
255         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
256         sysdep_routines.
257         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
258         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
259         when HWCAP_SPARC_CRYPTO is present.
261 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
263         * io/tst-mknodat.c: Create a FIFO instead of a socket.
265 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
267         [BZ #6530]
268         * stdio-common/vfprintf.c (process_string_arg): Revert
269         2000-07-22 change.
271 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
273         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
274         for testcase.
275         * stdio-common/tst-sprintf.c: Include <locale.h>
276         (main): Test sprintf's handling of incomplete multibyte
277         characters.
279 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
281         * elf/dl-runtime.c (VERSYMIDX): Removed.
282         * elf/dl-version.c (VERSYMIDX): Likewise.
283         * elf/do-rel.h (VERSYMIDX): Likewise.
284         (VALIDX): Likewise.
285         * elf/dynamic-link.h (VERSYMIDX): Likewise.
286         * elf/rtld.c (VALIDX): Likewise.
287         (ADDRIDX): Likewise.
288         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
289         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
290         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
291         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
292         (VALIDX): Likewise.
293         (ADDRIDX): Likewise.
295 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
297         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
299 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
301         [BZ #11438]
302         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
303         to global scope.
304         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
305         addresses are in the same scope as 192.0.2/24.
306         * posix/gai.conf: Document new scope table defaults.
308 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
310         [BZ #5298]
311         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
312         for ftell.  Compute offsets from write pointers instead.
313         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
315 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
317         [BZ #14543]
318         * libio/Makefile (tests): New test case tst-fseek.
319         * libio/tst-fseek.c: New test case to verify that fseek/ftell
320         combination works in wide mode.
321         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
322         state when the external buffer state changes.
324 2012-09-27  David S. Miller  <davem@davemloft.net>
326         [BZ #14376]
327         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
328         pass reloc->r_addend in as the 'high' argument to
329         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
333 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
335         * rt/tst-aio2.c: Include <pthread.h>.
336         * rt/tst-aio3.c: Likewise.
338 2012-09-27  Steve Ellcey  <sellcey@mips.com>
340         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
342 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
344         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
345         contents on [SHARED].
347 2012-09-26  Marek Polacek  <polacek@redhat.com>
349         [BZ #14530]
350         [BZ #13741]
351         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
352         for C++ and GCC <4.3 as well as for non GCC compilers.
354 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
356         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
358 2012-09-25  Roland McGrath  <roland@hack.frob.com>
360         * Makefile.in (all, install): Declare with .PHONY.
361         Reported by Michael Hope <michael.hope@linaro.org>.
363 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
365         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
366         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
367         system header.
368         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
369         Likewise.
370         (sydep_routines): Add the new and the internal functions.
371         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
372         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
374         (GLIBC_2.17): Add the new function.
375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
376         (GLIBC_2.17): Likewise.
377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
378         (GLIBC_2.17): Likewise.
379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
380         (GLIBC_2.17): Likewise.
381         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
383 2012-09-25  Alan Modra  <amodra@gmail.com>
385         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
386         Add release barrier before setting once_control to say
387         initialisation is done.  Add hints on lwarx.  Use macro in
388         place of isync.
389         (clear_once_control): Add release barrier.
391 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
393         [BZ #13629]
394         * math/s_clog.c (__clog): Handle more values close to |z| = 1
395         specially.
396         * math/s_clog10.c (__clog10): Likewise.
397         * math/s_clog10f.c (__clog10f): Likewise.
398         * math/s_clog10l.c (__clog10l): Likewise.
399         * math/s_clogf.c (__clogf): Likewise.
400         * math/s_clogl.c (__clogl): Likewise.
401         * math/Makefile (libm-calls): Add x2y2m1.
402         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
403         (__x2y2m1): Likewise.
404         (__x2y2m1l): Likewise.
405         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
406         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
407         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
408         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
409         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
410         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
411         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
412         * sysdeps/i386/fpu/libm-test-ulps: Update.
413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
415         [BZ #14621]
416         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
417         int as type of variable DEPTH.
418         (glob): Use size_t instead of int as type of variables NEWCOUNT
419         and OLD_PATHC.
421 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
423         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
424         Add s_sincosf-sse2.
425         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
426         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
427         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
428         macros for using routine as __sincosf_ia32.
429         Use macro for function declaration and weak_alias.
430         * sysdeps/i386/fpu/libm-test-ulps: Update.
432         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
433         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
435         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
436         subnormal argument.
437         * math/s_cexpf.c (__cexpf): Likewise.
438         * math/s_csinf.c (__csinf): Likewise.
439         * math/s_csinhf.c (__csinhf): Likewise.
440         * math/s_ctanf.c (__ctanf): Likewise.
441         * math/s_ctanhf.c (__ctanhf): Likewise.
442         * math/s_ccosh.c (__ccoshf): Likewise.
443         * math/s_cexp.c (__cexpl): Likewise.
444         * math/s_csin.c (__csin): Likewise.
445         * math/s_csinh.c (__csinh): Likewise.
446         * math/s_ctan.c (__ctan): Likewise.
447         * math/s_ctanh.c (ctanh): Likewise.
448         * math/s_ccoshl.c (__ccoshl): Likewise.
449         * math/s_cexpl.c (__cexpl): Likewise.
450         * math/s_csinl.c (__csinl): Likewise.
451         * math/s_csinhl.c (__csinhl): Likewise.
452         * math/s_ctanl.c (__ctanl): Likewise.
453         * math/s_ctanhl.c (__ctanhl): Likewise.
455 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
457         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
458         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
459         (_IO_off_t): Define to __off_t, not _G_off_t.
460         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
461         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
462         (_IO_wint_t): Define to wint_t, not _G_wint_t.
463         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
464         type of __dummy and __dummy2 fields.
465         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
466         (_G_ssize_t): Likewise.
467         (_G_off_t): Likewise.
468         (_G_pid_t): Likewise.
469         (_G_uid_t): Likewise.
470         (_G_wchar_t): Likewise.
471         (_G_wint_t): Likewise.
472         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
473         (_G_ssize_t): Likewise.
474         (_G_off_t): Likewise.
475         (_G_pid_t): Likewise.
476         (_G_uid_t): Likewise.
477         (_G_wchar_t): Likewise.
478         (_G_wint_t): Likewise.
479         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
480         (_G_ssize_t): Likewise.
481         (_G_off_t): Likewise.
482         (_G_pid_t): Likewise.
483         (_G_uid_t): Likewise.
484         (_G_wchar_t): Likewise.
485         (_G_wint_t): Likewise.
487 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
489         * malloc/arena.c: Include malloc-sysdep.h.
490         (shrink_heap): Use check_may_shrink_heap to decide if madvise
491         is sufficient to shrink the heap or an unmap is needed.
492         * sysdeps/generic/malloc-sysdep.h: New file.  Define
493         new function check_may_shrink_heap.
494         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
495         new function check_may_shrink_heap.
497 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
499         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
500         comments.
502 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
504         * catgets/test-gencat.sh: Add "set -e".
505         * elf/tst-pathopt.sh: Likewise.
506         * grp/tst_fgetgrent.sh: Likewise.
507         * iconvdata/run-iconv-test.sh: Likewise.
508         * intl/tst-gettext.sh: Likewise.
509         * intl/tst-gettext2.sh: Likewise.
510         * intl/tst-gettext4.sh: Likewise.
511         * intl/tst-gettext6.sh: Likewise.
512         * intl/tst-translit.sh: Likewise.
513         * io/ftwtest-sh: Likewise.
514         * libio/test-freopen.sh: Likewise.
515         * malloc/tst-mtrace.sh: Likewise.
516         * posix/globtest.sh: Likewise.
517         * posix/tst-getconf.sh: Likewise.
518         * posix/wordexp-tst.sh: Likewise.
519         * stdio-common/tst-printf.sh: Likewise.
520         * stdio-common/tst-unbputc.sh: Likewise.
521         * stdlib/tst-fmtmsg.sh: Likewise.
522         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
523         * catgets/Makefile: Do not specify -e option when running
524         testsuite shell scripts.
525         * elf/Makefile: Likewise.
526         * grp/Makefile: Likewise.
527         * iconvdata/Makefile: Likewise.
528         * intl/Makefile: Likewise.
529         * io/Makefile: Likewise.
530         * libio/Makefile: Likewise.
531         * malloc/Makefile: Likewise.
532         * posix/Makefile: Likewise.
533         * stdio-common/Makefile: Likewise.
534         * stdlib/Makefile: Likewise.
535         * sysdeps/x86_64/Makefile: Likewise.
537         * io/ftwtest-sh: Add copyright header.
538         * posix/globtest.sh: Likewise.
539         * posix/tst-getconf.sh: Likewise.
540         * posix/wordexp-tst.sh: Likewise.
541         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
543 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
545         [BZ #13679]
546         * Makeconfig (+link): Defined as $(+link-static) if
547         $(build-shared) isn't yes.
548         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
549         isn't yes.
550         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
552         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
554         [BZ #14562]
555         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
556         new chunk size with MALLOC_ALIGN_MASK.
558 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
560         [BZ #5044]
561         * stdio-common/printf_fphex.c: Include <stdbool.h> and
562         <rounding-mode.h>.
563         (__printf_fphex): Determine rounding using get_rounding_mode and
564         round_away.
565         * stdio-common/tst-printf-round.c (struct hex_test): New
566         structure.
567         (hex_tests): New variable.
568         (test_hex_in_one_mode): New function.
569         (do_test): Also run tests for hex float output.
571 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
573         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
574         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
575         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
576         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
577         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
578         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
579         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
580         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
582 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
584         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
585         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
586         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
587         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
589 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
591         [BZ #14579]
592         * elf/rtld.c (dl_main): Limit the check for self loading to normal
593         mode only.
594         * elf/tst-rtld-load-self.sh: New test.
595         * elf/Makefile: Run it.
597 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
599         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
600         (tst-writev-ENV): Remove.
601         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
603 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
605         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
607 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
609         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
610         unconditional.
611         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
612         Likewise.
613         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
614         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
615         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
616         Likewise.
618 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
620         [BZ #14587]
621         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
622         * config.make.in (have-cpp-asm-debuginfo): Removed.
623         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
624         * configure: Regenerated.
626 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
628         [BZ #5044]
629         * stdio-common/printf_fp.c: Include <stdbool.h> and
630         <rounding-mode.h>.
631         (___printf_fp): Determine rounding using get_rounding_mode and
632         round_away.
633         * stdio-common/tst-printf-round.c: New file.
634         * stdio-common/Makefile (tests): Add tst-printf-round.
635         (link-libm): New variable.
636         ($(objpfx)tst-printf-round): Depend in $(link-libm).
638 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
640         [BZ #14576]
641         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
642         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
643         Likewise.
644         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
645         Likewise.
647 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
649         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
650         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
651         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
652         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
654 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
656         [BZ #14518]
657         * include/rounding-mode.h: New file.
658         * sysdeps/generic/get-rounding-mode.h: Likewise.
659         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
660         * stdlib/strtod_l.c: Include <rounding-mode.h>.
661         (MAX_VALUE): New macro.
662         (MIN_VALUE): Likewise.
663         (overflow_value): New function.
664         (underflow_value): Likewise.
665         (round_and_return): Use overflow_value and underflow_value to
666         determine return values in overflow and underflow cases.  Use
667         round_away to determine rounding depending on rounding mode.
668         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
669         determine return values in overflow and underflow cases.
670         * stdlib/tst-strtod-round.c: Include <fenv.h>.
671         (struct test_results): New structure.
672         (struct test): Use struct test_results to store expected results
673         for all rounding modes.
674         (TEST): Include expected results for all rounding modes.
675         (test_in_one_mode): New function.
676         (do_test): Use test_in_one_mode to compute and check results.
677         Check results for all rounding modes.
678         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
679         $(link-libm).
681 2012-12-09  Allan McRae  <allan@archlinux.org>
683         * sysdeps/i386/fpu/libm-test-ulps: Update
685 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
687         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
688         (_G_int32_t): Likewise.
689         (_G_uint16_t): Likewise.
690         (_G_uint32_t): Likewise.
691         (_G_HAVE_BOOL): Likewise.
692         (_G_HAVE_ATEXIT): Likewise.
693         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
694         (_G_HAVE_IO_FILE_OPEN): Likewise.
695         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
696         (_G_int32_t): Likewise.
697         (_G_uint16_t): Likewise.
698         (_G_uint32_t): Likewise.
699         (_G_HAVE_BOOL): Likewise.
700         (_G_HAVE_ATEXIT): Likewise.
701         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
702         (_G_HAVE_IO_FILE_OPEN): Likewise.
703         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
704         (_G_int32_t): Likewise.
705         (_G_uint16_t): Likewise.
706         (_G_uint32_t): Likewise.
707         (_G_HAVE_BOOL): Likewise.
708         (_G_HAVE_ATEXIT): Likewise.
709         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
710         (_G_HAVE_IO_FILE_OPEN): Likewise.
712 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
714         * csu/libc-tls.c: Update copyright years.
716 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
718         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
719         [!_G_USING_THUNKS]: Remove conditional code.
720         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
721         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
723         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
724         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
725         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
726         (_G_VTABLE_LABEL_PREFIX): Likewise.
727         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
728         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
729         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
730         (_G_VTABLE_LABEL_PREFIX): Likewise.
731         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
732         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
733         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
734         (_G_VTABLE_LABEL_PREFIX): Likewise.
735         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
737 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
739         * libio/Makefile: Include ../Makeconfig before tests.
740         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
741         only if $(build-shared) is yes.
743         * iconv/gconv_db.c: Update copyright years.
745 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
747         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
748         unwind info if defined PIC. Fix special cases description.
749         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
751         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
752         DP_HI_MASK entry.
753         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
755 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
757         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
759         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
760         is NULL.
762         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
763         (LDLIBS-tst-chk4): This.
764         (LDFLAGS-tst-chk5): Renamed to ...
765         (LDLIBS-tst-chk5): This.
766         (LDFLAGS-tst-chk6): Renamed to ...
767         (LDLIBS-tst-chk6): This.
768         (LDFLAGS-tst-lfschk4): Renamed to ...
769         (LDLIBS-tst-lfschk4): This.
770         (LDFLAGS-tst-lfschk5): Renamed to ...
771         (LDLIBS-tst-lfschk5): This.
772         (LDFLAGS-tst-lfschk6): Renamed to ...
773         (LDLIBS-tst-lfschk6): This.
775         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
776         on $(common-objpfx)soversions.mk.
778 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
780         [BZ #10014]
781         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
782         example host name.
784 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
786         * malloc/arena.c (arena_get_retry): New function that gets
787         another arena for the caller to try its request on.
788         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
789         current arena cannot fulfill the request.
790         (__libc_memalign): Likewise.
791         (__libc_memalign): Likewise.
792         (__libc_pvalloc): Likewise.
793         (__libc_calloc): Likewise.
795 2012-09-05  John Tobey  <john.tobey@gmail.com>
797         [BZ #13542]
798         * manual/arith.texi (Operations on Complex): Fix description
799         of carg branch cut.
801 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
803         [BZ #10014]
804         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
805         host name.
807         [BZ #10038]
808         * manual/memory.texi (Memory): Make order of menu items match
809         order of sections.
811 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
813         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
814         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
815         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
817 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
819         * csu/libc-tls.c (static_dtv): Renamed to ...
820         (_dl_static_dtv): This.  Make it global.
821         (_dl_initial_dtv): Removed.
822         (__libc_setup_tls): Updated.
823         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
824         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
825         DL_INITIAL_DTV.
827 2012-09-06  Petr Machata  <pmachata@redhat.com>
829         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
830         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
831         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
832         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
834 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
836         [BZ #14545]
837         * csu/libc-tls.c (_dl_initial_dtv): New variable.
838         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
839         freeing dtv[-1].
841 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
843         [BZ #14544]
844         * Makeconfig (link-static-before-libc): Replace $(+prector)
845         with $(+prectorT).
846         (link-static-after-libc): Replace $(+postctor) with
847         $(+postctorT).
848         (link-bounded): Replace $(+prector)/$(+postctor) with
849         $(+prectorT)/$(+postctorT).
850         (+prectorT): New macro.
851         (+postctorT): Likewise.
853 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
855         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
856         (round_str): Handle values above the maximum for IBM long double
857         as inexact.
858         * stdlib/tst-strtod-round.c (tests): Regenerated.
860 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
862         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
863         assembler flag.
864         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
865         zarch_nohighgprs around the zarch optimized routines.
866         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
867         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
868         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
869         for zarch.
871 2012-09-05  David S. Miller  <davem@davemloft.net>
873         * sysdeps/sparc/fpu/libm-test-ulps: Update.
875         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
876         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
877         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
878         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
879         entries.
881 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
883         * malloc/arena.c: Fold copyright years.
884         * malloc/mcheck.c, malloc/memusage.c: Likewise.
886 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
888         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
890 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
892         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
894 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
896         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
897         change internal state upon failure.
899 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
901         * malloc/mcheck.c (mcheck_check_all): Fix typo.
902         * malloc/memusage.c (mmap): Likewise.
903         (mmap64, mremap): Likewise.  Adjust name in comment.
905 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
907         * libio/fileops.c: Fix typos in comments.
908         * libio/oldfileops.c: Likewise.
909         * libio/wfileops.c: Likewise.
911 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
913         [BZ #1349]
914         * malloc/Makefile (tests): Add tst-malloc-usable test case.
915         (tst-malloc-usable-ENV): Set environment for test case.
916         * malloc/hooks.c (malloc_check_get_size): New function to get
917         requested size.
918         * malloc/malloc.c (musable): Use malloc_check_get_size.
919         * malloc/tst-malloc-usable.c: New test case.
921 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
923         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
925 2012-09-05  Allan McRae  <allan@archlinux.org>
927         [BZ #13966]
928         * configure.in (CXX_SYSINCLUDES): Use compiler output to
929         determine header location.
930         * configure: Regenerated.
932 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
934         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
935         float format.
936         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
937         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
938         format.
939         (test): Regenerate.
941 2012-09-04  David S. Miller  <davem@davemloft.net>
943         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
944         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
945         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
947 2012-09-04  Florian Weimer  <fweimer@redhat.com>
949         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
950         failures.
952         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
954 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
956         [BZ #9914]
957         * libio/iogetdelim.c: Include <limits.h>.
958         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
959         + len + 1 would overflow.
961 2012-09-03  Andreas Jaeger  <aj@suse.de>
963         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
964         * sysdeps/i386/fpu/libm-test-ulps: Update.
966 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
968         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
969         Add s_sinf-sse2, s_conf-sse2.
971         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
972         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
973         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
974         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
976         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
977         for using routine as __sinf_ia32.
978         Use macro for function declaration and weak_alias.
979         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
980         for using routine as __cosf_ia32.
981         Use macro for function declaration and weak_alias.
983         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
984         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
986         * sysdeps/x86_64/fpu/s_sinf.S: New file.
987         * sysdeps/x86_64/fpu/s_cosf.S: New file.
988         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
990         * math/libm-test.inc (cos_test): Add more test cases.
991         (sin_test): Likewise.
992         (sincos_test): Likewise.
994 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
996         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
997         (IFUNC_RESOLVE): Make pointers to the specialized implementations
998         hidden.
999         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1001 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1003         [BZ #14538]
1004         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1005         first element of the GOT.
1006         (elf_machine_load_address): Return the difference between
1007         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1009 2012-09-01  Allan McRae  <allan@archlinux.org>
1011         [BZ #13412]
1012         * configure.in (AWK): Require gawk version 3.0 or later.
1013         * configure: Regenerated.
1015 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1017         * sysdeps/unix/sysv/linux/kernel-features.h
1018         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1019         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1020         [__NR_clock_getres]: Make code unconditional.
1021         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1022         (clock_getcpuclockid): Remove code left unreachable by removal of
1023         conditionals.
1024         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1025         code unconditional.
1026         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1027         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1028         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1029         Make code unconditional.
1030         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1031         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1032         * sysdeps/unix/sysv/linux/clock_settime.c
1033         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1034         conditional code.
1035         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1036         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1038 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1040         [BZ #14476]
1041         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1042         scripts/test-installation.pl.
1044         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1045         and $ld_so_version if it is set.
1047 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1049         [BZ #14516]
1050         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1051         failure if reading from procfs failed.
1052         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1054 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1056         * sysdeps/unix/sysv/linux/kernel-features.h
1057         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1058         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1059         Remove conditional code.
1060         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1061         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1062         Remove conditional code.
1063         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1064         * sysdeps/unix/sysv/linux/i386/fxstat.c
1065         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1066         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1067         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1068         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1069         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1070         * sysdeps/unix/sysv/linux/i386/lxstat.c
1071         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1072         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1073         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1074         Remove conditional code.
1075         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1076         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1077         Remove conditional code.
1078         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1079         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1080         <kernel-features.h>.
1081         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1082         Remove.
1083         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1084         Remove conditional code.
1085         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1086         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1087         Remove conditional.
1089 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1091         [BZ #5400]
1092         * NEWS: Add fixed bug number.
1094 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1096         [BZ #14519]
1097         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1098         underflowing exponent in case of negative sign.
1099         * stdlib/tst-strtod-round-data: Add more tests.
1100         * stdlib/tst-strtod-round.c (tests): Regenerated.
1102         [BZ #3479]
1103         * stdlib/strtod_l.c (NDIG): Remove.
1104         (HEXNDIG): Likewise.
1105         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1106         smallest representable value.
1107         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1108         lie within an exact representation of 1/2 ulp of the result.
1109         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1110         unconditionally.
1111         (TENS_P9_IDX): Define unconditionally.
1112         (TENS_P9_SIZE): Likewise.
1113         (TENS_P10_IDX): Likewise.
1114         (TENS_P10_SIZE): Likewise.
1115         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1116         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1117         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1118         entries for 10^2^13 and 10^2^14.
1119         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1120         (TENS_P13_IDX): Define.
1121         (TENS_P13_SIZE): Likewise.
1122         (TENS_P14_IDX): Likewise.
1123         (TENS_P14_SIZE): Likewise.
1124         (_fpioconst_pow10): Change array size to
1125         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1126         unconditional.
1127         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1128         1024]: Add entries for 10^2^13 and 10^2^14.
1129         [LAST_POW10 > _LAST_POW10]: Remove #error.
1130         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1131         (_fpioconst_pow10): Change array size to
1132         FPIOCONST_POW10_ARRAY_SIZE.
1133         * stdlib/gen-fpioconst.c: New file.
1134         * stdlib/gen-tst-strtod-round.c: Likewise.
1135         * stdlib/tst-strtod-round-data: Likewise.
1136         * stdlib/tst-strtod-round.c: Likewise.
1137         * stdlib/Makefile (tests): Add tst-strtod-round.
1139         [BZ #14459]
1140         * stdlib/strtod_l.c: Include <stdint.h>.
1141         (NDEBUG): Do not define.
1142         (round_and_return): Change EXPONENT parameter to type intmax_t.
1143         Rearrange calculations to avoid internal overflow possibilities.
1144         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1145         Rearrange calculations to avoid internal overflow possibilities.
1146         Assert that number fits inside MPNSIZE limbs.
1147         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1148         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1149         calculations and add assertions to avoid internal overflow
1150         possibilities.  Add casts to avoid signed/unsigned operations.
1151         * stdlib/tst-strtod-overflow.c: New file.
1152         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1154 2012-08-25  Marek Polacek  <polacek@redhat.com>
1156         * time/time.h: Fix some typos in comments.
1158 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1160         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1161         * posix/tst-rfc3484-2.c: Likewise.
1162         * posix/tst-rfc3484-3.c: Likewise.
1164 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1166         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1167         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1169 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1171         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1172         #include of fxstatat64.c.
1174 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1176         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1177         * shadow/getspent_r.c: Likewise.
1178         * shadow/getspnam.c: Likewise.
1179         * shadow/getspnam_r.c: Likewise.
1180         * gshadow/getsgent.c: Likewise.
1181         * gshadow/getsgent_r.c: Likewise.
1182         * gshadow/getsgnam.c: Likewise.
1183         * gshadow/getsgnam_r.c: Likewise.
1184         * inet/getnetbyad.c: Likewise.
1185         * inet/getnetbyad_r.c: Likewise.
1186         * inet/getnetbynm.c: Likewise.
1187         * inet/getnetbynm_r.c: Likewise.
1188         * inet/getnetent.c: Likewise.
1189         * inet/getnetent_r.c: Likewise.
1190         * inet/getproto.c: Likewise.
1191         * inet/getproto_r.c: Likewise.
1192         * inet/getprtent.c: Likewise.
1193         * inet/getprtent_r.c: Likewise.
1194         * inet/getprtname.c: Likewise.
1195         * inet/getprtname_r.c: Likewise.
1196         * inet/getrpcbyname.c: Likewise.
1197         * inet/getrpcbyname_r.c: Likewise.
1198         * inet/getrpcbynumber.c: Likewise.
1199         * inet/getrpcbynumber_r.c: Likewise.
1200         * inet/getrpcent.c: Likewise.
1201         * inet/getrpcent_r.c: Likewise.
1202         * inet/getaliasent.c: Likewise.
1203         * inet/getaliasent_r.c: Likewise.
1204         * inet/getaliasname.c: Likewise.
1205         * inet/getaliasname_r.c: Likewise.
1206         * nscd/getgrgid_r.c: Likewise.
1207         * nscd/getgrnam_r.c: Likewise.
1208         * nscd/gethstbyad_r.c: Likewise.
1209         * nscd/gethstbynm3_r.c: Likewise.
1210         * nscd/getpwnam_r.c: Likewise.
1211         * nscd/getpwuid_r.c: Likewise.
1212         * nscd/getsrvbynm_r.c: Likewise.
1213         * nscd/getsrvbypt_r.c: Likewise.
1214         * nscd/gai.c: Likewise.
1216         * configure.in (build_nscd): New substituted variable, set
1217         by --disable-build-nscd and defaults to $use_nscd.
1218         * configure: Regenerated.
1219         * config.make.in (build-nscd): New substituted variable.
1220         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1221         Change conditional to require [$(build-nscd) = yes] as well.
1222         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1224         [BZ# 13696]
1225         * configure.in (use_nscd): New substituted variable, set by
1226         --disable-nscd.  If enabled, define USE_NSCD.
1227         * configure: Regenerated.
1228         * config.h.in: Add USE_NSCD.
1229         * config.make.in (use-nscd): New substituted variable.
1230         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1231         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1232         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1233         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1234         (CFLAGS-getgrnam_r.c): Likewise.
1235         (CFLAGS-initgroups.c): Likewise.
1236         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1237         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1238         Variables removed.
1239         * inet/getnetgrent_r.c
1240         (nscd_setnetgrent): New function, broken out of ...
1241         (setnetgrent): ... here.  Call it.
1242         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1243         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1244         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1245         * nscd/Makefile (routines, aux): Move definitions after include of
1246         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1247         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1248         Conditionalize on [USE_NSCD].
1249         (is_nscd, nscd_init_cb): Likewise.
1250         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1251         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1252         * nss/nss_db/db-init.c: Likewise.
1253         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1254         [USE_NSCD].
1255         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1256         (make_request): Use it.
1257         (cache_valid_p): New function.
1258         (__check_pf): Use it.
1259         * NEWS: Add item for --disable-nscd.
1261 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1263         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1264         to support sed >= 4.2.1-20-ga9bf076.
1265         * configure: Regenerated.
1267 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1269         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1270         Conditionalize whole body on [IREL].
1272 2012-08-22  Jeff Law <law@redhat.com>
1274         [BZ #14505]
1275         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1276         if the family is PF_UNSPEC.
1278 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1280         * Makerules (lib-version): Rename from V.
1281         (install-lib-nosubdir): Change V to lib-version.
1283 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1285         [BZ #14252]
1286         * powerpc32/power6/wcschr.c: New file.
1287         * powerpc32/power6/wcscpy.c: New file.
1288         * powerpc32/power6/wcsrchr.c: New file.
1289         * powerpc64/power6/wcschr.c: New file.
1290         * powerpc64/power6/wcscpy.c: New file.
1291         * powerpc64/power6/wcsrchr.c: New file.
1293 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1295         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1296         (two_way_short_needle): Use it.
1297         * string/strstr.c (AVAILABLE1_USES_J): Define.
1298         * string/strcasestr.c: Likewise.
1300         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1301         array references.
1302         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1304         [BZ #11607]
1305         * NEWS: Add an entry.
1306         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1307         define their defaults.
1308         (two_way_short_needle): Detect end-of-string on-the-fly.
1309         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1310         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1311         * string/bug-strcasestr1.c: New test.
1312         * string/Makefile: Run it.
1314 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1316         [BZ #11607]
1317         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1318         the first character.
1320 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1322         * csu/elf-init.c (__libc_csu_irel): Function removed.
1323         * csu/libc-start.c (apply_irel): New function.
1324         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1326 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1328         * sysdeps/unix/sysv/linux/kernel-features.h
1329         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1330         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1331         <kernel-features.h>.
1332         [__NR_fadvise64_64]: Make code unconditional.
1333         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1334         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1335         !__NR_fadvise64_64)]: Likewise.
1336         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1337         !__NR_fadvise64_64))]: Likewise.
1338         [__NR_fadvise64]: Make code unconditional.
1339         [!__NR_fadvise64]: Remove conditional code.
1340         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1341         <kernel-features.h>.
1342         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1343         unconditional.
1344         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1345         conditional code.
1346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1347         not include <kernel-features.h>.
1348         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1349         unconditional.
1350         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1351         conditional code.
1352         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1353         include <kernel-features.h>.
1354         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1355         unconditional.
1356         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1357         conditional code.
1359 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1361         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1362         slight instruction rearrangements per scrollpipe analysis.
1363         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1365 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1367         * manual/syslog.texi (syslog; vsyslog, closelog):
1368         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1369         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1371         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1372         DSOCAPS to match condition on defining it.
1374 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1376         * sysdeps/unix/sysv/linux/kernel-features.h
1377         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1379         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1380         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1382         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1383         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1385         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1386         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1388         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1389         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1391         * sysdeps/unix/sysv/linux/kernel-features.h
1392         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1393         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1394         unconditional.
1395         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1396         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1397         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1398         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1399         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1400         Make code unconditional.
1401         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1402         (__mmap64) [!__NR_mmap2]: Likewise.
1403         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1404         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1405         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1406         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1407         [__NR_mmap2]: Make code unconditional.
1408         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1409         (__mmap64) [!__NR_mmap2]: Likewise.
1411 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1413         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1415 2012-08-18  Andreas Jaeger  <aj@suse.de>
1417         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1419 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1421         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1422         * include/unistd.h (__have_sock_cloexec): Likewise.
1423         (__have_pipe2): Likewise.
1424         (__have_dup3): Likewise.
1426 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1428         [BZ #9685]
1429         * include/unistd.h (__have_pipe2): Change define into an extern int.
1430         (__have_dup3): Likewise.
1431         * socket/have_sock_cloexec.c: Include fcntl.h.
1432         (__have_pipe2): New variable.
1433         (__have_dup3): Likewise.
1435 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1437         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1439 2012-08-17  Marek Polacek  <polacek@redhat.com>
1441         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1442         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1444 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1446         * configure.in: Add AC_SUBST for sysheaders.
1447         * configure: Regenerated.
1448         * config.make.in (sysheaders): New substituted variable.
1450         * sysdeps/unix/mkfifo.c: Moved ...
1451         * sysdeps/posix/mkfifo.c: ... here.
1452         * sysdeps/unix/mkfifoat.c: Moved ...
1453         * sysdeps/posix/mkfifoat.c: ... here.
1455         * sysdeps/unix/utime.c: Moved ...
1456         * sysdeps/posix/utime.c: ... here.
1458         * sysdeps/unix/time.c: Moved ...
1459         * sysdeps/posix/time.c: ... here.
1460         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1461         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1463         * sysdeps/unix/nice.c: Moved ...
1464         * sysdeps/posix/nice.c: ... here.
1466         * sysdeps/unix/alarm.c: Moved ...
1467         * sysdeps/posix/alarm.c: ... here.
1469         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1471 2012-08-17  Jeff Law <law@redhat.com>
1473         * intl/Makefile (codeset_mo): New variable.
1474         ($(codeset_mo)): New target.
1475         (tst-codeset.out): Depend on that.  Remove explicit rule.
1476         (tst-gettext3.out, tst-gettext5.out): Likewise.
1477         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1478         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1479         * intl/tst-codeset.sh: Remove.
1480         * intl/tst-gettext3.sh: Likewise.
1481         * intl/tst-gettext5.sh: Likewise.
1483 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1485         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1486         * sysdeps/unix/syscalls.list: ... here.
1488         * sysdeps/posix/getaddrinfo.c
1489         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1490         (gaiconf_init, gaiconf_reload): Use them.
1491         [!_STATBUF_ST_NSEC]
1492         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1493         Define using time_t rather than struct timespec.
1495         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1496         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1497         Macros removed.
1498         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1499         [!NO_THREADS].
1500         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1501         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1502         Likewise.
1504         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1505         __libc_cleanup_push argument.
1507         * bits/param.h: New file.
1508         * misc/sys/param.h: New file.
1509         * include/sys/param.h: New file.
1510         * misc/Makefile (headers): Add bits/param.h.
1511         * sysdeps/generic/sys/param.h: File removed.
1512         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1513         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1514         * sysdeps/mach/hurd/bits/param.h: New file.
1515         * sysdeps/mach/hurd/sys/param.h: New file.
1517         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1518         last change.
1520         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1521         [_IO_MTSAFE_IO].
1522         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1523         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1524         New macros.
1526         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1527         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1528         rather than -D_IO_MTSAFE_IO conditionally.
1529         * stdio-common/Makefile (CPPFLAGS): Likewise.
1530         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1531         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1532         Use $(libio-mtsafe).
1533         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1534         of -D_IO_MTSAFE_IO.
1535         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1536         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1537         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1538         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1539         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1540         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1541         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1542         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1543         (CFLAGS-fread_u_chk.c): Likewise.
1544         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1545         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1546         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1547         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1548         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1549         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1550         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1551         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1552         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1554         * libio/Makefile: Test [$(libc-reentrant) = yes]
1555         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1557         * Makeconfig
1558         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1559         * sysdeps/pthread/configure: File removed.
1560         * sysdeps/pthread/Makeconfig: New file.
1561         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1562         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1564 2012-08-16  Gary Benson  <gbenson@redhat.com>
1566         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1567         unmapping the first object in a namespace.
1569 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1571         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1572         (__internal_setnetgrent): ... this.  Add internal_function to
1573         definition.  Add libc_hidden_def.
1574         (setnetgrent): Update caller.
1575         (internal_endnetgrent): Renamed to ...
1576         (__internal_endnetgrent): ... this.  Add internal_function to
1577         definition.  Add libc_hidden_def.
1578         (endnetgrent): Update caller.
1579         (internal_getnetgrent_r): Renamed to ...
1580         (__internal_getnetgrent_r): ... this.  Add internal_function to
1581         definition.  Add libc_hidden_def.
1582         (__getnetgrent_r): Update caller.
1583         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1585 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1587         * stdlib/longlong.h: Update from GCC.
1589 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1591         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1592         on _QL, which is set by umul_ppmm but never used.
1593         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1594         variables, which are set by GMP macros but never used.
1595         * stdio-common/_itowa.c (_itowa): Likewise.
1596         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1597         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1599 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1601         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1602         struct La_sh_regs is not constant.
1603         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1604         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1605         and struct La_sparc64_regs are not constant.
1607 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1609         * sysdeps/unix/sysv/linux/kernel-features.h
1610         (__ASSUME_POSIX_TIMERS): Remove.
1611         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1612         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1613         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1614         Make code unconditional.
1615         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1616         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1617         Make code unconditional.
1618         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1619         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1620         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1621         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1622         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1623         Make code unconditional.
1624         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1625         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1626         (__libc_missing_posix_timers): Remove.
1628 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1630         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1631         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1633         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1635         * elf/dl-sym.c: Include <stdlib.h>.
1637         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1638         constants, which avoids warnings in 32-bit builds.
1640         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1641         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1643         * misc/lseek.c: File moved to ...
1644         * io/lseek.c: ... here.
1646         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1648         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1649         shifting LEN more than 31 bits at once.
1651 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1653         [BZ #14195]
1654         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1655         segmentation fault for a case of two empty input strings.
1656         * string/test-strncasecmp.c (check1): Renamed to...
1657         (bz12205): ...this.
1658         (bz14195): Add new testcase for two empty input strings and N > 0.
1659         (test_main): Call new testcase, adapt for renamed function.
1661 2012-08-15  Andreas Jaeger  <aj@suse.de>
1663         [BZ #14090]
1664         * crypt/md5test2.c: New test, based on test supplied by Serge
1665         Belyshev <belyshev@depni.sinp.msu.ru>.
1666         * crypt/Makefile (xtests): Add md5test-giant..
1667         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1669 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1671         [BZ #14090]
1672         * crypt/md5.c (md5_process_block): Don't assume the buffer
1673         length is less than 2**32.
1674         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1675         length is less than 2**64.
1677 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1679         * string/str-two-way.h: Include <sys/param.h>.
1680         (MAX): Macro removed.
1682         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1683         Move #define and #undef of memmove to just before and after
1684         including <string.h>.
1686         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1687         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1688         and after including <string.h>.  Move declarations of
1689         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1690         to before #include "string/memmove.c".
1692         * include/dirent.h: Declare __getdirentries.
1694         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1695         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1697 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1699         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1700         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1701         * sysdeps/i386/configure: Regenerated.
1702         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1703         STABS_CURRENT_FILE, and STABS_FUN.
1704         (END): Remove call to STABS_FUN_END.
1705         (STABS_CURRENT_FILE1): Delete.
1706         (STABS_CURRENT_FILE): Likewise.
1707         (STABS_FUN): Likewise.
1708         (STABS_FUN_END): Likewise.
1709         (STABS_FUN2): Likewise.
1710         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1711         * sysdeps/x86_64/configure: Regenerated.
1713 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1715         * elf/dl-open.c: Include <atomic.h>.
1716         * elf/dl-lookup.c: Likewise.
1718 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1720         * sysdeps/unix/sysv/linux/kernel-features.h
1721         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1722         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1723         unconditionally.
1724         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1725         unconditionally.
1726         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1727         condition on __ASSUME_CLONE_THREAD_FLAGS.
1729 2012-08-14  Andreas Jaeger  <aj@suse.de>
1731         * sysdeps/i386/fpu/libm-test-ulps: Update.
1733 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1735         * include/atomic.h (atomic_exchange_and_add): Split into ...
1736         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1737         New atomic macros.
1739 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1741         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1743 2012-08-13  Jeff Law <law@redhat.com>
1745         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1746         null byte in the output string.
1748 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1750         * sysdeps/unix/sysv/linux/kernel-features.h
1751         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1752         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1753         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1754         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1755         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1756         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1757         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1759 2012-08-09  Jeff Law <law@redhat.com>
1761         [BZ #13939]
1762         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1763         When avoid_arena is set, don't retry in the that arena.  Pick the
1764         next one, whatever it might be.
1765         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1766         (arena_lock): Pass in new parameter to arena_get2.
1767         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1768         arena_get2.
1769         (__libc_malloc): Unify retrying after main arena failure with
1770         __libc_memalign version.
1771         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1773 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1775         [BZ #14166]
1776         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1777         to __redirect_strstr.
1778         (__strstr_sse42): Use typeof __redirect_strstr.
1779         (__strstr_ia32): Likewise.
1780         (__libc_strstr): New prototype.
1781         (strstr): Renamed to ...
1782         (__libc_strstr): This.
1783         (strstr): New strong alias of __libc_strstr.
1784         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1785         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1786         __redirect_time.
1787         Include <time.h>.
1788         (__libc_time): New prototype.
1789         (time_ifunc): Replace time with __libc_time.
1790         (time): New strong alias and hidden definition of __libc_time.
1791         (__GI_time): Remove strong alias.
1792         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1793         Include <stddef.h>.
1794         (memmove): Redefined to __redirect_memmove.
1795         (__memmove_sse2): Use typeof __redirect_memmove.
1796         (__memmove_ssse3): Likewise.
1797         (__memmove_ssse3_back): Likewise.
1798         (__libc_memmove): New prototype.
1799         (memmove): Renamed to ...
1800         (__libc_memmove): This.
1801         (memmove): New strong alias of __libc_memmove.
1803 2012-08-08  Mark Salter  <msalter@redhat.com>
1805         * elf/elf.h
1806         (R_MN10300_TLS_GD): Define.
1807         (R_MN10300_TLS_LD): Likewise.
1808         (R_MN10300_TLS_LDO): Likewise.
1809         (R_MN10300_TLS_GOTIE): Likewise.
1810         (R_MN10300_TLS_IE): Likewise.
1811         (R_MN10300_TLS_LE): Likewise.
1812         (R_MN10300_TLS_DTPMOD): Likewise.
1813         (R_MN10300_TLS_DTPOFF): Likewise.
1814         (R_MN10300_TLS_TPOFF): Likewise.
1815         (R_MN10300_SYM_DIFF): Likewise.
1816         (R_MN10300_ALIGN): Likewise.
1817         (R_MN10300_NUM): Update.
1819 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1821         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1822         Remove.
1824 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1826         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1828         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1829         sysdeps/unix -> sysdeps/posix move.
1830         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1832 2012-08-07      Allan McRae     <allan@archlinux.org>
1834         [BZ #14303]
1835         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1836         (SUNOS_CPP): Likewise.
1837         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1838         not found.
1839         (open_input): Call CPP using execvp.
1841 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1843         * sysdeps/unix/sysv/linux/kernel-features.h
1844         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1845         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1846         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1847         (__ASSUME_WAITID_SYSCALL): Likewise.
1848         * sysdeps/unix/sysv/linux/dl-execstack.c
1849         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1850         code unconditional.
1851         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1852         conditional code.
1853         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1854         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1855         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1856         code.
1857         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1858         unconditional.
1859         [__ASSUME_WAITID_SYSCALL]: Likewise.
1860         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1862 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1864         * sysdeps/unix/closedir.c: Renamed to ...
1865         * sysdeps/posix/closedir.c: ... here.
1866         * sysdeps/unix/dirfd.c: Renamed to ...
1867         * sysdeps/posix/dirfd.c: ... here.
1868         * sysdeps/unix/dirstream.h: Renamed to ...
1869         * sysdeps/posix/dirstream.h: ... here.
1870         * sysdeps/unix/fdopendir.c: Renamed to ...
1871         * sysdeps/posix/fdopendir.c: ... here.
1872         * sysdeps/unix/opendir.c: Renamed to ...
1873         * sysdeps/posix/opendir.c: ... here.
1874         * sysdeps/unix/readdir.c: Renamed to ...
1875         * sysdeps/posix/readdir.c: ... here.
1876         * sysdeps/unix/readdir_r.c: Renamed to ...
1877         * sysdeps/posix/readdir_r.c: ... here.
1878         * sysdeps/unix/rewinddir.c: Renamed to ...
1879         * sysdeps/posix/rewinddir.c: ... here.
1880         * sysdeps/unix/seekdir.c: Renamed to ...
1881         * sysdeps/posix/seekdir.c: ... here.
1882         * sysdeps/unix/telldir.c: Renamed to ...
1883         * sysdeps/posix/telldir.c: ... here.
1884         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1885         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1886         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1887         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1889         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1890         * bits/fcntl.h: ... here.
1892         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1893         not 0.
1894         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1895         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1896         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1897         (struct flock): Move l_start, l_len to the beginning.
1898         Use __pid_t for l_pid.
1899         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1900         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1901         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1902         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1903         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1904         [__USE_LARGEFILE64] (struct flock64): New type.
1905         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1907         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1908         * bits/dirent.h: ... here.
1910         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1911         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1913 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1915         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1916         Change from 2.6.0 to 2.6.16.
1917         * sysdeps/unix/sysv/linux/configure: Regenerated.
1918         * sysdeps/unix/sysv/linux/kernel-features.h
1919         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1920         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1921         version.
1922         (__ASSUME_UTIMES): Likewise.
1923         (__ASSUME_CLONE_STOPPED): Remove.
1924         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1925         architectures, not kernel version.
1926         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1927         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1928         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1929         (__ASSUME_WAITID_SYSCALL): Likewise.
1930         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1931         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1932         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1933         refer to older versions.
1935 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1937         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1938         Define alphasort64 as an alias.
1939         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1940         Define versionsort64 as an alias.
1941         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1942         Define scandir64 as an alias.
1943         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1944         Define scandirat64 as an alias.
1945         * dirent/alphasort64.c (alphasort64):
1946         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1947         * dirent/versionsort64.c: Likewise.
1948         * dirent/scandir64.c: Likewise.
1949         * dirent/scandirat64.c: Likewise.
1950         * sysdeps/wordsize-64/alphasort.c: File removed.
1951         * sysdeps/wordsize-64/alphasort64.c: File removed.
1952         * sysdeps/wordsize-64/scandir.c: File removed.
1953         * sysdeps/wordsize-64/scandir64.c: File removed.
1954         * sysdeps/wordsize-64/scandirat.c: File removed.
1955         * sysdeps/wordsize-64/scandirat64.c: File removed.
1956         * sysdeps/wordsize-64/versionsort.c: File removed.
1957         * sysdeps/wordsize-64/versionsort64.c: File removed.
1958         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1959         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1960         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1961         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1962         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1963         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1964         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1965         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1967         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1968         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1969         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1970         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1971         [defined __arch64__ || defined __sparcv9]
1972         (__INO_T_MATCHES_INO64_T): New macro.
1973         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1974         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1975         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1976         * sysdeps/unix/sysv/linux/bits/dirent.h
1977         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1978         (_DIRENT_MATCHES_DIRENT64): New macro.
1980         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1981         Define lockf64 as an alias.
1982         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1983         Define fseeko64 as an alias.
1984         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1985         Define ftello64 as an alias.
1986         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1987         Define _IO_fgetpos64 and fgetpos64 as aliases.
1988         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1989         Define _IO_fsetpos64 and fsetpos64 as aliases.
1990         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1991         Conditionalize body on this.
1992         * libio/fseeko64.c: Likewise.
1993         * libio/ftello64.c: Likewise.
1994         * libio/iofgetpos64.c: Likewise.
1995         * libio/iofsetpos64.c: Likewise.
1996         * sysdeps/wordsize-64/lockf.c: File removed.
1997         * sysdeps/wordsize-64/lockf64.c: File removed.
1998         * sysdeps/wordsize-64/fseeko.c: File removed.
1999         * sysdeps/wordsize-64/fseeko64.c: File removed.
2000         * sysdeps/wordsize-64/ftello.c: File removed.
2001         * sysdeps/wordsize-64/ftello64.c: File removed.
2002         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2003         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2004         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2005         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2006         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2007         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2008         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2009         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2010         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2011         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2012         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2013         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2014         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2015         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2017         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2018         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2019         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2020         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2021         [defined __arch64__ || defined __sparcv9]
2022         (__OFF_T_MATCHES_OFF64_T): New macro.
2023         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2024         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2025         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2026         (__OFF_T_MATCHES_OFF64_T): New macro.
2028 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2030         * stdlib/secure-getenv.c (__secure_getenv): Replace
2031         GLIBC_2_16 with GLIBC_2_17.
2033 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2035         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2036         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2038 2012-08-03  David S. Miller  <davem@davemloft.net>
2040         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2042 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2044         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2045         Remove.
2046         (__ASSUME_CORRECT_SI_PID): Likewise.
2047         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2048         (__ASSUME_TMPFS_NAME): Likewise.
2049         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2050         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2051         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2052         (HAVE_AUX_SECURE): Make definition unconditional.
2053         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2054         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2056 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2058         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2059         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2060         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2061         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2062         __eloop_threshold instead of SYMLOOP_MAX.
2064         * sysdeps/generic/eloop-threshold.h: New file.
2065         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2066         of MAXSYMLINKS.
2067         * elf/chroot_canon.c (chroot_canon): Likewise.
2069 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2071         [BZ #13717]
2072         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2073         Change to 2.6.0 everywhere.
2074         * sysdeps/unix/sysv/linux/configure: Regenerated.
2075         * sysdeps/unix/sysv/linux/kernel-features.h
2076         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2077         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2078         kernel versions.
2079         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2080         (__ASSUME_FUTEX_REQUEUE): Remove.
2081         (__ASSUME_STATFS64): Define unconditionally.
2082         (__ASSUME_AT_SECURE): Likewise.
2083         (__ASSUME_CORRECT_SI_PID): Likewise.
2084         (__ASSUME_TGKILL): Define without depending on kernel version for
2085         i386.
2086         (__ASSUME_UTIMES): Likewise.
2087         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2088         kernel version.
2089         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2090         (__ASSUME_TMPFS_NAME): Likewise.
2091         * README: Update reference to Linux kernel versions.
2093 2012-08-02  Marek Polacek  <polacek@redhat.com>
2095         [BZ# 14150]
2096         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2097         libc_cv_asm_type_prefix with %.
2098         * configure: Regenerated.
2099         * include/libc-symbols.h: Remove comment about
2100         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2101         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2102         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2103         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2104         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2105         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2106         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2107         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2108         * elf/tst-unique2mod1.c: Likewise.
2109         * elf/tst-unique1mod2.c: Likewise.
2110         * elf/tst-unique1mod1.c: Likewise.
2111         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2112         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2113         Replace ASM_TYPE_DIRECTIVE with .type.
2114         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2115         * sysdeps/i386/sysdep.h: Likewise.
2116         * sysdeps/x86_64/sysdep.h: Likewise.
2117         * sysdeps/sh/sysdep.h: Likewise.
2118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2119         Do not define ASM_TYPE_DIRECTIVE.
2120         * sysdeps/powerpc/sysdep.h: Likewise.
2121         * sysdeps/powerpc/powerpc32/sysdep.h:
2122         Replace ASM_TYPE_DIRECTIVE with .type.
2123         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2124         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2125         * sysdeps/i386/fpu/e_powf.S: Likewise.
2126         * sysdeps/i386/fpu/e_expl.S: Likewise.
2127         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2128         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2129         * sysdeps/i386/fpu/e_pow.S: Likewise.
2130         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2131         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2132         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2133         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2134         * sysdeps/i386/fpu/e_log2.S: Likewise.
2135         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2136         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2137         * sysdeps/i386/fpu/e_powl.S: Likewise.
2138         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2139         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2140         * sysdeps/i386/fpu/e_logl.S: Likewise.
2141         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2142         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2143         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2144         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2145         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2146         * sysdeps/i386/fpu/e_log.S: Likewise.
2147         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2148         * sysdeps/i386/fpu/e_logf.S: Likewise.
2149         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2150         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2151         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2152         * sysdeps/i386/fpu/e_log10.S: Likewise.
2153         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2154         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2155         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2156         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2157         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2158         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2159         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2160         * sysdeps/i386/i686/strtok.S: Likewise.
2161         * sysdeps/i386/i386-mcount.S: Likewise.
2162         * sysdeps/i386/strtok.S: Likewise.
2163         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2164         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2165         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2166         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2167         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2168         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2169         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2170         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2171         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2172         * sysdeps/x86_64/_mcount.S: Likewise.
2173         * sysdeps/x86_64/strtok.S: Likewise.
2174         * sysdeps/sh/_mcount.S: Likewise.
2176 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2178         * libio/iofopen.c: Include <fcntl.h>.
2179         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2180         (_IO_fopen64, fopen64): Define as aliases.
2181         * libio/iofopen64.c: Include <fcntl.h>.
2182         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2183         Conditionalize body on this.
2184         * sysdeps/wordsize-64/iofopen.c: File removed.
2185         * sysdeps/wordsize-64/iofopen64.c: File removed.
2187 2012-08-01  Marek Polacek  <polacek@redhat.com>
2189         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2190         Use dlfcn directly instead of a variable.
2191         (binfmt-subdir): Do not define.
2192         (dlfcn): Likewise.
2194 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2196         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2197         Remove all definitions.
2198         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2199         <kernel-features.h>.
2200         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2201         (miss_F_GETOWN_EX): Remove all definitions.
2202         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2203         macro definition.
2204         [!__ASSUME_FCNTL64]: Remove conditional code.
2205         [__ASSUME_FCNTL64]: Make code unconditional.
2206         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2207         <kernel-features.h>.
2208         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2209         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2210         (lockf64) [__NR_fcntl64]: Make code unconditional.
2211         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2213         * sysdeps/unix/sysv/linux/kernel-features.h
2214         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2215         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2216         Make code unconditional.
2217         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2218         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2220         [__NR_vfork]: Make code unconditional.
2221         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2222         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2224         [__NR_vfork]: Make code unconditional.
2225         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2226         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2228 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2230         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2231         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2233         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2234         Define mkstemp64 as an alias.
2235         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2236         Define mkstemps64 as an alias.
2237         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2238         Define mkostemp64 as an alias.
2239         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2240         Define mkostemps64 as an alias.
2241         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2242         Conditionalize body on this.
2243         * misc/mkostemp64.c: Likewise.
2244         * misc/mkostemps64.c: Likewise.
2245         * misc/mkstemps64.c: Likewise.
2246         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2247         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2248         * sysdeps/wordsize-64/mkostemp.c: File removed.
2249         * sysdeps/wordsize-64/mkstemp.c: File removed.
2250         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2251         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2252         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2253         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2255         [BZ #14138]
2256         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2257         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2258         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2259         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2261         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2262         compat_symbol macros from <shlib-compat.h> rather than the underlying
2263         default_symbol_version and symbol_version macros, so that DEFAULT
2264         lines in shlib-versions are respected.
2265         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2267 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2269         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2270         Declare with warn_unused_result.
2271         (setgid, setregid, setegid, setresgid): Likewise.
2272         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2273         Likewise.
2274         * WUR-REPORT: Remove set*id functions.
2276 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2278         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2280 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2282         * include/sys/socket.h (__libc_accept, __libc_accept4):
2283         Add attribute_hidden.
2284         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2286         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2287         use of PTR_MANGLE.
2288         * inet/getnetgrent_r.c (setup): Likewise.
2290         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2292 2012-07-31  David S. Miller  <davem@davemloft.net>
2294         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2296 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2298         [BZ #13629]
2299         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2300         value between 1.0 and 2.0 and smaller part has absolute value less
2301         than 1.0.
2302         * math/s_clog10.c (__clog10): Likewise.
2303         * math/s_clog10f.c (__clog10f): Likewise.
2304         * math/s_clog10l.c (__clog10l): Likewise.
2305         * math/s_clogf.c (__clogf): Likewise.
2306         * math/s_clogl.c (__clogl): Likewise.
2307         * math/libm-test.inc (clog_test): Add more tests.
2308         (clog10_test): Likewise.
2309         * sysdeps/i386/fpu/libm-test-ulps: Update.
2310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2312 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2314         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2315         Exit with zero in case no suitable GID is found, and write a
2316         message to standard error.
2318 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2320         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2321         rather than to 1.
2322         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2323         (MAXPATHLEN): Removed.
2324         (NOGROUP, NODEV): New macros.
2325         (setbit, clrbit, isset, isclr): New macros.
2326         (howmany, roundup, powerof2): New macros.
2327         (DEV_BSIZE): New macro.
2329         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2330         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2332         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2333         definition on [!__NO_LONG_DOUBLE_MATH].
2335         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2336         PTR_MANGLE and PTR_DEMANGLE.
2338         * socket/accept4.c (accept4): Rename to __libc_accept4.
2339         Define accept4 as a weak alias.
2341         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2342         on [_DIRENT_HAVE_D_TYPE].
2343         * io/ftw.c (ftw_dir): Likewise.
2345         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2347         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2349         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2350         Use the BSD numbers rather than the arbitrary ones we had.
2351         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2352         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2353         (SIGXCPU, SIGXFSZ): New macros.
2354         (_NSIG): Now 32.
2356         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2357         initializer on [_LIBC_REENTRANT].
2359         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2360         definitions inside [_POSIX_MAPPED_FILES].
2362         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2364         * dirent/opendir.c: Include <fcntl.h>.
2366         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2367         (__libc_getspecific): Likewise.
2368         (__libc_key_create): Likewise.
2370         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2371         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2372         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2373         (tmpfile64): Define as alias.
2374         * sysdeps/wordsize-64/tmpfile.c: File removed.
2375         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2376         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2377         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2379         * stdio-common/vfscanf.c: Include <stdbool.h>.
2380         * nss/makedb.c: Likewise.
2381         * stdio-common/_i18n_number.h: Likewise.
2382         * argp/argp-help.c: Likewise.
2383         * posix/wordexp.c: Likewise.
2384         * sysdeps/posix/spawni.c: Likewise.
2385         * nss/nss_files/files-initgroups.c: Likewise.
2386         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2387         * nss/nss_files/files-initgroups.c: Likewise.
2388         * nss/nss_db/db-netgrp.c: Likewise.
2389         * nss/nss_db/db-initgroups.c: Likewise.
2390         * io/fchmodat.c: Include <sys/stat.h>.
2392         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2393         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2395         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2396         [HAVE_MMAP].
2398         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2399         Add multiple inclusion protection.
2401 2012-07-27  David S. Miller  <davem@davemloft.net>
2403         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2405 2012-07-27  Gary Benson  <gbenson@redhat.com>
2407         [BZ #14298]
2408         * elf/rtld.c: Include <stap-probe.h>.
2409         (dl_main): Added static probes "init_start" and "init_complete".
2410         * elf/dl-load.c: Include <stap-probe.h>.
2411         (lose): Take new parameter "nsid".
2412         Added static probe "map_failed".
2413         (_dl_map_object_from_fd): Pass namespace id to lose.
2414         Added static probe "map_start".
2415         (open_verify): Pass namespace id to lose.
2416         * elf/dl-open.c: Include <stap-probe.h>.
2417         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2418         and "reloc_complete".
2419         * elf/dl-close.c: Include <stap-probe.h>.
2420         (_dl_close_worker): Added static probes "unmap_start" and
2421         "unmap_complete".
2422         * elf/rtld-debugger-interface.txt: New file documenting the above.
2424 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2426         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2427         rather than a string variable.
2428         * sunrpc/rpc_main.c (h_output): Likewise.
2429         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2431 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2433         * inet/check_native.c: New file.
2435 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2437         [BZ #13629]
2438         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2439         if larger part has absolute value 1.0.
2440         * math/s_clog10.c (__clog10): Likewise.
2441         * math/s_clog10f.c (__clog10f): Likewise.
2442         * math/s_clog10l.c (__clog10l): Likewise.
2443         * math/s_clogf.c (__clogf): Likewise.
2444         * math/s_clogl.c (__clogl): Likewise.
2445         * math/libm-test.inc (clog_test): Add more tests.
2446         (clog10_test): Likewise.
2447         * sysdeps/i386/fpu/libm-test-ulps: Update.
2448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2450         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2451         (pltexit): Likewise.
2452         (La_regs): Likewise.
2453         (La_retval): Likewise.
2454         (int_retval): Likewise.
2455         Update #error for removed macros to refer only to definitions in
2456         tst-audit.h.
2457         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2458         macro.
2459         (pltexit): Likewise.
2460         (La_regs): Likewise.
2461         (La_retval): Likewise.
2462         (int_retval): Likewise.
2463         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2464         macro.
2465         (pltexit): Likewise.
2466         (La_regs): Likewise.
2467         (La_retval): Likewise.
2468         (int_retval): Likewise.
2469         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2470         macro.
2471         (pltexit): Likewise.
2472         (La_regs): Likewise.
2473         (La_retval): Likewise.
2474         (int_retval): Likewise.
2475         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2476         macro.
2477         (pltexit): Likewise.
2478         (La_regs): Likewise.
2479         (La_retval): Likewise.
2480         (int_retval): Likewise.
2481         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2482         macro.
2483         (pltexit): Likewise.
2484         (La_regs): Likewise.
2485         (La_retval): Likewise.
2486         (int_retval): Likewise.
2487         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2488         macro.
2489         (pltexit): Likewise.
2490         (La_regs): Likewise.
2491         (La_retval): Likewise.
2492         (int_retval): Likewise.
2493         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2494         macro definitions in tst-audit.h.
2495         * sysdeps/i386/tst-audit.h: New file.
2496         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2497         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2498         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2499         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2500         * sysdeps/sh/tst-audit.h: Likewise.
2501         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2502         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2503         * sysdeps/x86_64/tst-audit.h: Likewise.
2505 2012-07-26  Andreas Jaeger  <aj@suse.de>
2507         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2508         ptrace.
2510         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2511         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2512         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2513         PTRACE_O_MASK.
2514         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2515         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2516         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2518         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2519         value.
2521         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2522         _sigsys.
2523         (si_call_addr, si_syscall, si_arch): Define new macro.
2524         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2525         _sigsys.
2526         (si_call_addr, si_syscall, si_arch): Define new marcro.
2527         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2528         _sigsys.
2529         (si_call_addr, si_syscall, si_arch): Define new macro.
2530         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2531         _sigsys.
2532         (si_call_addr, si_syscall, si_arch): Define new macro.
2534 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2536         [BZ #13717]
2537         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2538         Change to 2.4.21 where previously 2.4.1.
2539         * sysdeps/unix/sysv/linux/configure: Regenerated.
2540         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2541         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2542         Linux kernel version.
2543         (__ASSUME_STD_AUXV): Remove.
2544         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2545         kernel version.
2546         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2547         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2548         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2549         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2550         (__ASSUME_NETLINK_SUPPORT): Likewise.
2551         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2552         (__no_netlink_support): Remove conditional definition.
2553         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2554         Remove.
2555         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2556         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2557         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2558         (if_nameindex_ioctl): Remove.
2559         (if_nameindex_netlink): Do not handle __no_netlink_support.
2560         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2561         code.
2562         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2563         Remove conditional code.
2564         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2565         code.
2566         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2567         unconditional.
2568         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2569         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2570         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2571         Remove.
2572         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2573         [!__ASSUME_STD_AUXV]: Remove conditional code.
2574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2575         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2576         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2578         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2579         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2580         code.
2581         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2583         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2584         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2585         conditional code.
2586         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2588         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2589         code.
2590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2591         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2592         conditional code.
2593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2594         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2595         code unconditional.
2596         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2597         conditional code.
2598         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2599         unconditional.
2600         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2601         conditional code.
2602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2603         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2604         unconditional.
2605         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2606         conditional code.
2607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2608         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2609         code unconditional.
2610         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2611         conditional code.
2612         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2613         unconditional.
2614         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2615         conditional code.
2616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2617         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2618         code unconditional.
2619         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2620         conditional code.
2621         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2622         unconditional.
2623         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2624         conditional code.
2626 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2628         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2629         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2630         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2631         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2632         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2633         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2634         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2635         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2636         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2637         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2638         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2639         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2640         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2641         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2642         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2643         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2644         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2645         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2646         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2647         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2648         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2649         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2650         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2652 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2654         * Versions.def: Add GLIBC_2.17.
2655         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2656         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2657         Introduce __libc_secure_getenv.
2658         * stdlib/Versions (2.17): Add secure_getenv
2659         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2660         * stdlib/secure-getenv.c: Rename __secure_getenv to
2661         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2662         symbol __secure_getenv for GLIBC_2.0.
2663         * stdlib/tst-secure-getenv.c: New.
2664         * stdlib/Makefile (tests): Add testcase.
2665         * manual/startup.texi (Environment Access): Document
2666         secure_getenv.
2667         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2668         __libc_secure_getenv.
2669         * inet/ruserpass.c (ruserpass): Likewise.
2670         * malloc/mtrace.c (mtrace): Likewise.
2671         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2672         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2673         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2674         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2675         HAVE_SECURE_GETENV.
2676         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2677         __secure_getenv to __libc_secure_getenv.
2678         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2680         Likewise.
2681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2682         Likewise.
2683         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2684         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2685         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2686         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2687         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2688         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2689         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2691 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2693         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2694         (struct La_i86_retval): Likewise.
2695         (struct La_x86_64_regs): Likewise.
2696         (struct La_x86_64_retval): Likewise.
2697         (struct La_x32_regs): Likewise.
2698         (struct La_x32_retval): Likewise.
2699         (struct La_ppc32_regs): Likewise.
2700         (struct La_ppc32_retval): Likewise.
2701         (struct La_ppc64_regs): Likewise.
2702         (struct La_ppc64_retval): Likewise.
2703         (struct La_sh_regs): Likewise.
2704         (struct La_sh_retval): Likewise.
2705         (struct La_s390_32_regs): Likewise.
2706         (struct La_s390_32_retval): Likewise.
2707         (struct La_s390_64_regs): Likewise.
2708         (struct La_s390_64_retval): Likewise.
2709         (struct La_sparc32_regs): Likewise.
2710         (struct La_sparc32_retval): Likewise.
2711         (struct La_sparc64_regs): Likewise.
2712         (struct La_sparc64_retval): Likewise.
2713         (struct audit_ifaces): Remove architecture-specific pltenter and
2714         pltexit members.
2715         * sysdeps/i386/ldsodefs.h: New file.
2716         * sysdeps/powerpc/ldsodefs.h: Likewise.
2717         * sysdeps/s390/ldsodefs.h: Likewise.
2718         * sysdeps/sh/ldsodefs.h: Likewise.
2719         * sysdeps/sparc/ldsodefs.h: Likewise.
2720         * sysdeps/x86_64/ldsodefs.h: Likewise.
2722 2012-07-25  Marek Polacek  <polacek@redhat.com>
2724         [BZ #6808]
2725         * math/libm-test.inc (yn_test): Add another test.
2726         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2727         to ERANGE when the result is +-Inf.
2728         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2729         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2730         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2731         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2733 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2735         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2736         equal to 0.
2737         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2738         clock_t.
2739         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2741 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2743         * configure.in <sysdeps resolving>: Correct printing
2744         Implies_before.
2745         * configure: Regenerate.
2747 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2749         * math/w_ilogb.c: Include <limits.h>.
2750         * math/w_ilogbl.c: Likewise.
2752 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2754         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2755         va_copy.  Document allowing for unavailable va_copy only as
2756         pre-C99 compatibility.
2757         * manual/string.texi (Copying and Concatenation): Use va_copy
2758         instead of __va_copy in concat example.
2760 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2762         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2763         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2764         it if not null.
2766         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2767         with O_NOLINK passed to __file_name_lookup.
2769         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2770         with O_NOLINK passed to __file_name_lookup.
2772         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2773         negative N or less than NGIDS.
2775         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2776         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2777         enough.  Use memcpy instead of strncpy.
2779 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2781         * elf/Makefile (check-data): Remove.
2782         (localplt.data): New vpath directive.
2783         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2784         instead of $(check-data).
2785         * scripts/data/localplt-generic.data: Move to ...
2786         * sysdeps/generic/localplt.data: ... here.
2787         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2788         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2789         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2791         ... here.
2792         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2794         ... here.
2795         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2796         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2797         ... here.
2798         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2799         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2800         ... here.
2801         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2802         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2803         ... here.
2804         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2805         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2806         ... here.
2808 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2810         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2811         PPC32 and PPC64 files.
2812         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2813         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2815 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2817         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2818         __makecontext_ret to ...
2819         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2820         ... here and call exit if uc_link is NULL.  New file.
2821         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2822         __makecontext_ret.S.
2823         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2824         __makecontext_ret to ...
2825         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2826         ... here and call exit if uc_link is NULL.  New file.
2827         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2828         __makecontext_ret.S.
2830 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2832         * elf/elf.h (R_390_IRELATIVE): New definition.
2833         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2834         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2835         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2836         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2837         (elf_machine_lazy_rel): Likewise.
2838         * sysdeps/s390/dl-irel.h: New file.
2839         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2840         * sysdeps/s390/s390-64/memset.S: New asm code.
2841         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2842         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2843         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2844         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2845         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2846         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2847         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2848         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2849         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2850         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2851         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2852         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2853         * sysdeps/s390/s390-32/memset.S: New asm code.
2854         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2856 2012-07-17  Marek Polacek  <polacek@redhat.com>
2858         [BZ #14349]
2859         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2860         * sysdeps/s390/s390-64/configure.in: Likewise.
2861         * sysdeps/sparc/configure.in: Likewise.
2862         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2863         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2864         * sysdeps/i386/configure.in: Likewise.
2865         * sysdeps/x86_64/configure.in: Likewise.
2866         * sysdeps/sh/configure.in: Likewise.
2867         * sysdeps/s390/s390-32/configure: Regenerated.
2868         * sysdeps/s390/s390-64/configure: Likewise.
2869         * sysdeps/x86_64/configure: Likewise.
2870         * sysdeps/sh/configure: Likewise.
2871         * sysdeps/powerpc/powerpc64/configure: Likewise.
2872         * sysdeps/powerpc/powerpc32/configure: Likewise.
2873         * sysdeps/sparc/configure: Likwise.
2874         * sysdeps/i386/configure: Likewise.
2876         * elf/dl-open.c: Comment fixes.
2878 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2880         * Makefile [CXX] (check-data): Remove.
2881         [CXX] (c++-types.data): New vpath directive.
2882         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2883         vpath.  Do not allow for C++ type data being missing.
2884         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2885         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2886         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2887         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2888         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2889         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2890         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2892         ... here.
2893         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2895         ... here.
2896         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2897         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2898         ... here.
2899         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2900         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2901         ... here.
2902         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2903         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2904         ... here.
2905         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2906         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2907         ... here.
2908         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2909         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2910         ... here.
2911         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2912         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2914         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2915         definitions to architecture-specific files.
2916         (TLS_IE): Likewise.
2917         (TLS_LD): Likewise.
2918         (TLS_GD): Likewise.
2919         * sysdeps/i386/tls-macros.h: New file.
2920         * sysdeps/powerpc/tls-macros.h: Likewise.
2921         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2922         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2923         * sysdeps/sh/tls-macros.h: Likewise.
2924         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2925         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2926         * sysdeps/x86_64/tls-macros.h: Likewise.
2928 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2930         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2931         zero value for regular exit case.
2933         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2934         (__start_context): Preserve zero value for regular exit case.
2936 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2937             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2939         * manual/setjmp.texi (setcontext): Clarify normal process
2940         termination when uc_link is the null pointer.
2941         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2942         exit call.
2944 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2946         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2947         preprocessor.  Test for each exception mask separately.
2949 2012-07-16  Andreas Jaeger  <aj@suse.de>
2951         * po/ru.po: Update from translation team.
2953 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2955         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2956         equal to 0.
2957         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2958         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2959         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2960         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2961         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2963 2012-07-13  Andreas Jaeger  <aj@suse.de>
2965         * po/fr.po: Update from translation team.
2967 2012-07-12  Marek Polacek  <polacek@redhat.com>
2969         [BZ #14173]
2970         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2971         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2972         loop condition.
2974 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2976         [BZ #13717]
2977         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2978         Change to 2.4.1 where previously 2.4.0.
2979         * sysdeps/unix/sysv/linux/configure: Regenerated.
2980         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2981         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2982         version.
2983         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2984         (__ASSUME_AT_CLKTCK): Remove.
2985         (__ASSUME_AT_PAGESIZE): Likewise.
2986         (__ASSUME_AT_XID): Likewise.
2987         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2988         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2989         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2990         unconditionally.
2991         (HAVE_AUX_PAGESIZE): Likewise.
2992         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2993         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2994         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2996 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2998         [BZ #14307]
2999         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3000         the temporary buffer used to invoke __gethostbyname2_r,
3001         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3002         host_data / struct gaih_addrtuple.
3003         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3004         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3005         header file nss/nsswitch.h.
3006         * nss/nsswitch.h (global scope): Add definition of implementation
3007         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3008         resolv/nss_dns/dns-host.c).
3010 2012-07-11  Andreas Jaeger  <aj@suse.de>
3012         * po/fr.po: Update from translation team.
3014         * po/sv.po: Update from translation team
3015         * po/fr.po: Another update from translation team.
3017 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3019         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3020         for subnormals or multiply small sinh result by itself.
3021         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3022         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3024 2012-07-11  David S. Miller  <davem@davemloft.net>
3026         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3028 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3030         [BZ #14347]
3031         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3032         (INTERNAL_MARK): Shift it here.
3034 2012-07-10  Marek Polacek  <polacek@redhat.com>
3036         [BZ #14151]
3037         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3038         libc_cv_asm_global_directive with .globl.
3039         * configure: Regenerated.
3040         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3041         with .globl.
3042         * sysdeps/i386/configure: Regenerated.
3043         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3044         with .globl.
3045         * sysdeps/x86_64/configure: Regenerated.
3046         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3047         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3048         * elf/tst-unique2mod2.c: Likewise.
3049         * elf/tst-unique2mod1.c: Likewise.
3050         * elf/tst-unique1mod2.c: Likewise.
3051         * elf/tst-unique1mod1.c: Likewise.
3052         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3053         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3054         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3055         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3056         * sysdeps/mach/sysdep.h: Likewise.
3057         * sysdeps/i386/sysdep.h: Likewise.
3058         * sysdeps/i386/i386-mcount.S: Likewise.
3059         * sysdeps/x86_64/_mcount.S: Likewise.
3060         * sysdeps/x86_64/sysdep.h: Likewise.
3061         * sysdeps/sh/_mcount.S: Likewise.
3062         * sysdeps/sh/sysdep.h: Likewise.
3063         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3064         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3065         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3066         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3067         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3068         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3069         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3070         * locale/localeinfo.h: Likewise.
3071         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3072         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3074 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3076         [BZ #14336]
3077         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3078         system".
3079         * manual/message.texi (The Uniforum approach): Likewise.
3080         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3081         (glibc iconv Implementation): Likewise.
3083 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3085         [BZ #14337]
3086         * math/s_clog.c (__clog): Avoid scaling a value down where that
3087         could result in underflow.
3088         * math/s_clog10.c (__clog10): Likewise.
3089         * math/s_clog10f.c (__clog10f): Likewise.
3090         * math/s_clog10l.c (__clog10l): Likewise.
3091         * math/s_clogf.c (__clogf): Likewise.
3092         * math/s_clogl.c (__clogl): Likewise.
3093         * math/libm-test.inc (clog_test): Add more tests.
3094         (clog10_test): Likewise.
3095         * sysdeps/i386/fpu/libm-test-ulps: Update.
3096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3098 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3100         [BZ #14283]
3101         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3102         by 7 not 8 to examine high bit of fractional part.
3104         [BZ #14042]
3105         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3106         for call to __mcount_internal.
3107         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3108         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3109         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3111 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3113         [BZ #14154]
3114         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3115         approximation for values within 0x1p-13f of an odd multiple of
3116         pi/4.
3117         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3118         exception.  Add more tests.
3119         * sysdeps/i386/fpu/libm-test-ulps: Update.
3121         [BZ #6778]
3122         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3123         inputs and return -1 for them.  Do not check for +Inf in case not
3124         reachable for +Inf.
3125         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3126         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3127         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3128         and return -1 for them.  Do not check for +Inf in case not
3129         reachable for +Inf.
3130         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3131         define.
3132         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3133         and return -1 for them.  Do not check for +Inf in case not
3134         reachable for +Inf.
3135         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3136         spurious underflow.
3137         * sysdeps/i386/fpu/libm-test-ulps: Update.
3138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3140 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3142         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3144 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3146         [BZ #14157]
3147         [BZ #14331]
3148         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3149         could result in spurious underflow.  Scale down values above
3150         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3151         * math/s_csqrtf.c (__csqrtf): Likewise.
3152         * math/s_csqrtl.c (__csqrtl): Likewise.
3153         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3154         spurious underflow.
3155         * sysdeps/i386/fpu/libm-test-ulps: Update.
3156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3158 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3160         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3161         xopen-msg.sed.
3162         * catgets/xopen-msg.awk: New file.
3163         * catgets/xopen-msg.sed: Removed.
3165         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3166         po2text.sed.
3167         * intl/po2test.awk: New file.
3168         * intl/po2test.sed: Removed.
3170 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3172         [BZ #14328]
3173         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3174         or multiply small sinh result by itself.
3175         * math/s_ctanf.c (__ctanf): Likewise.
3176         * math/s_ctanh.c (__ctanh): Likewise.
3177         * math/s_ctanhf.c (__ctanhf): Likewise.
3178         * math/s_ctanhl.c (__ctanhl): Likewise.
3179         * math/s_ctanl.c (__ctanl): Likewise.
3180         * math/libm-test.inc (ctan_test_tonearest): New function.
3181         (ctan_test_towardzero): Likewise.
3182         (ctan_test_downward): Likewise.
3183         (ctan_test_upward): Likewise.
3184         (ctanh_test_tonearest): Likewise.
3185         (ctanh_test_towardzero): Likewise.
3186         (ctanh_test_downward): Likewise.
3187         (ctanh_test_upward): Likewise.
3188         (main): Call these new functions.
3189         * sysdeps/i386/fpu/libm-test-ulps: Update.
3190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3192 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3194         * .gitignore: Delete /ports entry.
3196 2012-07-03  Andreas Jaeger  <aj@suse.de>
3198         * po/bg.po: Update from translation team.
3199         * po/cs.po: Likewise.
3200         * po/de.po: Likewise.
3201         * po/hr.po: Likewise.
3202         * po/nl.pl: Likewise.
3203         * po/pl.po: Likewise.
3204         * po/vi.po: Likewise.
3206 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3208         * Makeconfig [!+link] (+link-before-libc): New variable.
3209         [!+link] (+link-after-libc): Likewise.
3210         [!+link] (+link-tests): Likewise.
3211         [!+link] (+link): Define in terms of $(+link-before-libc) and
3212         $(+link-after-libc).
3213         [!+link-static] (+link-static-before-libc): New variable.
3214         [!+link-static] (+link-static-after-libc): Likewise.
3215         [!+link-static] (+link-static-tests): Likewise.
3216         [!+link-static] (+link-static): Define in terms of
3217         $(+link-static-before-libc) and $(+link-static-after-libc).
3218         [build-shared] (link-libc-before-gnulib): New variable.
3219         [build-shared] (link-libc-tests): Likewise.
3220         [build-shared] (link-libc): Define in terms of
3221         $(link-libc-before-gnulib).
3222         [!build-shared] (link-libc-tests): New variable.
3223         (link-libc-static-tests): New variable.
3224         [!gnulib] (gnulib-arch): New variable.
3225         [!gnulib] (gnulib-tests): Likewise.
3226         [!gnulib] (static-gnulib-arch): Likewise.
3227         [!gnulib] (static-gnulib-tests): Likewise.
3228         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3229         Define with "=" instead of ":=".
3230         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3231         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3232         * Rules (binaries-all-notests): New variable.
3233         (binaries-all-tests): Likewise.
3234         (binaries-static-notests): Likewise.
3235         (binaries-static-tests): Likewise.
3236         (binaries-all): Define using $(binaries-all-notests) and
3237         $(binaries-all-tests).
3238         (binaries-static): Define using $(binaries-static-notests) and
3239         $(binaries-static-tests).
3240         (binaries-shared-tests): New variable.
3241         (binaries-shared-notests): Likewise.
3242         (binaries-shared): Remove variable.
3243         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3244         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3245         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3246         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3247         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3248         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3249         * elf/Makefile (sln-modules): New variable.
3250         (extra-objs): Add $(sln-modules:=.o).
3251         (ldconfig-modules): Add static-stubs.
3252         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3253         * elf/static-stubs.c: New file.
3255         [BZ #14283]
3256         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3257         by 7 not 8 to examine high bit of fractional part.  Use volatile
3258         variables when splitting into final array of floats if
3259         __FLT_EVAL_METHOD__ != 0.
3260         * math/libm-test.inc (cos_test): Add another test.
3261         (sin_test): Likewise.
3262         * sysdeps/i386/fpu/libm-test-ulps: Update.
3264         [BZ #14273]
3265         * math/libm-test.inc (cosh_test): Add more tests.
3267         * version.h (RELEASE): Set to "development".
3268         (VERSION): Set to "2.16.90".
3270 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3272         * NEWS: Update copyright. Remove last-updated date.
3273         Mention math library bug fixes and timezone data changes.
3274         * README: Mention GNU/Hurd, x32, and HPPA support status.
3276 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3278         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3280 2012-06-27  Andreas Jaeger  <aj@suse.de>
3282         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3284 2012-06-25  Andreas Jaeger  <aj@suse.de>
3286         * sysdeps/s390/fpu/libm-test-ulps: Update.
3288 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3289             Thomas Schwinge  <thomas@codesourcery.com>
3291         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3292         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3293         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3294         fanotify_mark.
3296 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3298         * sysdeps/mach/start.c: Remove file.
3299         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3300         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3301         * sysdeps/sh/init-first.c: Likewise.
3303         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3304         registers for frame unwinding purposes, add CFI directives.
3305         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3306         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3307         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3308         Likewise.
3310         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3311         __fortify_fail returning.
3312         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3314         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3315         sysdeps/sh/____longjmp_chk.S.
3316         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3317         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3318         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3319         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3321         * sysdeps/sh/abort-instr.h: New file.
3322         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3323         process in case exit returns.
3325         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3326         initialize the GOT register before use.
3328         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3329         calculation of ARGC > 4.
3331         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3332         meaningful names to some local labels.
3334 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3335             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3337         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3338         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3339         (__arch_compare_and_exchange_val_16_acq): Likewise.
3340         (__arch_compare_and_exchange_val_32_acq): Likewise.
3341         (atomic_exchange_and_add): Fix gUSA sequence.
3342         (atomic_add): Likewise.
3343         (atomic_add_negative): Likewise.
3344         (atomic_add_zero): Likewise.
3345         (atomic_bit_test_set): Likewise.
3347 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3349         [BZ #13579]
3350         * include/link.h (struct link_map): Add l_free_initfini.
3351         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3352         l_initfini.
3353         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3354         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3355         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3356         set.
3358 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3360         * configure.in: Use AC_LANG_SOURCE.
3361         * configure: Regenerate.
3363 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3365         * configure.in (libc_cv_localstatedir): New substituted variable.
3366         * configure: Regenerated.
3367         * config.make.in (localstatedir): New variable, substituted from
3368         libc_cv_localstatedir.
3369         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3370         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3371         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3372         * sysdeps/gnu/configure: Regenerated.
3374 2012-06-21  Jeff Law  <law@redhat.com>
3376         [BZ #14277]
3377         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3378         free.  Simplify list management for _LIBC case.
3380 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3382         [BZ #14273]
3383         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3384         Clear sign bit of 64-bit integer value before comparing against
3385         overflow value.
3387         * sysdeps/mach/configure: Regenerated.
3389 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3391         [BZ #14278]
3392         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3394 2012-06-21  Jeff Law  <law@redhat.com>
3396         [BZ #13882]
3397         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3398         uint16_t for elements in the "seen" array to avoid char overflows.
3399         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3400         * elf/dl-open.c (dl_open_worker): Likewise.
3402 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3404         * scripts/list-sources.sh: Scan PORTS for translations.
3405         * po/libc.pot: Regenerated.
3407 2012-06-21  Andreas Jaeger  <aj@suse.de>
3409         [BZ #12194]
3410         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3411         warning.
3412         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3413         * bits/byteswap-16.h (__bswap_16): Likewise.
3414         * bits/byteswap.h (__bswap_constant_16): Likewise.
3416 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3418         [BZ #14117]
3419         * sysdeps/i386/fpu_control.h: Removed.
3420         * sysdeps/x86_64/fpu_control.h: Moved to ...
3421         * sysdeps/x86/fpu_control.h: Here.
3423         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3424         (_FPU_SETCW): Likewise.
3426 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3428         [BZ #14117]
3429         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3430         * sysdeps/x86/fpu/bits/mathinline.h: This.
3431         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3433         [BZ #14050]
3434         [BZ #14117]
3435         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3436         functions if __x86_64__ is defined.
3438 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3440         * string/endian.h: Add !__ASSEMBLER__ condition for including
3441         conversion interfaces.
3443 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3445         [BZ #14241]
3446         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3447         of ABS(x) in calculating zero to negative powers other than odd
3448         integers.
3449         * math/libm-test.inc (pow_test): Add more tests.
3451 2012-06-15  Andreas Jaeger  <aj@suse.de>
3453         * manual/contrib.texi (Contributors): Update entry of Liubov
3454         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3455         Machado Filho.
3457 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3459         * string/string.h: Add __wur to GNU version of strerror_r.
3461 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3463         [BZ #14229]
3464         * string/Makefile (tests): Add tst-strtok_r.
3465         * string/tst-strtok_r.c: New file.
3466         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3467         RAX_LP/RDX_LP on SAVE_PTR.
3469 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3471         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3473 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3475         * libm_test.inc (csqrt_test): Allow more spurious underflow
3476         exceptions.
3477         (j0_test): Likewise.
3478         (j1_test): Likewise.
3479         (y0_test): Likewise.
3480         (y1_test): Likewise.
3482 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3484         * po/Makefile (libc.pot): Use UTF-8 charset.
3486 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3488         [BZ #14210]
3489         Suppress sign-conversion warning from FD_SET.
3490         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3491         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3492         not unsigned long int.
3493         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3495 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3497         [BZ #14050]
3498         [BZ #14117]
3499         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3500         __extern_always_inline instead of __extern_inline.
3501         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3502         (__signbit): Likewise.
3503         (__signbitl): Support C++ namespace.
3504         (lrintf): New inline function.
3505         (lrint): Likewise.
3506         (llrintf): Likewise.
3507         (llrint): Likewise.
3508         (fmaxf): Likewise.
3509         (fmax): Likewise.
3510         (fminf): Likewise.
3511         (fmin): Likewise.
3512         (rint): Likewise.
3513         (rintf): Likewise.
3514         (ceil): Likewise.
3515         (ceilf): Likewise.
3516         (floor): Likewise.
3517         (floorf): Likewise.
3518         (nearbyint): Likewise.
3519         (nearbyintf): Likewise.
3521 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3523         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3524         non-default versions.
3526 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3528         [BZ #14218]
3529         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3531 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3533         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3534         (FE_UPWARD, FE_DOWNWARD): Don't define.
3535         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3536         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3538         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3539         reading it.
3540         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3541         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3543 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3545         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3546         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3547         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3548         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3550 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3552         [BZ #14117]
3553         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3554         * sysdeps/i386/fpu/Implies: New file.
3555         * sysdeps/x86_64/fpu/Implies: Likewise.
3556         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3557         * sysdeps/x86/fpu/bits/fenv.h: This.
3559         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3560         __SSE_MATH__.
3562 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3564         [BZ #14134]
3565         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3566         character 0xffff that matches the last element of the
3567         conversion table.
3569 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3571         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3572         fmodl commit.
3574 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3576         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3577         values higher than 25.6283.
3579 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3581         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3582         subnormal exponent extraction and add some __builtin_expect.
3583         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3584         Fix for subnormal mantissa calculation.
3586 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3588         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3589         cpu2 is -1 and errno is not ENOSYS.
3591 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3593         [BZ #14117]
3594         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3595         * sysdeps/x86/bits/string.h: This.
3596         * sysdeps/x86_64/bits/string.h: Removed.
3598         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3599         if not compiling for x86-64, but compiling for >= i486.
3601         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3602         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3604         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3605         New macro from Linux kernel 3.4.0.
3606         (FP_XSTATE_MAGIC2): Likewise.
3607         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3608         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3609         (struct _fpx_sw_bytes): New struct.
3610         (struct _xsave_hdr): Likewise.
3611         (struct _ymmh_state): Likewise.
3612         (struct _xstate): Likewise.
3614         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3615         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3616         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3617         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3618         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3619         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3621         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3622         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3623         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3624         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3625         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3626         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3628 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3630         [BZ #13743]
3631         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3632         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3633         (sysdep_headers): Include sys/platform/ppc.h.
3634         * sysdeps/powerpc/test-gettimebase.c: Test for
3635         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3636         * manual/Makefile (appendices): Include platform.texi.
3637         * manual/contrib.texi (Contributors): Update @node pointers.
3638         * manual/maint.texi (Maintenance): Likewise.
3639         (Platform): New node.
3640         * manual/platform.texi: New file.  Document the new features.
3642 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3643             Jakub Jelinek  <jakub@redhat.com>
3645         [BZ #14188]
3646         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3647         where __builtin_expect is unavailable.
3649 2012-06-03  David S. Miller  <davem@davemloft.net>
3651         * stdlib/longlong.h: Updated from GCC.
3653 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3655         [BZ #14042]
3656         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3657         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3658         __mcount_internal.
3659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3660         (GLIBC_2.16): Likewise.
3662 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3664         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3666 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3669         (default-abi): New variable.
3670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3671         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3672         variable.
3673         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3674         Likewise.
3675         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3676         Likewise.
3677         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3678         Likewise.
3680         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3681         definition.  Document in comment.
3683 2012-06-01  David S. Miller  <davem@davemloft.net>
3685         * stdlib/longlong.h: Updated from GCC.
3687 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3689         [BZ #14117]
3690         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3691         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3692         sys/debugreg.h sys/io.h here.
3693         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3694         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3695         sys/io.h.
3696         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3697         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3698         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3699         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3700         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3701         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3703         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3704         Define only if __x86_64__ is defined.
3706 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3708         [BZ #14048]
3709         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3710         Use int64_t for variable i.
3711         * math/libm-test.inc (fmod_test): Add more tests.
3713         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3714         z computation is not scheduled after fetestexcept.
3715         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3716         Use math_force_eval instead of asm to ensure calculation scheduled
3717         before exception test.
3718         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3719         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3721 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3723         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3724         computation is not scheduled after fetestexcept.
3726 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3728         [BZ #14117]
3729         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3730         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3732 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3734         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3735         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3737 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3739         [BZ #14117]
3740         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3741         <bits/wordsize.h>.
3742         (__WCHAR_MIN): Support __WORDSIZE == 64.
3743         (__WCHAR_MAX): Likewise.
3745         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3746         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3748         [BZ #14183]
3749         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3750         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3752         [BZ #14117]
3753         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3754         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3756         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3757         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3759         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3760         Defined to 1 if __x86_64__ isn't defined.
3761         (_STAT_VER_LINUX_OLD): New.
3762         (st_atime): Remove duplicate.
3763         (st_mtime): Likewise.
3764         (st_ctime): Likewise.
3766 2012-05-31  David S. Miller  <davem@davemloft.net>
3768         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3769         entries.
3771 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3773         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3774         gen-libm-test.pl.
3776         [BZ #14132]
3777         * elf/dl-reloc.c: Include <_itoa.h>.
3778         (_dl_reloc_bad_type): Remove use of INTUSE.
3779         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3780         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3781         * stdio-common/psiginfo.c (psiginfo): Likewise.
3782         * stdio-common/psignal.c (psignal): Likewise.
3783         * string/strsignal.c (strsignal): Likewise.
3784         * include/signal.h (_sys_siglist): Declare hidden proto.
3785         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3786         INTVARDEF with libc_hidden_data_def.
3787         * stdio-common/itoa-udigits.c: Likewise.
3788         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3789         (_itoa_lower_digits_internal): Remove declaration.
3790         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3791         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3792         (_sys_sigabbrev_internal): Remove aliases.
3793         (_sys_siglist): Define hidden alias.
3795 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3797         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3798         bits/sysctl.h.
3800 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3802         [BZ #14117]
3803         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3804         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3806         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3807         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3808         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3809         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3810         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3811         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3813         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3814         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3815         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3817         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3818         with __addr.
3819         (insw): Likewise.
3820         (insl): Likewise.
3821         (outsb): Likewise.
3822         (outsw): Likewise.
3823         (outsl): Likewise.
3825         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3826         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3827         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3829         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3830         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3831         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3832         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3833         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3834         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3836         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3837         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3839         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3840         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3842         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3843         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3844         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3846         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3847         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3848         to ...
3849         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3851         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3852         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3853         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3855         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3856         for x86-64.
3857         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3859 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3861         * math/math.h (M_El): Use two more decimal places.
3862         (M_LOG2El): Likewise.
3863         (M_LOG10El): Likewise.
3864         (M_LN2l): Likewise.
3865         (M_LN10l): Likewise.
3866         (M_PIl): Likewise.
3867         (M_PI_2l): Likewise.
3868         (M_PI_4l): Likewise.
3869         (M_1_PIl): Likewise.
3870         (M_2_PIl): Likewise.
3871         (M_2_SQRTPIl): Likewise.
3872         (M_SQRT2l): Likewise.
3873         (M_SQRT1_2l): Likewise.
3875 2012-05-31  David S. Miller  <davem@davemloft.net>
3877         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3878         values between float registers.
3879         * sysdeps/sparc/sparc64/memset.S: Likewise.
3880         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3882 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3884         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3885         -D_FORTIFY_SOURCE=1.
3886         (CPPFLAGS-tst-longjmp_chk.c): Define.
3887         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3888         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3889         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3890         CFLAGS-tst-wchar-h.c.
3892 2012-05-31  Marek Polacek  <polacek@redhat.com>
3894         [BZ #14132]
3895         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3896         __endmntent_internal): Remove declaration.
3897         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3898         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3899         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3901 2012-05-30  David S. Miller  <davem@davemloft.net>
3903         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3904         (___Q_simulate_exceptions): Use real FP ops rather than writing
3905         into the %fsr.
3906         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3907         Likewise.
3909 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3911         [BZ #14117]
3912         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3913         * sysdeps/x86/bits/xtitypes.h: This.
3915         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3916         * sysdeps/x86/bits/wordsize.h: This.
3918         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3919         * sysdeps/x86/bits/huge_vall.h: This.
3921         * sysdeps/i386/bits/select.h: Removed.
3922         * sysdeps/x86_64/bits/select.h: Renamed to ...
3923         * sysdeps/x86/bits/select.h: This.
3925         * sysdeps/i386/bits/setjmp.h: Removed.
3926         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3927         * sysdeps/x86/bits/setjmp.h: This.
3929         * sysdeps/i386/bits/mathdef.h: Removed.
3930         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3931         * sysdeps/x86/bits/mathdef.h: This.
3933 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3935         [BZ #14132]
3936         * include/sys/socket.h (__connect_internal)
3937         (__libc_sa_len_internal): Remove declaration.
3938         (__connect, __libc_sa_len): Declare hidden_proto.
3939         (SA_LEN): Remove use of INTUSE.
3940         * socket/connect.c: Add libc_hidden_def.
3941         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3942         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3943         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3944         alias.
3945         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3946         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3947         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3948         of adding _internal alias.
3950 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3952         [BZ #14117]
3953         * sysdeps/i386/bits/link.h: Removed.
3954         * sysdeps/i386/bits/linkmap.h: Likewise.
3955         * sysdeps/x86_64/bits/link.h: Renamed to ...
3956         * sysdeps/x86/bits/link.h: This.
3957         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3958         * sysdeps/x86/bits/linkmap.h: This.
3960         * sysdeps/i386/bits/endian.h: Removed.
3961         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3962         * sysdeps/x86/bits/endian.h: This.
3964         * sysdeps/i386/bits/byteswap.h: Removed.
3965         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3966         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3967         * sysdeps/x86/bits/byteswap.h: This.
3968         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3969         * sysdeps/x86/bits/byteswap-16.h: This.
3970         * sysdeps/i386/Implies: Add x86.
3971         * sysdeps/x86_64/Implies: Likewise.
3973 2012-05-30  David S. Miller  <davem@davemloft.net>
3975         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3976         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3977         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3978         (FP_TRAPPING_EXCEPTIONS): Define.
3979         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3980         (FP_TRAPPING_EXCEPTIONS): Define.
3981         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3982         subnormals only when inexact has been signalled or underflow
3983         exceptions are enabled.
3984         (_FP_PACK_CANONICAL): Likewise.
3986 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3988         [BZ #14183]
3989         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3990         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3992 2012-05-30  Richard Henderson  <rth@twiddle.net>
3994         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3995         with #ifndef NOT_IN_libc.
3997         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3998         marked to avoid plt entry.
4000 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4002         [BZ #14112]
4003         * Makeconfig (default-abi): New macro.
4004         (abi-includes): Likewise.
4005         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4006         $(abi-$(default-abi)-lib-soname) for soname if defined.
4007         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4008         abi-variants.
4009         * Makefile (installed-stubs): Likewise.
4010         * include/stubs-biarch.h: Removed.
4011         * scripts/lib-names.awk: Only handle one library at a time.
4012         * scripts/soversions.awk: Remove WORDSIZE support.
4013         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4014         entries.
4015         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4016         Removed.
4017         (syscall-list-default-condition): Likewise.
4018         (syscall-list-default-condition): Likewise.
4019         (syscall-list-includes): Likewise.
4020         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4021         syscall-list-* with abi-*.  Handle undefined abi-variants.
4022         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4023         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4024         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4025         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4026         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4027         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4028         Removed.
4029         (syscall-list-32-options): Likewise.
4030         (syscall-list-32-condition): Likewise.
4031         (syscall-list-64-options): Likewise.
4032         (syscall-list-64-condition): Likewise.
4033         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4034         macro.
4035         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4036         Renamed to ...
4037         (abi-*): This.
4038         (abi-64-ld-soname): New macro.
4039         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4040         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4041         Renamed to ...
4042         (abi-*): This.
4043         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4044         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4046 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4048         * sysdeps/unix/sysv/linux/kernel-features.h
4049         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4050         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4051         include <kernel-features.h>.
4052         [!__NR_ftruncate64]: Remove conditional code.
4053         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4054         [__NR_ftruncate64]: Make code unconditional.
4055         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4056         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4057         include <kernel-features.h>.
4058         [!__NR_ftruncate64]: Remove conditional code.
4059         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4060         [__NR_ftruncate64]: Make code unconditional.
4061         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4063         include <kernel-features.h>.
4064         [!__NR_ftruncate64]: Remove conditional code.
4065         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4066         [__NR_ftruncate64]: Make code unconditional.
4067         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4069         include <kernel-features.h>.
4070         [!__NR_ftruncate64]: Remove conditional code.
4071         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4072         [__NR_ftruncate64]: Make code unconditional.
4073         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4075         * configure.in (libc_cv_fpie): Weaken to a compile test using
4076         LIBC_TRY_CC_OPTION.
4077         * configure: Regenerated.
4079 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4082         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4084         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4085         Refreshed.
4086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4089         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4091         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4092         Refreshed.
4094 2012-05-27  David S. Miller  <davem@davemloft.net>
4096         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4097         (___Q_zero): New.
4098         (__Q_simulate_exceptions): Return void.  Change to simulate
4099         exceptions by writing into the %fsr.
4100         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4101         (__Qp_handle_exceptions): Likewise.
4102         (numbers): Delete.
4103         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4104         __Qp_handle_exceptions.
4105         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4106         __Qp_handle_exceptions.
4107         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4108         as unused and give dummy FP_RND_NEAREST initializer.
4109         (FP_INHIBIT_RESULTS): Define.
4110         (___Q_simulate_exceptions): Update declaration.
4111         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4112         formatting.
4113         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4114         as unused and give dummy FP_RND_NEAREST initializer.
4115         (__Qp_handle_exceptions): Update declaration.
4116         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4117         formatting.
4119 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4121         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4122         the temporary FPU control word.
4123         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4124         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4125         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4126         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4127         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4128         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4129         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4130         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4131         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4132         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4133         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4135 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4137         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4138         fields.
4140 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4142         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4143         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4144         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4145         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4146         Likewise.
4147         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4148         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4149         Likewise.
4151 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4153         * po/h.po: Update from translation team.
4155 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4157         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4159         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4160         handling of denormals.
4161         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4162         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4163         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4164         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4165         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4166         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4167         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4168         Likewise.
4170 2012-05-26  Marek Polacek  <polacek@redhat.com>
4172         [BZ #14152]
4173         * math/libm-test.inc (fma_test): Don't always expect underflow
4174         exception.
4176 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4178         [BZ #12416]
4179         * elf/tst-execstack.c: Include stackinfo.h.
4180         (do_test): Adjust test case to ensure that pthread_getattr_np
4181         behaviour remains the same after marking stack executable.
4183 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4185         * sysdeps/unix/sysv/linux/kernel-features.h
4186         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4187         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4188         kernel-features.h.
4189         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4190         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4191         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4192         kernel-features.h.
4193         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4194         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4196 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4198         * configure.in: Define the default includes to being none.
4199         * configure: Regenerated.
4201 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4203         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4204         * sysdeps/x86_64/setjmp.S: Likewise.
4205         * sysdeps/i386/bsd-setjmp.S: Likewise.
4206         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4207         * sysdeps/i386/setjmp.S: Likewise.
4208         * sysdeps/i386/__longjmp.S: Likewise.
4209         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4210         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4212         * include/stap-probe.h: New file.
4213         * configure.in: Handle --enable-systemtap.
4214         * configure: Regenerated.
4215         * config.h.in (USE_STAP_PROBE): New #undef.
4216         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4217         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4218         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4220 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4222         [BZ #13717]
4223         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4224         to 2.4.0 where earlier.
4225         * sysdeps/unix/sysv/linux/configure: Regenerated.
4226         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4227         <kernel-features.h>.
4228         [__ASSUME_32BITUIDS]: Make code unconditional.
4229         [!__ASSUME_32BITUIDS]: Remove conditional code.
4230         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4231         <kernel-features.h>.
4232         [__ASSUME_32BITUIDS]: Make code unconditional.
4233         [!__ASSUME_32BITUIDS]: Remove conditional code.
4234         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4235         [__ASSUME_32BITUIDS]: Make code unconditional.
4236         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4237         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4238         <kernel-features.h>.
4239         [__ASSUME_32BITUIDS]: Make code unconditional.
4240         [!__ASSUME_32BITUIDS]: Remove conditional code.
4241         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4242         <kernel-features.h>.
4243         [__ASSUME_32BITUIDS]: Make code unconditional.
4244         [!__ASSUME_32BITUIDS]: Remove conditional code.
4245         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4246         <kernel-features.h>.
4247         [__ASSUME_32BITUIDS]: Make code unconditional.
4248         [!__ASSUME_32BITUIDS]: Remove conditional code.
4249         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4250         <kernel-features.h>.
4251         [__ASSUME_32BITUIDS]: Make code unconditional.
4252         [!__ASSUME_32BITUIDS]: Remove conditional code.
4253         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4254         <kernel-features.h>.
4255         [__ASSUME_32BITUIDS]: Make code unconditional.
4256         [!__ASSUME_32BITUIDS]: Remove conditional code.
4257         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4258         <kernel-features.h>.
4259         [__ASSUME_32BITUIDS]: Make code unconditional.
4260         [!__ASSUME_32BITUIDS]: Remove conditional code.
4261         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4262         <kernel-features.h>.
4263         [__ASSUME_32BITUIDS]: Make code unconditional.
4264         [!__ASSUME_32BITUIDS]: Remove conditional code.
4265         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4266         <kernel-features.h>.
4267         [__ASSUME_32BITUIDS]: Make code unconditional.
4268         [!__ASSUME_32BITUIDS]: Remove conditional code.
4269         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4270         <kernel-features.h>.
4271         [__ASSUME_32BITUIDS]: Make code unconditional.
4272         [!__ASSUME_32BITUIDS]: Remove conditional code.
4273         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4274         <kernel-features.h>.
4275         [__ASSUME_32BITUIDS]: Make code unconditional.
4276         [!__ASSUME_32BITUIDS]: Remove conditional code.
4277         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4278         <kernel-features.h>.
4279         [__NR_setresgid] (__setresgid): Do not declare.
4280         [__ASSUME_32BITUIDS]: Make code unconditional.
4281         [!__ASSUME_32BITUIDS]: Remove conditional code.
4282         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4283         <kernel-features.h>.
4284         [__NR_setresuid] (__setresuid): Do not declare.
4285         [__ASSUME_32BITUIDS]: Make code unconditional.
4286         [!__ASSUME_32BITUIDS]: Remove conditional code.
4287         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4288         <kernel-features.h>.
4289         [__ASSUME_32BITUIDS]: Make code unconditional.
4290         [!__ASSUME_32BITUIDS]: Remove conditional code.
4291         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4292         <kernel-features.h>.
4293         [__ASSUME_32BITUIDS]: Make code unconditional.
4294         [!__ASSUME_32BITUIDS]: Remove conditional code.
4295         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4296         <kernel-features.h>.
4297         [__ASSUME_32BITUIDS]: Make code unconditional.
4298         [!__ASSUME_32BITUIDS]: Remove conditional code.
4299         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4300         <kernel-features.h>.
4301         [__ASSUME_32BITUIDS]: Make code unconditional.
4302         [!__ASSUME_32BITUIDS]: Remove conditional code.
4303         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4304         <kernel-features.h>.
4305         [__ASSUME_32BITUIDS]: Make code unconditional.
4306         [!__ASSUME_32BITUIDS]: Remove conditional code.
4307         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4308         <kernel-features.h>.
4309         [__ASSUME_32BITUIDS]: Make code unconditional.
4310         [!__ASSUME_32BITUIDS]: Remove conditional code.
4311         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4312         <kernel-features.h>.
4313         [__ASSUME_32BITUIDS]: Make code unconditional.
4314         [!__ASSUME_32BITUIDS]: Remove conditional code.
4315         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4316         <kernel-features.h>.
4317         [__ASSUME_32BITUIDS]: Make code unconditional.
4318         [!__ASSUME_32BITUIDS]: Remove conditional code.
4319         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4320         <kernel-features.h>.
4321         [__ASSUME_32BITUIDS]: Make code unconditional.
4322         [!__ASSUME_32BITUIDS]: Remove conditional code.
4323         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4324         <kernel-features.h>.
4325         [__ASSUME_32BITUIDS]: Make code unconditional.
4326         [!__ASSUME_32BITUIDS]: Remove conditional code.
4327         * sysdeps/unix/sysv/linux/kernel-features.h
4328         (__ASSUME_SETRESUID_SYSCALL): Remove.
4329         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4330         (__ASSUME_32BITUIDS): Likewise.
4331         (__ASSUME_LDT_WORKS): Likewise.
4332         (__ASSUME_O_DIRECTORY): Likewise.
4333         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4334         architecture but not kernel version.
4335         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4336         (__ASSUME_MMAP2_SYSCALL): Likewise.
4337         (__ASSUME_STAT64_SYSCALL): Likewise.
4338         (__ASSUME_IPC64): Likewise.
4339         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4340         <kernel-features.h>.
4341         [__ASSUME_32BITUIDS]: Make code unconditional.
4342         [!__ASSUME_32BITUIDS]: Remove conditional code.
4343         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4344         <kernel-features.h>.
4345         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4346         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4347         132096]: Remove conditional code.
4348         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4349         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4350         <kernel-features.h>.
4351         [__ASSUME_32BITUIDS]: Make code unconditional.
4352         [!__ASSUME_32BITUIDS]: Remove conditional code.
4353         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4354         <kernel-features.h>.
4355         [__ASSUME_32BITUIDS]: Make code unconditional.
4356         [!__ASSUME_32BITUIDS]: Remove conditional code.
4357         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4358         <kernel-features.h>.
4359         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4360         unconditional.
4361         (__setresgid): Do not declare.
4362         [__ASSUME_32BITUIDS]: Make code unconditional.
4363         [!__ASSUME_32BITUIDS]: Remove conditional code.
4364         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4365         <kernel-features.h>.
4366         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4367         unconditional.
4368         (__setresuid): Do not declare.
4369         [__ASSUME_32BITUIDS]: Make code unconditional.
4370         [!__ASSUME_32BITUIDS]: Remove conditional code.
4371         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4372         <kernel-features.h>.
4373         [__ASSUME_32BITUIDS]: Make code unconditional.
4374         [!__ASSUME_32BITUIDS]: Remove conditional code.
4375         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4376         <kernel-features.h>.
4377         [__ASSUME_32BITUIDS]: Make code unconditional.
4378         [!__ASSUME_32BITUIDS]: Remove conditional code.
4380 2012-05-25  Richard Henderson  <rth@twiddle.net>
4382         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4383         dl_hwcap to ifunc resolver.
4384         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4385         elf_ifunc_invoke.
4386         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4387         dl_hwcap to ifunc resolver.
4388         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4390 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4392         [BZ #14153]
4393         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4394         for |x| <= 2**-26, not 2**-57.
4395         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4396         exception.
4398 2012-05-24  Jeff Law  <law@redhat.com>
4400         * stdio-common/Makefile (tests): Add bug25.
4401         * stdio-common/bug25.c: New test.
4403 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4405         [BZ #13576]
4406         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4407         multiple of MALLOC_ALIGNMENT in size.
4408         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4410 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4412         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4413         Require >= 256.
4414         (FILENAME_MAX): Use macro-int-constant.
4415         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4416         (_IOFBF): Use macro-int-constant.
4417         (_IOLBF): Likewise.
4418         (_IONBF): Likewise.
4419         (SEEK_CUR): Likewise.
4420         (SEEK_END): Likewise.
4421         (SEEK_SET): Likewise.
4422         (TMP_MAX): Likewise.
4423         (EOF): Use macro-int-constant.  Require < 0.
4424         (NULL): Use macro-constant.  Require == 0.
4425         (stdin): Require type to be FILE *.
4426         (stdout): Likewise.
4427         (stderr): Likewise.
4428         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4429         macro-int-constant.
4430         (EXIT_SUCCESS): Likewise.
4431         (NULL): Use macro-constant.  Require == 0.
4432         (RAND_MAX): Use macro-int-constant.
4433         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4434         [C99-based standards] (strtof): Require function.
4435         [C99-based standards] (strtold): Likewise.
4436         [C99-based standards] (strtoll): Likewise.
4437         [C99-based standards] (strtoull): Likewise.
4438         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4439         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4440         [ISO || ISO99 || ISO11] (math.h): Likewise.
4441         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4442         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4443         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4445 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4447         [BZ #14132]
4448         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4449         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4450         * intl/dgettext.c (DCGETTEXT): Likewise.
4451         * intl/gettext.c (DCGETTEXT): Likewise.
4452         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4453         * posix/regex_internal.h (gettext): Likewise.
4454         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4455         Remove declaration.
4456         * include/argz.h (__argz_count_internal)
4457         (__argz_stringify_internal): Remove declaration.
4458         (__argz_count, __argz_stringify): Declare hidden proto.
4459         * intl/dcgettext.c: Remove use of INTDEF.
4460         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4461         * string/argz-stringify.c: Likewise.
4462         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4463         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4464         Declare hidden proto.
4465         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4466         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4467         Declare hidden proto.
4468         * include/stdio.h (__asprintf_internal): Don't declare.
4469         (__asprintf): Don't define as macro.  Declare hidden proto.
4470         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4471         (__fsetlocking): Declare hidden proto.
4472         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4473         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4474         hidden proto.
4475         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4476         (_IO_setlinebuf): Remove use of INTUSE.
4477         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4478         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4479         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4480         Remove declaration.
4481         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4482         (_IO_do_flush): Remove use of INTUSE.
4483         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4484         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4485         (_IO_adjust_column, _IO_least_wmarker)
4486         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4487         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4488         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4489         (_IO_default_doallocate, _IO_wdefault_doallocate)
4490         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4491         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4492         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4493         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4494         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4495         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4496         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4497         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4498         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4499         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4500         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4501         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4502         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4503         proto.
4504         (_IO_flush_all_internal, _IO_adjust_column_internal)
4505         (_IO_default_uflow_internal, _IO_default_finish_internal)
4506         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4507         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4508         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4509         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4510         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4511         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4512         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4513         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4514         (_IO_file_close_internal, _IO_file_close_it_internal)
4515         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4516         (_IO_file_init_internal, _IO_file_attach_internal)
4517         (_IO_file_fopen_internal, _IO_file_read_internal)
4518         (_IO_file_sync_internal, _IO_file_seek_internal)
4519         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4520         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4521         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4522         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4523         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4524         (_IO_list_all_internal, _IO_link_in_internal)
4525         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4526         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4527         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4528         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4529         (_IO_do_write_internal, _IO_padn_internal)
4530         (_IO_getline_info_internal, _IO_getline_internal)
4531         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4532         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4533         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4534         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4535         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4536         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4537         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4538         with libc_hidden_ver, remove use of INTUSE.
4539         * libio/genops.c: Likewise.
4540         * libio/freopen.c: Likewise.
4541         * libio/freopen64.c: Likewise.
4542         * libio/iofclose.c: Likewise.
4543         * libio/iofdopen.c: Likewise.
4544         * libio/iofflush.c: Likewise.
4545         * libio/iofflush_u.c: Likewise.
4546         * libio/iofgets.c: Likewise.
4547         * libio/iofgets_u.c: Likewise.
4548         * libio/iofopen.c: Likewise.
4549         * libio/iofopncook.c: Likewise.
4550         * libio/iofread.c: Likewise.
4551         * libio/iofread_u.c: Likewise.
4552         * libio/ioftell.c: Likewise.
4553         * libio/iofwrite.c: Likewise.
4554         * libio/iogetline.c: Likewise.
4555         * libio/iogets.c: Likewise.
4556         * libio/iogetwline.c: Likewise.
4557         * libio/iopadn.c: Likewise.
4558         * libio/iopopen.c: Likewise.
4559         * libio/ioseekoff.c: Likewise.
4560         * libio/ioseekpos.c: Likewise.
4561         * libio/iosetbuffer.c: Likewise.
4562         * libio/iosetvbuf.c: Likewise.
4563         * libio/ioungetc.c: Likewise.
4564         * libio/ioungetwc.c: Likewise.
4565         * libio/iovdprintf.c: Likewise.
4566         * libio/iovsprintf.c: Likewise.
4567         * libio/iovsscanf.c: Likewise.
4568         * libio/memstream.c: Likewise.
4569         * libio/obprintf.c: Likewise.
4570         * libio/oldfileops.c: Likewise.
4571         * libio/oldiofclose.c: Likewise.
4572         * libio/oldiofdopen.c: Likewise.
4573         * libio/oldiofopen.c: Likewise.
4574         * libio/oldiopopen.c: Likewise.
4575         * libio/oldstdfiles.c: Likewise.
4576         * libio/putc.c: Likewise.
4577         * libio/setbuf.c: Likewise.
4578         * libio/setlinebuf.c: Likewise.
4579         * libio/stdfiles.c: Likewise.
4580         * libio/strops.c: Likewise.
4581         * libio/vasprintf.c: Likewise.
4582         * libio/vscanf.c: Likewise.
4583         * libio/vsnprintf.c: Likewise.
4584         * libio/vswprintf.c: Likewise.
4585         * libio/wfiledoalloc.c: Likewise.
4586         * libio/wfileops.c: Likewise.
4587         * libio/wgenops.c: Likewise.
4588         * libio/wmemstream.c: Likewise.
4589         * libio/wstrops.c: Likewise.
4590         * libio/__fpurge.c: Likewise.
4591         * libio/__fsetlocking.c: Likewise.
4592         * assert/assert.c: Likewise.
4593         * debug/fgets_chk.c: Likewise.
4594         * debug/fgets_u_chk.c: Likewise.
4595         * debug/fread_chk.c: Likewise.
4596         * debug/fread_u_chk.c: Likewise.
4597         * debug/gets_chk.c: Likewise.
4598         * debug/obprintf_chk.c: Likewise.
4599         * debug/vasprintf_chk.c: Likewise.
4600         * debug/vdprintf_chk.c: Likewise.
4601         * debug/vsnprintf_chk.c: Likewise.
4602         * debug/vsprintf_chk.c: Likewise.
4603         * malloc/mtrace.c: Likewise.
4604         * misc/error.c: Likewise.
4605         * misc/syslog.c: Likewise.
4606         * stdio-common/asprintf.c: Likewise.
4607         * stdio-common/fxprintf.c: Likewise.
4608         * stdio-common/getw.c: Likewise.
4609         * stdio-common/isoc99_fscanf.c: Likewise.
4610         * stdio-common/isoc99_scanf.c: Likewise.
4611         * stdio-common/isoc99_vfscanf.c: Likewise.
4612         * stdio-common/isoc99_vscanf.c: Likewise.
4613         * stdio-common/isoc99_vsscanf.c: Likewise.
4614         * stdio-common/printf-prs.c: Likewise.
4615         * stdio-common/printf_fp.c: Likewise.
4616         * stdio-common/printf_fphex.c: Likewise.
4617         * stdio-common/printf_size.c: Likewise.
4618         * stdio-common/putw.c: Likewise.
4619         * stdio-common/scanf.c: Likewise.
4620         * stdio-common/sprintf.c: Likewise.
4621         * stdio-common/tmpfile.c: Likewise.
4622         * stdio-common/vfprintf.c: Likewise.
4623         * stdio-common/vfscanf.c: Likewise.
4624         * stdlib/strfmon_l.c: Likewise.
4625         * sunrpc/openchild.c: Likewise.
4626         * sunrpc/xdr_stdio.c: Likewise.
4627         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4628         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4630 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4632         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4634         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4635         in the third column, to generate for the shared library an IFUNC
4636         that uses _dl_vdso_vsym.
4637         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4638         * Makeconfig (object-suffixes-noshared): New variable.
4640         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4641         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4642         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4643         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4645         [BZ #14132]
4646         * include/sys/time.h (__gettimeofday): Remove macro.
4647         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4648         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4649         Remove INTDEF.
4650         (__gettimeofday): Add libc_hidden_def.
4651         (gettimeofday): Add libc_hidden_weak.
4652         * sysdeps/mach/gettimeofday.c: Likewise.
4653         * sysdeps/posix/gettimeofday.c: Likewise.
4654         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4655         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4656         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4657         (__gettimeofday_internal): Remove strong_alias.
4658         (__gettimeofday): Add libc_hidden_def.
4659         (gettimeofday): Add libc_hidden_weak.
4660         * sysdeps/unix/syscalls.list (gettimeofday):
4661         Remove __gettimeofday_internal alias.
4663 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4664             H.J. Lu  <hongjiu.lu@intel.com>
4666         [BZ #12495]
4667         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4668         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4669         (largebin_index_32_big): New.
4670         (largebin_index): Use it for 16-byte alignment.
4671         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4672         correction with front_misalign.
4674 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4676         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4677         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4678         Likewise.
4679         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4680         Likewise.
4681         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4682         Likewise.
4683         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4684         Likewise.
4685         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4686         Likewise.
4687         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4688         Likewise.
4689         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4690         Likewise.
4691         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4692         Likewise.
4693         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4694         Likewise.
4695         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4696         Likewise.
4697         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4698         Likewise.
4699         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4700         Likewise.
4702         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4703         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4705 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4707         [BZ #10846]
4708         [BZ #14036]
4709         * math/libm-test.inc (exp_test): Add test from bug 14036.
4710         (pow_test): Add test from bug 10846.
4712         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4713         and other flags.
4714         (special_function): Do not include flags in test name.
4715         (parse_args): Likewise.
4716         * sysdeps/i386/fpu/libm-test-ulps: Update.
4717         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4718         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4719         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4722         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4723         exceptions.
4724         * math/libm-test.inc ("Philosophy"): Update comment about
4725         exception testing.
4726         (UNDERFLOW_EXCEPTION): New macro.
4727         (UNDERFLOW_EXCEPTION_OK): Likewise.
4728         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4729         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4730         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4731         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4732         (INVALID_EXCEPTION_OK): Update value.
4733         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4734         (OVERFLOW_EXCEPTION_OK): Likewise.
4735         (IGNORE_ZERO_INF_SIGN): Likewise.
4736         (test_exceptions): Handle underflow exceptions.
4737         (acos_test): Update for underflow exception expectations.
4738         (cexp_test): Likewise.
4739         (clog_test): Likewise.
4740         (clog10_test): Likewise.
4741         (csqrt_test): Likewise.
4742         (ctan_test): Likewise.
4743         (ctanh_test): Likewise.
4744         (exp_test): Likewise.
4745         (exp10_test): Likewise.
4746         (exp2_test): Likewise.
4747         (expm1_test): Likewise.
4748         (fma_test): Likewise.
4749         (j0_test): Likewise.
4750         (jn_test): Likewise.
4751         (nexttoward_test): Likewise.
4752         (pow_test): Likewise.
4753         (scalbn_test): Likewise.
4754         (scalbln_test): Likewise.
4755         (tan_test): Likewise.
4756         (y1_test): Likewise.
4757         * sysdeps/i386/fpu/libm-test-ulps: Update.
4758         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4760 2012-05-23  David S. Miller  <davem@davemloft.net>
4762         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4763         (__libc_sigaction): Remove unused local variables.
4765 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4767         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4769 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4771         mktime: avoid signed integer overflow
4772         * time/mktime.c (__mktime_internal): Do not mishandle the case
4773         where diff == INT_MIN.
4775         mktime: simplify computation of average
4776         * time/mktime.c (ranged_convert): Use new time_t_avg function
4777         instead of rolling our own (probably-slower) code.
4779         mktime: do not assume signed right shift propagates sign bit
4780         * time/mktime.c (isdst_differ): New static function.
4781         (__mktime_internal): No need to normalize tm_isdst now.
4782         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4783         tm_isdst values.
4785         mktime: merge another wrapv change from gnulib
4786         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4787         from some compilers.
4789         mktime: remove incorrect attempt at unusual arithmetics
4790         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4791         The code didn't really work on such machines anyway.
4792         (TYPE_MINIMUM): Assume two's complement.
4793         (twos_complement_arithmetic): Verify that long_int and time_t
4794         are two's complement (or unsigned, in the latter case).
4796         mktime: check signed shifts on long_int and time_t, too
4797         * time/mktime.c (SHR): Check that shifts work as desired
4798         on the types long_int and time_t too, as SHR is used on
4799         such types.
4801         mktime: do not assume 'long' is wide enough
4802         * time/mktime.c (verify): Move decl up.
4803         (long_int): New type.
4804         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4805         to remove assumption in the code that 'long' is wide enough to
4806         store year values.  This assumption is not true on x32 and on
4807         some non-glibc platforms.
4809         mktime: merge wrapv change from gnulib
4810         * time/mktime.c (WRAPV): New macro.
4811         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4812         (guess_time_tm, __mktime_internal): Do not assume that signed
4813         integer overflow wraps around; modern compilers generate code
4814         where this assumption is no longer valid.
4816 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4818         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4819         Replace "jmp L(pseudo_end)" with "ret".
4820         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4821         Likewise.
4823 2012-05-23  Andreas Jaeger  <aj@suse.de>
4825         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4826         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4828 2012-05-23  Andreas Jaeger  <aj@suse.de>
4829             Maximilian Attems  <max@stro.at>
4831         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4832         New macros.
4834 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4836         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4837         code so that pseudo_end is just ret and the stack pointer is
4838         correct also for static library in error case.
4840 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4842         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4843         move to syscalls.list.
4844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4849         * manual/install.texi (Running make install): Do not mention Linux
4850         kernel version for which pt_chown is not needed.
4851         (Linux): Do not mention problems with nscd with 2.0 kernels.
4852         * INSTALL: Regenerated.
4854 2012-05-23  Andreas Jaeger  <aj@suse.de>
4856         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4857         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4858         macro.
4859         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4860         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4861         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4862         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4863         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4864         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4865         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4866         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4867         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4868         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4869         * sysdeps/unix/sysv/linux/bits/in.h
4870         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4872 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4874         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4875         (PREPARE_VERSION): Just use assert instead, it will be elided
4876         under [NDEBUG] anyway.
4878 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4880         * sysdeps/unix/sysv/linux/Makefile: Include
4881         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4882         (sysdep_routines): Remove sysctl.
4883         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4884         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4885         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4886         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4887         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4889 2012-05-22  Andreas Jaeger  <aj@suse.de>
4891         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4892         that pseudo_end is just ret and the stack pointer is correct also
4893         for static library in error case.
4895 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4897         [BZ #14122]
4898         * nss/nsswitch.c (defconfig_entries): New variable.
4899         (__nss_database_lookup): Don't leak defconfig entries.
4900         (nss_parse_service_list): Don't leak on error paths.
4901         (free_database_entries): New function.
4902         (free_defconfig): New function.
4903         (free_mem): Move common code to free_database_entries.
4905 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4907         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4908         Add arch_prctl.
4909         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4911         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4912         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4913         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4914         New macro.
4915         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4916         (INTERNAL_SYSCALL_TYPES): Likewise.
4917         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4918         (LOAD_REGS_TYPES_[1-6]): Likewise.
4919         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4920         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4922 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4924         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4925         copysignl for GLIBC_2_0.
4926         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4927         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4928         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4929         logbl for GLIBC_2_0.
4930         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4931         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4933 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4935         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4936         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4938         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4939         Use "neg %eax".
4941         * time/mktime.c: Update copyright years.
4943 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4945         mktime: merge comment-quoting-style change from gnulib
4946         * time/mktime.c: Quote 'like this' in comments.
4947         The GNU coding standards suggest that we no longer quote `like this',
4948         as "`" and "'" are typically rendered asymmetrically nowadays.
4949         The typical gnulib style is to quote 'like this' when quoting
4950         code, and "like this" when quoting English.
4952         * time/mktime.c (compile-command): Add "-I.".
4954         mktime: merge mktime-internal.h change from gnulib
4955         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4957         mktime: merge time_r change from gnulib
4958         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4960         mktime: merge DEBUG change from gnulib
4961         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4962         case system <time.h> has a #define.
4964         mktime: merge <sys/types.h> change from gnulib
4965         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4966         since <time.t> is now guaranteed to define time_t.
4968         mktime: merge HAVE_CONFIG_H change from gnulib
4969         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4971 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4973         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4974         Use "neg %eax".
4976         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4977         __rlim_t cast.
4978         (struct rusage): Use anonymous union to pad each field to
4979         __syscall_slong_t.
4981 2012-05-21  David S. Miller  <davem@davemloft.net>
4983         * Makefules (o-iterator): Remove .s cases.
4984         (compile-command.s): Delete.
4985         (COMPILE.s): Delete.
4986         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4988 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4990         * configure.in (libc_cv_predef_stack_protector): Only consider
4991         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4992         * configure: Regenerated.
4994 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4996         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4997         New macro.  Use R*LP on int and pointer.
4998         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4999         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5000         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5001         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5003         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5004         [__WORDSIZE_TIME64_COMPAT32] instead of
5005         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5006         (struct utmp): Likewise.
5007         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5008         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5009         Renamed to ...
5010         (__WORDSIZE_TIME64_COMPAT32): This.
5011         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5012         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5013         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5014         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5015         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5016         (__WORDSIZE_TIME64_COMPAT32): New macro.
5018 2012-05-21  Andreas Jaeger  <aj@suse.de>
5020         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5021         only if [SHARED]. Add prototype for __wcschr_ia32.
5023 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5025         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5026         of %rbp unmolested in the jmp_buf while mangling the low bits.
5027         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5028         unmolested high bits of %rbp while demangling the low bits.
5029         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5031 2012-05-21  Andreas Jaeger  <aj@suse.de>
5033         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5034         * sunrpc/svc_simple.c: Use it for registerrpc.
5035         * sunrpc/xcrypt.c: Use it for passwd2des.
5037         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5039 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5041         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5042         Don't define if [__SYSCALL_WORDSIZE != 32].
5043         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5044         New macro.
5046 2012-05-21  Bruno Haible  <bruno@clisp.org>
5047             Andreas Jaeger  <aj@suse.de>
5049         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5050         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5051         inptr and inend for must_buffer_ch.
5052         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5053         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5054         * stdio-common/Makefile (tests): Remove bug15.
5055         (bug15-ENV): Remove macro.
5056         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5057         anymore.
5059 2012-05-19  Andreas Jaeger  <aj@suse.de>
5060             Roland McGrath  <roland@hack.frob.com>
5062         * manual/contrib.texi: Completely rewritten. It contains now an
5063         alphabetical list of contributors and their contributions.
5065 2012-05-21  Richard Henderson  <rth@twiddle.net>
5067         * misc/getauxval.c (__getauxval): Use unsigned long int.
5068         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5069         (getauxval): Use unsigned long int.
5071 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5073         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5075 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5077         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5078         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5079         __alignof__ (long double).
5081 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5083         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5085 2012-05-20  Richard Henderson  <rth@twiddle.net>
5087         * misc/getauxval.c: New file.
5088         * misc/sys/auxv.h: New file.
5089         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5090         (routines): Add getauxval.
5091         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5092         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5093         * elf/dl-sysdep.c (_dl_auxv): Remove.
5094         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5095         * elf/dl-support.c (_dl_auxv): New variable.
5096         (_dl_aux_init): Initialize it.
5097         * manual/startup.texi (Auxiliary Vector): New node.
5098         * sysdeps/generic/bits/hwcap.h: New file.
5099         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5100         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5101         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5102         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5103         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5104         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5106         Update.
5107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5108         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5110         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5111         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5112         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5113         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5114         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5116 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5118         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5120 2012-05-19  David S. Miller  <davem@davemloft.net>
5122         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5124 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5126         [BZ #14123]
5127         * math/s_ccosh.c: Include <float.h>
5128         (__ccosh): Avoid internal overflow calculating sinh and cosh
5129         values before multiplying by sin and cos values.
5130         * math/s_ccoshf.c: Likewise.
5131         * math/s_ccoshl.c: Likewise.
5132         * math/s_csin.c: Likewise.
5133         * math/s_csinf.c: Likewise.
5134         * math/s_csinl.c: Likewise.
5135         * math/s_csinh.c: Likewise.
5136         * math/s_csinhf.c: Likewise.
5137         * math/s_csinhl.c: Likewise.
5138         * math/libm-test.inc (ccos_test): Add more tests.
5139         (ccosh_test): Likewise.
5140         (csin_test): Likewise.
5141         (csinh_test): Likewise.
5142         * sysdeps/i386/fpu/libm-test-ulps: Update.
5143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5145 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5147         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5148         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5150         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5152 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5154         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5155         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5156         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5157         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5158         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5159         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5160         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5161         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5162         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5163         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5164         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5165         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5166         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5167         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5168         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5169         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5170         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5171         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5172         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5173         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5174         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5175         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5176         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5177         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5178         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5179         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5180         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5181         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5182         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5183         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5184         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5186 2012-05-18  Andreas Jaeger  <aj@suse.de>
5188         * csu/.gitignore: Delete.
5190 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5192         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5193         (timex): Use __syscall_slong_t.
5195 2012-05-18  Andreas Jaeger  <aj@suse.de>
5196             Carlos O'Donell  <carlos_odonell@mentor.com>
5198         * manual/install.texi (Configuring and compiling): Update
5199         description about files modified in the source directory.
5200         * INSTALL: Regenerated.
5202 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5204         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5205         value.  Use "or" to set return value to -1.
5206         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5207         negate return value.
5209 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5211         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5212         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5213         failure if the compiler has Graphite support disabled.
5214         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5215         Likewise.
5216         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5217         CFLAGS-memmove.c): Likewise.
5218         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5219         Likewise.
5221 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5223         * sysdeps/x86_64/x32/_itoa.h: New file.
5225         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5226         getdents system call only if kernel and user dirents have the
5227         same d_ino and d_off.
5229         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5230         LLONG_MAX != LONG_MAX.
5231         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5232         (_fitoa_word): Likewise.
5234         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5235         years.
5236         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5237         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5238         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5240         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5241         include <bits/wordsize.h>.  Check __x86_64__ instead of
5242         __WORDSIZE.
5243         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5244         if __x86_64__ is defined.  Use anonymous union on fpstate.
5246         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5247         anonymous union.
5249 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5251         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5252         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5253         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5254         Refer to _rtld_local_ro instead of _rtld_global_ro.
5255         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5256         Likewise.
5257         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5258         Likewise.
5259         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5260         Likewise.
5261         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5262         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5263         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5265         * sysdeps/powerpc/powerpc32/dl-machine.c
5266         (__elf_machine_runtime_setup) [PROF]: Don't reference
5267         _dl_prof_resolve.
5269 2012-05-18  Andreas Jaeger  <aj@suse.de>
5271         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5272         function only available for GCCs before 3.4 since GCC 3.4
5273         introduced a builtin.
5274         (lrint): Likewise.
5275         (llrintf): Likewise.
5276         (llrint): Likewise.
5277         (fmaxf): Likewise.
5278         (fmax): Likewise.
5279         (fminf): Likewise.
5280         (fmin): Likewise.
5281         (rint): Likewise.
5282         (rintf): Likewise.
5283         (nearbyint): Likewise.
5284         (nearbyintf): Likewise.
5285         (ceil): Likewise.
5286         (ceilf): Likewise.
5287         (floor): Likewise.
5288         (floorf): Likewise.
5290 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5292         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5293         on both fields and cast pointer to __syscall_ulong_t.
5295         * bits/types.h (__fsword_t): New type.
5296         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5297         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5298         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5299         (__FSWORD_T_TYPE): Likewise.
5300         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5301         (__FSWORD_T_TYPE): Likewise.
5302         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5303         (__FSWORD_T_TYPE): Likewise.
5304         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5305         (__FSWORD_T_TYPE): Likewise.
5306         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5307         __SWORD_TYPE with __fsword_t.
5308         (statfs64): Likewise.
5310 2012-05-17  David S. Miller  <davem@davemloft.net>
5312         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5314 2012-05-17  Andreas Jaeger  <aj@suse.de>
5316         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5317         warning.
5319 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5321         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5323 2012-05-17  Andreas Jaeger  <aj@suse.de>
5325         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5326         when it is used.
5328 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5330         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5332 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5334         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5335         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5337 2012-05-17  Andreas Jaeger  <aj@suse.de>
5338             Carlos O'Donell  <carlos_odonell@mentor.com>
5340         [BZ #14059]
5341         * sysdeps/x86_64/multiarch/init-arch.h
5342         (bit_YMM_Usable): Rename to...
5343         (bit_AVX_Usable): ... this.
5344         (bit_FMA4_Usable): New macro.
5345         (bit_XMM_state): New macro.
5346         (bit_YMM_state): New macro.
5347         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5348         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5349         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5350         (CPUID_OSXSAVE): New macro.
5351         (CPUID_AVX): New macro.
5352         (CPUID_FMA4): New macro.
5353         (index_YMM_Usable): Rename to...
5354         (index_AVX_Usable): ... this.
5355         (HAS_AVX): Use HAS_ARCH_FEATURE.
5356         (HAS_FMA4): Likewise.
5357         (HAS_YMM_USABLE): Remove.
5358         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5359         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5360         are present.
5361         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5362         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5363         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5364         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5365         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5367 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5369         * math/libm-test.c: Support platforms without multiple rounding modes.
5370         * math/bug-nextafter.c: Support platforms without FP exceptions.
5371         * math/bug-nexttoward.c: Likewise.
5372         * math/test-fenv.c: Likewise.
5373         * math/test-misc.c: Likewise.
5374         * stdlib/bug-getcontext.c: Likewise.
5376 2012-05-17  Andreas Jaeger  <aj@suse.de>
5378         * manual/examples/search.c (critter_cmp): Change signature to
5379         avoid warnings.
5380         * manual/string.texi (Collation Functions): Likewise.
5382 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5384         * bits/types.h: Fold copyright years.
5385         * bits/typesizes.h: Likewise.
5386         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5387         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5388         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5389         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5390         * time/time.h: Likewise.
5392 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5394         [BZ #208]
5395         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5396         in instead of returning them.  Return void.
5397         (__libc_mallinfo): Accumulate over all arenas.
5398         (__malloc_stats): Adjust for change in int_mallinfo interface.
5400 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5402         [BZ #10375]
5403         * configure.in (NM): Add AC_CHECK_TOOL for it.
5404         (libc_extra_cflags): New substituted variable.
5405         Check for -fstack-protector being used implicitly.
5406         * configure: Regenerated.
5407         * config.make.in (config-extra-cflags): New variable,
5408         gets @libc_extra_cflags@.
5409         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5411         [BZ #10375]
5412         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5413         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5414         * configure: Regenerated.
5415         * config.make.in (CPPUNDEFS): New substituted variable.
5416         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5417         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5418         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5420 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5422         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5423         (mq_attr): Use __syscall_slong_t.
5425 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5427         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5428         Check __x86_64__ instead of __WORDSIZE.
5429         (_STAT_VER_LINUX): Likewise.
5430         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5431         __syscall_ulong_t and __syscall_slong_t.
5432         (stat64): Likewise.
5434 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5436         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5438 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5440         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5442 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5444         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5445         __syscall_ulong_t.
5447         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5448         include <bits/wordsize.h>.  Check __x86_64__ instead of
5449         __WORDSIZE.
5450         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5451         defined.
5452         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5454         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5455         include <bits/wordsize.h>.  Check __x86_64__ instead of
5456         __WORDSIZE.
5457         (user_regs_struct): Use "__extension__ unsigned long long"
5458         instead of "unsigned long" if __x86_64__ is defined.
5459         (user): Likewise.  Pad after pointer field if __ILP32__ is
5460         defined.
5462 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5464         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5465         versions 5 to 9.
5466         * configure: Regenerated.
5467         * manual/install.texi (texinfo): Increase version requirement to
5468         4.5 or later.
5469         * INSTALL: Regenerated.
5471         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5473 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5475         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5477         * sysdeps/x86_64/x32/ffs.c: New file.
5479         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5480         __syscall_ulong_t.
5481         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5482         defined.  Use __syscall_ulong_t.
5483         (shminfo): Use __syscall_ulong_t.
5484         (shm_info): Likewise.
5486         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5487         __syscall_ulong_t.
5489         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5490         <bits/wordsize.h>.
5491         (msgqnum_t): Use __syscall_ulong_t.
5492         (msglen_t): Likewise.
5493         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5494         __syscall_ulong_t.
5496         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5497         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5499         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5501         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5502         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5504         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5505         __syscall_slong_t.
5507         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5508         include <bits/wordsize.h>.  Check __x86_64__ instead of
5509         __WORDSIZE.
5511         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5512         "unsigned long long int" if __x86_64__ is defined.
5513         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5515         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5516         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5517         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5519         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5520         <stdint.h>.
5521         (GET_PC): Cast to uintptr_t first.
5522         (GET_FRAME): Likewise.
5523         (GET_STACK): Likewise.
5525         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5526         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5527         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5528         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5529         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5530         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5531         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5532         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5533         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5534         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5535         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5536         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5537         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5538         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5539         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5540         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5541         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5542         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5543         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5544         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5545         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5546         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5547         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5548         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5549         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5550         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5551         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5552         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5553         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5555 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5557         * Makerules (+depfiles): Also collect depfiles from .oS in
5558         $(extra-objs).
5559         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5560         .oS, $(libnldbl-routines)).
5562         * Makerules (native-compile-mkdep-flags): Define.
5563         * sunrpc/Makefile (extra-objs): Add $(addprefix
5564         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5565         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5566         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5567         calling $(make-target-directory).
5569 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5571         * bits/types.h (__snseconds_t): Removed.
5572         * time/time.h (struct timespec): Replace __snseconds_t with
5573         __syscall_slong_t.
5574         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5575         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5576         Likewise.
5577         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5578         (__SNSECONDS_T_TYPE): Likewise.
5579         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5580         (__SNSECONDS_T_TYPE): Likewise.
5581         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5582         (__SNSECONDS_T_TYPE): Likewise.
5584 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5586         * sysdeps/mach/hurd/bits/typesizes.h
5587         (__SYSCALL_SLONG_TYPE): New macro.
5588         (__SYSCALL_ULONG_TYPE): Likewise.
5590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5592         * bits/types.h (__syscall_slong_t): New type.
5593         (__syscall_ulong_t): Likewise.
5595         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5596         (__SYSCALL_ULONG_TYPE): Likewise.
5597         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5598         (__SYSCALL_SLONG_TYPE): Likewise.
5599         (__SYSCALL_ULONG_TYPE): Likewise.
5600         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5601         (__SYSCALL_SLONG_TYPE): Likewise.
5602         (__SYSCALL_ULONG_TYPE): Likewise.
5603         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5604         (__SYSCALL_SLONG_TYPE): Likewise.
5605         (__SYSCALL_ULONG_TYPE): Likewise.
5607 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5609         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5610         Add sigaltstack-offsets.sym.
5611         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5612         <sigaltstack-offsets.h>.
5613         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5614         longjmp_msg pointer.
5615         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5616         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5617         signal stack.
5618         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5620 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5622         * elf/stackguard-macros.h: Remove file.
5623         * sysdeps/generic/stackguard-macros.h: New file.
5624         * sysdeps/i386/stackguard-macros.h: Likewise.
5625         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5626         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5627         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5628         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5629         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5630         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5631         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5632         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5633         <elf/stackguard-macros.h>.
5635         [BZ #14109]
5636         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5637         __aligned__ in attribute.
5638         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5639         (gregset_t): Likewise.
5641 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5643         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5644         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5645         * sysdeps/x86_64/x32/Implies-after: New file.
5647 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5649         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5650         and access return value for _dl_profile_fixup.  Use R10_LP to
5651         load frame size.
5653 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5655         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5657 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5659         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5660         * sysdeps/x86_64/x32/sysdep.h: New file.
5662 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5664         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5665         * sysdeps/x86_64/setjmp.S: Likewise.
5667 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5669         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5670         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5671         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5672         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5673         remove unused global constant.
5675 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5677         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5678         include of <not-cancel.h>.
5680 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5682         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5684 2012-05-15  Jeff Law  <law@redhat.com>
5685             Andreas Jaeger  <aj@suse.de>
5687         [BZ #13594]
5688         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5689         out from...
5690         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5691         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5692         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5693         code changing __hst_map_handle.map.
5695 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5697         * configure.in (sysnames): Look for Implies-before and Implies-after
5698         files.
5699         * configure: Regenerated.
5701 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5703         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5704         8-byte data alignment with LP_SIZE alignment.
5706 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5708         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5709         into R10_LP.
5711 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5713         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5715 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5717         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5718         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5719         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5720         Likewise.
5721         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5723 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5725         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5726         (stackinfo_sub_sp): Likewise.
5728 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5730         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5731         RAX_LP.
5733 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5735         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5736         into R*_LP.
5738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5740         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5741         sizes into R*_LP.
5743 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5745         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5747 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5749         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5750         into R11_LP and load __x86_64_shared_cache_size_half into
5751         R8_LP.
5753 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5755         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5756         R8_LP.
5758 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5760         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5761         logb for POWER7.
5762         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5763         logbf for POWER7.
5764         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5765         logbl for POWER7.
5766         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5767         powerpc32/power7/fpu/s_logb.c via #include.
5768         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5769         powerpc32/power7/fpu/s_logbf.c via #include.
5770         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5771         powerpc32/power7/fpu/s_logbl.c via #include.
5773 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5775         * README.libm: Remove file.
5777 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5779         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5780         count for x32.  Use R*_LP and omit operand-size suffix.
5782 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5784         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5785         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5786         * sysdeps/x86_64/x32/shlib-versions: New file.
5788 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5790         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5791         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5792         Use _dl_fatal_printf instead.
5794 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5796         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5797         set if not set by the user.  Do not allow for being unset.
5798         * sysdeps/unix/sysv/linux/configure: Regenerated.
5800 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5802         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5803         the `q' suffix from lea and replace .quad with ASM_ADDR.
5805 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5807         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5808         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5809         instead of $17.
5810         (PTR_DEMANGLE): Likewise.
5812 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5814         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5815         (LP_OP): Likewise.
5816         (ASM_ADDR): Likewise.
5817         (RAX_LP): Likewise.
5818         (RBP_LP): Likewise.
5819         (RBX_LP): Likewise.
5820         (RCX_LP): Likewise.
5821         (RDI_LP): Likewise.
5822         (RSI_LP): Likewise.
5823         (RSP_LP): Likewise.
5824         (R8_LP): Likewise.
5825         (R9_LP): Likewise.
5826         (R10_LP): Likewise.
5827         (R10_LP): Likewise.
5828         (R11_LP): Likewise.
5829         (R12_LP): Likewise.
5830         (R13_LP): Likewise.
5831         (R14_LP): Likewise.
5832         (R15_LP): Likewise.
5834 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5836         * sysdeps/x86_64/x32/dl-machine.h: New file.
5838 2012-05-14  Andreas Jaeger  <aj@suse.de>
5840         * manual/Makefile (subdir): Remove export of subdir.
5841         (all): Remove target.
5842         (.PHONY): Remove all from list.
5843         (mkinstalldirs): Remove.
5844         (.PHONY): Remove installdirs from list.
5845         ($(inst_infodir)/libc.info): Use make-target-directory.
5846         (installdirs): Remove.
5847         (subdir_%): Remove.
5848         (glibc-targets): Remove.
5849         (lib): Remove.
5850         (stubs): Remove.
5851         ($(objpfx)stubs ../po/manual.pot): Remove.
5852         ($(objpfx)stamp%): Remove.
5853         (make-target-directory): Remove.
5854         (subdir_install): Remove.
5855         (routines): Remove.
5856         (aux): Remove.
5857         (sources): Remove.
5858         (objects): Remove.
5859         (headers): Remove.
5861         [BZ #13750]
5862         * manual/.gitignore: Remove, it's not needed anymore.
5863         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5864         all files in it.
5865         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5866         directory.
5867         (texis): Renamed to $(objpfx)texis.
5868         (texis-path): New, contains path to generated files.
5869         (chapters.%): Use texis-path for complete path, add extra argument
5870         libc-texinfo.sh.
5871         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5872         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5873         (summary,texi, stamp-summary): Use complete path of
5874         files. Generate files in build dir.
5875         (dir-add.texi): Build in build dir.
5876         (libm-err.texi,stamp-libm-err): Likewise.
5877         (version.texi, stamp-version): Likewise.
5878         (.%c.texi): Likewise.
5879         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5880         (mostlyclean): Remove target.
5881         (realclean): Remove target.
5882         (generated): Add new variable with contents from mostlyclean and
5883         realclean, remove entries duplicated in common-mostlyclean, add
5884         stamp-libm-err and stamp-version.
5885         (generated-dirs): Add libc directory.
5886         ($(inst_infodir)/libc.info): Install files from build dir.
5888         * manual/install.texi (Configuring and compiling): Adjust since
5889         the info files are not part of the tar ball anymore.
5891 2012-05-14  Andreas Jaeger  <aj@suse.de>
5893         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5894         variable.
5896 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5898         [BZ #13717]
5899         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5900         to 2.2.0 where earlier.
5901         * sysdeps/unix/sysv/linux/configure: Regenerated.
5902         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5903         Remove conditional code.
5904         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5905         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5906         Remove conditional code.
5907         [!__NR_lchown]: Likewise.
5908         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5909         [__NR_lchown]: Likewise.
5910         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5911         comment referencing __ASSUME_LCHOWN_SYSCALL.
5912         * sysdeps/unix/sysv/linux/i386/sigaction.c
5913         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5914         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5915         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5916         Remove conditional code.
5917         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5918         (__protocol_available): Remove #if 0 code.
5919         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5920         conditional code.
5921         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5922         * sysdeps/unix/sysv/linux/kernel-features.h
5923         (__ASSUME_GETCWD_SYSCALL): Don't define.
5924         (__ASSUME_REALTIME_SIGNALS): Likewise.
5925         (__ASSUME_PREAD_SYSCALL): Likewise.
5926         (__ASSUME_PWRITE_SYSCALL): Likewise.
5927         (__ASSUME_POLL_SYSCALL): Likewise.
5928         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5929         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5930         non-SPARC.
5931         (__ASSUME_SIOCGIFNAME): Don't define.
5932         (__ASSUME_MSG_NOSIGNAL): Likewise.
5933         (__ASSUME_SENDFILE): Define unconditionally.
5934         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5935         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5936         conditional code.
5937         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5938         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5939         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5940         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5941         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5942         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5943         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5945         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5946         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5948         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5949         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5951         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5952         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5954         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5955         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5957         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5958         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5960         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5961         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5963         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5964         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5966         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5967         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5968         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5969         Remove conditional code.
5970         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5971         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5972         Remove conditional code.
5973         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5974         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5975         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5976         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5977         Remove conditional code.
5978         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5979         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5980         Remove conditional code.
5981         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5982         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5983         Remove conditional code.
5984         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5985         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5986         Remove conditional code.
5987         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5988         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5989         Remove conditional code.
5990         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5991         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5992         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5993         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5994         * sysdeps/unix/sysv/linux/sigaction.c
5995         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5996         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5997         * sysdeps/unix/sysv/linux/sigpending.c
5998         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5999         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6000         * sysdeps/unix/sysv/linux/sigprocmask.c
6001         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6002         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6003         * sysdeps/unix/sysv/linux/sigsuspend.c
6004         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6005         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6006         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6007         (__libc_missing_rt_sigs): Remove.
6008         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6009         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6010         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6011         Remove conditional code.
6012         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6013         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6014         return 1.
6015         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6016         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6017         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6018         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6020 2012-05-14  Andreas Jaeger  <aj@suse.de>
6022         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6023         it's not used in glibc.
6024         (__coshm1): Likewise.
6025         (__acosh1p): Likewise.
6026         (__sgn): Likewise.
6028         * manual/string.texi (Copying and Concatenation): Add missing
6029         variable in concat example.
6030         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6032 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6034         [BZ #14103]
6035         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6036         __builtin_clzl with __builtin_clzll.
6038 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6040         [BZ #14104]
6041         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6042         libc_freeres_ptr.
6044 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6046         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6047         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6048         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6049         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6051 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6053         * NEWS: Update ia64 info.
6055 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6057         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6058         used as bcopy.
6060 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6062         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6063         * sysdeps/unix/syscalls.list (dup3): Likewise.
6064         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6065         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6067 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6069         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6070         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6072 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6074         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6075         thread pointer.
6076         (TLS_IE): Use mov/add instead of movq/addq to load thread
6077         pointer.
6078         (TLS_GD_PREFIX): New.
6079         (TLS_GD): Use it.
6081 2012-05-11  David S. Miller  <davem@davemloft.net>
6083         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6084         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6085         (_FPU_SETCW): Likewise.
6087 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6089         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6090         is 32-byte aligned.
6092 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6094         [BZ #11837]
6095         * iconvdata/gb18030.c: Update tables.
6096         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6097         characters specially.
6098         (BODY for TO_LOOP): Add encoding of missing ranges.
6100 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6102         [BZ #13673]
6103         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6104         * sysdeps/mach/hurd/dup3.c: Likewise.
6105         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6106         * sysdeps/powerpc/memmove.c:: Likewise.
6108 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6110         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6111         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6113 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6115         * elf/elf.h (R_X86_64_RELATIVE64): New.
6116         (R_X86_64_NUM): Updated.
6117         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6118         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6119         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6120         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6121         tst-quad1pie tst-quad2pie
6122         (modules-names): Add tst-quadmod1 tst-quadmod2.
6123         ($(objpfx)tst-quad1): New dependency.
6124         ($(objpfx)tst-quad2): Likewise.
6125         ($(objpfx)tst-quad1pie): Likewise.
6126         ($(objpfx)tst-quad2pie): Likewise.
6127         * sysdeps/x86_64/tst-quad1.c: New file.
6128         * sysdeps/x86_64/tst-quad1pie.c: New file.
6129         * sysdeps/x86_64/tst-quad2.c: Likewise.
6130         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6131         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6132         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6133         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6134         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6136 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6138         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6139         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6140         * streams/stropts.h (t_scalar_t): Define type.
6142         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6143         (_PATH_PRESERVE): Set to "/var/lib".
6144         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6146         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6147         instead of int.
6149         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6150         if __dir_mkfile succeeded.
6152         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6153         checking for _hurd_dtablesize.  Unlock it right after having
6154         finished _hurd_dtable allocation.
6156 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6158         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6159         * sysdeps/mach/hurd/configure: Regenerated.
6160         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6161         special-casing to...
6162         * sysdeps/gnu/configure.in: ... this new file.
6163         * sysdeps/unix/sysv/linux/configure: Regenerated.
6164         * sysdeps/gnu/configure: New generated file.
6166         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6167         for Linux: use nsec instead of usec, as well as:
6168         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6169         members of type struct timespec.
6170         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6171         New macros.
6172         (struct stat64): Likewise.
6173         (_STATBUF_ST_NSEC): New macro.
6174         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6176         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6177         __strtoul_internal rather than strtoul.
6179 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6181         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6182         and reject them.
6184 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6186         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6187         which preserves existing values.
6188         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6190 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6192         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6193         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6194         greater than FD_SETSIZE.
6196 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6198         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6199         allocated, call __vm_protect to finish enabling the existing space, and
6200         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6201         allocate the remainder.
6203 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6205         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6206         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6208 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6210         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6211         sysdeps/mach/hurd/readlink.c.
6213         * posix/tst-sysconf.c (posix_options): Only use
6214         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6215         _POSIX_SYNCHRONIZED_IO when they are defined
6216         * sysdeps/mach/hurd/bits/posix_opt.h:
6217         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6218         (_XOPEN_REALTIME): Undefine macro.
6219         (_XOPEN_REALTIME_THREADS): Undefine macro.
6220         (_XOPEN_SHM): Undefine macro.
6221         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6222         macro to -1.
6223         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6224         macro to -1.
6225         (_POSIX_ASYNC_IO): Undefine macro.
6226         (_POSIX_PRIORITIZED_IO): Undefine macro.
6227         (_POSIX_SPIN_LOCKS): Define macro to -1.
6229         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6230         SA_NODEFER, SA_RESETHAND.
6231         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6232         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6233         F_DUPFD_CLOEXEC.
6235 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6237         * elf/Makefile (pldd-modules): Define unconditionally.
6239 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6241         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6243 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6245         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6246         Return ENOENT when name is empty.
6247         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6249 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6251         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6253         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6255 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6257         Fix mlock in all cases except non-readable pages.
6258         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6259         instead of VM_PROT_ALL as parameter to __vm_wire function.
6261         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6262         (__mkdir): When path is `/', just fail with EEXIST.
6263         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6265 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6267         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6268         <sys/uio.h> (for writev).
6269         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6270         and <sys/param.h> (for MIN).
6272 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6274         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6275         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6276         if interrupted.
6278 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6280         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6281         Depend on against $(link-rpcuserlibs).
6283 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6285         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6286         (__libc_stack_end): Do not use attribute_relro.
6287         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6288         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6289         to libthread-provided value.
6290         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6291         attribute_relro.
6293 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6295         [BZ #3748]
6296         * bits/libc-lock.h (__libc_once_get): New macro.
6297         * sysdeps/mach/bits/libc-lock.h: Likewise.
6298         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6299         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6300         instead of using implementation details.
6302         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6303         * libio/freopen.c: Likewise.
6304         * libio/freopen64.c: Likewise.
6305         * misc/syslog.c: Likewise.
6306         * nscd/connections.c: Likewise.
6307         * nscd/netgroupcache.c: Likewise.
6308         * sysdeps/posix/getcwd.c: Likewise.
6310 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6312         * math/w_ilogbf.c: Add #include <limits.h>.
6314 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6316         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6317         path instead of returning without unlocking.
6319         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6320         immediate-write ioctls.
6321         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6323 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6325         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6326         __builtin_frame_address instead of making assumptions about the
6327         location of the return address relative to DATA.  Force early load of
6328         the return address.
6329         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6330         __builtin_frame_address.
6332         dup3 for GNU Hurd.
6333         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6334         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6335         implement dup3 and do some further code clean-ups.
6336         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6337         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6339 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6341         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6343         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6344         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6345         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6346         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6347         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6348         d->port.lock.
6350         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6351         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6352         when handler == SIG_ERR, not when handler != SIG_ERR.
6354 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6356         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6357         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6358         definitions.
6360         accept4 for GNU Hurd.
6361         * include/sys/socket.h (__libc_accept4): New prototype.
6362         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6363         to implement __libc_accept4.
6364         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6365         __libc_accept4.
6366         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6368         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6369         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6370         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6371         signal-defines.sym.
6373 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6375         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6377 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6379         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6380         assertion on O_CLOEXEC flag.
6381         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6382         * hurd/intern-fd.c: Likewise.
6383         * hurd/port2fd.c: Likewise.
6385 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6387         [BZ #3906]
6388         * bits/in.h (IPV6_PKTINFO): Define new macro.
6389         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6391 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6393         [BZ #13954]
6394         [BZ #13955]
6395         [BZ #13956]
6396         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6397         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6398         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6399         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6400         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6401         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6402         * math/libm-test.inc (logb_test) : Additional logb tests.
6404 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6405             Andreas Jaeger  <aj@suse.de>
6407         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6408         * configure: Regenerated.
6409         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6410         * config.make.in (link-obsolete-rpc): New substituted variable.
6411         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6412         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6413         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6414         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6415         so that libc.a contains the symbols.
6416         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6417         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6418         * sunrpc/auth_none.c: Likewise.
6419         * sunrpc/auth_unix.c: Likewise.
6420         * sunrpc/authdes_prot.c: Likewise.
6421         * sunrpc/authuxprot.c: Likewise.
6422         * sunrpc/clnt_gen.c: Likewise.
6423         * sunrpc/clnt_perr.c: Likewise.
6424         * sunrpc/clnt_raw.c: Likewise.
6425         * sunrpc/clnt_simp.c: Likewise.
6426         * sunrpc/clnt_tcp.c: Likewise.
6427         * sunrpc/clnt_udp.c: Likewise.
6428         * sunrpc/clnt_unix.c: Likewise.
6429         * sunrpc/des_crypt.c: Likewise.
6430         * sunrpc/des_soft.c: Likewise.
6431         * sunrpc/get_myaddr.c: Likewise.
6432         * sunrpc/key_call.c: Likewise.
6433         * sunrpc/key_prot.c: Likewise.
6434         * sunrpc/netname.c: Likewise.
6435         * sunrpc/pm_getmaps.c: Likewise.
6436         * sunrpc/pm_getport.c: Likewise.
6437         * sunrpc/pmap_clnt.c: Likewise.
6438         * sunrpc/pmap_prot.c: Likewise.
6439         * sunrpc/pmap_prot2.c: Likewise.
6440         * sunrpc/pmap_rmt.c: Likewise.
6441         * sunrpc/publickey.c: Likewise.
6442         * sunrpc/rpc_cmsg.c: Likewise.
6443         * sunrpc/rpc_common.c: Likewise.
6444         * sunrpc/rpc_dtable.c: Likewise.
6445         * sunrpc/rpc_prot.c: Likewise.
6446         * sunrpc/rpc_thread.c: Likewise.
6447         * sunrpc/rtime.c: Likewise.
6448         * sunrpc/svc.c: Likewise.
6449         * sunrpc/svc_auth.c: Likewise.
6450         * sunrpc/svc_raw.c: Likewise.
6451         * sunrpc/svc_run.c: Likewise.
6452         * sunrpc/svc_tcp.c: Likewise.
6453         * sunrpc/svc_udp.c: Likewise.
6454         * sunrpc/svc_unix.c: Likewise.
6455         * sunrpc/svcauth_des.c: Likewise.
6456         * sunrpc/xcrypt.c: Likewise.
6457         * sunrpc/xdr.c: Likewise.
6458         * sunrpc/xdr_array.c: Likewise.
6459         * sunrpc/xdr_float.c: Likewise.
6460         * sunrpc/xdr_intXX_t.c: Likewise.
6461         * sunrpc/xdr_mem.c: Likewise.
6462         * sunrpc/xdr_rec.c: Likewise.
6463         * sunrpc/xdr_ref.c: Likewise.
6464         * sunrpc/xdr_sizeof.c: Likewise.
6465         * sunrpc/xdr_stdio.c: Likewise.
6467 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6469         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6470         change.  Update copyright years.
6472 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6474         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6476 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6477             Joseph Myers  <joseph@codesourcery.com>
6478             Paul Pluzhnikov  <ppluzhnikov@google.com>
6480         [BZ #14012]
6481         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6482         requiring rpcgen.
6483         [cross-compiling] (extra-libs): Likewise.
6484         [cross-compiling] (extra-libs-others): Likewise.
6485         [cross-compiling] (librpcsvc-routines): Likewise.
6486         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6487         [cross-compiling] (omit-deps): Likewise.
6488         (sunrpc-CPPFLAGS): New variable.
6489         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6490         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6491         (cross-rpcgen-objs): New variable.
6492         (extra-objs): Append $(cross-rpcgen-objs).
6493         ($(cross-rpcgen-objs)): New rule.
6494         ($(objpfx)cross-rpcgen): Likewise.
6495         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6496         comment.
6497         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6498         ($(objpfx)x%.stmp): Likewise.
6499         * sunrpc/proto.h [IS_IN_build] (_): Define.
6500         [IS_IN_build] (_libc_intl_domainname): Likewise.
6502 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6504         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6505         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6506         and R_X86_64_TPOFF64.
6508 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6510         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6511         sysdeps/unix/sysv/syscalls.list.
6512         (stime): Likewise.
6513         (utime): Likewise.
6514         * sysdeps/unix/sysv/syscalls.list: Remove file.
6516 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6518         [BZ #3440]
6519         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6520         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6521         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6522         (__LC_IDENTIFICATION): Make these macros useful in #if
6523         expressions, as required by C99.
6525 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6527         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6528         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6529         after this.
6531 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6533         * stdlib/longlong.h: Updated from GCC.
6535 2012-05-09  Andreas Jaeger  <aj@suse.de>
6537         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6538         default is first entry.
6539         (run_mode): Set type.
6540         (main): Remove informal message about syslog.
6541         (options): Fix typo.
6543         [BZ #14053]
6544         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6545         to asm.
6546         (lrint): Likewise.
6547         (llrintf): Likewise.
6548         (llrint): Likewise.
6549         (rint): Likewise.
6550         (rintf): Likewise.
6551         (nearbyint): Likewise.
6552         (nearbyintf): Likewise.
6554 2012-05-09  Andreas Jaeger  <aj@suse.de>
6555             Pedro Alves  <palves@redhat.com>
6557         * nscd/nscd.c (run_mode): Use enum.
6558         (main): Cleanup coding style issue.
6560 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6561             Andreas Jaeger  <aj@suse.de>
6563         * nscd/nscd.c (go_background): Replaced with...
6564         (run_mode): ... this.
6565         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6566         (options): Add -F --foreground.
6567         (main): Implement it.
6568         (parse_opt): Parse it.
6570 2012-05-09  Andreas Jaeger  <aj@suse.de>
6572         [BZ #14083]
6573         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6574         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6575         -Wconversion warning.
6576         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6577         Likewise.
6579 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6581         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6582         == 0.
6583         (LC_ALL): Use macro-int-constant.
6584         (LC_COLLATE): Likewise.
6585         (LC_CTYPE): Likewise.
6586         (LC_MESSAGES): Likewise.
6587         (LC_MONETARY): Likewise.
6588         (LC_NUMERIC): Likewise.
6589         (LC_TIME): Likewise.
6590         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6591         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6592         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6593         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6594         Specify type.
6595         [C99-based standards] (float_t): Expect type.
6596         [C99-based standards] (double_t): Expect type.
6597         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6598         type.
6599         [C99-based standards] (HUGE_VALL): Likewise.
6600         [C99-based standards] (INFINITY): Likewise.
6601         [C99-based standards] (NAN): Likewise.
6602         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6603         [C99-based standards] (FP_NAN): Likewise.
6604         [C99-based standards] (FP_NORMAL): Likewise.
6605         [C99-based standards] (FP_SUBNORMAL): Likewise.
6606         [C99-based standards] (FP_ZERO): Likewise.
6607         [C99-based standards] (FP_FAST_FMA): Use
6608         optional-macro-int-constant.  Specify type.  Require == 1.
6609         [C99-based standards] (FP_FAST_FMAF): Likewise.
6610         [C99-based standards] (FP_FAST_FMAL): Likewise.
6611         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6612         [C99-based standards] (FP_ILOGBNAN): Likewise.
6613         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6614         Specify type.
6615         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6616         [C99-based standards] (math_errhandling): Specify type.
6617         [ISO99 || ISO11] (signgam): Do not allow.
6618         [non-C99-based standards] (copysignf): Do not allow.
6619         [non-C99-based standards] (exp2f): Likewise.
6620         [non-C99-based standards] (log2f): Likewise.
6621         [non-C99-based standards] (modff): Allow.
6622         [non-C99-based standards] (erff): Do not allow.
6623         [non-C99-based standards] (erfcf): Likewise.
6624         [non-C99-based standards] (gammaf): Likewise.
6625         [non-C99-based standards] (hypotf): Likewise.
6626         [non-C99-based standards] (j0f): Likewise.
6627         [non-C99-based standards] (j1f): Likewise.
6628         [non-C99-based standards] (jnf): Likewise.
6629         [non-C99-based standards] (lgammaf): Likewise.
6630         [non-C99-based standards] (tgammaf): Likewise.
6631         [non-C99-based standards] (y0f): Likewise.
6632         [non-C99-based standards] (y1f): Likewise.
6633         [non-C99-based standards] (ynf): Likewise.
6634         [non-C99-based standards] (isnanf): Likewise.
6635         [non-C99-based standards] (acoshf): Likewise.
6636         [non-C99-based standards] (asinhf): Likewise.
6637         [non-C99-based standards] (atanhf): Likewise.
6638         [non-C99-based standards] (cbrtf): Likewise.
6639         [non-C99-based standards] (expm1f): Likewise.
6640         [non-C99-based standards] (ilogbf): Likewise.
6641         [non-C99-based standards] (log1pf): Likewise.
6642         [non-C99-based standards] (logbf): Likewise.
6643         [non-C99-based standards] (nextafterf): Likewise.
6644         [non-C99-based standards] (remainderf): Likewise.
6645         [non-C99-based standards] (rintf): Likewise.
6646         [non-C99-based standards] (scalbf): Likewise.
6647         [non-C99-based standards] (copysignl): Likewise.
6648         [non-C99-based standards] (exp2l): Likewise.
6649         [non-C99-based standards] (log2l): Likewise.
6650         [non-C99-based standards] (modfl): Allow.
6651         [non-C99-based standards] (erfl): Do not allow.
6652         [non-C99-based standards] (erfcl): Likewise.
6653         [non-C99-based standards] (gammal): Likewise.
6654         [non-C99-based standards] (hypotl): Likewise.
6655         [non-C99-based standards] (j0l): Likewise.
6656         [non-C99-based standards] (j1l): Likewise.
6657         [non-C99-based standards] (jnl): Likewise.
6658         [non-C99-based standards] (lgammal): Likewise.
6659         [non-C99-based standards] (tgammal): Likewise.
6660         [non-C99-based standards] (y0l): Likewise.
6661         [non-C99-based standards] (y1l): Likewise.
6662         [non-C99-based standards] (ynl): Likewise.
6663         [non-C99-based standards] (isnanl): Likewise.
6664         [non-C99-based standards] (acoshl): Likewise.
6665         [non-C99-based standards] (asinhl): Likewise.
6666         [non-C99-based standards] (atanhl): Likewise.
6667         [non-C99-based standards] (cbrtl): Likewise.
6668         [non-C99-based standards] (expm1l): Likewise.
6669         [non-C99-based standards] (ilogbl): Likewise.
6670         [non-C99-based standards] (log1pl): Likewise.
6671         [non-C99-based standards] (logbl): Likewise.
6672         [non-C99-based standards] (nextafterl): Likewise.
6673         [non-C99-based standards] (remainderl): Likewise.
6674         [non-C99-based standards] (rintl): Likewise.
6675         [non-C99-based standards] (scalbl): Likewise.
6676         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6677         [non-C99-based standards] (FP_*): Do not allow.
6678         [C99-based standards] (FP_*): Change to
6679         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6680         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6681         allow.
6682         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6683         (SIG_ERR): Likewise.
6684         [X/Open-based standards] (SIG_HOLD): Likewise.
6685         (SIG_IGN): Likewise.
6686         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6687         positive value.
6688         (SIGFPE): Likewise.
6689         (SIGILL): Likewise.
6690         (SIGINT): Likewise.
6691         (SIGSEGV): Likewise.
6692         (SIGTER): Likewise.
6693         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6694         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6695         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6696         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6697         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6698         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6699         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6700         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6701         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6702         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6703         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6704         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6705         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6706         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6707         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6708         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6709         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6710         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6711         [X/Open-based standards] (SIGTRAP): Likewise.
6712         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6713         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6714         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6715         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6716         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6717         allow.
6719 2012-05-08  Ian Wienand  <ianw@vmware.com>
6721         [BZ #14080]
6722         * time/tzset.c (__tzset_parse_tz): Update default rules for
6723         daylight time changes in the Energy Policy Act of 2005.
6725 2012-05-09  Andreas Jaeger  <aj@suse.de>
6727         [BZ #13983]
6728         * elf/ldconfig.c (parse_conf): Change string to make clear that
6729         ldconfig only issued a warning if ld.so.conf does not exist.
6731 2012-05-08  David S. Miller  <davem@davemloft.net>
6733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6734         movxtod instead of popping the value on the stack.
6736         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6738 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6740         * config.h.in: Add HAVE_ARM_PCS_VFP.
6742 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6744         [BZ #13979]
6745         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6746         checking but the checks are disabled for any reason.
6748 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6750         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6751         and ELF64_R_TYPE with ELFW(R_TYPE).
6753 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6755         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6756         (ulimit): Likewise.
6758         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6759         (settimeofday): Likewise.
6761 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6763         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6764         a struct th_u2 inside the union, and move tu_block/tu_code into
6765         a new th_u3 union of tu_block/tu_code inside of that.  Move
6766         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6767         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6768         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6769         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6770         (th_stuff): Change to th_u1.tu_stuff.
6771         (th_data): Define.
6772         (th_msg): Change to th_u1.th_u2.tu_data.
6774 2012-05-07  David S. Miller  <davem@davemloft.net>
6776         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6778         [BZ #14074]
6779         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6780         (SETUP_PIC_REG): Use it.
6781         (SETUP_PIC_REG_LEAF): Use it.
6783 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6785         [BZ #13885]
6786         [BZ #13923]
6787         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6788         USE_AS_EXPM1L.
6789         (EXPL_FINITE): Likewise.
6790         (FLDLOG): Likewise.
6791         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6792         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6793         e_expl.S.
6794         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6795         USE_AS_EXPM1L.
6796         (EXPL_FINITE): Likewise.
6797         (FLDLOG): Likewise.
6798         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6799         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6800         e_expl.S.
6801         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6802         test of -max_value argument for long double.
6803         * sysdeps/i386/fpu/libm-test-ulps: Update.
6804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6806 2012-05-06  David S. Miller  <davem@davemloft.net>
6808         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6809         quad soft-float symbols whose references which are compiler
6810         generated.
6811         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6813 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6815         [BZ #13884]
6816         [BZ #13914]
6817         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6818         USE_AS_EXP10L.
6819         (EXPL_FINITE): Likewise.
6820         (FLDLOG): Likewise.
6821         (c0): Likewise.
6822         (c1): Likewise.
6823         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6824         Adjust comments for base varying.
6825         (__expl_finite): Change alias to EXPL_FINITE.
6826         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6827         e_expl.S.
6828         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6829         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6830         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6831         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6832         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6833         USE_AS_EXP10L.
6834         (EXPL_FINITE): Likewise.
6835         (FLDLOG): Likewise.
6836         (c0): Likewise.
6837         (c1): Likewise.
6838         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6839         Adjust comments for base varying.
6840         (__expl_finite): Change alias to EXPL_FINITE.
6841         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6842         tests for bugs.
6843         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6845         [BZ #14064]
6846         * math/libm-test.inc (check_float_internal): Correct ulp
6847         calculation for subnormal expected results.
6849 2012-05-06  Andreas Jaeger  <aj@suse.de>
6851         * Makeconfig (+math-flags): New, set to -frounding-math.
6852         (+cflags): Add +math-flags so that all of glibc gets compiled with
6853         it.
6855         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6857 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6859         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6860         Disable one test.
6862         [BZ #13787]
6863         [BZ #13922]
6864         [BZ #14036]
6865         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6866         (__ieee754_expl): Allow for and saturate large arguments.
6867         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6868         (u_threshold): Likewise.
6869         (__exp): Call __ieee754_exp before checking for overflow and
6870         underflow.
6871         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6872         (u_threshold): Likewise.
6873         (__expf): Call __ieee754_expf before checking for overflow and
6874         underflow.
6875         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6876         (u_threshold): Likewise.
6877         (__expl): Call __ieee754_expl before checking for overflow and
6878         underflow.
6879         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6880         (__ieee754_expl): Allow for and saturate large arguments.
6881         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6882         missing overflow exception on overflow.
6883         (expm1_test): Do not allow missing overflow exception on overflow.
6885         * sysdeps/i386/fpu/e_expl.c: Move to ...
6886         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6887         rather than using inline asm.
6888         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6889         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6890         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6892         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6893         (nice): Likewise.
6894         (poll): Likewise.
6895         (signal): Likewise.
6896         (time): Likewise.
6897         (times): Likewise.
6899 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6901         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6902         sysdeps/unix/common/syscalls.list.
6903         (fchmod): Likewise.
6904         (fchown): Likewise.
6905         (ftruncate): Likewise.
6906         (getrusage): Likewise.
6907         (gettimeofday): Likewise.
6908         (setpgid): Likewise.
6909         (setregid): Likewise.
6910         (setreuid): Likewise.
6911         (sigaction): Likewise.
6912         (truncate): Likewise.
6913         (vhangup): Likewise.
6914         * sysdeps/unix/common/syscalls.list: Remove file.
6915         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6916         * sysdeps/unix/sysv/linux/Implies: Likewise.
6918 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6920         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6921         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6922         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6923         Moved to ...
6924         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6925         Here.
6926         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6927         to ...
6928         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6929         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6930         to ...
6931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6932         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6933         to ...
6934         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6935         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6936         to ...
6937         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6938         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6939         to ...
6940         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6941         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6942         to ...
6943         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6944         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6945         to ...
6946         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6947         Here.
6948         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6949         to ...
6950         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6951         Here.
6952         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6953         to ...
6954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6955         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6956         Moved to ...
6957         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6958         Here.
6959         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6960         to ...
6961         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6963 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6965         * sysdeps/unix/common/bits/dirent.h: Remove file.
6966         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6968         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6969         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6970         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6971         * sysdeps/unix/bsd/isatty.c: Likewise.
6972         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6973         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6974         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6976 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6978         [BZ #13563]
6979         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6980         long double comparison inaccuracies.
6981         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6982         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6984 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6986         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6987         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6989 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6991         [BZ #14049]
6992         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6993         nonzero digits before rounding a hex value.
6994         * stdlib/tst-strtod.c (tests): Add another test.
6996 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6998         * sysdeps/s390/fpu/libm-test-ulps: Update.
7000 2012-05-03  Andreas Jaeger  <aj@suse.de>
7002         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7003         does not get optimized out.
7004         (malloc_opt_barrier): New.
7006 2012-05-03  Andreas Jaeger  <aj@suse.de>
7007             Roland McGrath  <roland@hack.frob.com>
7009         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7010         intermediate file deletion.
7011         (generated): Add .symlist files.
7013 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7015         [BZ #13775]
7016         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7017         Redirect under this condition.
7018         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7019         [__USE_GNU] (__dprintf_chk): Not under this condition.
7020         [__USE_GNU] (__vdprintf_chk): Likewise.
7021         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7022         under this condition.
7023         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7024         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7025         [__USE_XOPEN2K8] (vdprintf): Likewise.
7026         [__USE_GNU] (__dprintf_chk): Not under this condition.
7027         [__USE_GNU] (__vdprintf_chk): Likewise.
7028         [__USE_GNU] (dprintf): Likewise.
7029         [__USE_GNU] (vdprintf): Likewise.
7031 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7033         * elf/Makefile (common-generated): Set this instead of generated for
7034         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7035         $(all-built-dso)-derived lists.
7037 2012-05-03  Andreas Jaeger  <aj@suse.de>
7039         * sysdeps/i386/fpu/libm-test-ulps: Update.
7041         * FAQ: Removed.
7042         * FAQ.in: Likewise.
7043         * scripts/gen-FAQ.pl: Likewise.
7044         * manual/install.texi (Installation): Point to online location of
7045         FAQ.
7046         * Makefile (files-for-dist): Remove FAQ.
7047         (FAQ): Remove.
7049 2012-05-02  Allan McRae  <allan@archlinux.org>
7051         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7052         (LDFLAGS-reldepmod5.so): Likewise.
7053         (LDFLAGS-reldep6mod1.so): Likewise.
7054         (LDFLAGS-reldep6mod4.so): Likewise.
7055         (LDFLAGS-reldep8mod3.so): Likewise.
7056         (LDFLAGS-unload4mod1.so): Likewise.
7057         (LDFLAGS-unload4mod2.so): Likewise.
7058         (LDFLAGS-tst-initorder): Likewise.
7059         (LDFLAGS-tst-initordera2.so): Likewise.
7060         (LDFLAGS-tst-initordera3.so): Likewise.
7061         (LDFLAGS-tst-initordera4.so): Likewise.
7062         (LDFLAGS-tst-initorderb2.so): Likewise.
7063         (LDFLAGS-noload): Likewise.
7064         (LDFLAGS-next): Likewise.
7065         (LDFLAGS-order2mod1.so): Likewise.
7066         (LDFLAGS-order2mod2.so): Likewise.
7067         (LDFLAGS-tst-initorder2): Likewise.
7068         (LDFLAGS-tst-initorder2a.so): Likewise.
7069         (LDFLAGS-tst-initorder2b.so): Likewise.
7070         (LDFLAGS-tst-initorder2c.so): Likewise.
7071         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7073 2012-05-02  David S. Miller  <davem@davemloft.net>
7075         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7077 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7079         [BZ #14055]
7080         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7082 2012-05-02  Andreas Jaeger  <aj@suse.de>
7084         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7085         since we manipulate rounding mode.
7086         (CPPFLAGS-test-idouble.c): Likewise.
7087         (CPPFLAGS-test-ifloat.c): Likewise.
7088         (CFLAGS-test-ldouble.c): Likewise.
7089         (CFLAGS-test-double.c): Likewise.
7090         (CFLAGS-test-float.c): Likewise.
7091         (CFLAGS-test-misc.c): Likewise.
7092         (CFLAGS-test-test-fenv.c): Likewise.
7094 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7096         [BZ #2550]
7097         [BZ #2570]
7098         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7099         comparisons to determine direction to adjust input.
7101 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7103         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7104         output to the target.
7106         * scripts/localplt.awk: New file.
7107         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7108         (check-localplt-CFLAGS): Variable removed.
7109         ($(all-built-dso:=.jmprel)): New static pattern rule.
7110         (generated): Add those targets.
7111         (localplt-built-dso): New variable.
7112         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7114         * elf/check-localplt.c: File removed.
7116         * scripts/check-execstack.awk: New file.
7117         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7118         (check-execstack-CFLAGS): Variable removed.
7119         ($(objpfx)check-execstack.h): Target removed.
7120         ($(objpfx)execstack-default): New target.
7121         (generated): Add that instead of check-execstack.h.
7122         ($(all-built-dso:=.phdr)): New static pattern rule.
7123         (generated): Add those targets.
7124         * elf/check-execstack.c: File removed.
7126         * scripts/check-textrel.awk: New file.
7127         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7128         (check-textrel-CFLAGS): Variable removed.
7129         (all-built-dso): Use := to define.o
7130         ($(all-built-dso:=.dyn)): New static pattern rule.
7131         (generated): Add those targets.
7132         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7133         * config.make.in (READELF): New substituted variable.
7134         * elf/check-textrel.c: File removed.
7136 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7138         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7139         allow.
7140         * conform/data/ctype.h-data [C99-based standards] (isblank):
7141         Expect function.
7142         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7143         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7144         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7145         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7146         Specify type.  Require positive value.
7147         (EILSEQ): Likewise.
7148         (ERANGE): Likewise.
7149         [ISO || POSIX] (EILSEQ): Do not expect.
7150         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7151         Specify type.  Require positive value.
7152         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7153         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7154         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7155         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7156         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7157         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7158         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7159         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7160         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7161         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7162         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7163         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7164         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7165         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7166         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7167         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7168         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7169         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7170         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7171         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7172         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7173         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7174         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7175         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7176         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7177         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7178         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7179         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7180         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7181         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7182         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7183         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7184         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7185         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7186         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7187         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7188         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7189         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7190         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7191         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7192         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7193         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7194         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7195         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7196         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7197         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7198         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7199         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7200         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7201         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7202         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7203         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7204         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7205         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7206         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7207         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7208         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7209         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7210         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7211         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7212         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7213         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7214         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7215         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7216         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7217         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7218         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7219         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7220         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7221         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7222         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7223         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7224         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7225         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7226         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7227         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7228         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7229         Require >= 2.
7230         (FLT_ROUNDS): Expect as macro, not constant.
7231         (FLT_MANT_DIG): Use macro-int-constant.
7232         (DBL_MANT_DIG): Likewise.
7233         (LDBL_MANT_DIG): Likewise.
7234         (FLT_DIG): Likewise.
7235         (DBL_DIG): Likewise.
7236         (LDBL_DIG): Likewise.
7237         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7238         (DBL_MIN_EXP): Likewise.
7239         (LDBL_MIN_EXP): Likewise.
7240         (FLT_MAX_EXP): Use macro-int-constant.
7241         (DBL_MAX_EXP): Likewise.
7242         (LDBL_MAX_EXP): Likewise.
7243         (FLT_MAX_10_EXP): Likewise.
7244         (DBL_MAX_10_EXP): Likewise.
7245         (LDBL_MAX_10_EXP): Likewise.
7246         (FLT_MAX): Use macro-constant.
7247         (DBL_MAX): Likewise.
7248         (LDBL_MAX): Likewise.
7249         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7250         (DBL_EPSILON): Likewise.
7251         (LDBL_EPSILON): Likewise.
7252         (FLT_MIN): Likewise.
7253         (DBL_MIN): Likewise.
7254         (LDBL_MIN): Likewise.
7255         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7256         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7257         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7258         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7259         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7260         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7261         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7262         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7263         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7264         [ISO11] (FLT_TRUE_MIN): Likewise.
7265         [ISO11] (LDBL_TRUE_MIN): Likewise.
7266         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7267         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7268         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7269         (SCHAR_MAX): Likewise.
7270         (UCHAR_MAX): Likewise.
7271         (CHAR_MIN): Likewise.
7272         (CHAR_MAX): Likewise.
7273         (MB_LEN_MAX): Use macro-int-constant.
7274         (SHRT_MIN): Use macro-int-constant.  Specify type.
7275         (SHRT_MAX): Likewise.
7276         (USHRT_MAX): Likewise.
7277         (INT_MAX): Likewise.
7278         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7279         bound negative.
7280         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7281         bound with "U".
7282         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7283         bound with "L".
7284         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7285         bound negative.  Suffix upper bound with "L".
7286         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7287         bound with "UL".
7288         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7289         Specify type.
7290         [C99-based standards] (LLONG_MAX): Likewise.
7291         [C99-based standards] (ULLONG_MAX): Likewise.
7292         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7293         == 0.
7294         [ISO11] (max_align_t): Require type.
7295         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7297         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7298         from $CFLAGS, without defining away __attribute__ calls.
7299         (checknamespace): Use $CFLAGS_namespace.
7301         * conform/conformtest.pl (@keywords): Only include C99 keywords
7302         for standards based on C99 or C11.
7304         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7305         Disable tests.
7306         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7307         UNIX98]: Likewise.
7309         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7310         usability of symbols in #if.
7312         * conform/conformtest.pl: If macro or constant types start
7313         "promoted:", expect the symbol to be of the following type
7314         promoted by the integer promotions.
7316         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7317         in one place.  Also handle "macro-constant".
7319         * conform/conformtest.pl: Only accept expected macro values with
7320         "==".  Parse all "macro" lines in one place.
7321         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7323         * conform/conformtest.pl: Handle braced types on "constant" lines
7324         instead of handling "typed-constant".
7325         * conform/data/signal.h-data: Use "constant" instead of
7326         "typed-constant".
7328         * conform/conformtest.pl: Handle "optional-" at start of lines in
7329         one place rather than duplicating several cases.  Handle each
7330         format of "macro" line with initial "optional-".
7332         * conform/conformtest.pl: Only accept expected constant or
7333         optional-constant values with "==".  Parse all "constant" lines in
7334         one place.  Parse all "optional-constant" lines in one place.
7335         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7336         * conform/data/fmtmsg.h-data: Likewise.
7337         * conform/data/netinet/in.h-data: Likewise.
7338         * conform/data/tar.h-data: Likewise.
7339         * conform/data/limits.h-data: Use "==" form on "constant" and
7340         "optional-constant" lines.
7342         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7343         Use -std=c99 for XOPEN2K.
7344         (@knownproblems): Remove.
7345         (newtoken): Don't check %isknown.
7347         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7348         Do not expect macro.
7349         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7350         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7351         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7352         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7353         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7354         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7355         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7356         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7357         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7358         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7359         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7360         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7361         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7362         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7363         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7364         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7365         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7366         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7367         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7368         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7369         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7370         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7371         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7372         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7373         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7374         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7375         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7376         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7377         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7378         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7379         [XPG3] (acosh): Likewise.
7380         [XPG3] (asinh): Likewise.
7381         [XPG3] (atanh): Likewise.
7382         [XPG3] (cbrt): Likewise.
7383         [XPG3] (expm1): Likewise.
7384         [XPG3] (ilogb): Likewise.
7385         [XPG3] (log1p): Likewise.
7386         [XPG3] (logb): Likewise.
7387         [XPG3] (nextafter): Likewise.
7388         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7389         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7390         [XPG3] (remainder): Likewise.
7391         [XPG3] (rint): Likewise.
7392         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7393         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7394         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7395         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7396         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7397         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7398         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7399         [UNIX98 || XOPEN2K] (scalb): Expect.
7400         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7401         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7402         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7403         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7404         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7405         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7406         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7407         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7408         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7409         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7410         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7411         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7412         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7413         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7414         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7415         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7416         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7417         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7418         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7419         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7420         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7421         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7422         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7423         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7424         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7425         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7426         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7427         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7428         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7429         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7430         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7431         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7432         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7433         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7434         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7435         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7436         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7437         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7438         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7439         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7440         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7441         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7442         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7443         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7444         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7445         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7446         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7447         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7448         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7449         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7450         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7451         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7452         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7453         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7454         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7455         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7456         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7457         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7458         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7459         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7460         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7461         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7462         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7463         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7464         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7465         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7466         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7467         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7468         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7469         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7470         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7471         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7472         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7473         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7474         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7475         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7476         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7477         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7478         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7479         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7480         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7481         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7482         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7483         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7484         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7485         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7486         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7487         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7488         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7489         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7490         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7491         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7492         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7493         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7494         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7495         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7496         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7497         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7498         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7499         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7500         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7501         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7502         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7503         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7504         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7505         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7506         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7507         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7508         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7509         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7510         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7511         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7512         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7513         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7514         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7515         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7516         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7517         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7518         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7519         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7520         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7521         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7522         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7523         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7524         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7525         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7526         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7527         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7528         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7529         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7530         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7531         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7532         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7533         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7534         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7535         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7536         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7538         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7539         _XOPEN_SOURCE_EXTENDED for XPG4.
7541         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7543         * Makeconfig (localtime): Remove variable.
7544         (inst_localtime-file): Likewise.
7546 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7549         Update.
7550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7551         Update.
7552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7553         Update.
7554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7555         Update.
7556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7557         Update.
7558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7559         Update.
7560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7561         Update.
7562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7563         Update.
7564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7565         Update.
7567 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7569         [BZ #2550]
7570         [BZ #2570]
7571         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7572         comparisons to determine direction to adjust input.
7573         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7574         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7575         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7576         Likewise.
7577         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7578         Likewise.
7579         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7580         Likewise.
7581         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7582         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7583         Likewise.
7584         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7585         Likewise.
7586         * math/libm-test.inc (nexttoward_test): Add more tests.
7588 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7590         [BZ #14040]
7591         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7592         in version GLIBC_2.1, not GLIBC_2.0.
7593         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7594         Likewise.
7596 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7598         [BZ #13942]
7599         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7600         (1 - x) * (1 + x).
7601         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7602         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7603         * math/libm-test.inc (acos_test): Add more tests.
7604         (asin_test): Likewise.
7605         * sysdeps/i386/fpu/libm-test-ulps: Update.
7606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7608         [BZ #14034]
7609         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7610         of square root.
7611         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7612         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7613         * math/libm-test.inc (acos_test_tonearest): New function.
7614         (acos_test_towardzero): Likewise.
7615         (acos_test_downward): Likewise.
7616         (acos_test_upward): Likewise.
7617         (asin_test_tonearest): Likewise.
7618         (asin_test_towardzero): Likewise.
7619         (asin_test_downward): Likewise.
7620         (asin_test_upward): Likewise.
7621         (main): Call the new functions.
7622         * sysdeps/i386/fpu/libm-test-ulps: Update.
7623         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7625         [BZ #13884]
7626         [BZ #13924]
7627         * math/e_exp10.c: Include <float.h>.
7628         (__ieee754_exp10): Handle underflow here rather than multiplying
7629         large negative argument by M_LN10.
7630         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7631         of __ieee754_expf.
7632         * math/e_exp10l.c: Include <float.h>.
7633         (__ieee754_exp10l): Handle underflow here rather than multiplying
7634         large negative argument by M_LN10l.
7635         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7636         spurious overflow exception on underflow.
7638 2012-04-29  Marek Polacek  <polacek@redhat.com>
7640         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7641         (__fortify_function): New macro.
7642         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7643         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7644         __extern_always_inline.
7645         * libio/bits/stdio2.h: Likewise.
7646         * libio/bits/stdio.h: Likewise.
7647         * string/string.h: Likewise.
7648         * string/bits/string3.h: Likewise.
7649         * include/stdio.h: Likewise.
7650         * stdlib/bits/stdlib.h: Likewise.
7651         * stdlib/stdlib.h: Likewise.
7652         * rt/bits/mqueue2.h: Likewise.
7653         * rt/mqueue.h: Likewise.
7654         * posix/bits/unistd.h: Likewise.
7655         * posix/unistd.h: Likewise.
7656         * io/bits/poll2.h: Likewise.
7657         * io/bits/fcntl2.h: Likewise.
7658         * io/fcntl.h: Likewise.
7659         * io/sys/poll.h: Likewise.
7660         * misc/bits/syslog.h: Likewise.
7661         * misc/bits/syslog-ldbl.h: Likewise.
7662         * misc/sys/syslog.h: Likewise.
7663         * socket/bits/socket2.h: Likewise.
7664         * socket/sys/socket.h: Likewise.
7665         * debug/tst-chk1.c: Likewise.
7666         * wcsmbs/bits/wchar2.h: Likewise.
7667         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7668         * wcsmbs/wchar.h: Likewise.
7670 2012-04-29  Andreas Jaeger  <aj@suse.de>
7672         * Makerules (tests): Remove enable-check-abi protection.
7673         (check-abi-warn): Remove.
7674         (check-abi-%): Remove check-abi-warn usage.
7676         * configure.in: Remove check-abi configure option.
7677         * configure: Regenerated.
7678         * config.make.in (enable-check-abi): Remove.
7680 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7682         [BZ #14033]
7683         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7684         double functions to double *_finite functions.
7686         [BZ #13941]
7687         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7688         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7689         LDBL_MIN_EXP.
7690         * stdio-common/Makefile (tests): Add tst-sprintf3.
7691         * stdio-common/tst-sprintf3.c: New file.
7693         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7694         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7696 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7698         * conform/conformtest.pl: Remove duplicate typed-constant
7699         handling.
7701 2012-04-28  David S. Miller  <davem@davemloft.net>
7703         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7704         (check-abi-%): Remove AWK script prerequisite and explicit
7705         abilist directory.
7706         (check-abi): Rewrite to just diff the symlist with the abilist.
7707         (config-tls, config-abi-config): Delete, no longer used.
7708         (update-abi-%): Remove AWK script and explicit abilist directory.
7709         (update-abi): Rewrite to simply compare and conditionally copy the
7710         symlist and the sysdep abilist file.  Remove update-abi-config
7711         checks.
7712         * abilist/ld.abilist: Remove.
7713         * abilist/libBrokenLocale.abilist: Remove.
7714         * abilist/libanl.abilist: Remove.
7715         * abilist/libcrypt.abilist: Remove.
7716         * abilist/libdl.abilist: Remove.
7717         * abilist/librt.abilist: Remove.
7718         * abilist/libthread_db.abilist: Remove.
7719         * abilist/libutil.abilist: Remove.
7720         * scripts/extract-abilist.awk: Remove.
7721         * scripts/merge-abilist.awk: Remove.
7722         * sysdeps/generic/libcidn.abilist: New file.
7723         * sysdeps/generic/libnss_compat.abilist: New file.
7724         * sysdeps/generic/libnss_db.abilist: New file.
7725         * sysdeps/generic/libnss_dns.abilist: New file.
7726         * sysdeps/generic/libnss_files.abilist: New file.
7727         * sysdeps/generic/libnss_hesiod.abilist: New file.
7728         * sysdeps/generic/libnss_nis.abilist: New file.
7729         * sysdeps/generic/libnss_nisplus.abilist: New file.
7730         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7731         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7732         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7733         file.
7734         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7735         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7736         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7737         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7738         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7739         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7740         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7741         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7742         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7743         file.
7744         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7745         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7746         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7747         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7748         file.
7749         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7750         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7751         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7752         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7753         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7754         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7755         file.
7756         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7757         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7758         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7759         file.
7760         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7761         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7762         New file.
7763         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7764         New file.
7765         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7766         New file.
7767         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7768         New file.
7769         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7770         New file.
7771         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7772         New file.
7773         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7774         New file.
7775         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7776         New file.
7777         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7778         New file.
7779         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7780         New file.
7781         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7782         New file.
7783         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7784         New file.
7785         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7786         New file.
7787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7788         file.
7789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7790         New file.
7791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7792         New file.
7793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7794         file.
7795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7796         New file.
7797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7798         New file.
7799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7800         file.
7801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7802         New file.
7803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7804         New file.
7805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7806         New file.
7807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7808         New file.
7809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7810         New file.
7811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7812         New file.
7813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7814         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7815         file.
7816         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7817         New file.
7818         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7819         file.
7820         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7821         file.
7822         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7823         file.
7824         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7825         file.
7826         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7827         file.
7828         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7829         New file.
7830         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7831         file.
7832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7833         file.
7834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7835         New file.
7836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7837         file.
7838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7839         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7840         file.
7841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7842         New file.
7843         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7844         file.
7845         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7846         file.
7847         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7848         file.
7849         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7850         file.
7851         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7852         file.
7853         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7854         New file.
7855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7856         file.
7857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7858         file.
7859         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7860         New file.
7861         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7862         file.
7863         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7864         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7865         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7866         file.
7867         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7868         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7869         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7870         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7871         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7872         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7873         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7874         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7875         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7876         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7878         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7879         file.
7880         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7881         New file.
7882         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7883         file.
7884         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7885         file.
7886         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7887         file.
7888         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7889         file.
7890         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7891         file.
7892         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7893         New file.
7894         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7895         New file.
7896         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7897         file.
7898         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7899         New file.
7900         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7901         file.
7902         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7903         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7904         file.
7905         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7906         New file.
7907         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7908         file.
7909         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7910         file.
7911         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7912         file.
7913         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7914         file.
7915         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7916         file.
7917         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7918         New file.
7919         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7920         New file.
7921         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7922         file.
7923         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7924         New file.
7925         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7926         file.
7928 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7930         * conform/conformtest.pl: Fix typo in handling typed-constant from
7931         allow-header.
7933 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7935         * README: Cut down references to pre-2.6 Linux kernels and
7936         Linuxthreads.  Update lists of configurations in libc and ports
7937         and sort alphabetically.  Say "or newer" with Linux kernel version
7938         requirements.
7940         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7942 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7944         [BZ #887]
7945         * math/libm-test.inc (logb_test_downward): New test to expose
7946         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7947         rounding mode.
7949 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7951         [BZ #14027]
7952         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7953         to be done.
7954         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7955         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7957 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7959         * sysdeps/unix/i386/brk.S: Remove file.
7960         * sysdeps/unix/i386/dl-brk.S: Likewise.
7961         * sysdeps/unix/i386/pipe.S: Likewise.
7962         * sysdeps/unix/i386/sigreturn.S: Likewise.
7963         * sysdeps/unix/i386/syscall.S: Likewise.
7964         * sysdeps/unix/i386/vfork.S: Likewise.
7965         * sysdeps/unix/i386/wait.S: Likewise.
7967         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7968         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7970         * configure.in (arm*-none*): Do not allow without
7971         --enable-hacker-mode.
7972         (netbsd*): Remove case setting base_os.
7973         (386bsd*): Likewise.
7974         (freebsd*): Likewise.
7975         (bsdi*): Likewise.
7976         (osf*): Likewise.
7977         (sunos*): Likewise.
7978         (ultrix*): Likewise.
7979         (newsos*): Likewise.
7980         (dynix*): Likewise.
7981         (*bsd*): Likewise.
7982         (sysv*): Likewise.
7983         (isc*): Likewise.
7984         (esix*): Likewise.
7985         (sco*): Likewise.
7986         (minix*): Likewise.
7987         (irix4*): Likewise.
7988         (irix6*): Likewise.
7989         (solaris[2-9]*): Likewise.
7990         (none): Likewise.
7991         * configure: Regenerated.
7993 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7995         [BZ #11521]
7996         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7997         overflow or cancellation in calculating denominator.
7998         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7999         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8000         down expression to avoid unexpected rounding in newer GCCs.
8001         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8003 2012-04-26  David S. Miller  <davem@davemloft.net>
8005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8006         long-double compat symbols.
8007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8017         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8018         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8019         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8021 2012-04-25  David S. Miller  <davem@davemloft.net>
8023         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8024         HWCAP_* values only after the memory barriers have been defined.
8025         (atomic_full_barrier): Define.
8026         (atomic_read_barrier): Define.
8027         (atomic_write_barrier): Define.
8029 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8031         * shlib-versions: Add libgcc_s version information.
8032         * sysdeps/generic/libgcc_s.h: Remove.
8033         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8034         libgcc_s.h.
8035         * sysdeps/gnu/unwind-resume.c: Likewise.
8036         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8038 2012-04-25  David S. Miller  <davem@davemloft.net>
8040         * sysdeps/unix/sparc/brk.S: Delete.
8041         * sysdeps/unix/sparc/dl-brk.S: Delete.
8042         * sysdeps/unix/sparc/pipe.S: Delete.
8043         * sysdeps/unix/sparc/sysdep.S: Delete.
8044         * sysdeps/unix/sparc/sysdep.h: Delete.
8045         * sysdeps/unix/sparc/vfork.S: Delete.
8046         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8047         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8048         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8049         ret_ERRVAL, r0, r1, MOVE): Define.
8050         (JUMPTARGET): Remove.
8051         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8052         sysdeps/unix/sparc/sysdep.h
8053         (ENTRY, END): Remove.
8054         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8056 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8058         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8059         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8060         -DIS_IN_build.
8062         * timezone/README: Update upstream location and email address for
8063         tzcode and tzdata.
8064         * timezone/zdump.c: Update from tzcode 2012b.
8065         * timezone/zic.c: Likewise.
8067         * configure.in (libc_cv_as_needed): Remove test.
8068         * configure: Regenerated.
8069         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8070         conditional definition.
8071         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8072         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8073         * config.make.in (have-as-needed): Remove variable.
8075 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8076             Paul Pluzhnikov  <ppluzhnikov@google.com>
8078         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8079         strings correctly.
8081 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8083         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8084         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8085         * sysdeps/sh/strlen.S: Likewise.
8087 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8089         * sysdeps/unix/fork.S: Remove file.
8090         * sysdeps/unix/i386/fork.S: Likewise.
8091         * sysdeps/unix/sparc/fork.S: Likewise.
8093         * sysdeps/unix/system.c: Remove file.
8094         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8096         * sysdeps/unix/getegid.S: Remove file.
8097         * sysdeps/unix/geteuid.S: Likewise.
8099 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8101         * scripts/check-localplt.awk: New file.
8102         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8103         of diff.
8104         * scripts/data/localplt-generic.data: Add a comment.
8106         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8107         NODE when __dir_mkfile failed.
8108         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8109         Reported by Ludovic Courtès <ludo@gnu.org>.
8111 2012-04-24  Andreas Jaeger  <aj@suse.de>
8113         * Makerules (common-clean): Also remove gen-as-const-headers
8114         files.
8116 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8118         * Makerules (native-compile): Do not change working directory for
8119         build.  Use $(OUTPUT_OPTION) in command.
8120         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8122 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8124         [BZ #13886]
8125         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8126         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8127         * math/libm-test.inc (floor_test): Add more tests.
8128         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8130 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8132         * sysdeps/unix/getdents.c: Remove file.
8133         * sysdeps/unix/sysv/getdents.c: Likewise.
8134         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8136         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8137         sysdeps/unix/mman/syscalls.list.
8138         (mmap): Likewise.
8139         (mprotect): Likewise.
8140         (msync): Likewise.
8141         (munmap): Likewise.
8142         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8143         * sysdeps/unix/mman/syscalls.list: Remove.
8144         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8146         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8147         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8148         * configure: Regenerated.
8149         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8150         $(libgcc_s_suffix).
8151         * config.make.in (libgcc_s_suffix): Remove variable.
8153 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8155         * sysdeps/unix/sysv/gethostname.c: Move to ...
8156         * sysdeps/posix/gethostname.c: ... here.
8158         * sysdeps/unix/execve.S: Remove file.
8160         * sysdeps/unix/_exit.S: Remove file.
8162 2012-04-23  Andreas Jaeger  <aj@suse.de>
8164         [BZ #13739]
8165         * manual/Makefile: Remove make dist support, there's no
8166         need for a stand-alone documentation tar ball.
8167         (TEXI2DVI): Define always, it's not in Makeconfig.
8168         (dist): Removed.
8169         (tar-it): Removed.
8170         (edition): Removed.
8171         (glibc-doc-$(edition).tar): Removed
8172         (%.Z): Removed.
8173         (%.gz): Removed.
8174         (%.uu): Removed.
8175         (ETAGS): Remove, it's in Makeconfig.
8176         (move-if-change): Remove, it's in Makeconfig.
8178 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8180         [BZ #13970]
8181         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8182         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8183         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8184         (strtod_l, strtof_l, strtold_l): Remove __wur.
8185         It is not necessarily an error to ignore strtol's return value.
8186         One can reliably look at the stored endptr to decide whether
8187         the number had valid syntax.
8189 2012-04-21  Andreas Jaeger  <aj@suse.de>
8191         [BZ #13739]
8192         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8194 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8196         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8197         * sysdeps/unix/sysv/Versions: Remove file.
8199 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8201         [BZ #13927]
8202         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8204 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8206         [BZ #7064]
8207         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8208         version from __vm86.
8210 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8212         * sysdeps/unix/common/lxstat.c: Remove file.
8213         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8215         * sysdeps/unix/sysv/Makefile: Remove file.
8217         * sysdeps/unix/sysv/direct.h: Remove file.
8219         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8220         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8221         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8222         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8223         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8224         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8225         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8227         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8229         * sysdeps/unix/xmknod.c: Remove file.
8230         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8232         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8234         * sysdeps/unix/sysv/i386/time.S: Remove file.
8236         * sysdeps/unix/fxstat.c: Remove file.
8237         * sysdeps/unix/xstat.c: Likewise.
8238         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8240         * sysdeps/unix/sysv/sigaction.c: Remove file.
8242         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8243         (sysdep_headers): Remove variable.
8244         [termio.h not in sysdep_headers] (generated): Likewise.
8245         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8246         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8247         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8248         * sysdeps/unix/sysv/tcflow.c: Likewise.
8249         * sysdeps/unix/sysv/tcflush.c: Likewise.
8250         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8251         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8252         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8253         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8254         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8256         * sysdeps/unix/siglist.c: Remove file.
8258         * sysdeps/unix/getppid.S: Remove file.
8260         * sysdeps/unix/mkdir.c: Remove file.
8261         * sysdeps/unix/rmdir.c: Likewise.
8263 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8265         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8266         ERR_MAX value.
8267         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8268         errlist-compat value.
8270 2012-04-18  David S. Miller  <davem@davemloft.net>
8272         * sysdeps/generic/memcopy.h (reg_char): Delete.
8273         * debug/strcat_chk.c: Use char, not reg_char.
8274         * debug/strcpy_chk.c: Likewise.
8275         * debug/strncat_chk.c: Likewise.
8276         * debug/strncpy_chk.c: Likewise.
8277         * string/memchr.c: Likewise.
8278         * string/memrchr.c: Likewise.
8279         * string/rawmemchr.c: Likewise.
8280         * string/strcat.c: Likewise.
8281         * string/strchr.c: Likewise.
8282         * string/strchrnul.c: Likewise.
8283         * string/strcmp.c: Likewise.
8284         * string/strcpy.c: Likewise.
8285         * string/strncat.c: Likewise.
8286         * string/strncmp.c: Likewise.
8287         * string/strncpy.c: Likewise.
8289 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8291         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8292         __builtin_memcopy is called when src and dest ranges are known to not
8293         overlap.
8295 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8297         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8298         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8299         fwd_align_merge macro call.
8300         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8301         bwd_align_merge macro call.
8302         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8304 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8306         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8307         bwd_align_merge macros.
8308         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8309         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8310         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8312 2012-04-18  David S. Miller  <davem@davemloft.net>
8314         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8316 2012-04-18  Andreas Jaeger  <aj@suse.de>
8318         [BZ# 6794]
8319         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8320         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8321         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8323         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8324         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8325         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8327         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8328         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8329         Adjust for changed ldbl-128 files.
8331         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8332         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8333         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8335 2012-04-17  David S. Miller  <davem@davemloft.net>
8337         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8339 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8341         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8342         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8343         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8344         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8345         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8346         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8348 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8350         [BZ #6794]
8351         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8352         * math/libm-test.inc: Add ilogb errno and exception tests.
8353         * math/w_ilogb.c: New file: ilogb wrapper.
8354         * math/w_ilogbf.c: New file: ilogbf wrapper.
8355         * math/w_ilogbl.c: New file: ilogbl wrapper.
8356         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8357         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8358         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8359         exception being thrown with 0.0 as argument.
8360         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8361         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8362         exception being thrown with 0.0 as argument.
8363         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8364         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8365         exception being thrown with 0.0 as argument.
8366         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8367         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8368         exception being thrown with 0.0 as argument.
8369         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8370         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8371         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8372         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8373         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8374         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8375         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8376         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8377         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8379 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8381         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8382         with altivec.
8384 2012-04-16  Marek Polacek  <polacek@redhat.com>
8386         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8388 2012-04-16  Marek Polacek  <polacek@redhat.com>
8390         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8391         operands of fdivp instruction.
8393 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8395         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8396         * elf/tst-auditmod3b.c: Likewise.
8397         * elf/tst-auditmod4b.c: Likewise.
8398         * elf/tst-auditmod5b.c: Likewise.
8399         * elf/tst-auditmod6b.c: Likewise.
8400         * elf/tst-auditmod6c.c: Likewise.
8401         * elf/tst-auditmod7b.c: Likewise.
8402         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8403         * sysdeps/x86_64/preconfigure.in: Likewise.
8404         * sysdeps/x86_64/preconfigure: Regenerated.
8406 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8408         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8409         __ILP32__.
8411 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8413         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8414         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8416 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8418         [BZ #13973]
8419         * locale/iso-639.def: Fix gl language name. Spotted by
8420         Yaron Shahrabani.
8422 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8424         [BZ #2074]
8425         * libio/libio.h (__io_write_fn): Update comment.
8427 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8429         [BZ #2074]
8430         * stdio.texi (Hook Functions): The user provided writer function
8431         is not allowed to return -1.
8433 2012-04-11  David S. Miller  <davem@davemloft.net>
8435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8437 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8439         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8440         Add a leading slash to rtkaio.
8442 2012-04-11  Jim Meyering  <meyering@redhat.com>
8444         [BZ #11959]
8445         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8446         It is not necessarily an error to ignore fwrite's return
8447         value.  One can reliably use ferror to test for errors after
8448         the fact.
8450 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8452         * bits/types.h (__snseconds_t): New type.
8453         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8455         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8456         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8457         (__SNSECONDS_T_TYPE): Likewise.
8458         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8459         (__SNSECONDS_T_TYPE): Likewise.
8460         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8461         (__SNSECONDS_T_TYPE): Likewise.
8463 2012-04-10  Andreas Jaeger  <aj@suse.de>
8465         [BZ #2636]
8466         * manual/time.texi (Processor Time): Return type of times is
8467         elapsed real time since an arbitrary point in the past.
8468         (CPU Time): Move CLK_TCK from here...
8469         (Processor Time): ...to here.  Correct description.
8470         * manual/conf.texi (Constants for Sysconf): Correct description of
8471         _SC_CLK_TCK.
8473 2012-04-10  David S. Miller  <davem@davemloft.net>
8475         [BZ #13967]
8476         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8477         where the is a gap between DT_REL(A) and DT_JMPREL.
8479 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8481         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8482         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8483         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8485 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8487         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8488         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8489         (dl_main): Handle --inhibit-cache.
8490         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8491         _dl_inhibit_cache.
8492         * elf/dl-load.c (_dl_map_object): Use it.
8493         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8495 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8497         [BZ #13872]
8498         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8499         (__ieee754_powl): Saturate large exponents rather than testing for
8500         overflow of y*log2(x).
8501         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8502         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8503         exceptions.
8505         [BZ #11521]
8506         * math/s_ctan.c: Include <float.h>.
8507         (__ctan): Avoid internal overflow or cancellation in calculating
8508         denominator.
8509         * math/s_ctanf.c: Likewise.
8510         * math/s_ctanl.c: Likewise.
8511         * math/s_ctanh.c: Likewise.
8512         * math/s_ctanhf.c: Likewise.
8513         * math/s_ctanhl.c: Likewise.
8514         * math/libm-test.inc (ctan_test): Add more tests.
8515         (ctanh_test): Likewise.
8516         * sysdeps/i386/fpu/libm-test-ulps: Update.
8517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8519 2012-04-09  Andreas Jaeger  <aj@suse.de>
8521         [BZ #6894]
8522         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8523         is an optional BSD extension.
8525         [BZ #10254]
8526         * manual/stdio.texi (Opening Streams): Document additional fopen
8527         parameters.
8529 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8531         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8532         %eax without telling the compiler.
8534 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8536         [BZ # 13963]
8537         * manual/install.texi: Use sourceware.org.
8539 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8541         [BZ #13873]
8542         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8543         (__ieee754_pow): Generate overflow and underflow using huge*huge
8544         and tiny*tiny rather than just returning constant infinity or zero
8545         for large exponents.
8546         * math/libm-test.inc (pow_test): Require overflow exceptions for
8547         applicable cases of large exponents.
8549         [BZ #706]
8550         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8551         (__ieee754_pow): Use iterative multiplication algorithm only for
8552         integer exponents with absolute value below 1024.  Check for odd
8553         integer exponents when using algorithm for real exponents.
8554         * math/libm-test.inc (pow_test): Add more tests.
8555         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8557 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8559         [BZ #13705]
8560         * math/libm-test.inc (exp_test): Do not allow overflow exception
8561         on underflow test.
8563 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8565         [BZ #13705]
8566         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8567         instead of __kernel_standard_f.
8569 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8571         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8572         * sysdeps/x86_64/memset_chk.S: Likewise.
8574 2012-04-08  Andreas Jaeger  <aj@suse.de>
8576         [BZ #10153]
8577         * manual/startup.texi (Environment Access): Describe return value
8578         for putenv and setenv.
8580         [BZ #6895]
8581         * manual/filesys.texi (Directory Entries): Add description for
8582         DT_LNK.
8584         [BZ #6890]
8585         * manual/filesys.texi (Directory Entries): Clarify that it's file
8586         system not operating system in the description of DT_UNKNOWN.
8588         [BZ #6578]
8589         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8591 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8593         [BZ #6649]
8594         * manual/llio.texi (Opening and Closing Files): Add cross
8595         reference to explain mode argument.
8597 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8599         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8600         * sysdeps/x86_64/memset_chk.S: Likewise.
8602 2012-04-07  David S. Miller  <davem@davemloft.net>
8604         * elf/elf.h (R_SPARC_WDISP10): Define.
8605         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8606         R_SPARC_SIZE32.
8607         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8608         R_SPARC_SIZE64 and R_SPARC_H34.
8610 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8612         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8613         conditions and remove no longer applicable assertion.
8615 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8617         * bits/byteswap.h: Include <features.h>.
8618         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8619         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8621 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8623         * bits/byteswap.h (__bswap_16): Removed.
8624         Include <bits/byteswap-16.h> to get __bswap_16.
8625         * sysdeps/i386/bits/byteswap.h: Likewise.
8626         * sysdeps/s390/bits/byteswap.h: Likewise.
8627         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8628         * bits/byteswap-16.h: New file.
8629         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8630         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8631         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8632         * string/Makefile (headers): Add bits/byteswap-16.h.
8634 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8636         [BZ #13895]
8637         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8638         extra indirection.
8639         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8640         * nss/tst-nss-static.c: New.
8642 2012-04-06  Robert Millan  <rmh@gnu.org>
8644         [BZ #6486]
8645         * manual/llio.texi (File Position Primitive): lseek
8646         refers to WHENCE when it really means OFFSET.
8648 2012-04-06  Andreas Jaeger  <aj@suse.de>
8650         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8651         strncmp declarations.
8653         * abilist/libc.abilist: Add __poll and __ppoll.
8655 2012-04-05  David S. Miller  <davem@davemloft.net>
8657         * scripts/check-local-headers.sh: Accept a host triplet in the
8658         path matched by the exclude regexp.
8660         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8661         definition.
8662         * sysdeps/powerpc/powerpc32/dl-machine.h
8663         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8664         * sysdeps/s390/s390-32/dl-machine.h
8665         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8666         * sysdeps/sparc/sparc32/dl-machine.h
8667         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8668         * sysdeps/sparc/sparc64/dl-machine.h
8669         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8671         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8672         lazy binding.
8673         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8674         undefined symbol errors.
8676         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8677         DT_NEEDED entries.
8679 2012-04-05  Michael Matz  <matz@suse.de>
8681         [BZ #13592]
8682         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8684 2012-04-05  Andreas Jaeger  <aj@suse.de>
8686         [BZ #13908]
8687         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8688         comment.
8690 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8692         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8693         which ROUND is no valid rounding mode.
8695 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8697         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8698         read again.
8699         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8701 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8703         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8704         an exception using FPU order intentionally.
8706 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8708         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8709         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8710         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8711         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8713 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8715         [BZ #12340]
8716         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8717         EINVAL when BUFLEN is too smal.
8719 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8721         [BZ #13553]
8722         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8723         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8725 2012-04-03  Andreas Jaeger  <aj@suse.de>
8727         [BZ #13938]
8728         * manual/setjmp.texi (System V contexts): Fix sentence.
8730         [BZ #13926]
8731         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8732         New macro for this case.
8733         [!__GNUC__] (__bswap_64): New inline function for this case.
8734         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8735         * bits/byteswap.h: Likewise.
8736         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8737         ull, guard with __GLIBC_HAVE_LONG_LONG.
8739         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8740         __GLIBC_HAVE_LONG_LONG.
8742         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8743         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8745 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8747         [BZ #13691]
8748         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8749         inptr and inend, rather than using last_ch.
8751 2012-04-02  David S. Miller  <davem@davemloft.net>
8753         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8754         * stdio-common/printf-parse.h (read_int): Change return type to
8755         'int', return -1 on INT_MAX overflow.
8756         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8757         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8758         overflows INT_MAX.  Check for overflow of in-format-string precision
8759         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8760         SIZE_MAX not INT_MAX for integer overflow test.
8761         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8762         skip the construct in the format string but do not record anything.
8763         * stdio-common/bug22.c: Adjust to test both width/prevision
8764         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8765         explicitly for proper errno values.
8767 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8769         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8770         CHAR_MAX.
8771         * string/test-strcmp.c [! WIDE]: Likewise.
8772         * time/tst-mktime2.c: Likewise for INT_MAX.
8773         * string/test-string.h: #include <sys/param.h> for MIN.
8775         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8776         * sysdeps/i386/init-first.c (init): Likewise.
8777         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8778         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8779         * sysdeps/sh/init-first.c (init): Likewise.
8781 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8783         * po/ru.po: Update from translation team.
8784         * po/vi.po: Likewise.
8786 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8788         * resolv/nss_dns/dns-host.c: Merge copyright years.
8790 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8792         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8793         Optimize memcpy with prefetch if
8794         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8795         src, dst pointers have unequal 16 byte alignments.
8797 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8799         [BZ #13928]
8800         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8801         from a CNAME entry and return the minimum ttl for the query.
8802         (gaih_getanswer_slice): Likewise.
8804 2012-03-30  Jeff Law  <law@redhat.com>
8806         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8807         due to long keys.
8808         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8809         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8811         * resolv/nss_dns/dns-host.c: Update copyright year.
8813 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8815         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8816         requests to save a system call.  Fix check that all bytes are sent.
8818         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8819         comments for sendmmsg.
8821 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8823         [BZ #13691]
8824         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8825         with only 1 character between 0x0041 and 0x01b0.
8826         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8827         * wcsmbs/tst-mbsnrtowcs.c: New file.
8829 2012-03-29  David S. Miller  <davem@davemloft.net>
8831         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8832         small copies by hand.
8834 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8836         [BZ #13761]
8837         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8838         _nss_compat_initgroups_dyn): Fall back to malloc/free
8839         for large group memberships.
8841 2012-03-28  David S. Miller  <davem@davemloft.net>
8843         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8844         that branches into memcpy.
8845         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8846         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8847         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8848         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8849         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8850         bits.
8851         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8852         implementation too.
8853         * sysdeps/sparc/mempcpy.S: New file.
8855         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8856         the IFUNC routine in the libc case.
8857         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8859         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8860         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8861         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8862         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8863         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8864         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8865         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8866         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8868         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8869         loop to 256 bytes instead of 64 bytes and fix test signedness.
8871         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8872         * sysdeps/sparc/sparc32/Makefile: rather than here...
8873         * sysdeps/sparc/sparc64/Makefile: and here.
8875 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8877         * malloc/mallocbug.c: Avoid warnings about unused variables.
8879 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8881         [BZ #13760]
8882         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8883         in the right place. Discard and retry query if response is
8884         larger than input buffer size.
8886 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8888         [BZ #369]
8889         [BZ #2678]
8890         [BZ #3866]
8891         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8892         x for large integer exponent.
8893         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8894         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8895         sign of result as needed afterwards.
8896         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8897         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8898         result for underflowing pow the same as for overflow.
8899         (__kernel_standard_l): Handle powl overflow and underflow here
8900         rather than calling __kernel_standard.
8901         * math/libm-test.inc (pow_test): Add more tests.
8903         [BZ #3868]
8904         [BZ #13879]
8905         [BZ #13910]
8906         [BZ #13911]
8907         [BZ #13912]
8908         [BZ #13913]
8909         [BZ #13915]
8910         [BZ #13916]
8911         [BZ #13917]
8912         [BZ #13918]
8913         [BZ #13919]
8914         [BZ #13920]
8915         [BZ #13921]
8916         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8917         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8918         (__kernel_standard_l): New function.
8919         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8920         __kernel_standard.
8921         * math/w_acosl.c (__acosl): Likewise.
8922         * math/w_asinl.c (__asinl): Likewise.
8923         * math/w_atan2l.c (__atan2l): Likewise.
8924         * math/w_atanhl.c (__atanhl): Likewise.
8925         * math/w_coshl.c (__coshl): Likewise.
8926         * math/w_exp10l.c (__exp10l): Likewise.
8927         * math/w_exp2l.c (__exp2l): Likewise.
8928         * math/w_fmodl.c (__fmodl): Likewise.
8929         * math/w_hypotl.c (__hypotl): Likewise.
8930         * math/w_j0l.c (__j0l, __y0l): Likewise.
8931         * math/w_j1l.c (__j1l, __y1l): Likewise.
8932         * math/w_jnl.c (__jnl, __ynl): Likewise.
8933         * math/w_lgammal.c (__lgammal): Likewise.
8934         * math/w_log10l.c (__log10l): Likewise.
8935         * math/w_log2l.c (__log2l): Likewise.
8936         * math/w_logl.c (__logl): Likewise.
8937         * math/w_powl.c (__powl): Likewise.
8938         * math/w_remainderl.c (__remainderl): Likewise.
8939         * math/w_scalbl.c (sysv_scalbl): Likewise.
8940         * math/w_sinhl.c (__sinhl): Likewise.
8941         * math/w_sqrtl.c (__sqrtl): Likewise.
8942         * math/w_tgammal.c (__tgammal): Likewise.
8943         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8944         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8945         * math/libm-test.inc (acos_test): Add more tests.
8946         (acosh_test): Likewise.
8947         (asin_test): Likewise.
8948         (atanh_test): Likewise.
8949         (exp_test): Likewise.
8950         (exp10_test): Likewise.
8951         (exp2_test): Likewise.
8952         (expm1_test): Likewise.
8953         (lgamma_test): Likewise.
8954         (log_test): Likewise.
8955         (log10_test): Likewise.
8956         (log1p_test): Likewise.
8957         (log2_test): Likewise.
8958         (pow_test): Do not allow some spurious overflow exceptions.
8959         (sqrt_test): Add more tests.
8960         (tgamma_test): Likewise.
8961         (y0_test): Likewise.
8962         (y1_test): Likewise.
8963         (yn_test): Likewise.
8965 2012-03-27  Anton Blanchard  <anton@samba.org>
8967         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8968         MAP_HUGETLB.
8969         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8970         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8971         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8973 2012-03-27  David S. Miller  <davem@davemloft.net>
8975         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8977         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8978         have-as-vis3 check.
8980 2012-03-27  Andreas Jaeger  <aj@suse.de>
8982         * sysdeps/x86_64/elf/configure.in: Moved to ...
8983         * sysdeps/x86_64/configure.in: ... here.
8984         * sysdeps/x86_64/elf/start.S: Moved to ...
8985         * sysdeps/x86_64/start.S: ... here.
8986         * sysdeps/x86_64/elf/configure: Delete.
8988         * sysdeps/x86_64/configure.in: Merge contents from
8989         sysdeps/i386/configure.in (without i686 check).
8991         * sysdeps/i386/elf/Versions: Merge into ...
8992         * sysdeps/i386/Versions: ... this.
8993         * sysdeps/i386/elf/Versions: Delete file.
8994         * sysdeps/i386/elf/start.S: Moved to ...
8995         * sysdeps/i386/start.S: ...here.
8996         * sysdeps/i386/elf/configure.in: Merge into...
8997         * sysdeps/i386/configure.in: ...here.
8998         * sysdeps/i386/elf/configure.in: Delete file.
8999         * sysdeps/i386/elf/configure: Delete file.
9001         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9002         * debug/backtracesyms.c: ... here.
9003         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9004         * debug/backtracesymsfd.c: ... here.
9005         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9006         * sysdeps/generic/ifunc-sel.h: ... here.
9008         * sysdeps/unix/i386/start.c: Delete file.
9009         * sysdeps/unix/sparc/start.c: Delete file.
9010         * sysdeps/unix/start.c: Delete file.
9012         * sysdeps/sh/elf/configure.in: Moved to ...
9013         * sysdeps/sh/configure.in: ... here.
9014         * sysdeps/sh/elf/start.S: Moved to ...
9015         * sysdeps/sh/start.S: ... here.
9016         * sysdeps/sh/elf/configure: Delete file.
9018         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9019         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9020         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9021         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9022         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9023         * sysdeps/powerpc/powerpc64/start.S: here.
9024         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9025         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9026         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9027         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9028         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9030         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9031         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9032         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9033         * sysdeps/powerpc/powerpc32/start.S: ... here.
9034         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9035         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9036         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9038         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9039         * sysdeps/powerpc/ifunc-sel.h: ... here.
9040         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9041         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9043         * sysdeps/sparc/elf/configure.in: Moved to ...
9044         * sysdeps/sparc/configure.in: ... here.
9045         * sysdeps/sparc/elf/configure: Delete file.
9046         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9047         * sysdeps/sparc/sparc32/start.S: ... here.
9048         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9049         * sysdeps/sparc/sparc64/start.S: ... here.
9050         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9051         * sysdeps/sparc/sparc32/Makefile: ... this.
9052         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9053         * sysdeps/sparc/sparc64/Makefile: ... this.
9055         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9056         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9057         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9058         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9059         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9060         * sysdeps/s390/s390-32/setjmp.S: ... here.
9061         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9062         * sysdeps/s390/s390-32/configure.in: ... here.
9063         * sysdeps/s390/s390-32/elf/configure: Delete file.
9064         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9065         * sysdeps/s390/s390-32/start.S: ... here.
9067         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9068         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9069         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9070         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9071         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9072         * sysdeps/s390/s390-64/setjmp.S: ... here.
9073         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9074         * sysdeps/s390/s390-64/configure.in: ... here
9075         * sysdeps/s390/s390-64/elf/configure: Delete file.
9076         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9077         * sysdeps/s390/s390-64/start.S: ... here.
9078         * sysdeps/s390/s390-64/elf/configure: Delete.
9080         * configure.in: Remove support for elf directories in sysdeps.
9082         * configure: Regenerated.
9083         * sysdeps/i386/configure: Regenerated.
9084         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9085         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9086         * sysdeps/s390/s390-32/configure: Regenerated.
9087         * sysdeps/s390/s390-64/configure: Regenerated.
9088         * sysdeps/sh/configure: Regenerated.
9089         * sysdeps/sparc/configure: Regenerated.
9090         * sysdeps/x86_64/configure: Regenerated.
9092 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9094         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9096         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9097         denormal result into account.
9099 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9101         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9102         Reported by Allan McRae <allan@archlinux.org>.
9104 2012-03-23  Jeff Law  <law@redhat.com>
9106         * nss/getnssent.c (__nss_getent): Fix typo.
9108 2012-03-23  David S. Miller  <davem@davemloft.net>
9110         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9112 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9114         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9115         to pad to uint64_t for each field.
9116         (dl_tls_index): Replace unsigned long with uint64_t.
9118 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9119         Paul Pluzhnikov  <ppluzhnikov@google.com>
9121         [BZ #6528]
9122         * grp/Makefile (otherlibs): Don't set it.
9123         * inet/Makefile (otherlibs): Likewise.
9124         * login/Makefile (otherlibs): Likewise.
9125         * nscd/Makefile (otherlibs): Likewise.
9126         * posix/Makefile (otherlibs): Likewise.
9127         * pwd/Makefile (otherlibs): Likewise.
9128         * rt/Makefile (otherlibs): Likewise.
9129         * sunrpc/Makefile (otherlibs): Likewise.
9130         * nss/Makefile (otherlibs): Likewise.
9131         Add libnss_files to routines and static-only-routines.
9132         ($(objpfx)getent): Remove rule.
9133         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9134         static-only-routines.
9136 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9138         [BZ #13892]
9139         * math/s_cexp.c: Include <float.h>.
9140         (__cexp): Handle exp result overflowing not necessarily
9141         overflowing both real and imaginary parts of result.
9142         * math/s_cexpf.c: Likewise.
9143         * math/s_cexpl.c: Likewise.
9144         * math/libm-test.inc (cexp_test): Add more tests.
9145         * sysdeps/i386/fpu/libm-test-ulps: Update.
9146         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9148 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9150         * include/link.h (ELFW): New macro.
9151         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9152         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9154 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9156         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9157         with uint64_t.
9159 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9161         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9162         declaration.
9163         (struct La_x32_retval): Likewise.
9165 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9167         * sysdeps/x86_64/preconfigure.in: New file.
9168         * sysdeps/x86_64/preconfigure: New generated file.
9170 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9172         [BZ #13824]
9173         * math/e_exp2l.c: Include <float.h>.
9174         (__ieee754_exp2l): Handle overflow and underflow cases
9175         separately.  Only pass fractional part of argument to
9176         __ieee754_expl.
9177         * math/libm-test.inc (exp2_test): Add more tests.
9179         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9180         negating x to take absolute value.
9181         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9182         Likewise.
9183         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9184         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9185         Likewise.
9186         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9187         computing low part if x was negated.
9188         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9190 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9192         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9193         la_x32_gnu_pltexit.
9194         (pltexit): Cast int_retval to ptrdiff_t.
9195         * elf/tst-auditmod3b.c: Likewise.
9196         * elf/tst-auditmod4b.c: Likewise.
9197         * elf/tst-auditmod5b.c: Likewise.
9198         * elf/tst-auditmod6b.c: Likewise.
9199         * elf/tst-auditmod6c.c: Likewise.
9200         * elf/tst-auditmod7b.c: Likewise.
9202         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9203         and x32_gnu_pltexit.
9205         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9206         __ELF_NATIVE_CLASS.
9207         (La_x32_regs): New macro.
9208         (La_x32_retval): Likewise.
9209         (la_x32_gnu_pltenter): New function prototype.
9210         (la_x32_gnu_pltexit): Likewise.
9212 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9214         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9215         exponent.
9217         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9219         * configure.in (libc_cv_cc_nofma): Check for option to disable
9220         generation of FMA instructions.
9221         * configure: Regenerate.
9222         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9223         * sysdeps/ieee754/dbl-64/Makefile: New file.
9224         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9225         Remove brandred-fma4.
9226         (CFLAGS-brandred-fma4.c): Remove.
9227         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9228         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9229         define.
9230         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9231         define.
9233 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9235         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9236         LLONG_MAX != LONG_MAX.
9237         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9238         (_fitoa_word): Likewise.
9239         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9240         LLONG_MAX != LONG_MAX.
9241         * stdio-common/_itowa.h: Include <_itoa.h>.
9242         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9243         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9244         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9245         only if not defined.
9246         (_ITOA_WORD_TYPE): Likewise.
9247         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9248         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9250 2012-03-21  David S. Miller  <davem@davemloft.net>
9252         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9254 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9256         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9257         of x86_64 when setting libc_cv_slibdir, libdir and
9258         libc_cv_localedir.
9259         * sysdeps/unix/sysv/linux/configure: Regenerated.
9261 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9263         * manual/lang.texi (Old Varargs): Remove section.
9264         (How Variadic): Update menu.
9265         (va_start): Do not mention varargs.h.
9267 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9268             Joseph Myers  <joseph@codesourcery.com>
9270         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9271         link test.
9272         * configure: Regenerated.
9274 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9276         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9277         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9278         conformtest.pl
9280 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9282         * NOTES: Remove.
9283         * Makefile (files-for-dist): Remove NOTES.
9284         (NOTES): Remove rule.
9285         * README: Don't refer to NOTES.
9286         * manual/creature.texi: Don't include macros.texi.
9287         * manual/intro.texi (creature.texi): Remove comment referring to
9288         NOTES.
9290         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9291         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9292         * configure: Regenerated.
9293         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9294         LIBC_TRY_CC_OPTION.
9295         (libc_cv_as_i686): Likewise.
9296         (libc_cv_cc_avx): Likewise.
9297         (libc_cv_cc_sse2avx): Likewise.
9298         (libc_cv_cc_fma4): Likewise.
9299         (libc_cv_cc_novzeroupper): Likewise.
9300         * sysdeps/i386/configure: Regenerated.
9302         [BZ #13883]
9303         * sysdeps/i386/fpu/s_cexp.S: Remove.
9304         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9305         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9306         * math/libm-test.inc (cexp_test): Add more tests.
9307         * sysdeps/i386/fpu/libm-test-ulps: Update.
9308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9310 2012-03-21  Allan McRae  <allan@archlinux.org>
9312         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9314 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9316         [BZ #13871]
9317         * math/w_exp2.c: Do not include <float.h>.
9318         (o_threshold, u_threshold): Remove.
9319         (__exp2): Calculate result before checking finiteness and calling
9320         __kernel_standard.
9321         * math/w_exp2f.c: Likewise.
9322         * math/w_exp2l.c: Likewise.
9323         * math/libm-test.inc (exp2_test): Require overflow exception for
9324         1e6 input.
9326         [BZ #3866]
9327         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9328         range of signed 64-bit integers before using fistpll.  Remove
9329         checks for whether integers fit in mantissa bits.
9330         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9331         the range of signed 32-bit integers before using fistpl.  Remove
9332         checks for whether integers fit in mantissa bits.
9333         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9334         (__ieee754_powl): Test for y outside the range of signed 64-bit
9335         integers before using fistpll.  Reduce 64-bit values to 63-bit
9336         ones as needed.
9337         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9338         divide-by-zero is raised for zero to large negative powers.
9339         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9340         (__ieee754_powl): Test for y outside the range of signed 64-bit
9341         integers before using fistpll.  Reduce 64-bit values to 63-bit
9342         ones as needed.
9343         * math/libm-test.inc (pow_test): Add more tests.
9345 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9347         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9348         <stdio-common/_itoa.h>.
9349         * debug/segfault.c: Likewise.
9350         * elf/dl-cache.c: Likewise.
9351         * elf/dl-minimal.c: Likewise.
9352         * elf/dl-misc.c: Likewise.
9353         * elf/dl-sysdep.c: Likewise.
9354         * elf/dl-version.c: Likewise.
9355         * elf/rtld.c: Likewise.
9356         * hurd/hurdsock.c: Likewise.
9357         * hurd/lookup-retry.c: Likewise.
9358         * malloc/malloc.c: Likewise.
9359         * malloc/mtrace.c: Likewise.
9360         * nscd/nscd_getgr_r.c: Likewise.
9361         * nscd/nscd_getpw_r.c: Likewise.
9362         * nscd/nscd_getserv_r.c: Likewise.
9363         * posix/getopt_init.c: Likewise.
9364         * posix/wordexp.c: Likewise.
9365         * stdio-common/_itoa.c: Likewise.
9366         * stdio-common/printf_fphex.c: Likewise.
9367         * stdio-common/vfprintf.c: Likewise.
9368         * string/_strerror.c: Likewise.
9369         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9370         * sysdeps/i386/i686/hp-timing.h: Likewise.
9371         * sysdeps/mach/_strerror.c: Likewise.
9372         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9373         * sysdeps/mach/hurd/sethostid.c: Likewise.
9374         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9375         * sysdeps/mach/xpg-strerror.c: Likewise.
9376         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9377         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9378         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9379         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9380         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9381         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9382         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9383         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9384         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9385         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9386         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9387         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9388         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9389         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9390         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9391         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9392         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9393         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9394         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9395         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9396         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9398         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9400         * stdio-common/_itoa.h: Moved to ...
9401         * sysdeps/generic/_itoa.h: Here.
9403         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9405         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9406         instead of "_itoa.h" and "_itowa.h".
9407         * stdio-common/vfprintf.: Likewise.
9409 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9411         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9412         <bits/wordsize.h>.
9413         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9414         (__signbit): Likwise.
9415         (llrintf): Likwise.
9416         (llrint): Likwise.
9418 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9420         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9421         __WORDSIZE != 64.
9423 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9425         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9426         OVERFLOW_EXCEPTION_OK.
9427         * math/libm-test.inc ("Philosophy"): Update comment about
9428         exception testing.
9429         (OVERFLOW_EXCEPTION): Define.
9430         (OVERFLOW_EXCEPTION_OK): Likewise.
9431         (INVALID_EXCEPTION_OK): Renumber.
9432         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9433         (IGNORE_ZERO_INF_SIGN): Likewise.
9434         (test_exceptions): Handle FE_OVERFLOW.
9435         (exp10_test): Expect overflow exceptions.
9436         (exp2_test): Likewise.
9437         (expm1_test): Likewise.
9438         (nextafter_test): Likewise.
9439         (pow_test): Likewise.
9440         (scalbn_test): Likewise.
9441         (scalbln_test): Likewise.
9443 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9445         * sysdeps/x86_64/bits/atomic.h
9446         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9447         64bit integer.
9448         (atomic_exchange_acq): Likewise.
9449         (__arch_exchange_and_add_body): Likewise.
9450         (__arch_add_body): Likewise.
9451         (atomic_add_negative): Likewise.
9452         (atomic_add_zero): Likewise.
9454 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9456         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9457         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9459 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9461         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9462         Check __x86_64__ instead of __WORDSIZE.
9464 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9466         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9468 2012-03-19  David S. Miller  <davem@davemloft.net>
9470         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9472         * sysdeps/sparc/fpu/fenv_private.h: New file.
9473         * sysdeps/sparc/fpu/math_private.h: Use it.
9474         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9475         Remove.
9476         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9477         (libc_feholdexcept_setroundl): Remove.
9478         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9479         Remove.
9480         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9481         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9483 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9485         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9486         int64_t instead of long int.
9487         (INSERT_WORDS64): Likwise.
9489 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9491         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9492         _Unwind_GetCFA return to _Unwind_Ptr first.
9494 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9496         [BZ #13629]
9497         * math/s_clog.c: Include <float.h>.
9498         (__clog): Scale large or subnormal inputs.
9499         * math/s_clogf.c: Likewise.
9500         * math/s_clogl.c: Likewise.
9501         * math/s_clog10.c: Include <float.h>.
9502         (M_LOG10_2): Define.
9503         (__clog10): Scale large or subnormal inputs.
9504         * math/s_clog10f.c: Likewise.
9505         * math/s_clog10l.c: Likewise.
9506         * math/libm-test.inc (clog_test): Add more tests.
9507         (clog10_test): Likewise.
9508         * sysdeps/i386/fpu/libm-test-ulps: Update.
9509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9511         [BZ #11451]
9512         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9513         x and y.
9514         * math/libm-test.inc (atan2_test): Add another test.
9516         * Makerules (common-objdir-compile): Remove.
9517         * sysdeps/unix/Makefile (config-generated): Do not add
9518         $(unix-generated) to variable.
9519         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9520         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9521         Remove rule.
9522         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9523         Likewise.
9524         [generic bits/local_lim.h] (before-compile): Do not append to
9525         variable.
9526         [generic bits/local_lim.h] (common-generated): Likewise.
9527         [generic sys/param.h] (before-compile): Do not append to variable.
9528         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9529         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9530         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9531         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9532         include.
9533         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9534         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9535         [generic sys/param.h] ($(addprefix
9536         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9537         [generic sys/param.h] (common-generated): Do not append to
9538         variable.
9539         [generic sys/param.h] (sysdep_headers): Likewise.
9540         [generic bits/errno.h] (before-compile): Do not append to
9541         variable.
9542         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9543         rule.
9544         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9545         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9546         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9547         [generic bits/errno.h] (common-generated): Do not append to
9548         variable.
9549         [generic bits/ioctls.h] (before-compile): Do not append to
9550         variable.
9551         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9552         rule.
9553         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9554         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9555         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9556         rule.
9557         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9558         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9559         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9560         [generic bits/ioctls.h] (common-generated): Do not append to
9561         variable.
9562         [generic sys/syscall.h] (syscall.h): Remove variable.
9563         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9564         rule.
9565         [generic sys/syscall.h] (before-compile): Do not append to
9566         variable.
9567         [generic sys/syscall.h] (common-generated): Likewise.
9568         * sysdeps/unix/errnos-tmpl.c: Remove file.
9569         * sysdeps/unix/errnos.awk: Likewise.
9570         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9571         * sysdeps/unix/ioctls.awk: Likewise.
9572         * sysdeps/unix/mk-local_lim.c: Likewise.
9573         * sysdeps/unix/snarf-ioctls: Likewise.
9575 2012-03-19  Richard Henderson  <rth@twiddle.net>
9577         * sysdeps/i386/fpu/fenv_private.h: New file.
9578         * sysdeps/i386/fpu/math_private.h: Use it.
9579         (math_opt_barrier, math_force_eval): Remove.
9580         (libc_feholdexcept_setround_53bit): Remove.
9581         (libc_feupdateenv_53bit): Remove.
9582         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9583         (math_opt_barrier, math_force_eval): Remove.
9584         (libc_feholdexcept): Remove.
9585         (libc_feholdexcept_setround): Remove.
9586         (libc_fetestexcept, libc_fesetenv): Remove.
9587         (libc_feupdateenv_test): Remove.
9588         (libc_feupdateenv, libc_feholdsetround): Remove.
9589         (libc_feresetround): Remove.
9591         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9592         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9594         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9595         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9596         (libc_feupdateenv_testl): New.
9597         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9598         (libc_feupdateenv_testf): New.
9599         (libc_feupdateenv): Use libc_feupdateenv_test.
9600         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9601         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9603         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9604         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9605         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9606         (libc_feresetround_noex): New.
9607         (libc_feresetround_noexf): New.
9608         (libc_feresetround_noexl): New.
9609         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9610         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9611         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9612         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9613         SET_RESTORE_ROUND.
9614         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9615         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9616         (__cos): Likewise.
9617         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9618         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9619         SET_RESTORE_ROUND_NOEX.
9620         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9621         SET_RESTORE_ROUND_NOEXF.
9622         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9623         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9624         (libc_feholdsetroundf): New.
9625         (libc_feresetround, libc_feresetroundf): New.
9627         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9628         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9629         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9631         * sysdeps/generic/math_private.h: Include <fenv.h>.
9632         (default_libc_feholdexcept): New.
9633         (default_libc_feholdexcept_setround): New.
9634         (default_libc_fesetenv, default_libc_feupdateenv): New.
9635         (libc_feholdexcept): Only define if undefined.
9636         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9637         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9638         (libc_feholdexcept_setroundl): Likewise.
9639         (libc_feholdexcept_setround_53bit): Likewise.
9640         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9641         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9642         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9643         (libc_feupdateenv_53bit): Likewise.
9644         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9645         (libc_feholdexcept): Convert from macro to inline function.
9646         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9647         (libc_fesetenv, libc_feupdateenv): Likewise.
9649         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9650         not previously defined.
9651         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9652         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9653         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9654         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9655         * sysdeps/ieee754/flt-32/math_private.h: New file.
9656         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9657         math_private.h below SET_FLOAT_WORD.
9658         (__isnan, __isinf_ns, __finite): Remove.
9659         (__isnanf, __isinf_nsf, __finitef): Remove.
9661 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9665 2012-03-17  David S. Miller  <davem@davemloft.net>
9667         [BZ #6471]
9668         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9669         for 2.16.
9671 2012-03-16  David S. Miller  <davem@davemloft.net>
9673         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9674         warnings.
9676         [BZ #6471]
9677         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9678         properly.
9679         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9680         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9681         sysdep_routines when subdir is sysvipc.
9682         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9683         __getshmlba helper.
9685         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9687 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9689         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9690         [__LP64__].
9692 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9694         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9695         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9696         (__lround): Renamed to ...
9697         (__llround): This.  Replace long int with long long int.
9698         Define lround functions as aliases of llround functions.
9699         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9701 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9703         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9704         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9705         adresses to uintptr_t.  Replace "long int" and "unsigned long
9706         int" with "greg_t" on va_arg.
9708 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9710         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9711         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9713         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9714         Move e_machine check before EI_CLASS check.  Handle x32
9715         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9716         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9717         SKIP_EM_IA_64 and include
9718         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9720         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9721         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9722         (add_system_dir): New macro.
9724         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9725         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9727 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9729         [BZ #2551]
9730         [BZ #2552]
9731         [BZ #2553]
9732         [BZ #2554]
9733         [BZ #2562]
9734         [BZ #2563]
9735         [BZ #2565]
9736         [BZ #2566]
9737         [BZ #2576]
9738         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9739         (y0): Likewise.
9740         * math/w_j0f.c (j0f): Likewise.
9741         (y0f): Likewise.
9742         * math/w_j0l.c (__j0l): Likewise.
9743         (__y0l): Likewise.
9744         * math/w_j1.c (j1): Likewise.
9745         (y1): Likewise.
9746         * math/w_j1f.c (j1f): Likewise.
9747         (y1f): Likewise.
9748         * math/w_j1l.c (__j1l): Likewise.
9749         (__y1l): Likewise.
9750         * math/w_jn.c (jn): Likewise.
9751         (yn): Likewise.
9752         * math/w_jnf.c (jnf): Likewise.
9753         (ynf): Likewise.
9754         * math/w_jnl.c (__jnl): Likewise.
9755         (__ynl): Likewise.
9756         * math/libm-test.inc (j0_test): Add more tests.
9757         (j1_test): Likewise.
9758         (jn_test): Likewise.  Add trailing semicolon to existing test.
9759         (y0_test): Likewise.
9760         (y1_test): Likewise.
9761         * sysdeps/i386/fpu/libm-test-ulps: Update.
9762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9764         [BZ #13851]
9765         [BZ #13854]
9766         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9767         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9768         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9769         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9770         (__tanl): Set errno for infinite argument.
9771         * sysdeps/i386/fpu/mptan.c: Remove.
9772         * sysdeps/i386/fpu/s_tan.S: Likewise.
9773         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9774         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9775         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9776         * math/libm-test.inc (tan_test): Add more tests and enable more
9777         tests for double and long double.
9778         * sysdeps/i386/fpu/libm-test-ulps: Update.
9779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9781 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9783         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9784         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9786 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9788         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9789         * configure.in: Use it for both main tree and add-ons.
9790         * configure: Regenerated.
9792 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9794         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9796 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9798         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9799         in comment.
9801         [BZ #13851]
9802         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9803         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9804         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9805         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9806         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9807         infinite argument.
9808         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9809         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9810         != 0 for prec == 2.
9811         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9812         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9813         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9814         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9815         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9816         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9817         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9818         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9819         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9820         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9821         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9822         * math/libm-test.inc (cos_test): Add more tests and enable more
9823         tests for long double.
9824         (sin_test): Likewise.
9825         (sincos_test): Likewise.
9826         * sysdeps/i386/fpu/libm-test-ulps: Update.
9827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9829 2012-03-16  David S. Miller  <davem@davemloft.net>
9831         * sysdeps/sparc/fpu/math_private.h: New file.
9833 2012-03-15  David S. Miller  <davem@davemloft.net>
9835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9836         file.
9837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9839         file.
9840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9841         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9842         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9843         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9844         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9845         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9846         sysdep routines.
9847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9849         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9850         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9852         * sysdeps/sparc/sparc-ifunc.h: New file.
9853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9854         sparc-ifunc.h
9855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9857         Likewise.
9858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9859         Likewise.
9860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9864         Likewise.
9865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9870         Likewise.
9871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9872         Likewise.
9873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9877         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9878         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9879         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9880         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9881         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9882         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9883         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9884         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9885         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9886         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9887         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9888         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9889         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9890         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9891         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9892         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9893         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9894         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9895         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9896         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9898 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9900         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9901         scaling.
9902         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9904 2012-03-15  Andreas Jaeger  <aj@suse.de>
9906         [BZ #13852]
9907         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9908         ieee754/flt-32 implementation for sin, cos and sincos.
9909         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9910         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9911         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9912         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9913         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9914         ieee754/flt-32 implementation for tan.
9916         * math/libm-test.inc (cos_test): Enable some large input tests for
9917         float as well
9918         (sin_test): Likewise.
9919         (sincos_test): Likewise.
9920         (tan_test): Add tests for large input.
9922         * sysdeps/i386/fpu/libm-test-ulps: Update.
9924 2012-03-15  Andreas Jaeger  <aj@suse.de>
9926         [BZ #13658]
9927         * math/libm-test.inc (cos_test): Add more test cases.
9928         (sin_test): Likewise.
9929         (sincos_test): Likewise.
9931 2012-03-15  Andreas Jaeger  <aj@suse.de>
9933         [BZ #13837]
9934         * math/libm-test.inc (cos_test): Add a test case for large input
9935         value.
9936         (sin_test): Likewise.
9937         (sincos_test): Likewise.
9939 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9940         Joseph Myers  <joseph@codesourcery.com>
9942         [BZ #13658]
9943         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9944         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9945         * sysdeps/i386/fpu/branred.c: Likewise.
9946         * sysdeps/i386/fpu/dosincos.c: Likewise.
9947         * sysdeps/i386/fpu/mpa.c: Likewise.
9948         * sysdeps/i386/fpu/s_cos.S: Likewise.
9949         * sysdeps/i386/fpu/s_sin.S: Likewise.
9950         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9951         * sysdeps/i386/fpu/sincos32.c: Likewise.
9953         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9954         Define.
9955         (libc_feupdateenv_53bit): Define.
9956         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9957         Define.
9958         (libc_feupdateenv_53bit): Define.
9960         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9961         53 bit (without extend i386 double precision).
9963         * math/libm-test.inc (sincos_test): Add tests for large input.
9964         (sin): Likewise.
9965         (cos): Likewise.
9967         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9969 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9973 2012-03-15  David S. Miller  <davem@davemloft.net>
9975         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9976         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9977         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9978         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9980         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9981         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9983         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9984         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9985         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9986         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9987         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9988         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9989         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9991         file.
9992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9994         file.
9995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9997         file.
9998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10000         file.
10001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10002         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10003         fmin/fmax sysdep routines.
10004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10006 2012-03-14  David S. Miller  <davem@davemloft.net>
10008         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10009         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10010         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10011         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10012         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10013         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10014         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10015         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10016         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10017         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10018         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10019         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10020         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10021         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10022         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10023         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10024         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10025         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10026         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10027         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10028         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10029         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10030         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10031         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10032         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10033         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10034         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10035         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10036         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10037         routines.
10038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10039         file.
10040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10042         file.
10043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10045         file.
10046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10048         file.
10049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10051         file.
10052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10054         file.
10055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10056         file.
10057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10058         file.
10059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10060         file.
10061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10062         New file.
10063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10064         file.
10065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10066         file.
10067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10069         file.
10070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10072         file.
10073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10075         file.
10076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10078         VIS3 routines.
10080         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10081         New file.
10083         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10085         * sysdeps/sparc/configure.in: New file.
10086         * sysdeps/sparc/configure: Generate.
10087         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10088         * configure: Regenerate.
10089         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10090         * config.make.in (have-as-vis3): New.
10091         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10092         available use -Av9d instead of -Av9a.
10093         * sysdeps/sparc/sparc64/Makefile: Likewise.
10094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10096         New file.
10097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10098         file.
10099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10100         New file.
10101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10102         file.
10103         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10104         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10105         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10106         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10107         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10109         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10110         fzeros/fnegs to load 0x80000000 into a float register instead of
10111         using the stack.
10112         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10114 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10116         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10117         bits/syscall.h.
10118         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10119         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10120         ($(inst_includedir)/bits/syscall.h): Remove rule.
10121         ($(objpfx)bits/syscall.d): Include instead of
10122         $(objpfx)syscall-list.d.
10123         (generated): Change syscall-list.h and syscall-list.d to
10124         bits/syscall.h and bits/syscall.d.
10126 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10128         [BZ #13846]
10129         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10131 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10133         [BZ #13841]
10134         * math/s_csqrt.c: Include <float.h>.
10135         (__csqrt): Scale large or subnormal inputs.
10136         * math/s_csqrtf.c: Likewise.
10137         * math/s_csqrtl.c: Likewise.
10138         * math/libm-test.inc (csqrt_test): Add more tests.
10139         * sysdeps/i386/fpu/libm-test-ulps: Update.
10140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10142         [BZ #13840]
10143         * math/libm-test.inc (hypot_test): Add more tests.
10145 2012-03-13  David S. Miller  <davem@davemloft.net>
10147         [BZ #13840]
10148         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10149         double-precision for the calculation instead of scaling.
10151 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10153         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10154         manipulate bits before adding and subtracting TWO52[sx].
10155         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10156         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10157         Likewise.
10158         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10160 2012-03-13  David S. Miller  <davem@davemloft.net>
10162         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10163         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10164         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10165         rtld-global-offsets.h
10166         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10168         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10169         large parameters.
10171         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10173         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10174         'err' in the ifdef scope in which it is actually used.
10176         * nss/nss_db/db-init.c: Include string.h
10178 2012-03-12  David S. Miller  <davem@davemloft.net>
10180         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10181         masking out of the most significant byte of random value used.
10182         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10183         Fix coding style in previous change.
10185         * sysdeps/unix/sysv/linux/kernel-features.h
10186         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10187         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10188         expression.
10189         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10190         later.
10192 2012-03-11  David S. Miller  <davem@davemloft.net>
10194         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10195         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10196         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10197         for 'resultvar' otherwise things get truncated on 64-bit.
10199         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10200         Fix masking out of the most significant byte of random value used.
10202         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10204 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10206         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10208 2012-03-09  David S. Miller  <davem@davemloft.net>
10210         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10211         variables with appropriate CPP guards.
10212         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10213         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10214         on resulting framesize and the management of the outregs buffer for pltexit.
10215         Preserve floating point return values across _dl_call_pltexit call.
10216         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10217         framesize and the management of the outregs buffer for pltexit.
10218         Preserve floating point return values across _dl_call_pltexit
10219         call.
10220         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10221         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10222         (print_exit): Fix format string for return register value.
10224 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10226         * sunrpc/Makefile (others): Add rpcgen.
10227         ($(objpfx)rpcgen): Remove special build rule and dependency on
10228         libc.
10229         * sunrpc/rpcgen.c: New file.
10231 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10233         [BZ #13673]
10234         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10235         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10236         * sysdeps/i386/crti.S: Likewise.
10237         * sysdeps/i386/crtn.S: Likewise.
10238         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10239         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10240         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10241         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10242         * sysdeps/sh/crti.S: Likewise.
10243         * sysdeps/sh/crtn.S: Likewise.
10244         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10246         [BZ #13673]
10247         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10248         with URL.
10249         * locale/programs/locfile-kw.gperf: Likewise.
10250         * locale/programs/charmap-kw.h: Regenerated.
10251         * locale/programs/locfile-kw.h: Likewise.
10253         [BZ #13673]
10254         * intl/plural.y: Replace FSF snail mail address with URL.
10255         * intl/plural.c: Regenerated.
10257 2012-03-09  Richard Henderson  <rth@twiddle.net>
10259         * include/math_private.h: Remove file.
10260         * math/math_private.h: Move file ...
10261         * sysdeps/generic/math_private.h: ... here.
10263         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10264         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10265         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10267         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10268         and <math_private.h>.
10269         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10270         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10271         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10272         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10273         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10274         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10275         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10276         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10277         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10278         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10279         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10280         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10281         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10282         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10283         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10284         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10285         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10286         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10287         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10288         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10289         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10290         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10291         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10292         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10293         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10294         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10295         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10296         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10297         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10298         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10299         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10300         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10301         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10302         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10303         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10304         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10305         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10306         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10307         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10308         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10309         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10310         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10311         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10312         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10313         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10314         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10315         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10316         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10317         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10318         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10319         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10320         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10321         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10322         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10323         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10324         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10325         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10326         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10327         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10328         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10329         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10330         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10331         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10332         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10333         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10334         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10335         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10336         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10337         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10338         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10339         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10340         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10341         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10342         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10343         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10344         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10345         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10346         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10347         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10348         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10349         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10350         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10351         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10352         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10353         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10354         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10355         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10356         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10357         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10358         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10359         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10360         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10361         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10362         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10363         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10364         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10365         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10366         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10367         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10368         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10369         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10370         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10371         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10372         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10373         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10374         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10375         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10376         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10377         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10378         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10379         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10380         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10381         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10382         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10383         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10384         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10385         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10386         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10387         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10388         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10389         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10390         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10391         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10392         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10393         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10394         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10395         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10396         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10397         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10398         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10399         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10400         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10401         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10402         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10403         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10404         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10405         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10406         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10407         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10408         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10409         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10410         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10411         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10412         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10413         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10414         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10415         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10416         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10417         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10418         * sysdeps/ieee754/k_standard.c: Likewise.
10419         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10421         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10422         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10423         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10425         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10427         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10428         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10429         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10430         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10431         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10432         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10433         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10434         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10435         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10436         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10437         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10438         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10439         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10440         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10441         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10442         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10443         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10444         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10445         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10446         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10447         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10448         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10449         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10450         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10451         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10452         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10453         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10454         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10455         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10456         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10457         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10458         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10459         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10460         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10461         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10462         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10463         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10464         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10465         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10466         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10467         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10468         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10469         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10470         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10471         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10472         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10473         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10474         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10475         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10476         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10477         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10478         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10479         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10480         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10481         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10482         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10483         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10484         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10485         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10486         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10487         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10488         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10489         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10490         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10491         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10492         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10493         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10494         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10495         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10496         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10497         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10498         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10499         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10500         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10501         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10502         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10503         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10504         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10505         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10506         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10507         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10508         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10509         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10510         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10511         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10512         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10513         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10514         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10515         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10516         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10517         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10518         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10519         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10520         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10521         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10522         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10523         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10524         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10525         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10526         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10527         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10528         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10529         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10530         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10531         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10532         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10533         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10534         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10535         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10536         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10537         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10538         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10539         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10540         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10541         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10542         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10543         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10544         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10545         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10546         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10547         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10548         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10549         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10550         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10551         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10552         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10553         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10554         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10555         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10556         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10557         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10558         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10559         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10560         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10561         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10562         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10563         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10564         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10565         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10566         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10567         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10568         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10569         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10570         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10571         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10572         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10573         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10574         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10575         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10576         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10577         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10578         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10579         * sysdeps/ieee754/s_lib_version.c: Likewise.
10580         * sysdeps/ieee754/s_matherr.c: Likewise.
10581         * sysdeps/ieee754/s_signgam.c: Likewise.
10582         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10583         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10584         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10585         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10586         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10587         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10588         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10589         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10590         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10591         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10592         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10593         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10594         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10595         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10596         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10597         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10598         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10599         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10600         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10601         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10602         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10604 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10606         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10607         * sunrpc/rpc_main.c: Likewise.
10608         * sunrpc/rpc_svcout.c: Likewise.
10610 2012-03-09  David S. Miller  <davem@davemloft.net>
10612         * include/math_private.h: New file.
10614 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10616         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10617         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10618         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10619         from <bits/socket_type.h>.
10620         (enum __socket_type): Don't define here.
10621         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10622         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10623         bits/socket_type.h.
10625         [BZ #13566]
10626         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10627         checking __USE_GNU.
10629         * Makerules ($(inst_includedir)/%.h): New rule.
10630         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10631         (install-others): Remove variable setting.
10632         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10634 2012-03-08  Richard Henderson  <rth@twiddle.net>
10636         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10637         from macro to inline function; merge with the
10638         !__LIBC_INTERNAL_MATH_INLINES version.
10639         (__ieee754_sqrtf): Likewise.
10641         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10642         to inline function.
10643         (__rintf, __floor, __floorf): Likewise.
10645         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10646         macro to inline function.
10647         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10649         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10650         not <math/math_private.h>.
10652 2012-03-08  David S. Miller  <davem@davemloft.net>
10654         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10655         copyright year.
10656         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10658 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10660         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10661         normalization.
10662         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10663         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10665 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10667         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10668         be defined individually, they must be defined as a block.  Define
10669         S for printing a string instead of hidint the different by using a
10670         macro for adding the 'l'.
10671         * stdio-common/tst-fphex-wide.c: Adjust.
10673 2012-03-07  Marek Polacek  <polacek@redhat.com>
10675         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10677 2012-03-08  Marek Polacek  <polacek@redhat.com>
10679         [BZ #13806]
10680         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10681         * stdio-common/tst-fphex.c: Define a few macros to make the
10682         test reusable.  Use them.
10683         * stdio-common/tst-fphex-wide.c: New file.
10685 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10687         [BZ #6911]
10688         * manual/macros.texi (gnusystems): New macro.
10689         (nongnusystems): Likewise.
10690         (gnulinuxhurdsystems): Likewise.
10691         (gnuhurdsystems): Likewise..
10692         (gnulinuxsystems): Likewise.
10693         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10694         variants of the GNU system, not "GNU system".
10695         * manual/conf.texi: Likewise.
10696         * manual/errno.texi: Likewise.  Update example of errno macro
10697         expansion.
10698         * manual/filesys.texi: Likewise.
10699         (getumask): Document as specific to GNU/Hurd.
10700         * manual/install.texi: Likewise.  Reword some references to
10701         GNU/Linux.
10702         * manual/intro.texi: Likewise.
10703         * manual/io.texi: Likewise.
10704         (File Name Portability): Detail which constraints are inapplicable
10705         to all GNU systems and which are only inapplicable to GNU/Hurd.
10706         * manual/job.texi: Likewise.
10707         * manual/llio.texi: Likewise.
10708         (O_NOCTTY): Document as present on GNU/Linux.
10709         * manual/maint.texi: Likewise.
10710         * manual/memory.texi: Likewise.
10711         * manual/pattern.texi: Likewise.
10712         * manual/pipe.texi: Likewise.
10713         * manual/process.texi: Likewise.
10714         * manual/resource.texi: Likewise.
10715         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10716         child on GNU/Hurd.
10717         * manual/setjmp.texi: Likewise.
10718         * manual/signal.texi: Likewise.
10719         * manual/startup.texi: Likewise.
10720         * manual/stdio.texi: Likewise.
10721         * manual/terminal.texi: Likewise.
10722         (ONLCR): Document as POSIX.
10723         (OXTABS): Document availability on GNU/Linux as XTABS.
10724         (ONOEOT): Document availability separately from other bits.
10725         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10726         * manual/time.texi: Likewise.
10727         * manual/users.texi: Likewise.
10728         * INSTALL: Regenerated.
10729         * sysdeps/gnu/errlist.c: Regenerated.
10731         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10732         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10733         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10734         puts.
10735         * configure: Regenerated.
10737 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10739         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10740         default includes instead of AC_HEADER_CHECK.
10741         * sysdeps/i386/configure: Regenerated.
10743         [BZ #10716]
10744         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10745         * math/s_cacoshf.c (__cacoshf): Likewise.
10746         * math/s_cacoshl.c (__cacoshl): Likewise.
10747         * math/s_casinh.c (__casinh): Set signs of result from argument.
10748         * math/s_casinhf.c (__casinhf): Likewise.
10749         * math/s_casinhl.c (__casinhl): Likewise.
10750         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10751         (casinh_test): Add more tests.
10752         * sysdeps/i386/fpu/libm-test-ulps: Update.
10753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10755 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10757         * po/zh_TW.po: Update from translation team.
10759         * login/Makefile (distribute): Remove variable.
10760         * catgets/Makefile: Likewise.
10761         * mach/Makefile: Likewise.
10762         * malloc/Makefile: Likewise.
10763         * misc/Makefile: Likewise.
10764         * iconv/Makefile: Likewise.
10765         * nscd/Makefile: Likewise.
10766         * hurd/Makefile: Likewise.
10767         * manual/Makefile: Likewise.
10768         * locale/Makefile: Likewise.
10769         * intl/Makefile: Likewise.
10770         * conform/Makefile: Likewise.
10771         * nss/Makefile: Likewise.
10772         * time/Makefile: Likewise.
10773         * soft-fp/Makefile: Likewise.
10774         * dirent/Makefile: Likewise.
10775         * gmon/Makefile: Likewise.
10776         * po/Makefile: Likewise.
10777         * rt/Makefile: Likewise.
10778         * socket/Makefile: Likewise.
10779         * math/Makefile: Likewise.
10780         * signal/Makefile: Likewise.
10781         * debug/Makefile: Likewise.
10782         * elf/Makefile: Likewise.
10783         * timezone/Makefile: Likewise.
10784         * stdlib/Makefile: Likewise.
10785         * iconvdata/Makefile: Likewise.
10786         * sunrpc/Makefile: Likewise.
10787         * io/Makefile: Likewise.
10788         * argp/Makefile: Likewise.
10789         * inet/Makefile: Likewise.
10790         * hesiod/Makefile: Likewise.
10791         * grp/Makefile: Likewise.
10792         * csu/Makefile: Likewise.
10793         * wctype/Makefile: Likewise.
10794         * crypt/Makefile: Likewise.
10795         * libio/Makefile: Likewise.
10796         * string/Makefile: Likewise.
10797         * nis/Makefile: Likewise.
10798         * resolv/Makefile: Likewise.
10799         * stdio-common/Makefile: Likewise.
10800         * wcsmbs/Makefile: Likewise.
10801         * dlfcn/Makefile: Likewise.
10802         * posix/Makefile: Likewise.
10804         [BZ #6959]
10805         * timezone/Makefile: Don't install timezone files, just the programs
10806         and scripts.
10808 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10810         * nss/databases.def: Add missing gshadow entry.
10812         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10814 2012-03-06  Marek Polacek  <polacek@redhat.com>
10816         [BZ #13726]
10817         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10818         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10819         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10820         * stdio-common/tst-long-dbl-fphex.c: New file.
10822 2012-03-06  David S. Miller  <davem@davemloft.net>
10824         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10825         (set_obp_int): New function.
10826         (get_obp_int): New function.
10827         (__get_clockfreq_via_dev_openprom): Likewise.
10828         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10829         Avoid unused variable warnings on 'val' and use builtin_expect.
10830         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10831         __builtin_expect.
10832         (INLINE_CLONE_SYSCALL): Likewise.
10834 2012-03-05  David S. Miller  <davem@davemloft.net>
10836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10838 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10840         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10842         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10843         only for |x| >= 40.
10844         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10846 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10848         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10849         Replace gettimeofday with __vdso_gettimeofday.
10851         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10852         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10853         __vdso_clock_gettime and __vdso_getcpu.
10855         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10856         time with __vdso_time.
10858 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10860         * manual/lang.texi (size_t): Note types to which size_t may be
10861         equivalent with the GNU C Library, but do not describe when
10862         differences between them are significant.
10864 2012-03-05  Andreas Jaeger  <aj@suse.de>
10866         * sysdeps/i386/fpu/libm-test-ulps: Update.
10868 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10870         [BZ #3976]
10871         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10872         (__ieee754_pow): Save and restore rounding mode and use
10873         round-to-nearest for main computations.
10874         * math/libm-test.inc (pow_test_tonearest): New function.
10875         (pow_test_towardzero): Likewise.
10876         (pow_test_downward): Likewise.
10877         (pow_test_upward): Likewise.
10878         (main): Call the new functions.
10879         * sysdeps/i386/fpu/libm-test-ulps: Update.
10880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10882         [BZ #3976]
10883         * math/libm-test.inc (cosh_test_tonearest): New function.
10884         (cosh_test_towardzero): Likewise.
10885         (cosh_test_downward): Likewise.
10886         (cosh_test_upward): Likewise.
10887         (sinh_test_tonearest): Likewise.
10888         (sinh_test_towardzero): Likewise.
10889         (sinh_test_downward): Likewise.
10890         (sinh_test_upward): Likewise.
10891         (main): Call the new functions.
10892         * sysdeps/i386/fpu/libm-test-ulps: Update.
10893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10895 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10897         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10898         default stack guard is set in last bytes.
10899         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10901 2012-03-05  Kees Cook  <keescook@chromium.org>
10903         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10905         [BZ #13656]
10906         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10907         possibly allocate from heap instead of stack.
10908         * stdio-common/bug-vfprintf-nargs.c: New file.
10909         * stdio-common/Makefile (tests): Add nargs overflow test.
10911 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10913         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10915 2012-03-03  Marek Polacek  <polacek@redhat.com>
10917         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10918         * math/math_private.h: Likewise.
10919         * stdlib/tst-strtod.c: Likewise.
10920         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10921         * sysdeps/x86_64/bits/atomic.h: Likewise.
10923 2012-03-02  David S. Miller  <davem@davemloft.net>
10925         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10926         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10927         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10928         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10929         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10930         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10931         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10932         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10934 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10936         [BZ #13792]
10937         * manual/examples/README: New file, says the example source files
10938         can be used under GPL>=2.
10939         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10940         line containing just "*/".
10941         * manual/examples/add.c: Add copyright header (GPL>=2).
10942         * manual/examples/argp-ex1.c: Likewise.
10943         * manual/examples/argp-ex2.c: Likewise.
10944         * manual/examples/argp-ex3.c: Likewise.
10945         * manual/examples/argp-ex4.c: Likewise.
10946         * manual/examples/atexit.c: Likewise.
10947         * manual/examples/db.c: Likewise.
10948         * manual/examples/dir.c: Likewise.
10949         * manual/examples/dir2.c: Likewise.
10950         * manual/examples/execinfo.c: Likewise.
10951         * manual/examples/filecli.c: Likewise.
10952         * manual/examples/filesrv.c: Likewise.
10953         * manual/examples/fmtmsgexpl.c: Likewise.
10954         * manual/examples/genpass.c: Likewise.
10955         * manual/examples/inetcli.c: Likewise.
10956         * manual/examples/inetsrv.c: Likewise.
10957         * manual/examples/isockad.c: Likewise.
10958         * manual/examples/longopt.c: Likewise.
10959         * manual/examples/memopen.c: Likewise.
10960         * manual/examples/memstrm.c: Likewise.
10961         * manual/examples/mkfsock.c: Likewise.
10962         * manual/examples/mkisock.c: Likewise.
10963         * manual/examples/mygetpass.c: Likewise.
10964         * manual/examples/pipe.c: Likewise.
10965         * manual/examples/popen.c: Likewise.
10966         * manual/examples/rprintf.c: Likewise.
10967         * manual/examples/search.c: Likewise.
10968         * manual/examples/select.c: Likewise.
10969         * manual/examples/setjmp.c: Likewise.
10970         * manual/examples/sigh1.c: Likewise.
10971         * manual/examples/sigusr.c: Likewise.
10972         * manual/examples/stpcpy.c: Likewise.
10973         * manual/examples/strdupa.c: Likewise.
10974         * manual/examples/strftim.c: Likewise.
10975         * manual/examples/strncat.c: Likewise.
10976         * manual/examples/subopt.c: Likewise.
10977         * manual/examples/swapcontext.c: Likewise.
10978         * manual/examples/termios.c: Likewise.
10979         * manual/examples/testopt.c: Likewise.
10980         * manual/examples/testpass.c: Likewise.
10981         * manual/examples/timeval_subtract.c: Likewise.
10983         [BZ #13792]
10984         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10985         function to ...
10986         * manual/timeval_subtract.c.texi: ... here, new file.
10988 2012-03-02  David S. Miller  <davem@davemloft.net>
10990         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10992 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10994         [BZ #3976]
10995         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10996         (__sin): Save and restore rounding mode and use round-to-nearest
10997         for all computations.
10998         (__cos): Save and restore rounding mode and use round-to-nearest
10999         for all computations.
11000         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11001         <fenv.h>.
11002         (tan): Save and restore rounding mode and use round-to-nearest for
11003         all computations.
11004         * math/libm-test.inc (cos_test_tonearest): New function.
11005         (cos_test_towardzero): Likewise.
11006         (cos_test_downward): Likewise.
11007         (cos_test_upward): Likewise.
11008         (sin_test_tonearest): Likewise.
11009         (sin_test_towardzero): Likewise.
11010         (sin_test_downward): Likewise.
11011         (sin_test_upward): Likewise.
11012         (tan_test_tonearest): Likewise.
11013         (tan_test_towardzero): Likewise.
11014         (tan_test_downward): Likewise.
11015         (tan_test_upward): Likewise.
11016         (main): Call the new functions.
11017         * sysdeps/i386/fpu/libm-test-ulps: Update.
11018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11020         [BZ #10135]
11021         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11022         small n, then large n, before computing and testing k+n.
11023         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11024         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11025         Likewise.
11026         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11027         Likewise.
11028         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11029         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11030         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11031         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11032         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11033         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11034         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11035         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11036         * math/libm-test.inc (scalbn_test): Add more tests.
11037         (scalbln_test): Likewise.
11039         * manual/filesys.texi (mode_t): Describe constraints on size and
11040         signedness, not exact equivalence to a particular type.
11041         (ino_t): Likewise.
11042         (ino64_t): Likewise.
11043         (dev_t): Likewise.
11044         (nlink_t): Likewise.
11045         (blkcnt_t): Likewise.
11046         (blkcnt64_t): Likewise.
11047         * manual/llio.texi (off_t): Likewise.
11049         [BZ #3976]
11050         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11051         (__ieee754_exp): Save and restore rounding mode and use
11052         round-to-nearest for all computations.
11053         * math/libm-test.inc (exp_test_tonearest): New function.
11054         (exp_test_towardzero): Likewise.
11055         (exp_test_downward): Likewise.
11056         (exp_test_upward): Likewise.
11057         (main): Call the new functions.
11058         * sysdeps/i386/fpu/libm-test-ulps: Update.
11059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11061 2012-03-01  Chris Demetriou  <cgd@google.com>
11063         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11064         have predictable order.
11066 2012-03-01  David S. Miller  <davem@davemloft.net>
11068         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11070         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11071         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11072         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11073         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11075         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11076         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11077         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11078         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11079         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11080         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11081         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11082         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11083         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11085         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11087         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11088         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11089         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11091         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11092         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11093         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11094         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11095         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11096         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11097         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11098         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11099         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11100         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11101         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11102         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11103         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11104         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11105         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11106         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11107         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11108         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11109         * sysdeps/sparc/elf/configure: Regenerated.
11111 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11113         * configure.in (AS, LD): Require binutils 2.20 or later.
11114         * configure: Regenerated.
11115         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11116         as required minimum version.
11117         * INSTALL: Regenerated.
11119         [BZ #2541]
11120         [BZ #4108]
11121         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11122         before squaring exponent.
11123         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11124         bottom long double and 27 bits of top long double before squaring
11125         exponent.
11126         * math/libm-test.inc (erfc_test): Add more tests.
11127         * sysdeps/i386/fpu/libm-test-ulps: Update.
11128         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11131 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11133         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11134         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11135         containing bit-fields.
11136         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11137         * soft-fp/single.h (_FP_UNION_S): Likewise.
11138         * soft-fp/double.h (_FP_UNION_D): Likewise.
11140 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11142         [BZ #13786]
11143         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11144         not include ../strcmp.S.
11145         [USE_AS_STRNCASECMP_L]: Likewise.
11146         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11147         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11148         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11149         (__strncasecmp_l_ia32): Define as alias to
11150         __strncasecmp_l_nonascii.
11152         [BZ #5794]
11153         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11154         * sysdeps/i386/fpu/libm-test-ulps: Update.
11155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11157         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11158         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11160 2012-02-29  Jeff Law  <law@redhat.com>
11162         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11163         out of bounds read.
11165 2012-02-29  Marek Polacek  <polacek@redhat.com>
11167         [BZ #13706]
11168         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11169         * elf/Makefile: Add rules to run tst-unused-dep.out.
11171 2012-02-28  David S. Miller  <davem@davemloft.net>
11173         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11174         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11175         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11176         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11177         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11178         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11180 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11182         * math/libm-test.inc (llround_test): Move one test from
11183         lround_test.  Use TEST_f_L in moved test.
11184         (lround_test): Move misplaced test to llround_test.  Add testcase
11185         from bug 2561.
11187 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11189         * sysdeps/x86_64/fpu/e_expf.S: New file.
11190         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11192 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11194         [BZ #13637]
11195         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11196         of remain_len that may cause incomplete multi-byte character and
11197         false match.
11198         * posix/bug-regex33.c: New file.
11199         * posix/Makefile (tests): Add bug-regex33.
11201 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11203         * manual/macros.texi: New file.
11204         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11205         * manual/libc.texinfo: Include macros.texi.
11206         * manual/creatute.texi: Likewise.
11207         * manual/install.texi: Likewise.
11208         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11209         @glibcadj{} in references to the GNU C Library.
11210         * manual/charset.texi: Likewise.
11211         * manual/conf.texi: Likewise.
11212         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11213         when not using those macros.
11214         * manual/creature.texi: Likewise.
11215         * manual/crypt.texi: Likewise.
11216         * manual/errno.texi: Likewise.
11217         * manual/filesys.texi: Likewise.
11218         * manual/header.texi: Likewise.
11219         * manual/install.texi: Likewise.
11220         * manual/intro.texi: Likewise.
11221         * manual/io.texi: Likewise.
11222         * manual/job.texi: Likewise.
11223         * manual/lang.texi: Likewise.
11224         * manual/libc.texiinfo: Likewise.
11225         * manual/llio.texi: Likewise.
11226         * manual/locale.texi: Likewise.
11227         * manual/maint.texi: Likewise.
11228         * manual/math.texi: Likewise.
11229         * manual/memory.texi: Likewise.
11230         * manual/message.texi: Likewise.
11231         * manual/nss.texi: Likewise.
11232         * manual/pattern.texi: Likewise.
11233         * manual/process.texi: Likewise.
11234         * manual/resource.texi: Likewise.
11235         * manual/search.texi: Likewise.
11236         * manual/setjmp.texi: Likewise.
11237         * manual/signal.texi: Likewise.
11238         * manual/socket.texi: Likewise.
11239         * manual/startup.texi: Likewise.
11240         * manual/stdio.texi: Likewise.
11241         * manual/string.texi: Likewise.
11242         * manual/sysinfo.texi: Likewise.
11243         * manual/syslog.texi: Likewise.
11244         * manual/terminal.texi: Likewise.
11245         * manual/time.texi: Likewise.
11246         * manual/users.texi: Likewise.
11247         * INSTALL: Regenerated.
11248         * NOTES: Regenerated.
11249         * sysdeps/gnu/errlist.c: Regenerated.
11251 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11253         * include/dirent.h: Include <dirstream.h> before
11254         <dirent/dirent.h>.
11256 2012-02-28  David S. Miller  <davem@davemloft.net>
11258         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11259         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11260         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11261         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11263 2012-02-27  David S. Miller  <davem@davemloft.net>
11265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11267         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11268         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11271         frame pointer instead of stack pointer relative arg slot.
11272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11273         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11274         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11276 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11278         [BZ #3992]
11279         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11281 2012-02-27  David S. Miller  <davem@davemloft.net>
11283         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11284         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11285         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11286         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11287         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11288         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11289         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11290         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11292 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11294         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11295         later.  Allow versions 5-9.
11296         * configure: Regenerated.
11297         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11298         required minimum version and 4.6 as recommended version.  Do not
11299         mention bugs in GCC 2.7 and 2.8.
11300         * INSTALL: Regenerated.
11302 2012-02-27  David S. Miller  <davem@davemloft.net>
11304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11308         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11309         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11310         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11311         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11313         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11314         manipulate bits before adding and subtracting TWO112[sx].
11315         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11317 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11319         [BZ #13775]
11320         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11321         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11322         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11323         being in POSIX, because they are in 1003.1-2008.
11325         * rt/tst-aio.c: Include <fcntl.h>.
11326         * rt/tst-aio7.c: Likewise.
11327         * rt/tst-aio64.c: Likewise.
11329         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11331 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11333         * manual/install.texi (--with-headers): Describe headers as
11334         interface headers, not private headers.
11335         (Specific advice for GNU/Linux systems): Describe use of headers
11336         from "make headers_install", not private headers from older
11337         kernels.
11338         * INSTALL: Regenerated.
11339         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11340         Change to 2.6.19.
11341         * sysdeps/unix/sysv/linux/configure: Regenerated.
11343         * manual/llio.texi (fclean): Remove documentation.
11345         * manual/Makefile (libc-texi-generated): New variable.  Include
11346         version.texi.
11347         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11348         $(libc-texi-generated), not duplicated list of files.
11349         (version.texi, stamp-version): New rules.
11350         (realclean): Remove $(libc-texi-generated), not individual files
11351         from that list.  Do not remove dir-add.texinfo.
11352         * manual/libc.texinfo: Comment out uses of edition numbers and
11353         references to printed manual.  Remove last-updated dates.
11354         (EDITION): Comment out.
11355         (ISBN): Likewise.
11356         (VERSION, UPDATED): Remove.
11357         (version.texi): Include.
11359 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11361         * sysdeps/posix/spawni.c: Include <signal.h>.
11362         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11363         * sysdeps/pthread/aio_fsync.c: Likewise.
11365 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11367         * conform/Makefile (tests): Run only when not cross-compiling and
11368         when fast-check is not defined.
11370         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11371         * conform/data/limits.h-data: Fixes for POSIX2008.
11372         * conform/run-conformtest.sh: Run all tests.
11373         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11374         headers.
11375         * include/bits/dlfcn.h: Likewise.
11376         * include/langinfo.h: Likewise.
11377         * include/monetary.h: Likewise.
11378         * include/sys/poll.h: Likewise.
11380         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11381         for __USE_GNU.
11382         * posix/spawn.h: Define __need_sigset_t.
11383         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11384         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11385         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11386         to get sigevent_t only.
11387         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11388         only for __USE_GNU.
11389         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11390         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11391         process_vm_writev only for __USE_GNU.
11392         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11394         * conform/Makefile: For now ignore errors from run-conformtest.
11395         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11396         POSIX to avoid namespace pollution.  Don't prepend headers.
11397         * conform/data/aio.h-data: Fixes for POSIX testing.
11398         * conform/data/fcntl.h-data: Likewise.
11399         * conform/data/glob.h-data: Likewise.
11400         * conform/data/grp.h-data: Likewise.
11401         * conform/data/pthread.h-data: Likewise.
11402         * conform/data/pwd.h-data: Likewise.
11403         * conform/data/signal.h-data: Likewise.
11404         * conform/data/spawn.h-data: Likewise.
11405         * conform/data/stdio.h-data: Likewise.
11406         * conform/data/stdlib.h-data: Likewise.
11407         * conform/data/stropts.h-data: Likewise.
11408         * conform/data/sys/mman.h-data: Likewise.
11409         * conform/data/sys/stat.h-data: Likewise.
11410         * conform/data/sys/types.h-data: Likewise.
11411         * conform/data/sys/wait.h-data: Likewise.
11412         * conform/data/time.h-data: Likewise.
11413         * conform/data/unistd.h-data: Likewise.
11414         * conform/data/utime.h-data: Likewise.
11416         * io/sys/stat.h: fchmod was always in POSIX.
11417         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11418         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11419         * rt/aio.h: Define __need_timespec before including <time.h>.
11420         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11421         struct.  Add forward declaration of pthread_attr_t and use it in
11422         sigevent.
11423         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11424         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11425         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11426         always remove CLK_TCK definition.
11428 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11430         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11432 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11434         * conform/run-conformtest.sh: New file.
11435         * conform/Makefile: Run run-conformtest for tests.
11436         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11437         support.
11439         * conform/data/uchar.h-data: New file.
11440         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11441         * conform/data/arpa/inet.h-data: Likewise.
11442         * conform/data/assert.h-data: Likewise.
11443         * conform/data/complex.h-data: Likewise.
11444         * conform/data/cpio.h-data: Likewise.
11445         * conform/data/ctype.h-data: Likewise.
11446         * conform/data/dirent.h-data: Likewise.
11447         * conform/data/dlfcn.h-data: Likewise.
11448         * conform/data/errno.h-data: Likewise.
11449         * conform/data/fcntl.h-data: Likewise.
11450         * conform/data/float.h-data: Likewise.
11451         * conform/data/fmtmsg.h-data: Likewise.
11452         * conform/data/fnmatch.h-data: Likewise.
11453         * conform/data/ftw.h-data: Likewise.
11454         * conform/data/glob.h-data: Likewise.
11455         * conform/data/grp.h-data: Likewise.
11456         * conform/data/iconv.h-data: Likewise.
11457         * conform/data/inttypes.h-data: Likewise.
11458         * conform/data/langinfo.h-data: Likewise.
11459         * conform/data/libgen.h-data: Likewise.
11460         * conform/data/limits.h-data: Likewise.
11461         * conform/data/locale.h-data: Likewise.
11462         * conform/data/math.h-data: Likewise.
11463         * conform/data/monetary.h-data: Likewise.
11464         * conform/data/mqueue.h-data: Likewise.
11465         * conform/data/ndbm.h-data: Likewise.
11466         * conform/data/net/if.h-data: Likewise.
11467         * conform/data/netdb.h-data: Likewise.
11468         * conform/data/netinet/in.h-data: Likewise.
11469         * conform/data/nl_types.h-data: Likewise.
11470         * conform/data/poll.h-data: Likewise.
11471         * conform/data/pthread.h-data: Likewise.
11472         * conform/data/pwd.h-data: Likewise.
11473         * conform/data/regex.h-data: Likewise.
11474         * conform/data/sched.h-data: Likewise.
11475         * conform/data/search.h-data: Likewise.
11476         * conform/data/semaphore.h-data: Likewise.
11477         * conform/data/setjmp.h-data: Likewise.
11478         * conform/data/signal.h-data: Likewise.
11479         * conform/data/spawn.h-data: Likewise.
11480         * conform/data/stdarg.h-data: Likewise.
11481         * conform/data/stdio.h-data: Likewise.
11482         * conform/data/stdlib.h-data: Likewise.
11483         * conform/data/string.h-data: Likewise.
11484         * conform/data/strings.h-data: Likewise.
11485         * conform/data/stropts.h-data: Likewise.
11486         * conform/data/sys/ipc.h-data: Likewise.
11487         * conform/data/sys/mman.h-data: Likewise.
11488         * conform/data/sys/msg.h-data: Likewise.
11489         * conform/data/sys/resource.h-data: Likewise.
11490         * conform/data/sys/select.h-data: Likewise.
11491         * conform/data/sys/sem.h-data: Likewise.
11492         * conform/data/sys/shm.h-data: Likewise.
11493         * conform/data/sys/socket.h-data: Likewise.
11494         * conform/data/sys/stat.h-data: Likewise.
11495         * conform/data/sys/statvfs.h-data: Likewise.
11496         * conform/data/sys/time.h-data: Likewise.
11497         * conform/data/sys/timeb.h-data: Likewise.
11498         * conform/data/sys/times.h-data: Likewise.
11499         * conform/data/sys/types.h-data: Likewise.
11500         * conform/data/sys/uio.h-data: Likewise.
11501         * conform/data/sys/un.h-data: Likewise.
11502         * conform/data/sys/utsname.h-data: Likewise.
11503         * conform/data/sys/wait.h-data: Likewise.
11504         * conform/data/syslog.h-data: Likewise.
11505         * conform/data/tar.h-data: Likewise.
11506         * conform/data/termios.h-data: Likewise.
11507         * conform/data/utime.h-data: Likewise.
11508         * conform/data/utmpx.h-data: Likewise.
11509         * conform/data/varargs.h-data: Likewise.
11510         * conform/data/wchar.h-data: Likewise.
11511         * conform/data/wctype.h-data: Likewise.
11512         * conform/data/wordexp.h-data: Likewise.
11514         * include/stropts.h: New file.
11515         * include/uchar.h: New file.
11516         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11517         * include/assert.h: Likewise.
11518         * include/ctype.h: Likewise.
11519         * include/dirent.h: Likewise.
11520         * include/dlfcn.h: Likewise.
11521         * include/fcntl.h: Likewise.
11522         * include/fnmatch.h: Likewise.
11523         * include/glob.h: Likewise.
11524         * include/grp.h: Likewise.
11525         * include/libio.h: Likewise.
11526         * include/locale.h: Likewise.
11527         * include/math.h: Likewise.
11528         * include/net/if.h: Likewise.
11529         * include/netdb.h: Likewise.
11530         * include/netinet/in.h: Likewise.
11531         * include/pthread.h: Likewise.
11532         * include/pwd.h: Likewise.
11533         * include/regex.h: Likewise.
11534         * include/sched.h: Likewise.
11535         * include/search.h: Likewise.
11536         * include/setjmp.h: Likewise.
11537         * include/signal.h: Likewise.
11538         * include/stdio.h: Likewise.
11539         * include/stdlib.h: Likewise.
11540         * include/string.h: Likewise.
11541         * include/sys/cdefs.h: Likewise.
11542         * include/sys/mman.h: Likewise.
11543         * include/sys/msg.h: Likewise.
11544         * include/sys/resource.h: Likewise.
11545         * include/sys/select.h: Likewise.
11546         * include/sys/socket.h: Likewise.
11547         * include/sys/stat.h: Likewise.
11548         * include/sys/statvfs.h: Likewise.
11549         * include/sys/time.h: Likewise.
11550         * include/sys/times.h: Likewise.
11551         * include/sys/uio.h: Likewise.
11552         * include/sys/utsname.h: Likewise.
11553         * include/sys/wait.h: Likewise.
11554         * include/termios.h: Likewise.
11555         * include/time.h: Likewise.
11556         * include/ulimit.h: Likewise.
11557         * include/unistd.h: Likewise.
11558         * include/utime.h: Likewise.
11559         * include/wchar.h: Likewise.
11560         * include/wctype.h: Likewise.
11561         * include/wordexp.h: Likewise.
11563         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11565         * time/time.h: TIME_UTC must be a macro.
11566         Make timespec_get available for ISO C11 only as well.
11568 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11570         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11571         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11573 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11575         * configure.in: Use -o not -a in test for unsupported multi-arch.
11577 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11579         * manual/texinfo.tex: Update to version 2012-01-19.16.
11581 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11583         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11585 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11587         [BZ #13738]
11588         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11589         * manual/fdl-1.3.texi: New file.
11590         * manual/fdl-1.1.texi: File removed.
11592         [BZ #13738]
11593         * manual/libc.texinfo (FDL_VERSION): New @set.
11594         Use it for mention of FDL in cover text.
11595         (Documentation License): Use it in @include file name.
11597 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11598             Roland McGrath  <roland@hack.frob.com>
11600         [BZ #5461]
11601         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11602         not LONG_LONG_MAX and LONG_LONG_MIN.
11603         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11604         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11605         name.
11606         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11608 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11610         [BZ #2547]
11611         [BZ #11365]
11612         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11613         manipulate bits before adding and subtracting TWO23[sx].
11614         * math/libm-test.inc (nearbyint_test): Add more tests.
11616 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11618         [BZ #2548]
11619         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11620         bits before adding and subtracting TWO23[sx].
11621         * math/libm-test.inc (rint_test): Add more tests.
11622         (rint_test_tonearest): Likewise.
11623         (rint_test_towardzero): Likewise.
11624         (rint_test_downward): Likewise.
11625         (rint_test_upward: Likewise.
11627 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11629         [BZ #10110]
11630         * include/stdc-predef.h: New file.  Extracted from features.h.
11631         * include/features.h: Include stdc-predef.h.
11632         * Makefile (headers): Add stdc-predef.h.
11633         * CONFORMANCE (Compiler limitations): Update.
11635 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11637         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11639 2012-02-21  David S. Miller  <davem@davemloft.net>
11641         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11642         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11644 2012-02-20  David S. Miller  <davem@davemloft.net>
11646         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11647         using a normal save/restore sequence, rather than allocating a
11648         dummy stack frame just to store a frame pointer and restore.
11649         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11651 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11653         * manual/install.texi: Fix stray word in line-wrapped comment.
11655 2012-02-20  David S. Miller  <davem@davemloft.net>
11657         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11658         both binutils and gcc support GOTDATA.
11660         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11661         "rd %pc" in the PIC register setup sequences.
11663         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11664         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11665         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11666         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11667         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11668         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11669         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11670         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11671         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11672         (SYSCALL_ERROR_HANDLER): Likewise.
11673         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11674         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11675         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11676         (SYSCALL_ERROR_HANDLER): Likewise.
11678         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11679         (HAVE_GCC_GOTDATA): New.
11680         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11681         relocation support in both binutils and gcc.
11682         * sysdeps/sparc/elf/configure: Regenerate.
11684         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11685         * sysdeps/sparc/sparc32/elf/configure: Delete.
11686         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11687         * sysdeps/sparc/sparc64/elf/configure: Delete.
11688         * sysdeps/sparc/elf/configure.in: New file.
11689         * sysdeps/sparc/elf/configure: Generate.
11691         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11692         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11693         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11694         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11695         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11697 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11699         * manual/install.texi: Do not mention specific glibc version
11700         numbers.
11701         * manual/libc.texinfo (VERSION, UPDATED): Update.
11702         (@copying): Use @copyright{} and range of years.
11704 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11706         [BZ #13695]
11707         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11708         [crti.S not in sysdirs] (generated): Do not append.
11709         [crti.S not in sysdirs] (omit-deps): Likewise.
11710         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11711         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11712         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11713         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11714         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11715         Likewise.
11716         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11717         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11718         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11719         * csu/defs.awk: Remove file.
11720         * sysdeps/generic/initfini.c: Likewise.
11721         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11722         variable.
11723         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11724         Likewise.
11726 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11728         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11729         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11730         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11731         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11732         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11733         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11734         <bits/epoll.h>.
11735         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11736         (__EPOLL_PACKED): Define to empty if not defined by
11737         <bits/epoll.h>.
11738         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11739         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11740         bits/epoll.h.
11742 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11744         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11745         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11746         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11747         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11748         <bits/timerfd.h>.
11749         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11750         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11751         bits/timerfd.h.
11753 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11755         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11756         in C locale.
11757         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11758         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11759         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11762 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11764         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11765         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11767 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11769         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11770         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11771         defined.
11772         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11773         Likewise.
11774         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11775         entry for 2.16.
11777 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11779         * math/w_acos.c: Use non-signaling floating-point comparisons.
11780         * math/w_acosf.c: Likewise.
11781         * math/w_acosh.c: Likewise.
11782         * math/w_acoshf.c: Likewise.
11783         * math/w_acoshl.c: Likewise.
11784         * math/w_acosl.c: Likewise.
11785         * math/w_asin.c: Likewise.
11786         * math/w_asinf.c: Likewise.
11787         * math/w_asinl.c: Likewise.
11788         * math/w_atanh.c: Likewise.
11789         * math/w_atanhf.c: Likewise.
11790         * math/w_atanhl.c: Likewise.
11791         * math/w_exp2.c: Likewise.
11792         * math/w_exp2f.c: Likewise.
11793         * math/w_exp2l.c: Likewise.
11794         * math/w_j0.c: Likewise.
11795         * math/w_j0f.c: Likewise.
11796         * math/w_j0l.c: Likewise.
11797         * math/w_j1.c: Likewise.
11798         * math/w_j1f.c: Likewise.
11799         * math/w_j1l.c: Likewise.
11800         * math/w_jn.c: Likewise.
11801         * math/w_jnf.c: Likewise.
11802         * math/w_log.c: Likewise.
11803         * math/w_log10.c: Likewise.
11804         * math/w_log10f.c: Likewise.
11805         * math/w_log10l.c: Likewise.
11806         * math/w_log2.c: Likewise.
11807         * math/w_log2f.c: Likewise.
11808         * math/w_log2l.c: Likewise.
11809         * math/w_logf.c: Likewise.
11810         * math/w_logl.c: Likewise.
11811         * math/w_sqrt.c: Likewise.
11812         * math/w_sqrtf.c: Likewise.
11813         * math/w_sqrtl.c: Likewise.
11814         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11815         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11816         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11817         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11818         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11820 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11822         [BZ #9739]
11823         * manual/string.texi (strnlen): Use correct parameter name in
11824         equivalent expression.
11826 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11828         [BZ #11174]
11829         * manual/users.texi (seteuid): Consistently use neweuid for
11830         argument name.
11832 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11834         [BZ #13704]
11835         * manual/nss.texi (Services in the NSS configuration): Correct
11836         list of services in example configuration file.
11838 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11840         [BZ #11322]
11841         * manual/arith.texi: Remove statements about negative zero
11842         behaving identically to zero.
11844 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11846         [BZ #5993]
11847         * manual/install.texi: Do not document upgrading from libc5.
11849 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11851         [BZ #4596]
11852         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11854 2012-02-18  David S. Miller  <davem@davemloft.net>
11856         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11857         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11858         %o7 across the call.
11859         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11860         instead.
11861         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11862         SETUP_PIC_REG_LEAF.
11863         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11864         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11865         * sysdeps/sparc/crtn.S: Likewise.
11867 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11869         * aout/Makefile: Remove.
11871 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11873         [BZ #13058]
11874         * manual/examples/argp-ex1.c (main): Format definition in GNU
11875         style.
11876         * manual/examples/argp-ex2.c (main): Likewise.
11877         * manual/examples/argp-ex3.c (main): Likewise.
11878         * manual/examples/argp-ex4.c (main): Likewise.
11879         * manual/examples/longopt.c (main): Use new-style prototype
11880         definition.
11881         * manual/examples/strncat.c (main): Specify return type and use
11882         (void) for arguments.
11883         * manual/examples/subopt.c (main): Use char **argv argument.
11885 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11887         [BZ #5077]
11888         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11889         rounding modes.
11891 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11893         [BZ #6907]
11894         * manual/string.texi (strchr): Change when strchrnul is
11895         recommended.
11897 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11899         [BZ #174]
11900         * manual/locale.texi (setlocale): Document LOCPATH.
11902 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11904         [BZ #10210]
11905         * manual/process.texi (execle): Move @dots{} before last argument.
11907 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11909         [BZ #12047]
11910         * manual/charset.texi (Generic Charset Conversion): Fix typo
11911         (LC_TYPE -> LC_CTYPE).
11913 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11915         [BZ #5805]
11916         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11917         (scalbnf): Likewise.
11918         (scalbnl): Likewise.
11919         (scalbln): Likewise.
11920         (scalblnf): Likewise.
11921         (scalblnl): Likewise.
11922         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11923         (vwarnx): Likewise.
11924         (verr): Likewise.
11925         (verrx): Likewise.
11926         * manual/filesys.texi (telldir): Use braces around return type.
11927         * manual/llio.texi (mmap): Add space after comma.
11928         (mmap64): Likewise.
11929         * manual/math.texi (jn): Use @var{} on parameter names.
11930         (jnf): Likewise.
11931         (jnl): Likewise.
11932         (yn): Likewise.
11933         (ynf): Likewise.
11934         (ynl): Likewise.
11935         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11936         line.
11937         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11938         "...".
11939         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11940         (sched_get_priority_max): Likewise.
11941         * manual/signal.texi (sigvec): Add space after comma.
11942         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11943         names.
11944         (if_indextoname): Likewise.
11945         (if_freenameindex): Likewise.
11946         (sendto): Use ',' instead of '.' in prototype.
11947         * manual/startup.texi (syscall): Use @dots{} instead of literal
11948         "...".
11949         * manual/stdio.texi (__fpending): Separate initial words of
11950         paragraph from @deftypefun line.
11951         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11952         "...".
11953         (vsyslog): Use @var{} on parameter names.
11954         * manual/terminal.texi (stty): Use @var{} on parameter names.
11955         * manual/users.texi (getutmp): Use @var{} on parameter names.
11956         (getutmpx): Likewise.
11958 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11960         [BZ #6884]
11961         * manual/stdio.texi (fopen): Fix typos in description of
11962         ",ccs=STRING".
11964 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11966         [BZ #4026]
11967         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11968         get clock_id definition.
11970 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11972         [BZ #4822]
11973         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11974         (madvise): Cast every argument to void on its own.
11976 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11978         [BZ #9902]
11979         * manual/startup.texi (Exit Status): Fix typo.
11981 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11983         [BZ #10140]
11984         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11985         * manual/examples/argp-ex2.c: Likewise.
11986         * manual/examples/argp-ex3.c: Likewise.
11988 2012-02-16  Richard Henderson  <rth@redhat.com>
11990         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11991         * sysdeps/s390/s390-32/initfini.c: Remove.
11992         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11993         * sysdeps/s390/s390-64/initfini.c: Remove.
11995 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11997         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11998         compiler output for sysdeps/generic/initfini.c.
11999         * sysdeps/sh/elf/initfini.c: Remove file.
12001 2012-02-16  David S. Miller  <davem@davemloft.net>
12003         [BZ #11494]
12004         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12006         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12007         * sysdeps/sparc/crti.S: New file.
12008         * sysdeps/sparc/crtn.S: New file.
12009         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12010         * sysdeps/sparc/sparc64/Makefile: Likewise.
12012 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12014         [BZ #3335]
12015         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12017 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12019         [BZ #4822]
12020         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12022         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12023         (write, read, close): Likewise.
12024         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12026 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12028         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12029         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12030         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12031         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12032         <bits/signalfd.h>.
12033         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12034         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12035         bits/signalfd.h.
12037 2012-02-14  Marek Polacek  <polacek@redhat.com>
12039         * sysdeps/x86_64/crti.S: New file.
12040         * sysdeps/x86_64/crtn.S: New file.
12041         * sysdeps/x86_64/elf/initfini.c: Remove file.
12043 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12045         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12046         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12047         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12048         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12049         <bits/inotify.h>.
12050         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12051         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12052         bits/inotify.h.
12054 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12056         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12057         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12058         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12059         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12060         <bits/eventfd.h>.
12061         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12062         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12063         bits/eventfd.h.
12065 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12067         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12068         __feraiseexcept instead of feraiseexcept.
12070         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12071         nanosleep invocations.
12072         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12073         strings, and add error checking for a nanosleep invocations.
12075 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12077         Replace FSF snail mail address with URLs, as per GNU coding standards.
12078         Most of the snail mail addresses were wrong anyway, and omitting
12079         them makes the source code easier to maintain.  Almost all of the
12080         changes are to license notices and to locale LC_IDENTIFICATION
12081         addresses, except for this one:
12082         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12083         not its snail mail address.
12085 2012-02-09  Richard Henderson  <rth@twiddle.net>
12087         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12088         of kernel-features.h.
12090         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12092 2012-02-08  Marek Polacek  <polacek@redhat.com>
12094         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12095         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12096         * sysdeps/gnu/_G_config.h: Likewise.
12097         * sysdeps/generic/_G_config.h: Likewise.
12099 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12101         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12102         tests.
12103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12105         * sysdeps/powerpc/powerpc32/crti.S: New file.
12106         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12107         * sysdeps/powerpc/powerpc64/crti.S: New file.
12108         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12110         * Makeconfig (have-initfini): Don't set.
12111         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12112         * configure.in (nopic_initfini): Don't substitute.
12113         * config.h.in (HAVE_INITFINI): Don't #undef.
12114         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12115         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12117 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12119         Support crti.S and crtn.S provided directly by architectures.
12120         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12121         [crti.S in sysdirs] (omit-deps): Likewise.
12122         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12123         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12124         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12125         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12126         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12127         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12128         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12129         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12130         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12131         compiler output for sysdeps/generic/initfini.c.
12132         * sysdeps/i386/elf/Makefile: Remove file.
12133         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12135 2012-02-07  Marek Polacek  <polacek@redhat.com>
12137         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12138         * sysdeps/gnu/_G_config.h: Likewise.
12139         * sysdeps/mach/hurd/_G_config.h: Likewise.
12141 2012-02-07  Marek Polacek  <polacek@redhat.com>
12143         * math/Makefile (tests): Add tst-CMPLX2.
12144         * math/tst-CMPLX2.c: New file.
12146 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12148         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12150         * math/libm-test.inc (jn_test): Add missing L suffix.
12152 2012-02-06  Marek Polacek  <polacek@redhat.com>
12154         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12155         * sysdeps/i386/fpu/e_powf.S: Likewise.
12156         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12157         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12158         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12159         * sysdeps/i386/fpu/e_pow.S: Likewise.
12160         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12161         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12162         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12163         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12164         * sysdeps/i386/fpu/e_log2.S: Likewise.
12165         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12166         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12167         * sysdeps/i386/fpu/e_powl.S: Likewise.
12168         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12169         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12170         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12171         * sysdeps/i386/fpu/e_logl.S: Likewise.
12172         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12173         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12174         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12175         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12176         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12177         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12178         * sysdeps/i386/fpu/e_log.S: Likewise.
12179         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12180         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12181         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12182         * sysdeps/i386/fpu/e_logf.S: Likewise.
12183         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12184         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12185         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12186         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12187         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12188         * sysdeps/i386/fpu/e_log10.S: Likewise.
12189         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12190         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12191         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12192         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12193         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12194         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12195         * sysdeps/i386/asm-syntax.h: Likewise.
12196         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12197         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12198         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12199         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12200         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12201         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12202         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12203         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12204         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12205         * sysdeps/powerpc/sysdep.h: Likewise.
12206         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12207         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12209 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12211         [BZ #411]
12212         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12214 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12216         * sysdeps/i386/sysdep.h: Include <features.h>.
12217         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12218         version.
12220 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12222         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12223         Define.
12224         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12225         LOAD_PIC_REG_STR.
12227 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12229         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12230         (SETUP_PIC_REG): Use GET_PC_THUNK.
12231         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12232         macro.
12234 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12236         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12237         for non-PIC compilation.
12238         (SETUP_PIC_REG): Add .p2align directive.
12239         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12240         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12241         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12242         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12243         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12244         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12245         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12246         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12247         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12248         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12249         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12250         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12251         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12252         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12253         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12254         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12255         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12256         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12257         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12258         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12259         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12260         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12261         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12262         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12263         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12264         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12265         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12266         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12267         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12268         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12269         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12270         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12271         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12272         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12273         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12274         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12275         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12276         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12277         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12278         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12279         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12281 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12283         * math/tst-CMPLX.c: Include <stdio.h>.
12285 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12287         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12288         float.
12289         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12290         * sysdeps/sparc/bits/mathdef.h: Likewise.
12292 2012-01-31  Marek Polacek  <polacek@redhat.com>
12294         * libio/libio.h: Don't define _PARAMS.
12295         * locale/programs/config.h: Don't define PARAMS.
12296         * stdlib/strtol_l.c: Likewise.
12297         (__strtol_l): Remove PARAMS from the prototype.
12299 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12301         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12302         names.  Just use the correct names.  Remove unnecessary wrapper
12303         functions.
12304         * malloc/arena.c: Likewise.
12305         * malloc/hooks.c: Likewise.
12307         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12308         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12309         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12311 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12313         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12314         into tail calls.
12315         (update_get_addr): New function.
12316         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12317         GET_ADDR_MODULE parameter.
12319 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12321         * crypt/cert.c: Remove __STDC__ conditionals.
12322         * crypt/crypt-entry.c: Likewise.
12323         * crypt/crypt_util.c: Likewise.
12324         * libio/filedoalloc.c: Likewise.
12325         * libio/fileops.c: Likewise.
12326         * libio/genops.c: Likewise.
12327         * libio/iofclose.c: Likewise.
12328         * libio/iofdopen.c: Likewise.
12329         * libio/iofopen.c: Likewise.
12330         * libio/iofopen64.c: Likewise.
12331         * libio/iogetdelim.c: Likewise.
12332         * libio/iopopen.c: Likewise.
12333         * libio/obprintf.c: Likewise.
12334         * libio/oldfileops.c: Likewise.
12335         * libio/oldiofclose.c: Likewise.
12336         * libio/oldiofdopen.c: Likewise.
12337         * libio/oldiofopen.c: Likewise.
12338         * libio/oldiopopen.c: Likewise.
12339         * libio/wfiledoalloc.c: Likewise.
12340         * libio/wgenops.c: Likewise.
12341         * locale/programs/xmalloc.c: Likewise.
12342         * misc/syslog.c: Likewise.
12343         * stdio-common/xbug.c: Likewise.
12344         * string/memchr.c: Likewise.
12345         * string/memcmp.c: Likewise.
12346         * string/memrchr.c: Likewise.
12347         * string/rawmemchr.c: Likewise.
12348         * sysdeps/posix/getcwd.c: Likewise.
12349         * time/strftime_l.c: Likewise.
12351 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12353         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12354         * config.make.in (config-cflags-sse2avx): Define.
12355         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12356         Fix typo.
12358 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12360         * scripts/config.guess: Update from upstream config git repository.
12361         * scripts/config.sub: Likewise.
12363 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12365         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12366         (EM_NUM): Update.
12367         (R_TILEPRO_*, R_TILEGX_*): New macros.
12369         * scripts/firstversions.awk: Fix bug in version range handling.
12371         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12373         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12375         * include/sys/epoll.h: New file.
12376         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12377         libc_hidden_def.
12379 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12381         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12382         Avoid unnecessary __WORDSIZE == 64 test.
12383         (fmaxf): Use VEX format if possible.
12384         (fmax): Likewise.
12385         (fminf): Likewise.
12386         (fmin): Likewise.
12388         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12389         * math/math_private.h: Remove libc_fegetround* and
12390         libc_fesetround*.
12391         * sysdeps/i386/configure.in: Check for -msse2avx.
12392         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12393         also if SSE2AVX is defined.
12394         Remove libc_fegetround* and libc_fesetround*.
12395         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12396         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12397         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12398         of HAS_YMM_USABLE.
12399         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12400         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12401         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12402         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12403         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12405         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12407 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12409         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12410         size is not set.
12411         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12413 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12415         [BZ #13618]
12416         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12417         relocation.
12418         * Makeconfig (libm): Define.
12419         * elf/Makefile: Add rules to build and run tst-relsort1.
12420         * elf/tst-relsort1.c: New file.
12421         * elf/tst-relsort1mod1.c: New file.
12422         * elf/tst-relsort1mod2.c: New file.
12424 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12426         * math/s_ldexp.c: Remove __STDC__ conditionals.
12427         * math/s_ldexpf.c: Likewise.
12428         * math/s_ldexpl.c: Likewise.
12429         * math/s_nextafter.c: Likewise.
12430         * math/s_nexttowardf.c: Likewise.
12431         * math/s_significand.c: Likewise.
12432         * math/s_significandf.c: Likewise.
12433         * math/s_significandl.c: Likewise.
12434         * math/w_jnl.c: Likewise.
12435         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12436         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12437         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12438         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12439         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12440         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12441         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12442         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12443         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12444         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12445         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12446         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12447         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12448         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12449         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12450         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12451         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12452         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12453         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12454         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12455         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12456         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12457         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12458         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12459         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12460         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12461         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12462         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12463         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12464         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12465         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12466         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12467         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12468         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12469         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12470         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12471         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12472         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12473         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12474         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12475         * sysdeps/ieee754/k_standard.c: Likewise.
12476         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12477         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12478         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12479         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12480         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12481         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12482         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12483         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12484         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12485         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12486         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12487         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12488         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12489         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12490         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12491         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12492         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12493         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12494         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12495         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12496         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12497         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12498         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12499         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12500         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12501         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12502         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12503         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12504         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12505         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12506         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12507         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12508         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12509         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12510         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12511         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12512         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12513         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12514         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12515         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12516         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12517         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12518         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12519         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12520         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12521         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12522         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12523         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12524         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12525         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12526         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12527         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12528         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12529         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12530         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12531         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12532         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12533         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12534         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12535         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12536         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12537         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12538         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12539         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12540         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12541         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12542         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12543         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12544         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12545         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12546         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12547         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12548         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12549         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12550         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12551         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12552         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12553         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12554         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12555         * sysdeps/ieee754/s_matherr.c: Likewise.
12556         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12557         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12558         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12559         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12561 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12563         * crypt/md5.h: Remove __STDC__ conditionals.
12564         * libio/libioP.h: Likewise.
12565         * locale/programs/config.h: Likewise.
12566         * sysdeps/generic/sysdep.h: Likewise.
12567         * sysdeps/i386/asm-syntax.h: Likewise.
12568         * sysdeps/s390/asm-syntax.h: Likewise.
12569         * sysdeps/unix/sysdep.h: Likewise.
12570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12573 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12575         * libio/libio.h: Remove __STDC__ conditionals.
12576         * malloc/obstack.h: Likewise.
12577         * math/complex.h: Likewise.
12578         * math/math.h: Likewise.
12579         * sysdeps/generic/_G_config.h: Likewise.
12580         * sysdeps/gnu/_G_config.h: Likewise.
12581         * sysdeps/mach/hurd/_G_config.h: Likewise.
12582         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12583         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12584         * sysdeps/sparc/bits/mathdef.h: Likewise.
12586 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12588         [BZ #13583]
12589         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12590         Clean up HAS_* macros.
12591         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12592         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12593         possible.
12594         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12595         HAS_AVX.
12596         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12597         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12598         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12599         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12600         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12602 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12604         * elf/tst-unique3.cc (gets): Remove declaration.
12605         * elf/tst-unique3lib.cc (gets): Likewise.
12606         * elf/tst-unique3lib2.cc (gets): Likewise.
12607         * elf/tst-unique4.cc (gets): Likewise.
12609 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12611         * include/stdio.h: Add C++ protection.  Add gets declarations and
12612         definitions.
12613         * debug/tst-chk1.c: Don't declare gets here.
12614         * stdio-common/tst-gets.c: Likewise.
12616 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12618         * posix/glob: Remove directory.
12620 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12622         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12624 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12626         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12627         of the non-standard EPFNOSUPPORT.
12629 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12631         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12632         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12633         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12635 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12637         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12639 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12641         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12642         transient errors.
12643         * nscd/grpcache.c (cache_addgr): Likewise.
12644         * nscd/hstcache.c (cache_addhst): Likewise.
12645         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12646         * nscd/pwdcache.c (cache_addpw): Likewise.
12647         * nscd/servicescache.c (cache_addserv): Likewise.
12649 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12651         * malloc/malloc.c: Various cleanups.
12652         * malloc/hooks.c: Likewise.
12654         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12655         * stdlib/bug-fmtmsg1.c: New file.
12657         * stdlib/fmtmsg.c (init): Add missing unlock.
12658         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12660 2012-01-12  Marek Polacek  <polacek@redhat.com>
12662         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12663         and _GNU_SOURCE.
12665 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12667         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12668         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12669         macro to ensure uniqueness of label name.
12670         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12671         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12673 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12675         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12677         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12678         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12679         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12680         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12682 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12684         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12686         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12687         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12688         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12690         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12692         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12693         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12694         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12695         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12697         * math/bits/math-finite.h: Add ldexp support.
12699 2012-01-10  Marek Polacek  <polacek@redhat.com>
12701         * locale/programs/localedef.h (show_archive_content): Add noreturn
12702         attribute.
12704 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12706         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12708 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12710         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12712         * io/Makefile (headers): Add bits/poll2.h.
12714 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12717         typo #include statement.
12719 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12721         * include/sys/cdefs.h: Define __attribute_alloc_size.
12722         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12723         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12724         * elf/pldd.c: Likewise.
12725         * iconv/iconv_charmap.c: Likewise.
12726         * iconv/iconvconfig.c: Likewise.
12727         * iconv/strtab.c: Likewise.
12728         * locale/programs/locale.c: Likewise.
12729         * locale/programs/localedef.h: Likewise.
12730         * locale/programs/simple-hash.c: Likewise.
12731         * nscd/nscd.h: Likewise.
12732         * nss/makedb.c: Likewise.
12733         * sysdeps/generic/ldconfig.h: Likewise.
12734         * locale/programs/localedef.c: Remove xmalloc prototype.
12735         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12737 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12739         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12740         appropriate.
12742 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12744         * math/Makefile (tests): Add tst-CMPLX.
12745         * math/tst-CMPLX.c: New file.
12747         * math/complex.h (CMPLXL): Fix typo.
12749         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12750         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12751         GLIBC_2.16.
12752         * debug/tst-chk1.c: Add poll and ppoll tests.
12753         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12754         * include/sys/poll.h: Add hidden proto for ppoll.
12755         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12756         * sysdeps/mach/hurd/ppoll.c: Likewise.
12757         * io/ppoll.c: Likewise.
12758         * debug/poll_chk.c: New file.
12759         * debug/ppoll_chk.c: New file.
12760         * include/bits/poll2.h: New file.
12761         * io/bits/poll2.h: New file.
12763         [BZ #1350]
12764         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12766         * configure.in: static is always set to yes.  Remove.
12767         * config.make.in: Don't set build-static.
12768         * Makeconfig: Remove use of build-static.
12769         * dlfcn/Makefile: Likewise.
12770         * elf/Makefile: Likewise.
12771         * math/Makefile: Likewise.
12772         * misc/Makefile: Likewise.
12773         * nptl/Makefile: Likewise.
12774         * sysdeps/mach/hurd/Makefile: Likewise.
12776         * configure.in: PWD_P is not used anymore.
12777         * config.make.in: Remove PWD_P entry.
12779         * configure.in: Remove last remnants of RANLIB.
12780         No need to check for signed size_t anymore.
12781         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12782         and IA-64.
12783         Remove __builtin_expect test because we require at least gcc 3.4.
12784         * aclocal.m4: Likewise.
12786         * wcsmbs/mbrtoc16.c: Implement using towc function.
12787         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12788         * wcsmbs/wcsmbsload.c: Likewise.
12789         * iconv/gconv_simple.c: Likewise.
12790         * iconv/gconv_int.h: Likewise.
12791         * iconv/gconv_builtin.h: Likewise.
12792         * iconv/iconv_prog.c: Remove CHAR16 handling.
12794         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12796         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12798         * configure.in: Remove --with-elf and --enable-bounded options.
12799         Dont set base_machine for ia64.  More non-ELF conditions removed.
12800         Remove testing and setting of leading underscore information.
12801         * config.make.in (build-bounded): Set to no.
12802         * config.h.in: Remove NO_UNDERSCORES entry.
12803         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12804         them.
12805         * csu/start.c: Remove !NO_UNDERSCORE code.
12806         * locale/localeinfo.h: Likewise.
12807         * sysdeps/generic/machine-gmon.h: Likewise.
12808         * sysdeps/generic/sysdep.h: Likewise.
12809         * sysdeps/i386/sysdep.h: Likewise.
12810         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12811         * sysdeps/mach/sysdep.h: Likewise.
12812         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12813         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12814         * sysdeps/sh/sysdep.h: Likewise.
12815         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12816         * sysdeps/unix/i386/sysdep.S: Likewise.
12817         * sysdeps/unix/sparc/start.c: Likewise.
12818         * sysdeps/unix/sparc/sysdep.S: Likewise.
12819         * sysdeps/unix/sparc/sysdep.h: Likewise.
12820         * sysdeps/unix/start.c: Likewise.
12821         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12822         * sysdeps/x86_64/sysdep.h: Likewise.
12824 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12826         [BZ #13553]
12827         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12828         for non-gcc.
12829         * argp/argp-fmtstream.h: Use const instead __const.
12830         * argp/argp.h: Likewise.
12831         * assert/assert.h: Likewise.
12832         * bits/fenv.h: Likewise.
12833         * bits/sched.h: Likewise.
12834         * bits/sigset.h: Likewise.
12835         * bits/sigthread.h: Likewise.
12836         * catgets/nl_types.h: Likewise.
12837         * conform/data/pthread.h-data: Likewise.
12838         * crypt/crypt-private.h: Likewise.
12839         * crypt/crypt.h: Likewise.
12840         * crypt/crypt_util.c: Likewise.
12841         * ctype/ctype.h: Likewise.
12842         * debug/execinfo.h: Likewise.
12843         * debug/mbsnrtowcs_chk.c: Likewise.
12844         * debug/mbsrtowcs_chk.c: Likewise.
12845         * debug/wcsnrtombs_chk.c: Likewise.
12846         * debug/wcsrtombs_chk.c: Likewise.
12847         * debug/wcstombs_chk.c: Likewise.
12848         * dirent/dirent.h: Likewise.
12849         * dlfcn/dlfcn.h: Likewise.
12850         * elf/neededtest4.c: Likewise.
12851         * grp/grp.h: Likewise.
12852         * gshadow/gshadow.h: Likewise.
12853         * iconv/gconv.h: Likewise.
12854         * iconv/gconv_int.h: Likewise.
12855         * iconv/gconv_simple.c: Likewise.
12856         * iconv/iconv.h: Likewise.
12857         * iconv/loop.c: Likewise.
12858         * iconv/skeleton.c: Likewise.
12859         * include/aio.h: Likewise.
12860         * include/aliases.h: Likewise.
12861         * include/argz.h: Likewise.
12862         * include/arpa/inet.h: Likewise.
12863         * include/assert.h: Likewise.
12864         * include/dirent.h: Likewise.
12865         * include/dlfcn.h: Likewise.
12866         * include/execinfo.h: Likewise.
12867         * include/fcntl.h: Likewise.
12868         * include/fenv.h: Likewise.
12869         * include/glob.h: Likewise.
12870         * include/grp.h: Likewise.
12871         * include/libintl.h: Likewise.
12872         * include/mntent.h: Likewise.
12873         * include/netdb.h: Likewise.
12874         * include/pwd.h: Likewise.
12875         * include/rpc/netdb.h: Likewise.
12876         * include/sched.h: Likewise.
12877         * include/search.h: Likewise.
12878         * include/shadow.h: Likewise.
12879         * include/signal.h: Likewise.
12880         * include/stdio.h: Likewise.
12881         * include/stdlib.h: Likewise.
12882         * include/string.h: Likewise.
12883         * include/sys/socket.h: Likewise.
12884         * include/sys/stat.h: Likewise.
12885         * include/sys/statfs.h: Likewise.
12886         * include/sys/statvfs.h: Likewise.
12887         * include/sys/syslog.h: Likewise.
12888         * include/sys/time.h: Likewise.
12889         * include/sys/uio.h: Likewise.
12890         * include/time.h: Likewise.
12891         * include/unistd.h: Likewise.
12892         * include/utmp.h: Likewise.
12893         * include/wchar.h: Likewise.
12894         * include/wctype.h: Likewise.
12895         * inet/aliases.h: Likewise.
12896         * inet/arpa/inet.h: Likewise.
12897         * inet/netinet/ether.h: Likewise.
12898         * inet/netinet/in.h: Likewise.
12899         * intl/libintl.h: Likewise.
12900         * io/bits/fcntl2.h: Likewise.
12901         * io/fcntl.h: Likewise.
12902         * io/ftw.h: Likewise.
12903         * io/sys/poll.h: Likewise.
12904         * io/sys/stat.h: Likewise.
12905         * io/sys/statfs.h: Likewise.
12906         * io/sys/statvfs.h: Likewise.
12907         * io/utime.h: Likewise.
12908         * libio/bits/stdio.h: Likewise.
12909         * libio/bits/stdio2.h: Likewise.
12910         * libio/libio.h: Likewise.
12911         * libio/libioP.h: Likewise.
12912         * libio/stdio.h: Likewise.
12913         * locale/lc-ctype.c: Likewise.
12914         * locale/locale.h: Likewise.
12915         * login/utmp.h: Likewise.
12916         * malloc/arena.c: Likewise.
12917         * malloc/malloc.c: Likewise.
12918         * malloc/malloc.h: Likewise.
12919         * malloc/mcheck.c: Likewise.
12920         * malloc/mtrace.c: Likewise.
12921         * math/bits/mathcalls.h: Likewise.
12922         * math/fenv.h: Likewise.
12923         * math/math_private.h: Likewise.
12924         * misc/bits/error.h: Likewise.
12925         * misc/bits/syslog.h: Likewise.
12926         * misc/err.h: Likewise.
12927         * misc/error.h: Likewise.
12928         * misc/fstab.h: Likewise.
12929         * misc/mntent.h: Likewise.
12930         * misc/regexp.h: Likewise.
12931         * misc/search.h: Likewise.
12932         * misc/sgtty.h: Likewise.
12933         * misc/sys/mman.h: Likewise.
12934         * misc/sys/syslog.h: Likewise.
12935         * misc/sys/uio.h: Likewise.
12936         * misc/sys/xattr.h: Likewise.
12937         * misc/ttyent.h: Likewise.
12938         * nis/rpcsvc/ypclnt.h: Likewise.
12939         * nss/nss.h: Likewise.
12940         * posix/bits/unistd.h: Likewise.
12941         * posix/fnmatch.h: Likewise.
12942         * posix/glob.h: Likewise.
12943         * posix/sched.h: Likewise.
12944         * posix/spawn.h: Likewise.
12945         * posix/sys/wait.h: Likewise.
12946         * posix/unistd.h: Likewise.
12947         * posix/wordexp.h: Likewise.
12948         * pwd/pwd.h: Likewise.
12949         * resolv/netdb.h: Likewise.
12950         * resource/sys/resource.h: Likewise.
12951         * rt/aio.h: Likewise.
12952         * rt/bits/mqueue2.h: Likewise.
12953         * rt/mqueue.h: Likewise.
12954         * shadow/shadow.h: Likewise.
12955         * signal/signal.h: Likewise.
12956         * socket/send.c: Likewise.
12957         * socket/sendto.c: Likewise.
12958         * socket/sys/socket.h: Likewise.
12959         * stdio-common/printf.h: Likewise.
12960         * stdlib/bits/stdlib.h: Likewise.
12961         * stdlib/fmtmsg.h: Likewise.
12962         * stdlib/monetary.h: Likewise.
12963         * stdlib/stdlib.h: Likewise.
12964         * stdlib/ucontext.h: Likewise.
12965         * streams/stropts.h: Likewise.
12966         * string/argz.h: Likewise.
12967         * string/bits/string2.h: Likewise.
12968         * string/string.h: Likewise.
12969         * string/strings.h: Likewise.
12970         * sunrpc/rpc/auth.h: Likewise.
12971         * sunrpc/rpc/auth_des.h: Likewise.
12972         * sunrpc/rpc/clnt.h: Likewise.
12973         * sunrpc/rpc/netdb.h: Likewise.
12974         * sunrpc/rpc/pmap_clnt.h: Likewise.
12975         * sunrpc/rpc/xdr.h: Likewise.
12976         * sysdeps/generic/inttypes.h: Likewise.
12977         * sysdeps/generic/net/if.h: Likewise.
12978         * sysdeps/generic/sys/swap.h: Likewise.
12979         * sysdeps/gnu/net/if.h: Likewise.
12980         * sysdeps/gnu/utmpx.h: Likewise.
12981         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12982         * sysdeps/i386/i486/bits/string.h: Likewise.
12983         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12984         * sysdeps/s390/bits/string.h: Likewise.
12985         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12986         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12987         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12988         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12989         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12990         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12991         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12992         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12993         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12994         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12995         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12996         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12997         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12998         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12999         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13000         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13001         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13002         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13003         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13004         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13005         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13006         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13007         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13008         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13009         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13010         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13011         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13012         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13013         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13014         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13015         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13016         * sysvipc/sys/ipc.h: Likewise.
13017         * sysvipc/sys/msg.h: Likewise.
13018         * sysvipc/sys/sem.h: Likewise.
13019         * sysvipc/sys/shm.h: Likewise.
13020         * termios/termios.h: Likewise.
13021         * time/sys/time.h: Likewise.
13022         * time/time.h: Likewise.
13023         * wcsmbs/bits/wchar2.h: Likewise.
13024         * wcsmbs/uchar.h: Likewise.
13025         * wcsmbs/wchar.h: Likewise.
13026         * wctype/wctype.h: Likewise.
13028         [BZ #13551]
13029         * Makeconfig: Remove all but ELF support including AIX support.
13030         * Makerules: Likewise.
13031         * config.h.in: Likewise.
13032         * config.make.in: Likewise.
13033         * configure: Likewise.
13034         * configure.in: Likewise.
13035         * csu/Makefile: Likewise.
13036         * csu/version.c: Likewise.
13037         * debug/Makefile: Likewise.
13038         * dlfcn/Makefile: Likewise.
13039         * elf/Makefile: Likewise.
13040         * extra-lib.mk: Likewise.
13041         * iconv/Makefile: Likewise.
13042         * include/libc-symbols.h: Likewise.
13043         * include/shlib-compat.h: Likewise.
13044         * resolv/Makefile: Likewise.
13045         * resolv/res_libc.c: Likewise.
13046         * rt/Makefile: Likewise.
13047         * sysdeps/i386/asm-syntax.h: Likewise.
13048         * sysdeps/i386/sysdep.h: Likewise.
13049         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13050         * sysdeps/mach/sysdep.h: Likewise.
13051         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13052         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13053         * sysdeps/s390/asm-syntax.h: Likewise.
13054         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13055         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13056         * sysdeps/sh/sysdep.h: Likewise.
13057         * sysdeps/unix/sparc/sysdep.h: Likewise.
13058         * sysdeps/wordsize-32/divdi3.c: Likewise.
13059         * sysdeps/x86_64/sysdep.h: Likewise.
13061         * argp/Versions: Remove _argp_unlock_xxx.
13063         [BZ #13559]
13064         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13065         * abilist/libBrokenLocale.abilist: Likewise.
13066         * abilist/libanl.abilist: Likewise.
13067         * abilist/libc.abilist: Likewise.
13068         * abilist/libcrypt.abilist: Likewise.
13069         * abilist/libdl.abilist: Likewise.
13070         * abilist/libm.abilist: Likewise.
13071         * abilist/libnsl.abilist: Likewise.
13072         * abilist/libpthread.abilist: Likewise.
13073         * abilist/libresolv.abilist: Likewise.
13074         * abilist/librt.abilist: Likewise.
13075         * abilist/libthread_db.abilist: Likewise.
13076         * abilist/libutil.abilist: Likewise.
13077         * abilist/libnss_db.abilist: New file.
13079         * scripts/abilist.awk: Add support for indirect functions.
13081         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13083         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13085         * shlib-versions: Remove entries for ports architectures.
13087         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13088         files in ports.
13089         * elf/stackguard-macros.h: Remove support for IA-64.
13090         * elf/tst-auditmod1.c: Likewise.
13091         * sysdeps/generic/ldsodefs.h: Likewise.
13093         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13094         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13095         configure files.
13097         [BZ #13552]
13098         * configure.in: Remove --enable-omitfp support.
13099         * FAQ.in: Adjust.
13100         * config.make.in: Likewise.
13101         * Makeconfig: Likewise.
13102         * manual/install.texi: Likewise.
13104         In case anyone cares, the IA-64 architecture could move to ports.
13105         * sysdeps/ia64/*: Removed.
13106         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13107         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13109         [BZ #13555]
13110         * configure.in: Remove entries for unsupported architectures.
13112         [BZ #13533]
13113         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13114         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13115         routines.
13116         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13117         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13118         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13119         fall back to using wcrtomb.
13120         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13121         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13122         renaming.
13123         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13124         * wcsmbs/tst-c16c32-1.c: New file.
13126         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13127         local variable.
13129         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13131         * elf/tst-unique3.cc: Add explicit declaration of gets.
13132         * elf/tst-unique3lib.cc: Likewise.
13133         * elf/tst-unique3lib2.cc: Likewise.
13134         * elf/tst-unique4.cc: Likewise.
13136         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13138 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13140         [BZ #13566]
13141         * assert/assert.h (static_assert): Don't define for C++.
13142         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13143         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13145 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13147         * iconv/loop.c (single loop): Fix assertion in storing of
13148         remaining bytes.
13150         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13152 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13154         * posix/getconf.c: Update copyright year.
13155         * nss/getent.c: Likewise.
13156         * nss/makedb.c: Likewise.
13157         * iconv/iconvconfig.c: Likewise.
13158         * iconv/iconv_prog.c: Likewise.
13159         * elf/ldconfig.c: Likewise.
13160         * elf/pldd.c: Likewise.
13161         * elf/sotruss.ksh: Likewise.
13162         * catgets/gencat.c: Likewise.
13163         * csu/version.c: Likewise.
13164         * elf/ldd.bash.in: Likewise.
13165         * elf/sprof.c (print_version): Likewise.
13166         * locale/programs/locale.c: Likewise.
13167         * locale/programs/localedef.c: Likewise.
13168         * login/programs/pt_chown.c: Likewise.
13169         * nscd/nscd.c (print_version): Likewise.
13170         * debug/xtrace.sh: Likewise.
13171         * malloc/memusage.sh: Likewise.
13172         * malloc/mtrace.pl: Likewise.
13173         * debug/catchsegv.sh: Likewise.
13175 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13177         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13178         pure attribute.
13180 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13182         [BZ #13533]
13183         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13184         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13185         transformations.
13186         * iconv/gconv_int.h: Likewise.
13187         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13188         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13189         from libc for GLIBC_2.16.
13190         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13191         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13192         * wcsmbs/uchar.h: Really define mbstate_t.
13193         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13194         * wcsmbs/c16rtomb.c: New file.
13195         * wcsmbs/mbrtoc16.c: New file.
13196         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13197         for C/POSIX locale.
13198         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13199         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13201         * wcsmbs/wchar.h: Add missing __restrict.
13203 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13205         [BZ #13532]
13206         * time/Makefile (routines): Add timespec_get.
13207         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13208         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13209         timespec for ISO C11.
13210         * time/timespec_get.c: New file.
13211         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13212         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13214         [BZ #13531]
13215         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13216         * stdlib/stdlib.h: Declare aligned_alloc.
13217         * Versions.def: Add GLIBC_2.16 for libc.
13218         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13220         [BZ 13527]
13221         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13222         ISO C11.
13224         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13225         code.
13227         [BZ #13528]
13228         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13230         [BZ #13529]
13231         * assert/assert.h (static_assert): Define.
13233         * version.h: Update for 2.16 development version.
13235         [BZ #13526]
13236         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13237         _ISOC11_SOURCE.
13239         * version.h (RELEASE): Bump for 2.15 release.
13240         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13242         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13243         Patch by Marek Polacek <mpolacek@redhat.com>.
13245         * bits/byteswap.h: Protect long long constants with __extension__.
13246         * sysdeps/i386/bits/byteswap.h: Likewise.
13247         * sysdeps/ia64/bits/byteswap.h: Likewise.
13248         * sysdeps/s390/bits/byteswap.h: Likewise.
13249         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13251 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13253         [BZ #13540]
13254         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13255         destination buffer.
13256         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13258 2011-12-23  Marek Polacek  <polacek@redhat.com>
13260         * elf/dl-addr.c (determine_info): Add inline keyword.
13261         * elf/tst-auditmod4b.c (check_avx): Likewise.
13262         * elf/tst-auditmod6b.c (check_avx): Likewise.
13263         * elf/tst-auditmod6c.c (check_avx): Likewise.
13264         * elf/tst-auditmod7b.c (check_avx): Likewise.
13266 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13268         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13269         !__SSE_MATH__.
13271 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13273         [BZ #13540]
13274         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13275         processing for last bytes.
13277 2011-08-06  Bruno Haible  <bruno@clisp.org>
13279         [BZ #13061]
13280         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13281         U+0385, not to U+1FEE.
13283         [BZ #13062]
13284         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13285         entry for U+00A5 U+0301.
13287 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13289         [BZ #13166]
13290         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13291         buffer for the output is too small.
13293         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13294         optimization.
13296         [BZ #13185]
13297         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13298         SSE flags if possible.
13300 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13302         [BZ #13540]
13303         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13304         processing for last bytes.
13306 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13308         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13309         (syscall-list-default-options, syscall-list-default-condition)
13310         (syscall-list-includes): Define.
13311         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13312         list of ABIs and options and #if conditions for each ABI.  Do not
13313         handle common syscalls between ABIs specially.
13314         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13315         Remove.
13316         (syscall-list-variants, syscall-list-32bit-options)
13317         (syscall-list-32bit-condition, syscall-list-64bit-options)
13318         (syscall-list-64bit-condition): Define.
13319         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13320         (syscall-list-variants, syscall-list-32bit-options)
13321         (syscall-list-32bit-condition, syscall-list-64bit-options)
13322         (syscall-list-64bit-condition): Define.
13323         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13324         Remove.
13325         (syscall-list-variants, syscall-list-32bit-options)
13326         (syscall-list-32bit-condition, syscall-list-64bit-options)
13327         (syscall-list-64bit-condition): Define.
13328         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13329         Remove.
13330         (syscall-list-variants, syscall-list-32bit-options)
13331         (syscall-list-32bit-condition, syscall-list-64bit-options)
13332         (syscall-list-64bit-condition): Define.
13334 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13336         * locale/iso-639.def: Add brx entry.
13338         [BZ #13328]
13339         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13340         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13342         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13343         __feraiseexcept_renamed.
13345 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13347         [BZ #13538]
13348         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13349         EPOLLET with unsigned values.
13350         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13351         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13353         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13354         to large cancellation.
13355         * math/s_cacoshf.c: Likewise.
13356         * math/s_cacoshl.c: Likewise.
13358 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13360         [BZ #13305]
13361         [BZ #12786]
13362         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13363         * math/s_cacoshf.c: Likewise.
13364         * math/s_cacoshl.c: Likewise.
13366 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13368         [BZ #13439]
13369         * iconv/gconv.h: Define __GCONV_SWAP.
13370         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13371         * iconvdata/utf-16.c: Likewise.
13372         * iconvdata/utf-32.c: Likewise.
13374 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13376         [BZ #13524]
13377         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13378         numerator after shifting it by one limb.
13380 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13382         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13383         under [__USE_EXTERN_INLINES].
13385 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13387         [BZ #13446]
13388         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13390 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13392         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13393         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13394         optimized code.
13395         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13396         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13397         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13398         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13399         for strncasecmp/strncasecmp_l compilation.
13400         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13401         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13403 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13405         [BZ #13484]
13406         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13407         of __asm__.
13409 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13411         [BZ #13506]
13412         * time/tzfile.c (__tzfile_read): Check values from file header.
13414 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13416         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13417         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13418         * powerpc/powerpc32/dl-start.S: Likewise.
13419         * powerpc/powerpc32/elf/start.S: Likewise.
13420         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13421         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13422         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13423         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13424         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13425         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13426         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13427         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13428         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13429         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13430         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13431         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13432         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13433         * powerpc/powerpc32/memset.S: Likewise.
13434         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13435         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13436         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13437         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13438         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13439         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13440         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13441         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13442         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13443         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13444         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13445         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13446         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13448 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13450         * math/libm-test.inc: Added more nearbyint tests.
13451         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13452         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13453         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13454         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13456 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13458         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13459         FD_CLOEXEC.
13461 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13463         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13464         Add wcscpy-ssse3 wcscpy-c.
13465         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13466         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13467         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13468         * sysdeps/x86_64/wcschr.S: New file.
13469         * sysdeps/x86_64/wcsrchr.S: New file.
13470         * string/test-strcmp.c: Remove checking of wcscmp function for
13471         wrong alignments.
13472         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13473         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13474         wcsrchr-sse2 wcsrchr-c.
13475         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13476         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13477         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13478         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13479         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13480         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13481         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13482         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13483         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13484         * wcsmbc/wcschr.c (WCSCHR): New macro.
13486 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13488         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13489         * wcsmbs/test-wcsrchr.c: New file.
13490         * string/test-strrchr.c: Add wcsrchr support.
13491         (WIDE): New macro.
13492         * wcsmbs/test-wcscpy.c: New file.
13493         * string/test-strcpy.c: Add wcscpy support.
13494         (WIDE): New macro.
13496 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13498         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13499         the inner loop.
13501 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13503         [BZ #13472]
13504         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13506 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13508         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13509         Minor optimizations.
13511         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13512         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13513         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13515 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13517         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13518         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13519         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13520         for gcc to avoid warnings.
13521         * inet/Makefile (tests): Add tst-checks.
13522         * inet/tst-checks.c: New file.
13524         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13525         warning.
13527         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13528         __wmemcmp_sse2.
13530         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13531         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13533         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13535 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13537         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13538         problem.
13540         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13542 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13544         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13545         conditional on GCC version.
13546         (__arch_compare_and_exchange_val_8_acq)
13547         (__arch_compare_and_exchange_val_16_acq)
13548         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13549         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13550         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13552 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13554         * sysdeps/sh/backtrace.c: New file.
13556 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13558         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13559         parenthesis.
13561 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13563         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13564         falling back to utime.
13566 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13568         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13569         expectations for float.
13571 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13573         * locale/weight.h (findidx): Add parameter len.
13574         * locale/weightwc.h (findidx): Likewise.
13575         * posix/fnmatch_loop.c (FCT): Adjust caller.
13576         * posix/regcomp.c (build_equiv_class): Likewise.
13577         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13578         * posix/regexec.c (check_node_accept_bytes): Likewise.
13579         * string/strcoll_l.c (STRCOLL): Likewise.
13580         * string/strxfrm_l.c (STRXFRM): Likewise.
13582 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13584         * Makefile.in: Remove CVSOPT handling.
13585         * configure.in: Remove use of AC_REVISION.
13586         * iconvdata/Makefile (distribute): No need to filter out CVS.
13587         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13588         handling.
13590 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13592         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13593         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13594         [USE_AS_STRNCASECMP_L]: Likewise.
13595         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13596         NO_TLS_DIRECT_SEG_REFS.
13597         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13598         Fix argument offsets for non-PIC.
13599         [USE_AS_STRNCASECMP_L]: Likewise.
13600         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13601         NO_TLS_DIRECT_SEG_REFS.
13603 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13605         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13606         O_CLOEXEC.
13607         * locale/loadlocale.c (_nl_load_locale): Likewise.
13609 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13611         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13612         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13613         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13614         (SYSCALL_GETTIME): Set errno on error.
13616         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13617         count references to noai6ai_cached.
13619 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13621         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13623         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13624         FD_CLOEXEC for /proc/self/maps.
13626         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13627         FD_CLOEXEC for /proc/meminfo.
13629         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13630         gai.conf.
13632         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13633         FD_CLOEXEC for given file.
13635         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13637         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13638         FD_CLOEXEC for /etc/hosts.
13639         (_gethtent): Likewise.
13641         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13643         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13644         cancellation and set FD_CLOEXEC for /etc/netgroup.
13646         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13647         reading /etc/publickey.
13649         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13650         allow cancellation when reading /etc/group.
13652         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13653         cancellation.
13654         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13656         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13657         when using data file.
13659         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13661         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13662         (write_nis_obj): Use "c" and "e" in fopen.
13664         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13666         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13668         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13670         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13672         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13673         locale.alias.
13675         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13677         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13679         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13681         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13682         file parsing and set FD_CLOEXEC.
13684 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13686         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13688 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13690         * malloc/arena.c (arena_get2): Don't call reused_arena when
13691         _int_new_arena failed.
13693 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13695         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13696         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13697         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13698         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13699         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13700         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13701         to compile strcasecmp and strncasecmp.
13702         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13703         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13705         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13707 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13709         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13710         locale-defines.sym to gen-as-const-headers.
13711         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13712         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13713         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13714         to compile strcasecmp and strncasecmp.
13715         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13716         strcasecmp_l and strncasecmp_l.
13717         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13718         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13719         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13720         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13721         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13722         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13723         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13724         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13725         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13726         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13727         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13729 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13731         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13732         result of SYSDEP_GETTIME_CPU to retval.
13733         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13734         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13736         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13737         variable.
13739         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13740         mantissa words.
13741         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13743         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13744         from unused variable.
13746         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13747         DWARF definitions.
13748         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13749         for assembling.
13751         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13752         over namespaces.
13754         * sunrpc/rpc_prot.c (rejected): Fix case value.
13756         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13757         unsigned long long int to avoid warnings in shift.
13759         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13760         of use of trans.
13761         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13762         variable tmp.
13764         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13765         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13766         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13768         * nis/nis_table.c (nis_list): Use variable of correct type for
13769         result of __follow_path call.
13771 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13773         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13774         of math functions ceil, trunc, floor, round, and sqrt, when
13775         avaliable on the platform.
13776         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13777         name clash.
13778         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13779         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13780         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13782 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13784         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13785         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13787 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13789         * include/unistd.h: Fix __readlink return type.
13790         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13792 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13794         * stdlib/ucontext.h: Undo last change for makecontext.
13796 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13798         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13800         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13801         * setjmp/setjmp.h: Mark functions as non-leaf.
13802         * setjmp/bits/setjmp2.h: Likewise.
13803         * stdlib/ucontext.h: Likewise.
13805 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13807         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13808         (reused_arena): Don't check arena limit.
13809         (arena_get2): Atomically check arena limit.
13811 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13813         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13814         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13816         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13817         instructions.
13819 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13821         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13822         handler when locking.
13824         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13825         Fix size of allocated buffer.
13827 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13829         [BZ #10103]
13830         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13831         declarations for long double functions.
13832         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13834         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13836 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13838         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13839         installed.
13841         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13842         is disabled.
13844 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13846         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13848 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13850         * include/alloca.h (stackinfo_alloca_round): Define.
13851         (extend_alloca): Use it.
13852         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13853         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13854         here.
13856         * scripts/check-local-headers.sh: Ignore libaudit.h.
13858         * nscd/Makefile (extra-objs): Make recursively expanded.
13860 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13862         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13863         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13865         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13866         * posix/tst-rfc3484-2.c: Likewise.
13867         * posix/tst-rfc3484-3.c: Likewise.
13869         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13870         process_vm_writev.
13871         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13872         process_vm_writev.
13873         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13874         process_vm_writev from libc using GLIBC_2.15 version.
13876         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13878 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13880         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13881         stack usage.
13883 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13885         [BZ #13367]
13886         * nss/getent.c (initgroups_keys): Show error message in case no group
13887         names are given.
13889         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13890         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13891         __bump_nl_timestamp.
13892         * nscd/connections (nscd_init): When host database is served open
13893         netlink socket and request notification about configuration changes.
13894         (main_loop_poll): Track netlink file descriptor and bump timestamp
13895         in case data becomes available.
13896         (main_loop_epoll): Likewise.
13897         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13898         (database_pers_head): Add extra_data fileds.
13899         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13900         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13901         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13902         Adjust caller.
13903         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13904         in6ai data, call __free_in6ai.
13905         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13906         Add -DHAVE_NETLINK.
13907         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13908         interface information.  Reuse previous data if netlink timestamp
13909         is not changed.
13910         (__bump_nl_timestamp): New function.
13911         (__free_in6ai): New function.
13913 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13915         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13916         close_not_cancel_no_status here.
13917         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13919 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13921         [BZ #13276]
13922         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13923         return value.
13925         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13926         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13927         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13929 2011-07-03  Andreas Jaeger  <aj@suse.de>
13931         [BZ #10709]
13932         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13933         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13934         * math/libm-test.inc (sin_test): Add test case.
13936 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13938         [BZ #13337]
13939         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13940         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13942         * elf/chroot_canon.c (chroot_canon): Cleanups.
13944         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13946         [BZ #13335]
13947         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13948         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13950         * string/test-strchr.c: Make usable for strchrnul testing.
13951         * string/test-strchrnul.c: New file.
13952         * string/Makefile (strop-tests): Add strchrnul.
13954         * po/it.po: Update from translation team.
13955         * po/es.po: Likewise.
13957 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13959         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13960         the three constants needed as parameters.  Drop the others.
13961         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13962         __m128i_strloadu_tolower.
13963         Create and initialize variable zero and use it in all the places
13964         where _mm_setzero_si128 was used.
13966         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13967         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13968         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13969         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13970         anymore.
13971         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13972         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13973         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13974         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13975         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13976         __mpranred, __mptan.
13977         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13978         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13979         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13980         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13981         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13982         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13983         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13984         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13985         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13987 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13989         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13990         redefine if SHARED.
13991         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13993         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13994         wide char related routines to wcsmbs subdir.
13996 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13998         [BZ #13344]
13999         * misc/sys/cdefs.h (__THROWNL): Define.
14000         * posix/unistd.h: Use __THREADNL instead of __THREAD
14001         for memory synchronization functions.
14003 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14005         [BZ #13349]
14006         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14007         doesn't exist.
14008         * manual/stdio.texi (Obstack Streams): Node removed.
14010 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14012         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14013         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14014         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14016         * math/math_private.h (math_force_eval): Allow non-addressable
14017         arguments.
14018         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14020 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14022         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14023         file is not needed.
14025         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14026         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14027         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14028         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14029         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14030         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14031         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14032         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14033         Add AVX variants.
14034         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14035         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14036         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14037         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14038         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14039         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14040         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14041         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14042         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14043         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14044         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14045         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14046         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14047         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14048         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14049         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14050         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14051         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14052         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14054         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14055         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14057         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14058         place.  Use VEX encoding when compiling for AVX.
14060 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14062         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14063         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14065         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14067 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14069         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14070         useless if() expression.
14071         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14072         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14073         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14074         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14075         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14076         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14077         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14078         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14079         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14080         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14081         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14082         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14083         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14084         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14085         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14086         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14087         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14088         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14089         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14091         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14093 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14095         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14096         condition.
14097         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14099 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14101         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14102         .text section.  Avoid duplicate constants.
14103         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14104         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14105         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14106         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14107         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14108         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14109         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14110         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14111         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14112         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14113         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14114         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14115         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14116         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14117         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14118         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14119         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14120         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14121         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14122         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14123         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14124         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14125         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14126         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14127         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14128         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14129         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14130         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14131         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14132         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14133         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14134         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14135         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14136         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14137         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14138         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14139         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14140         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14141         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14142         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14143         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14144         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14145         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14146         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14147         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14149 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14151         * sysdeps/x86_64/dla.h: Move to ...
14152         * sysdeps/x86_64/fpu/dla.h: ...here.
14153         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14154         situations.  Use __builtin_fma only for gcc 4.6 and up.
14156         * config.make.in: Add have-mfma4 entry.
14157         * configure.in: Substitute libc_cv_cc_fma4.
14158         * math/Makefile (dbl-only-routines): Add sincostab.
14159         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14160         Use __sincostab not sincos.
14161         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14162         name is a macro.
14163         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14164         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14165         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14166         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14167         using __copysign.
14168         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14169         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14170         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14171         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14172         and __inv.
14173         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14174         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14175         __copysign.
14176         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14177         define aliases when function name is a macro.
14178         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14179         sysdeps/ieee754/dbl-64/sincos.tbl.
14180         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14181         fma4-enabled routines.
14182         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14183         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14184         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14185         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14186         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14187         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14188         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14189         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14190         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14191         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14192         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14193         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14194         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14195         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14196         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14197         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14198         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14199         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14200         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14201         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14202         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14203         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14204         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14205         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14206         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14207         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14208         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14209         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14210         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14211         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14213         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14214         rename.
14215         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14216         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14217         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14218         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14219         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14220         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14221         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14222         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14224 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14226         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14228 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14230         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14232         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14233         prediction.
14234         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14236         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14237         Remove unused variable magic_bits.
14238         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14240         * string/strnlen.c: Define and use STRNLEN macro.
14241         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14242         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14243         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14244         * wcsmbs/wcslen.c: Define and use WCSLEN.
14245         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14246         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14247         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14248         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14249         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14250         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14251         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14253 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14255         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14256         strnlen-sse2-no-bsf.
14257         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14258         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14259         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14260         Add strnlen support.
14261         (USE_AS_STRNLEN): New macro.
14262         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14263         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14264         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14265         * sysdeps/x86_64/wcslen.S: New file.
14267 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14269         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14270         XMM-moves are used for copying on small sizes.
14272 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14274         * wcsmbs/Makefile (strop-tests): Add wcschr.
14275         * wcsmbs/test-wcschr.c: New file.
14276         * string/test-strchr.c: Update.
14277         Add wcschr support.
14278         (WIDE): New macro.
14280 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14282         * wcsmbs/Makefile (strop-tests): Add wcslen.
14283         * wcsmbs/test-wcslen.c: New file.
14284         * string/test-strlen.c: Update.
14285         Add wcslen support.
14286         (WIDE): New macro.
14288 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14290         * po/it.po: Update from translation team.
14292 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14294         * sysdeps/x86_64/wcscmp.S: Update.
14295         Fix wrong comparison semantics.
14296         wcscmp shall use signed comparison not unsigned.
14297         Don't use substraction to avoid overflow bug.
14298         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14299         * wcsmbc/wcscmp.c: Likewise.
14300         * string/test-strcmp.c: Likewise.
14301         Add new tests to check cases with negative values.
14303 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14305         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14306         * sysdeps/x86_64/dla.h: ...here.  New file.
14307         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14308         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14309         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14310         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14311         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14312         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14313         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14314         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14315         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14317 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14319         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14320         __ynl_finite aliases.
14322 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14324         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14326         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14327         define DLA_FMA.
14328         [DLA_FMA] (EMULV): Use DLA_FMA.
14329         [DLA_FMA] (MUL12): Use EMULV.
14330         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14331         that are not needed.
14332         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14333         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14334         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14335         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14336         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14337         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14338         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14340 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14342         * math/s_nan.c: Undef __nan.
14343         * math/s_nanf.c: Undef __nanf.
14344         * math/s_nanl.c: Undef __nanl.
14345         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14346         "math_private.h".
14348 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14350         * math/s_catan.c: Add branch predictions.
14351         * math/s_catanf.c: Likewise.
14352         * math/s_catanh.c: Likewise.
14353         * math/s_catanhf.c: Likewise.
14354         * math/s_catanhl.c: Likewise.
14355         * math/s_catanl.c: Likewise.
14356         * math/s_cexp.c: Likewise.
14357         * math/s_cexpf.c: Likewise.
14358         * math/s_cexpl.c: Likewise.
14359         * math/s_clog.c: Likewise.
14360         * math/s_clog10.c: Likewise.
14361         * math/s_clog10f.c: Likewise.
14362         * math/s_clog10l.c: Likewise.
14363         * math/s_clogf.c: Likewise.
14364         * math/s_clogl.c: Likewise.
14365         * math/s_csqrt.c: Likewise.
14366         * math/s_csqrtf.c: Likewise.
14367         * math/s_csqrtl.c: Likewise.
14368         * math/s_ctanf.c: Likewise.
14369         * math/s_ctanh.c: Likewise.
14370         * math/s_ctanhf.c: Likewise.
14371         * math/s_ctanhl.c: Likewise.
14372         * math/s_ctanl.c: Likewise.
14374         * math/math_private.h: Define __nan, __nanf, __nanl.
14375         * math/s_cacosh.c: Include <math_private.h>.
14376         * math/s_cacoshl.c: Likewise.
14377         * math/s_casinh.c: Likewise.
14378         * math/s_casinhf.c: Likewise.
14379         * math/s_casinhl.c: Likewise.
14380         * math/s_ccos.c: Rely entire on ccosh.
14381         * math/s_ccosf.c: Rely entire on ccoshf.
14382         * math/s_ccosl.c: Rely entirely on ccoshl.
14383         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14384         Remove tests for FE_INVALID.
14385         * math/s_ccoshf.c: Likewise.
14386         * math/s_ccoshl.c: Likewise.
14387         * math/s_csin.c: Likewise.
14388         * math/s_csinf.c: Likewise.
14389         * math/s_csinh.c Likewise.
14390         * math/s_csinhf.c: Likewise.
14391         * math/s_csinhl.c: Likewise.
14392         * math/s_csinl.c: Likewise.
14393         * math/s_ctan.c: Likewise.
14394         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14395         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14396         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14398 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14400         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14401         compilation problems.
14403         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14404         __builtin_expect.
14406 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14408         * sysdeps/i386/configure.in: Test for -mfma4 option.
14409         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14410         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14411         COMMON_CPUID_INDEX_80000001.
14412         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14413         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14414         use it if FMA3 is not supported.
14415         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14417         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14418         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14420 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14422         [BZ #12892]
14423         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14424         it would create a cycle with a link time dependency.
14426 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14428         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14429         instruction.
14430         * string/Makefile (strop-tests): Add rawmemchr.
14431         * string/test-rawmemchr.c: New file.
14433         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14434         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14435         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14436         when compiling str{,n}casecmp and when AVX is available.  Hook up
14437         new optimized code in initializers.
14439 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14441         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14442         __feraiseexcept instead of feraiseexcept.
14444 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14446         * math/math_private.h: Define defaults for libc_fetestexcept and
14447         libc_feupdateenv.
14448         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14449         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14450         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14451         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14452         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14453         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14454         libc_fetestexcept and libc_feupdateenv.
14456         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14457         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14458         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14459         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14460         libc_feholdexcept_setround.
14462         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14463         Add s_nearbyint-c and s_nearbyintf-c.
14464         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14465         nearbyintf inlines.
14466         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14467         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14468         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14469         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14471         * math/math_private.h: Define defaults for libc_fegetround,
14472         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14473         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14474         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14475         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14476         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14477         standard functions.
14478         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14479         Remove comments and hacks for old compiler versions.
14480         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14481         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14482         libc_feholdexceptl.
14484 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14486         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14487         (__feraiseexcept_renamed): Add __NTH.
14488         (feraiseexcept): Add __NTH.  Rename local variables to fix
14489         namespace violations.
14491 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14493         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14495         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14497         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14498         recently added interfaces.
14499         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14501         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14502         about macro parameter expansion.
14504         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14505         __NO_MATH_INLINES is defined.  Cleanups.
14507         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14508         and __floorf is target has SSE4.1.
14509         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14510         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14511         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14512         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14514         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14515         name.
14516         (floorf): Likewise.
14518         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14520 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14522         * misc/sys/cdefs.h: Fix last change.
14524         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14525         database lookup.
14527 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14529         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14531         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14532         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14533         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14534         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14535         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14536         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14537         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14538         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14539         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14540         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14541         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14542         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14543         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14544         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14545         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14546         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14547         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14548         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14549         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14550         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14551         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14552         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14554         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14555         ceil, ceilf, floor, floorf.
14557         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14558         Perform IRELATIVE relocations last.
14560         * elf/do-rel.h: Add another parameter nrelative, replacing the
14561         local variable with the same name.  Change name of the function
14562         to end in Rel or Rela (uppercase).
14563         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14564         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14565         elf_dynamic_do_##reloc function.
14567 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14569         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14570         is sufficient, at least on modern CPUs.
14572         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14574         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14575         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14577         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14578         __expl_finite.
14579         * math/bits/math-finite.h: Add entries for exp.
14580         * math/e_expl.c: Add __*_finite alias.
14581         * sysdeps/i386/fpu/e_exp.S: Likewise.
14582         * sysdeps/i386/fpu/e_expf.S: Likewise.
14583         * sysdeps/i386/fpu/e_expl.c: Likewise.
14584         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14585         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14586         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14587         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14588         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14589         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14590         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14592         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14593         is sufficient, at least on modern CPUs.
14595         * ctype/ctype-info.c (__ctype_init): Define.
14596         * include/ctype.h (__ctype_init): Declare.
14597         (__ctype_b_loc): The variable is always initialized.
14598         (__ctype_toupper_loc): Likewise.
14599         (__ctype_tolower_loc): Likewise.
14600         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14601         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14603 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14605         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14607         * configure.in: Also look in $cxxmachine/include for C++ system
14608         headers.
14610 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14612         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14613         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14614         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14615         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14616         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14617         (USE_AS_WMEMCMP): New macro.
14618         Fixing indents.
14619         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14620         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14621         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14622         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14623         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14624         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14625         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14626         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14627         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14628         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14629         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14630         (USE_AS_WMEMCMP): New macro.
14631         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14632         * sysdeps/string/test-memcmp.c: Update.
14633         Fix simple_wmemcmp.
14634         Add new tests.
14635         * wcsmbs/wmemcmp.c: Update.
14636         (WMEMCMP): New macro.
14637         Fix overflow bug.
14639 2011-10-12  Andreas Jaeger  <aj@suse.de>
14641         [BZ #13268]
14642         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14644 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14646         * libio/iofwide.c (do_length): Avoid warning.
14648         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14650 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14652         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14654         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14655         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14656         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14657         * sysdeps/i386/i686/fpu/e_log.S: New file.
14658         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14659         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14661         * ctype/ctype.h: Add support for inlined isXXX functions when
14662         compiling C++ code.
14664 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14666         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14668         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14670 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14672         [BZ #13291]
14673         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14675 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14677         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14678         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14679         feraiseexcept.
14681         * sysdeps/x86_64/memrchr.S: Check for zero size.
14683         * string/stratcliff.c: Add memrchr tests.
14685 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14687         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14688         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14689         rawmemchr-sse2 rawmemchr-sse2-bsf.
14690         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14691         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14692         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14693         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14694         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14695         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14696         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14697         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14698         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14699         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14700         * string/memrchr.c (MEMRCHR): New macro.
14702 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14704         Add integration with gcc's -ffinite-math-only and optimize wrapper
14705         functions in libm.
14706         * Versions.def: Define GLIBC_2.15 version for libm.
14707         * math/Makefile (headers): Add bits/math-finite.h.
14708         * math/bits/math-finite.h: New file.
14709         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14710         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14711         * math/e_acoshl.c: Add __*_finite alias.
14712         * math/e_acosl.c: Likewise.
14713         * math/e_asinl.c: Likewise.
14714         * math/e_atan2l.c: Likewise.
14715         * math/e_atanhl.c: Likewise.
14716         * math/e_coshl.c: Likewise.
14717         * math/e_exp10.c: Likewise.
14718         * math/e_exp10f.c: Likewise.
14719         * math/e_exp10l.c: Likewise.
14720         * math/e_exp2l.c: Likewise.
14721         * math/e_fmodl.c: Likewise.
14722         * math/e_gammal_r.c: Likewise.
14723         * math/e_hypotl.c: Likewise.
14724         * math/e_j0l.c: Likewise.
14725         * math/e_j1l.c: Likewise.
14726         * math/e_jnl.c: Likewise.
14727         * math/e_lgammal_r.c: Likewise.
14728         * math/e_log10l.c: Likewise.
14729         * math/e_log2l.c: Likewise.
14730         * math/e_logl.c: Likewise.
14731         * math/e_powl.c: Likewise.
14732         * math/e_sinhl.c: Likewise.
14733         * math/e_sqrtl.c: Likewise.
14734         * math/e_scalb.c: Completely rewritten and optimized.
14735         * math/e_scalbf.c: Likewise.
14736         * math/e_scalbl.c: Likewise.
14737         * math/w_acos.c: Likewise.
14738         * math/w_acosf.c: Likewise.
14739         * math/w_acosl.c: Likewise.
14740         * math/w_acosh.c: Likewise.
14741         * math/w_acoshf.c: Likewise.
14742         * math/w_acoshl.c: Likewise.
14743         * math/w_asin.c: Likewise.
14744         * math/w_asinf.c: Likewise.
14745         * math/w_asinl.c: Likewise.
14746         * math/w_atan2.c: Likewise.
14747         * math/w_atan2f.c: Likewise.
14748         * math/w_atan2l.c: Likewise.
14749         * math/w_atanh.c: Likewise.
14750         * math/w_atanhf.c: Likewise.
14751         * math/w_atanhl.c: Likewise.
14752         * math/w_exp10.c: Likewise.
14753         * math/w_exp10f.c: Likewise.
14754         * math/w_exp10l.c: Likewise.
14755         * math/w_fmod.c: Likewise.
14756         * math/w_fmodf.c: Likewise.
14757         * math/w_fmodl.c: Likewise.
14758         * math/w_j0.c: Likewise.
14759         * math/w_j0f.c: Likewise.
14760         * math/w_j0l.c: Likewise.
14761         * math/w_j1.c: Likewise.
14762         * math/w_j1f.c: Likewise.
14763         * math/w_j1l.c: Likewise.
14764         * math/w_jn.c: Likewise.
14765         * math/w_jnf.c: Likewise.
14766         * math/w_log.c: Likewise.
14767         * math/w_logf.c: Likewise.
14768         * math/w_logl.c: Likewise.
14769         * math/w_log10.c: Likewise.
14770         * math/w_log10f.c: Likewise.
14771         * math/w_log10l.c: Likewise.
14772         * math/w_log2.c: Likewise.
14773         * math/w_log2f.c: Likewise.
14774         * math/w_log2l.c: Likewise.
14775         * math/w_pow.c: Likewise.
14776         * math/w_powf.c: Likewise.
14777         * math/w_powl.c: Likewise.
14778         * math/w_remainder.c: Likewise.
14779         * math/w_remainderf.c: Likewise.
14780         * math/w_remainderl.c: Likewise.
14781         * math/w_scalb.c: Likewise.
14782         * math/w_scalbf.c: Likewise.
14783         * math/w_scalbl.c: Likewise.
14784         * math/w_sqrt.c: Likewise.
14785         * math/w_sqrtf.c: Likewise.
14786         * math/w_sqrtl.c: Likewise.
14787         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14788         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14789         used.
14790         * math/math_private.h: Declare __kernel_standard_f.
14791         * math/w_cosh.c: Remove cruft and optimize a bit.
14792         * math/w_coshf.c: Likewise.
14793         * math/w_coshl.c: Likewise.
14794         * math/w_exp2.c: Likewise.
14795         * math/w_exp2f.c: Likewise.
14796         * math/w_exp2l.c: Likewise.
14797         * math/w_hypot.c: Likewise.
14798         * math/w_hypotf.c: Likewise.
14799         * math/w_hypotl.c: Likewise.
14800         * math/w_lgamma.c: Likewise.
14801         * math/w_lgamma_r.c: Likewise.
14802         * math/w_lgammaf.c: Likewise.
14803         * math/w_lgammaf_r.c: Likewise.
14804         * math/w_lgammal.c: Likewise.
14805         * math/w_lgammal_r.c: Likewise.
14806         * math/w_sinh.c: Likewise.
14807         * math/w_sinhf.c: Likewise.
14808         * math/w_sinhl.c: Likewise.
14809         * math/w_tgamma.c: Likewise.
14810         * math/w_tgammaf.c: Likewise.
14811         * math/w_tgammal.c: Likewise.
14812         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14813         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14814         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14815         Minor optimizations.  Pretty printing.  Remove cruft.
14816         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14817         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14818         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14819         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14820         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14821         * sysdeps/i386/fpu/e_asin.S: Likewise.
14822         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14823         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14824         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14825         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14826         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14827         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14828         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14829         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14830         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14831         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14832         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14833         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14834         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14835         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14836         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14837         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14838         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14839         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14840         * sysdeps/i386/fpu/e_log.S: Likewise.
14841         * sysdeps/i386/fpu/e_log10.S: Likewise.
14842         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14843         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14844         * sysdeps/i386/fpu/e_log2.S: Likewise.
14845         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14846         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14847         * sysdeps/i386/fpu/e_logf.S: Likewise.
14848         * sysdeps/i386/fpu/e_logl.S: Likewise.
14849         * sysdeps/i386/fpu/e_pow.S: Likewise.
14850         * sysdeps/i386/fpu/e_powf.S: Likewise.
14851         * sysdeps/i386/fpu/e_powl.S: Likewise.
14852         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14853         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14854         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14855         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14856         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14857         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14858         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14859         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14860         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14861         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14862         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14863         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14864         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14865         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14866         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14867         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14868         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14869         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14870         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14871         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14872         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14873         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14874         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14875         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14876         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14877         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14878         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14879         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14880         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14881         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14882         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14883         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14884         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14885         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14886         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14887         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14888         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14889         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14890         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14891         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14892         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14893         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14894         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14895         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14896         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14897         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14898         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14899         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14900         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14901         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14902         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14903         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14904         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14905         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14906         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14907         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14908         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14909         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14910         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14911         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14912         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14913         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14914         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14915         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14916         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14917         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14918         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14919         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14920         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14921         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14922         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14923         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14924         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14925         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14926         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14927         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14928         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14929         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14930         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14931         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14932         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14933         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14934         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14935         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14936         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14937         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14938         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14939         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14940         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14941         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14942         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14943         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14944         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14945         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14946         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14947         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14948         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14949         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14950         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14951         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14952         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14953         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14954         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14955         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14956         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14957         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14958         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14959         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14960         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14961         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14962         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14963         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14964         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14965         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14966         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14967         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14968         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14969         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14970         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14971         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14972         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14973         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14974         (__isnanf): Likewise.
14975         (__isinf_ns): Likewise.
14976         (__isinf_nsf): Likewise.
14977         (__finite): Likewise.
14978         (__finitef): Likewise.
14979         (__ieee754_sqrt): Define as macro.
14980         (__ieee754_sqrtf): Define as macro.
14981         (__ieee754_sqrtl): Define as macro.
14982         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14983         inlined copy.
14984         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14985         __FINITE_MATH_ONLY__ consistent.
14986         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14988 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14990         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14991         of rawmemchr.
14993         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14995 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14997         * po/ja.po: Update from translation team.
14999 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15001         * locale/programs/locarchive.c (prepare_address_space): New function.
15002         (create_archive, enlarge_archive, open_archive): Use it.
15004         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15005         inside [SHARED], where it is used.
15007         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15009         * nss/getent.c (netgroup_keys): Remove unused variable.
15010         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15012 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15014         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15015         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15016         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15017         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15018         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15019         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15020         * math/Makefile (libm-calls): Add s_isinf_ns.
15021         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15022         * math/multc3.c: Likewise.
15023         * math/s_casin.c: Likewise.
15024         * math/s_casinf.c: Likewise.
15025         * math/s_casinl.c: Likewise.
15026         * math/s_ccos.c: Likewise.
15027         * math/s_ccosf.c: Likewise.
15028         * math/s_ccosl.c: Likewise.
15029         * math/s_ctan.c: Likewise.
15030         * math/s_ctanf.c: Likewise.
15031         * math/s_ctanh.c: Likewise.
15032         * math/s_ctanhf.c: Likewise.
15033         * math/s_ctanhl.c: Likewise.
15034         * math/s_ctanl.c: Likewise.
15035         * math/w_fmod.c: Likewise.
15036         * math/w_fmodf.c: Likewise.
15037         * math/w_fmodl.c: Likewise.
15038         * math/w_remainder.c: Likewise.
15039         * math/w_remainderf.c: Likewise.
15040         * math/w_remainderl.c: Likewise.
15041         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15042         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15043         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15044         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15045         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15046         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15047         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15048         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15050         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15051         of the number.
15052         * stdio-common/printf_fphex.c: Likewise.
15053         * stdio-common/printf_size.c: Likewise.
15055         * math/e_exp10.c: Include math_private.h using <...> not "...".
15056         * math/e_exp10f.c: Likewise.
15057         * math/e_exp10l.c: Likewise.
15058         * math/e_exp2l.c: Likewise.
15059         * math/e_j0l.c: Likewise.
15060         * math/e_j1l.c: Likewise.
15061         * math/e_jnl.c: Likewise.
15062         * math/e_lgammal_r.c: Likewise.
15063         * math/e_rem_pio2l.c: Likewise.
15064         * math/e_scalb.c: Likewise.
15065         * math/e_scalbf.c: Likewise.
15066         * math/e_scalbl.c: Likewise.
15067         * math/k_cosl.c: Likewise.
15068         * math/k_sinl.c: Likewise.
15069         * math/k_tanl.c: Likewise.
15070         * math/s_cacoshf.c: Likewise.
15071         * math/s_catan.c: Likewise.
15072         * math/s_catanf.c: Likewise.
15073         * math/s_catanh.c: Likewise.
15074         * math/s_catanhf.c: Likewise.
15075         * math/s_catanhl.c: Likewise.
15076         * math/s_catanl.c: Likewise.
15077         * math/s_ccosh.c: Likewise.
15078         * math/s_ccoshf.c: Likewise.
15079         * math/s_ccoshl.c: Likewise.
15080         * math/s_cexp.c: Likewise.
15081         * math/s_cexpf.c: Likewise.
15082         * math/s_cexpl.c: Likewise.
15083         * math/s_clog.c: Likewise.
15084         * math/s_clog10.c: Likewise.
15085         * math/s_clog10f.c: Likewise.
15086         * math/s_clog10l.c: Likewise.
15087         * math/s_clogf.c: Likewise.
15088         * math/s_clogl.c: Likewise.
15089         * math/s_csin.c: Likewise.
15090         * math/s_csinf.c: Likewise.
15091         * math/s_csinh.c: Likewise.
15092         * math/s_csinhf.c: Likewise.
15093         * math/s_csinhl.c: Likewise.
15094         * math/s_csinl.c: Likewise.
15095         * math/s_csqrt.c: Likewise.
15096         * math/s_csqrtf.c: Likewise.
15097         * math/s_csqrtl.c: Likewise.
15098         * math/s_ctan.c: Likewise.
15099         * math/s_ctanf.c: Likewise.
15100         * math/s_ctanh.c: Likewise.
15101         * math/s_ctanhf.c: Likewise.
15102         * math/s_ctanhl.c: Likewise.
15103         * math/s_ctanl.c: Likewise.
15104         * math/s_ldexp.c: Likewise.
15105         * math/s_ldexpf.c: Likewise.
15106         * math/s_ldexpl.c: Likewise.
15107         * math/s_significand.c: Likewise.
15108         * math/s_significandf.c: Likewise.
15109         * math/s_significandl.c: Likewise.
15110         * math/w_acos.c: Likewise.
15111         * math/w_acosf.c: Likewise.
15112         * math/w_acosh.c: Likewise.
15113         * math/w_acoshf.c: Likewise.
15114         * math/w_acoshl.c: Likewise.
15115         * math/w_acosl.c: Likewise.
15116         * math/w_asin.c: Likewise.
15117         * math/w_asinf.c: Likewise.
15118         * math/w_asinl.c: Likewise.
15119         * math/w_atan2.c: Likewise.
15120         * math/w_atan2f.c: Likewise.
15121         * math/w_atan2l.c: Likewise.
15122         * math/w_atanh.c: Likewise.
15123         * math/w_atanhf.c: Likewise.
15124         * math/w_atanhl.c: Likewise.
15125         * math/w_cosh.c: Likewise.
15126         * math/w_coshf.c: Likewise.
15127         * math/w_coshl.c: Likewise.
15128         * math/w_dremf.c: Likewise.
15129         * math/w_exp10.c: Likewise.
15130         * math/w_exp10f.c: Likewise.
15131         * math/w_exp10l.c: Likewise.
15132         * math/w_exp2.c: Likewise.
15133         * math/w_exp2f.c: Likewise.
15134         * math/w_fmod.c: Likewise.
15135         * math/w_fmodf.c: Likewise.
15136         * math/w_fmodl.c: Likewise.
15137         * math/w_hypot.c: Likewise.
15138         * math/w_hypotf.c: Likewise.
15139         * math/w_hypotl.c: Likewise.
15140         * math/w_j0.c: Likewise.
15141         * math/w_j0f.c: Likewise.
15142         * math/w_j0l.c: Likewise.
15143         * math/w_j1.c: Likewise.
15144         * math/w_j1f.c: Likewise.
15145         * math/w_j1l.c: Likewise.
15146         * math/w_jn.c: Likewise.
15147         * math/w_jnf.c: Likewise.
15148         * math/w_jnl.c: Likewise.
15149         * math/w_lgamma.c: Likewise.
15150         * math/w_lgamma_r.c: Likewise.
15151         * math/w_lgammaf.c: Likewise.
15152         * math/w_lgammaf_r.c: Likewise.
15153         * math/w_lgammal.c: Likewise.
15154         * math/w_lgammal_r.c: Likewise.
15155         * math/w_log.c: Likewise.
15156         * math/w_log10.c: Likewise.
15157         * math/w_log10f.c: Likewise.
15158         * math/w_log10l.c: Likewise.
15159         * math/w_log2.c: Likewise.
15160         * math/w_log2f.c: Likewise.
15161         * math/w_log2l.c: Likewise.
15162         * math/w_logf.c: Likewise.
15163         * math/w_logl.c: Likewise.
15164         * math/w_pow.c: Likewise.
15165         * math/w_powf.c: Likewise.
15166         * math/w_powl.c: Likewise.
15167         * math/w_remainder.c: Likewise.
15168         * math/w_remainderf.c: Likewise.
15169         * math/w_remainderl.c: Likewise.
15170         * math/w_scalb.c: Likewise.
15171         * math/w_scalbf.c: Likewise.
15172         * math/w_scalbl.c: Likewise.
15173         * math/w_sinh.c: Likewise.
15174         * math/w_sinhf.c: Likewise.
15175         * math/w_sinhl.c: Likewise.
15176         * math/w_sqrt.c: Likewise.
15177         * math/w_sqrtf.c: Likewise.
15178         * math/w_sqrtl.c: Likewise.
15179         * math/w_tgamma.c: Likewise.
15180         * math/w_tgammaf.c: Likewise.
15181         * math/w_tgammal.c: Likewise.
15183         * po/ja.po: Update from translation team.
15185 2011-09-29  Andreas Jaeger  <aj@suse.de>
15187         [BZ #13179]
15188         * sunrpc/netname.c (netname2host): Fix logic.
15190         [BZ #6779]
15191         [BZ #6783]
15192         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15193         correctly.
15194         * math/w_remainder.c (__remainder): Likewise.
15195         * math/w_remainderf.c (__remainderf): Likewise.
15196         * math/libm-test.inc (remainder_test): Add test cases.
15198 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15200         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15201         sdiv_qrnnd.
15203 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15205         * string/test-memcmp.c: Avoid unncessary #defines.
15206         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15208 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15210         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15211         Use new sse2 version for core i3 - i7 as it's faster
15212         than sse42 version.
15213         (bit_Prefer_PMINUB_for_stringop): New.
15214         * sysdeps/x86_64/rawmemchr.S: Update.
15215         Replace with faster SSE2 version.
15216         * sysdeps/x86_64/memrchr.S: New file.
15217         * sysdeps/x86_64/memchr.S: Update.
15218         Replace with faster SSE2 version.
15220 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15222         * elf/dl-load.c (lose): Add cast to avoid warning.
15224 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15226         * po/ca.po: Update from translation team.
15228         * inet/getnetgrent_r.c: Hook up nscd.
15229         * nscd/Makefile (routines): Add nscd_netgroup.
15230         (nscd-modules): Add netgroupcache.
15231         (CFLAGS-netgroupcache.c): Define.
15232         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15233         (cache_search): Add const to second parameter.
15234         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15235         INNETGR.
15236         (dbs): Add netgrdb entry.
15237         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15238         (verify_persistent_db): Handle netgrdb.
15239         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15240         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15241         GETFDNETGR.
15242         (netgroup_response_header): Define.
15243         (innetgroup_response_header): Define.
15244         (datahead): Add netgroup_response_header and innetgroup_response_header
15245         elements.
15246         * nscd/nscd.conf: Add entries for netgroup cache.
15247         * nscd/nscd.h (dbtype): Add netgrdb.
15248         (_PATH_NSCD_NETGROUP_DB): Define.
15249         (netgroup_iov_disabled): Declare.
15250         (xmalloc, xcalloc, xrealloc): Move declarations here.
15251         (cache_search): Adjust prototype.
15252         Add netgroup-related prototypes.
15253         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15254         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15255         (__nscd_innetgr): Declare.
15256         * nscd/selinux.c (perms): Use access_vector_t as element type and
15257         add netgroup-related initializers.
15258         * nscd/netgroupcache.c: New file.
15259         * nscd/nscd_netgroup.c: New file.
15260         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15261         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15262         For four parameters use innetgr.
15263         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15264         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15265         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15266         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15268         * nscd/connections.c (register_traced_file): Don't register file
15269         for disabled databases.
15271 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15273         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15275         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15276         from tree and freeing node.
15278 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15280         * nss/nsswitch.c (__nss_database_lookup): Handle
15281         nss_parse_service_list out of memory case.
15283 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15285         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15286         out of memory case.
15288 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15290         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15291         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15292         pass it down.
15293         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15294         elf_machine_rela, elf_machine_lazy_rel.
15295         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15296         (ELF_DYNAMIC_DO_REL): Likewise.
15297         (ELF_DYNAMIC_DO_RELA): Likewise.
15298         (ELF_DYNAMIC_RELOCATE): Likewise.
15299         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15300         to ELF_DYNAMIC_DO_REL.
15301         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15302         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15303         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15304         elf_machine_rela.
15305         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15306         skip_ifunc, don't call ifunc function if non-zero.
15307         (elf_machine_rela): Likewise.
15308         (elf_machine_lazy_rel): Likewise.
15309         (elf_machine_lazy_rela): Likewise.
15310         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15311         (elf_machine_lazy_rel): Likewise.
15312         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15313         Likewise.
15314         (elf_machine_lazy_rel): Likewise.
15315         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15316         Likewise.
15317         (elf_machine_lazy_rel): Likewise.
15318         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15319         (elf_machine_lazy_rel): Likewise.
15320         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15321         (elf_machine_lazy_rel): Likewise.
15322         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15323         (elf_machine_lazy_rel): Likewise.
15324         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15325         (elf_machine_lazy_rel): Likewise.
15326         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15327         (elf_machine_lazy_rel): Likewise.
15328         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15329         (elf_machine_lazy_rel): Likewise.
15331 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15333         * nss/nss_files/files-init.c (_nss_files_init): Use static
15334         initialization for all the *_traced_file variables.
15336 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15338         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15340 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15342         [BZ #13226]
15343         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15345 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15347         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15348         Reread the line before reparsing it.
15350 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15352         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15354 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15355             Maxim Kuvyrkov  <maxim@codesourcery.com>
15356             Joseph Myers  <joseph@codesourcery.com>
15358         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15359         if needed for __stack_chk_guard.
15361 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15363         * sysdeps/posix/spawni.c (script_execute): Always define it.
15364         It will be optimized away if unused.
15365         (maybe_script_execute): New function.
15366         (__spawni): Call it.
15368         * Makerules: Don't include tls.make.
15369         (config-tls): Always set to thread.
15370         * tls.make.c: File removed.
15372 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15374         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15375         * config.make.in (CPPFLAGS-config): New substituted variable.
15377 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15379         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15381         [BZ #13192]
15382         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15383         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15385 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15387         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15388         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15389         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15390         (CALL_FAIL): Likewise.
15391         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15392         (CALL_FAIL): Macro removed.
15393         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15395 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15397         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15398         for __FINITE_MATH_ONLY__ == 1.
15400 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15402         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15403         __ieee754_sqrt instead of sqrt.
15404         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15405         __ieee754_sqrtf instead of sqrtf.
15406         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15407         __floorf instead of floorf.
15408         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15409         __floorf, __truncf instead of floorf, truncf.
15411 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15413         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15415         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15416         __extern_always_inline.
15417         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15418         32-bit.
15420 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15422         * elf/rtld.c (dl_main): Also relocate in dependency order when
15423         doing symbol dependency testing.
15425 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15427         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15428         Always define `refsym'.
15430 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15432         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15433         (__FD_ELT): Renamed from __FDELT.
15434         * misc/bits/select2.h (__FD_ELT): Likewise.
15435         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15436         __FD_MASK instead of __FDELT, __FDMASK.
15437         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15438         Likewise.
15439         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15440         Likewise.
15442         * elf/Makefile (gen-ldd): Fix pattern.
15444         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15445         (init_tls): Likewise.
15447 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15449         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15451 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15453         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15454         `struct cmsghdr *' instead of `void *'.
15455         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15456         Likewise.
15458 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15460         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15461         if non-absolute.
15462         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15463         ldd_rewrite_script.
15465 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15467         * configure.in: Remove --with-tls option.
15468         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15469         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15470         out in case it is missing.
15471         * sysdeps/ia64/elf/configure.in: Likewise.
15472         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15473         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15474         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15475         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15476         * sysdeps/sh/elf/configure.in: Likewise.
15477         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15478         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15479         * sysdeps/x86_64/elf/configure.in: Likewise.
15480         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15481         * sysdeps/mach/hurd/tls.h: Likewise.
15483         [BZ #13067]
15484         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15486         [BZ #13090]
15487         * configure.in: Fix use of AC_INIT.
15489         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15491 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15493         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15494         __set_errno.
15495         * malloc/hooks.c: Likewise.
15497         [BZ #11929]
15498         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15499         variables statically.
15500         (narenas): Initialize.
15501         (list_lock): Initialize.
15502         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15503         initializtion of main_arena and list_lock.  Small cleanups.
15504         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15505         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15506         Add initializers to main_arena and mp_.
15507         (malloc_state): Remove pagesize member.  Change all users to use
15508         GLRO(dl_pagesize).
15510         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15511         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15512         is always initialized.
15514         * malloc/malloc.c: Removed unused configurations and dead code.
15515         * malloc/arena.c: Likewise.
15516         * malloc/hooks.c: Likewise.
15517         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15519         * include/tls.h: Removed.  USE___THREAD must always be defined.
15520         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15521         * elf/dl-libc.c: Likewise.
15522         * elf/dl-tsd.c: Likewise.
15523         * include/errno.h: Likewise.
15524         * include/netdb.h: Likewise.
15525         * include/resolv.h: Likewise.
15526         * inet/herrno-loc.c: Likewise.
15527         * inet/herrno.c: Likewise.
15528         * malloc/arena.c: Likewise.
15529         * malloc/hooks.c: Likewise.
15530         * malloc/malloc.c: Likewise.
15531         * resolv/res-state.c: Likewise.
15532         * resolv/res_libc.c: Likewise.
15533         * sysdeps/i386/dl-machine.h: Likewise.
15534         * sysdeps/ia64/dl-machine.h: Likewise.
15535         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15536         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15537         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15538         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15539         * sysdeps/sh/dl-machine.h: Likewise.
15540         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15541         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15542         * sysdeps/unix/i386/sysdep.S: Likewise.
15543         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15544         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15545         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15546         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15547         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15548         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15549         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15550         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15551         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15552         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15553         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15554         * sysdeps/x86_64/dl-machine.h: Likewise.
15555         * tls.make.c: Likewise.
15557         * configure.in: Remove --with-__thread option.  Make tests for
15558         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15559         tls_model attribute fail if no support is available.  Remove
15560         USE_IN_LIBIO.
15561         * Makeconfig: Adjust for dropped configure option.  All features are
15562         now mandatory.
15563         * Makerules: Likewise.
15564         * Versions.def: Likewise.
15565         * argp/argp-fmtstream.c: Likewise.
15566         * argp/argp-fmtstream.h: Likewise.
15567         * argp/argp-help.c: Likewise.
15568         * assert/assert.c: Likewise.
15569         * config.h.in: Likewise.
15570         * config.make.in: Likewise.
15571         * configure: Likewise.
15572         * configure.in: Likewise.
15573         * csu/Versions: Likewise.
15574         * csu/init.c: Likewise.
15575         * elf/tst-audit2.c: Likewise.
15576         * elf/tst-tls10.c: Likewise.
15577         * elf/tst-tls10.h: Likewise.
15578         * elf/tst-tls11.c: Likewise.
15579         * elf/tst-tls12.c: Likewise.
15580         * elf/tst-tls14.c: Likewise.
15581         * elf/tst-tlsmod11.c: Likewise.
15582         * elf/tst-tlsmod12.c: Likewise.
15583         * elf/tst-tlsmod13.c: Likewise.
15584         * elf/tst-tlsmod13a.c: Likewise.
15585         * elf/tst-tlsmod14a.c: Likewise.
15586         * elf/tst-tlsmod15b.c: Likewise.
15587         * elf/tst-tlsmod16a.c: Likewise.
15588         * elf/tst-tlsmod16b.c: Likewise.
15589         * elf/tst-tlsmod7.c: Likewise.
15590         * elf/tst-tlsmod8.c: Likewise.
15591         * elf/tst-tlsmod9.c: Likewise.
15592         * gmon/gmon.c: Likewise.
15593         * grp/fgetgrent_r.c: Likewise.
15594         * grp/putgrent.c: Likewise.
15595         * hurd/fopenport.c: Likewise.
15596         * include/libc-symbols.h: Likewise.
15597         * include/tls.h: Likewise.
15598         * intl/gettextP.h: Likewise.
15599         * intl/loadinfo.h: Likewise.
15600         * locale/global-locale.c: Likewise.
15601         * locale/localeinfo.h: Likewise.
15602         * mach/devstream.c: Likewise.
15603         * malloc/arena.c: Likewise.
15604         * malloc/set-freeres.c: Likewise.
15605         * misc/err.c: Likewise.
15606         * misc/getttyent.c: Likewise.
15607         * misc/mntent_r.c: Likewise.
15608         * posix/getopt.c: Likewise.
15609         * posix/wordexp.c: Likewise.
15610         * pwd/fgetpwent_r.c: Likewise.
15611         * resolv/Versions: Likewise.
15612         * resolv/res_hconf.c: Likewise.
15613         * shadow/fgetspent_r.c: Likewise.
15614         * shadow/putspent.c: Likewise.
15615         * stdio-common/printf_fphex.c: Likewise.
15616         * stdio-common/tmpfile.c: Likewise.
15617         * stdlib/abort.c: Likewise.
15618         * stdlib/fmtmsg.c: Likewise.
15619         * sunrpc/auth_unix.c: Likewise.
15620         * sunrpc/clnt_perr.c: Likewise.
15621         * sunrpc/clnt_tcp.c: Likewise.
15622         * sunrpc/clnt_udp.c: Likewise.
15623         * sunrpc/clnt_unix.c: Likewise.
15624         * sunrpc/openchild.c: Likewise.
15625         * sunrpc/svc_simple.c: Likewise.
15626         * sunrpc/svc_tcp.c: Likewise.
15627         * sunrpc/svc_udp.c: Likewise.
15628         * sunrpc/svc_unix.c: Likewise.
15629         * sunrpc/xdr.c: Likewise.
15630         * sunrpc/xdr_array.c: Likewise.
15631         * sunrpc/xdr_rec.c: Likewise.
15632         * sunrpc/xdr_ref.c: Likewise.
15633         * sunrpc/xdr_stdio.c: Likewise.
15635 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15637         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15639 2011-07-03  Andreas Jaeger  <aj@suse.de>
15641         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15642         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15643         regenerate with gen-libm-tests.pl.
15645 2010-05-12  Petr Baudis  <pasky@suse.cz>
15647         [BZ #11589]
15648         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15649         around j0() zero points by switching to j1().
15650         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15651         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15652         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15653         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15655 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15657         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15658         instead of 0.
15659         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15660         instead of 0.                              .
15661         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15662         Patch in part by Pavel Roskin <proski@gnu.org>.
15664         [BZ #13138]
15665         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15666         realloc.
15667         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15668         Free memory block if necessary.
15670         [BZ #12847]
15671         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15672         be NULL.  Don't lock in this case.
15674 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15676         * elf/elf.h (ELFOSABI_GNU): New macro.
15677         (ELFOSABI_LINUX): Define to that.
15679 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15681         * string/strncat.c (strncat): Undef the symbol in case it has been
15682         defined in bits/string.h.
15684 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15686         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15688         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15689         link map.
15691 2011-08-17  Andreas Jaeger  <aj@suse.de>
15693         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15695 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15696             Ian Lance Taylor  <iant@google.com>
15698         * math/libm-test.inc (lround_test): New testcase.
15699         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15701 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15703         * Makefile: Remove support for automatic cvs check-ins.
15704         * Makerules: Likewise.
15705         * config.make.in: Likewise.
15706         * configure.in: Likewise.
15707         * intl/Makefile: Likewise.
15708         * locale/Makefile: Likewise.
15709         * po/Makefile: Likewise.
15710         * posix/Makefile: Likewise.
15711         * sysdeps/gnu/Makefile: Likewise.
15712         * sysdeps/mach/hurd/Makefile: Likewise.
15713         * sysdeps/sparc/sparc32/Makefile: Likewise.
15715         [BZ #13118]
15716         * posix/Makefile (bug-regex32-ENV): Define.
15717         Patch by John Stanley <jpsinthemix@verizon.net>.
15719         * misc/Makefile (headers): Add bits/select2.h.
15720         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15721         * misc/bits/select2.h: New file.
15722         * include/bits/select2.h: New file.
15723         * debug/Makefile (routines): Add fdelt_chk.
15724         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15725         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15726         FD_ISSET.
15727         * debug/fdelt_chk.c: New file.
15729         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15730         * wcsmbs/test-wmemcmp.c: Likewise.
15731         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15732         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15734 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15736         * string/Makefile (strop-tests): Add memcmp.
15737         * string/test-wmemcmp.c: New file.
15738         * string/test-memcmp.c: Add wmemcmp support.
15740 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15742         [BZ #13153]
15743         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15744         2011-07-19 change.
15746         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15747         garbage value in a __mach_port_mod_refs call in the cases of the
15748         task-self and thread-self ports.
15750 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15752         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15754 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15756         * elf/dl-load.c (lose): Check for non-null L.
15758 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15760         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15762         * elf/dl-libc.c (dlerror_run): Pass back error code from
15763         dl_catch_error.
15765         [BZ #13123]
15766         * elf/dl-load.c (lose): Free l_origin if it is valid.
15768         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15769         names.
15770         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15771         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15772         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15773         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15774         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15775         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15777 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15779         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15780         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15781         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15782         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15783         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15784         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15785         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15786         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15787         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15788         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15790 2011-08-15  Alan Modra  <amodra@gmail.com>
15792         [BZ #13092]
15793         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15794         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15795         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15796         ppc_mcount to static-only-routines.
15797         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15798         __mcount_internal.
15799         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15800         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15802 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15804         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15805         for finite and infinity parameters.
15807 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15809         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15810         and add nop instructions for throughput optimization.
15811         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15813 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15815         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15816         aligned copy for power7 with vector-scalar instructions.
15817         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15819 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15821         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15822         AVX check.
15824 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15826         [BZ #13144]
15827         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15828         last change.
15830 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15832         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15833         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15834         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15835         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15836         clock_gettime.
15838 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15840         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15841         Forgot to demangle the pointer.
15843         * sysdeps/i386/sysdep.h: Define atom_text_section.
15844         * sysdeps/x86_64/sysdep.h: Likewise.
15845         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15846         section with atom_text_section.
15847         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15848         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15849         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15850         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15851         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15853         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15854         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15855         already be defined.  Change to take two parameters and don't assign
15856         result to variable.  Adjust all users.
15857         Define INTERNAL_GETTIME if not already defined.
15858         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15859         call.
15860         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15861         HAVE_CLOCK_GETTIME_VSYSCALL.
15862         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15864         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15865         gettimeofday vsyscall, just use time.
15867 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15869         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15870         <errno.h>.
15872 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15874         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15875         syscall on x86-64.
15876         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15877         syscall.
15878         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15879         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15880         syscall if possible.
15882 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15884         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15885         e_ident.  Don't pass to find_mapsXX.
15886         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15888 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15890         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15891         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15892         * sysdeps/x86_64/multiarch/strchr.S: Update.
15893         Check bit_slow_BSF bit.
15894         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15895         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15896         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15898 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15900         [BZ #13134]
15901         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15902         before glibc 2.15.
15903         (tryshell): Define.
15904         (__spawni): Change last parameter to be flag.  Test
15905         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15906         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15907         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15908         * posix/spawni.c: Likewise.
15909         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15910         * posix/spawnp.c: Likewise.  Change normal version to use
15911         SPAWN_XFLAGS_USE_PATH.
15912         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15913         SPAWN_XFLAGS_TRY_SHELL.
15915         [BZ #13150]
15916         * posix/glob.h: Remove gcc 1.x support.
15918         [BZ #13068]
15919         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15921 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15923         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15924         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15925         strrchr-sse2-bsf
15926         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15927         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15928         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15929         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15930         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15931         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15933 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15935         * sysdeps/x86_64/wcscmp.S: New file.
15937         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15938         wcscmp-c wcscmp-sse2
15939         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15940         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15941         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15942         * wcsmbs/wcscmp.c: Allow renaming.
15944 2011-09-05  David S. Miller  <davem@davemloft.net>
15946         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15947         stack slot, rather than the struct return pointer slot.
15948         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15949         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15951         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15953 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15955         * po/ja.po: Update from translation team.
15957         [BZ #13144]
15958         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15959         kernel in 64-bit binaries.
15961 2011-09-01  David S. Miller  <davem@davemloft.net>
15963         * elf/elf.h (HWCAP_SPARC_*): Move to..
15964         * sysdeps/sparc/sysdep.h: this new file and add new values.
15965         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15966         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15967         _DL_HWCAP_COUNT to 24.
15968         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15969         entries.
15970         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15971         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15972         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15973         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15974         instead of magic constants.
15975         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15977 2011-08-31  David S. Miller  <davem@davemloft.net>
15979         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15980         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15981         Reimplement to do errno handling inline.
15982         (SYSCALL_ERROR_HANDLER): New macro.
15983         (__SYSCALL_STRING): Do not do errno handling in asm.
15984         (__CLONE_SYSCALL_STRING): Delete.
15985         (__INTERNAL_SYSCALL_STRING): Delete.
15986         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15987         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15988         (PSEUDO): Reimplement to do errno handling inline.
15989         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15990         (SYSCALL_ERROR_HANDLER): New macro.
15991         (__SYSCALL_STRING): Do not do errno handling in asm.
15992         (__CLONE_SYSCALL_STRING): Delete.
15993         (__INTERNAL_SYSCALL_STRING): Delete.
15994         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15995         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15996         i386.
15997         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15998         (inline_syscall*): Add 'err' argument.
15999         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16000         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16001         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16002         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16004         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16005         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16007 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16009         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16011 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16013         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16014         directive.
16016 2011-08-24  David S. Miller  <davem@davemloft.net>
16018         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16020 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16022         * elf/Makefile: Add rules to build and run unload8 test.
16023         * elf/unload8.c: New file.
16024         * elf/unload8mod1.c: New file.
16025         * elf/unload8mod1x.c: New file.
16026         * elf/unload8mod2.c: New file.
16027         * elf/unload8mod3.c: New file.
16029         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16030         it wasn't used.
16032 2011-08-23  David S. Miller  <davem@davemloft.net>
16034         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16035         subtract stack bias.
16036         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16037         %sp not %fp in calculations.
16038         (_JMPBUF_UNWINDS_ADJ): Likewise.
16040         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16041         (aio_suspend): Call it to force an exception region around the
16042         AIO_MISC_WAIT() invocation.
16044 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16046         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16047         backslash.
16049 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16051         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16052         protection macro.
16053         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16054         and <dl-machine.h>.
16055         (Elf64_FuncDesc): Remove.
16057 2011-08-22  David S. Miller  <davem@davemloft.net>
16059         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16060         sigaltstack check, add missing cfi directives.
16061         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16062         missing cfi directives, and sigaltstack handling.
16064 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16066         [BZ #11724]
16067         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16068         object is seen twice.
16069         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16071         * elf/Makefile (distribute): Add tst-initorder2.c.
16072         (tests): Add tst-initorder2.
16073         (modules-names): Add tst-initorder2a tst-initorder2b
16074         tst-initorder2c tst-initorder2d.  Add rules to build them.
16075         ($(objpfx)tst-initorder2.out): New rule.
16076         * elf/tst-initorder2.c: New file.
16077         * elf/tst-initorder2.exp: New file.
16079 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16081         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16083         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16084         dependencies back to end of function.
16086         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16087         $(elfobjdir)/ld.so.
16089 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16091         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16092         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16093         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16094         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16095         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16096         of __vdso_gettimeofday.
16097         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16098         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16099         attribute_hidden.
16100         (_libc_vdso_platform_setup): Remove initialization of
16101         __vdso_gettimeofday and __vdso_time.
16103 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16105         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16106         and fgetc_unlocked.
16107         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16108         getc_unlocked.
16110         * elf/dl-open.c (add_to_global): Report additions to the global scope
16111         for LD_DEBUG=scopes.
16112         (dl_open_worker): Also print scope of newly loaded dependencies.
16113         (_dl_show_scope): Indicate if there is no scope.
16115         [BZ #13114]
16116         * stdio-common/Makefile (tests): Add bug24.
16117         * stdio-common/bug24.c: New file.
16119 2011-08-19  Andreas Jaeger  <aj@suse.de>
16121         [BZ #13114]
16122         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16123         non-existant file when using close-on-exec mode.
16125 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16127         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16128         the very first instruction.
16130         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16131         the CFI state in the end.
16132         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16133         inclusion of dl-trampoline.h.
16134         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16136 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16138         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16139         expectations for long double.
16141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16142         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16144 2011-08-14  David S. Miller  <davem@davemloft.net>
16146         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16147         artificual limit depends upon the system page size.
16149 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16151         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16152         * resolv/Makefile: Define CFLAGS-libresolv.
16154 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16156         * nss/makedb.c (compute_tables): Make variables used in nested
16157         function static.
16159 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16161         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16162         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16163         if buffer was too small.
16165         * elf/pldd.c (main): Attach to all threads in the process.
16166         Rewrite /proc handling to use *at functions.
16168 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16170         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16171         specifies first scope to show.
16172         (dl_open_worker): Update callers.  Move printing scope of new
16173         object to before the relocation.
16174         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16175         * sysdeps/generic/ldsodefs.h: Update declaration.
16177         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16178         string for the scope number.
16180 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16182         * nscd/servicescache.c (cache_addserv): Make sure written is always
16183         initialized.
16185 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16187         * sysdeps/i386/i486/bits/atomic.h
16188         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16189         statement expression, so as to suppress "set but not used" warning.
16190         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16192         * string/strncat.c (STRNCAT): Use prototype definition.
16194         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16195         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16196         -Iprograms here.
16197         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16198         (localedef-modules): Add localedef.
16199         (locale-modules): Add locale.
16201         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16202         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16203         to avoid a warning.
16205 2011-08-14  David S. Miller  <davem@davemloft.net>
16207         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16208         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16210 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16212         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16213         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16214         * elf/rtld.c (dl_main): Set l_name of vDSO.
16215         Call _dl_show_scope when DL_DEBUG_SCOPES.
16216         (process_dl_debug): Recognize scopes flag and also set it for all.
16217         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16218         Declare _dl_show_scope.
16220         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16221         (do_dlopen): Pass caller_dlopen to dl_open.
16222         (__libc_dlopen_mode): Initialize caller_dlopen.
16224         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16225         of libc.  Make tolower call locale-independent.  Optimize a bit by
16226         using isdigit instead of isalnum.
16227         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16229 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16231         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16232         was a dependency or dynamically loaded.
16234 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16236         * intl/l10nflist.c: Allow architecture-specific pop function.
16237         * sysdeps/x86_64/l10nflist.c: New file.
16239         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16240         classification.
16242 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16244         * include/dirent.h: Add libc_hidden_proto for scandirat and
16245         scandirat64.  Don't declare __scandirat64.
16246         * dirent/scandirat.c: Add libc_hidden_def.
16247         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16248         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16250 2011-08-10  David S. Miller  <davem@davemloft.net>
16252         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16253         enum.
16254         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16255         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16256         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16258 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16260         * Versions.def [libc]: Add GLIBC_2.15.
16261         * dirent/Makefile (routines): Add scandirat and scandirat64.
16262         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16263         GLIBC_2.15.
16264         * dirent/dirent.h: Declare scandirat and scandirat64.
16265         * dirent/scandirat.c: New file.
16266         * dirent/scandirat64.c: New file.
16267         * sysdeps/wordsize-64/scandirat.c: New file.
16268         * sysdeps/wordsize-64/scandirat64.c: New file.
16269         * dirent/opendir.c: Define opendirat.
16270         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16271         using scandirat.
16272         * dirent/scandir64.c: Adjust for scandir.c change.
16273         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16274         __scandirat64, and __scandir_cancel_handler.
16275         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16276         additional parameter and use openat instead of open (outside of ld.so).
16277         Add new __opendir as wrapper around __opendirat.
16278         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16279         here without requiring old scandirat implementation.
16281 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16283         * dirent/scandir.c (cancel_handler): Renamed to
16284         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16285         defined.  Adjust users.
16286         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16287         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16289 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16291         * string/test-string.h (IMPL): Use __STRING to expand name and then
16292         stringify it.
16294         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16295         of cleanups.
16297 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16299         * string/Makefile: Update.
16300         (strop-tests): Append strncat.
16301         * string/test-wcscmp.c: New file.
16302         New comprehensive test for wcscmp.
16303         * string/test-strcmp.c: Update.
16304         (WIDE): New define.
16306 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16308         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16309         line.
16311 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16313         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16314         encoding to ACE if AI_IDN.
16316 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16318         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16319         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16321 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16323         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16324         Fix overflow bug in strncat.
16325         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16327         * string/test-strncat.c: Update.
16328         Add new tests for checking overflow bugs.
16330 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16332         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16333         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16334         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16335         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16336         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16337         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16338         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16339         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16340         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16342         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16343         (USE_AS_STRCAT): Define.
16344         Add strcat and strncat support.
16345         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16347 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16349         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16350         __n bigger than INT_MAX+1.
16351         (__strncmp_g): Likewise.
16353 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16355         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16356         * libio/stido.h: Likewise.
16358         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16359         (AF_NFC): Define.
16360         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16361         (AF_NFC): Define.
16363         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16364         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16365         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16366         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16367         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16369         [BZ #13021]
16370         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16371         installed.
16373         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16374         typo.
16375         (_dl_x86_64_save_sse): Likewise.
16377 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16379         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16380         OSXSAVE.
16381         (_dl_x86_64_save_sse): Likewise.
16383         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16385         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16387 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16389         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16390         change.
16391         (_dl_x86_64_save_sse): Use correct AVX check.
16393 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16395         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16396         bug in strncpy/strncat.
16397         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16399 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16401         * string/tester.c (test_strcat): Add tests for different alignments
16402         of source and destination.
16403         (test_strncat): Likewise.
16405 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16407         [BZ #12852]
16408         * posix/glob.c (glob): Check passed in values before using them in
16409         expressions to avoid some overflows.
16410         (glob_in_dir): Likewise.
16412         [BZ #13007]
16413         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16414         check for AVX enablement so that we don't crash with old kernels and
16415         new hardware.
16416         * elf/tst-audit4.c: Add same checks here.
16417         * elf/tst-audit6.c: Likewise.
16419         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16421 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16423         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16425 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16427         * po/cs.po: Update from translation team.
16428         * po/bg.po: Likewise.
16430 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16432         * misc/sys/cdefs.h: Add support for const attribute.
16433         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16434         to gnu_dev_{major,minor,makedev} functions.
16436 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16438         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16440 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16442         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16443         strlen results.
16445 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16447         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16448         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16449         register in order to avoid conflicts with the soft frame pointer
16450         being held in r11 when necessary.
16451         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16452         (INTERNAL_VSYSCALL_NCS): Likewise.
16454 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16456         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16457         * elf/dl-fini.c (_dl_fini): Adjust caller.
16458         * elf/dl-close.c (_dl_close_worker): Likewise.
16459         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16461 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16463         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16464         "aux_cache->nlibs < 0".
16466         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16467         in the reload-count case.
16469 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16471         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16472         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16473         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16474         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16475         * sysdeps/x86_64/multiarch/strcat.S: New file.
16476         * sysdeps/x86_64/multiarch/strncat.S: New file.
16477         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16478         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16479         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16480         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16481         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16482         (USE_AS_STRCAT): Define.
16483         Add strcat and strncat support.
16484         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16485         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16486         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16487         * string/strncat.c: Update.
16488         (USE_AS_STRNCAT): Define.
16489         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16490         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16491         and i7.
16492         * sysdeps/x86_64/multiarch/init-arch.h
16493         (bit_Prefer_PMINUB_for_stringop): New.
16494         (index_Prefer_PMINUB_for_stringop): Likewise.
16495         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16496         bit_Prefer_PMINUB_for_stringop.
16498 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16500         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16501         buffer64.
16502         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16503         of casting of buffer.
16504         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16505         buffer32 and buffer64.
16506         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16507         writes instead of casting of buffer.
16508         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16509         buffer32.
16510         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16511         casting of buffer.
16513 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16515         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16517 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16519         * nscd/nscd.c (termination_handler): Don't do anything for a database
16520         if it has not yet been initialized.
16522 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16524         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16526 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16528         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16530 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16532         * po/nl.po: Update from translation team.
16533         * po/sv.po: Likewise.
16535 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16537         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16538         now disallowed by GCC.
16540         * configure.in (use-default-link): Default to yes if a test -shared
16541         link meets our qualifications.
16542         * configure: Regenerated.
16544         * config.make.in (output-format): New variable.
16545         * configure.in: Check for ld --print-output-format support.
16546         * configure: Regenerated.
16547         * Makerules ($(common-objpfx)format.lds)
16548         [$(output-format) != unknown]: Just use $(output-format),
16549         instead of the linker-script munging.
16551 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16553         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16554         of $(common-objpfx)shlib.lds.
16555         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16557         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16558         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16560         * configure.in (-z relro check): Adjust test code to add a large
16561         writable data section after it.
16562         * configure: Regenerated.
16564 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16566         * configure.in (-z relro check): Fix test code to make the variable
16567         truly const.
16568         * configure: Regenerated.
16570 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16572         * nscd/nscd.h (struct traced_file): Define.
16573         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16574         elements.  Add traced_files.
16575         (inotify_fd): Declare.
16576         (register_traced_file): Declare.
16577         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16578         (inotify_fd): Export.
16579         (resolv_conf_descr): Remove.
16580         (nscd_init): Move inotify descriptor creation to main.
16581         Don't register files for notification here.
16582         (register_traced_file): New function.
16583         (invalidate_cache): Don't use reset_res to determine whether to call
16584         res_init, go through the list of registered files.
16585         (main_loop_poll): The inotify descriptors are now stored in the
16586         structures for the traced files.
16587         (main_loop_epoll): Likewise
16588         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16589         to __nss_disable_nscd.
16590         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16591         for a database anymore.  Check the records for all the registered
16592         files instead.
16593         * nss/Makefile (libnss_files-routines): Add files-init.
16594         (libnss_db-routines): Add db-init.
16595         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16596         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16597         * nss/nss_db/db-init.c: New file.
16598         * nss/nss_files/files-init.c: New file.
16599         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16600         __nss_lookup_function.
16601         (__nss_lookup_function): Call nss_load_library.
16602         (nss_load_all_libraries): New function.
16603         (__nss_disable_nscd): Take parameter with callback function for files
16604         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16605         used for the cached services.
16606         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16607         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16608         options for features to all the files in nscd.
16610         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16612 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16614         * csu/elf-init.c (__libc_csu_init): Comment typo.
16616 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16618         * po/pl.po: Update from translation team.
16619         * po/ja.po: Likewise.
16620         * po/ru.po: Likewise.
16621         * po/ko.po: Likewise.
16622         * po/fr.po: Likewise.
16624 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16626         * configure.in (.ctors/.dtors header and trailer check):
16627         Use an empirical test on a built program.
16628         * configure: Regenerated.
16630         * configure.in (-z relro check): Use an empirical test on a built DSO.
16631         Detect, but do not require, on ia64.
16632         * configure: Regenerated.
16634         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16635         Update tests that use readelf to use $READELF instead.
16636         * configure: Regenerated.
16638 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16640         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16641         if the result is not used.
16643 2011-07-05  Andreas Jaeger  <aj@suse.de>
16645         [BZ#9696]
16646         * stdlib/tst-strtod.c: Add testcase.
16648 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16650         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16651         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16652         The latter has a higher limit.  Take additional parameter to pass to
16653         the new function.
16654         (__pathconf): Pass file to __statfs_link_max.
16655         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16656         __statfs_link_max.
16657         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16658         __statfs_link_max.
16660         [BZ #12868]
16661         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16662         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16663         Handle Lustre.
16664         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16665         (__statfs_filesize_max): Likewise.
16666         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16668 2011-07-05  Andreas Jaeger  <aj@suse.de>
16670         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16672 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16674         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16675         `status' variable.
16676         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16677         Likewise.
16679 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16681         * Makefile (strop-tests): Add strncat.
16682         * string/test-strncat.c: New file.
16684 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16686         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16688 2011-06-21  Andreas Jaeger  <aj@suse.de>
16690         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16691         Copy rule from iconvdata/Makefile.
16693 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16695         [BZ #12922]
16696         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16697         but no long options are defined, just return 'W'.
16699 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16701         [BZ #9696]
16702         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16704 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16706         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16707         netgroups to read.
16708         (innetgr): Likewise.
16710 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16712         * config.make.in (install_root): Default to $(DESTDIR).
16714 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16716         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16718 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16720         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16722         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16723         containing directory rather than embedding absolute directory names.
16725         * scripts/check-local-headers.sh: Rewritten using awk.
16726         Match by word, not by line.  Print error messages for matches.
16727         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16729         * Makerules [shlib-lds-flags empty]:
16730         ($(common-objpfx)libc_pic.opts): New target.
16731         ($(common-objpfx)libc_pic.os.clean): New target.
16732         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16734         * config.make.in (OBJCOPY): New variable.
16735         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16736         * configure: Regenerated.
16738         * config.make.in (use-default-link): New variable.
16739         * configure.in (use_default_link): Grok --with-default-link to set it.
16740         * configure: Regenerated.
16741         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16742         (shlib-lds, shlib-lds-flags): Define to empty.
16744         * Makerules (shlib-lds): New variable.
16745         (shlib-lds-flags): New variable.
16746         (build-shlib, build-moduile, build-module-asneeded): Use it.
16747         ($(common-objpfx)libc.so): Use $(shlib-lds).
16748         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16749         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16751         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16752         DT_FLAGS/DT_FLAGS_1 with zero flags.
16754         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16755         linker script munging.
16757 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16759         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16760         as 128-bit value.
16761         * crypt/sha512.c (sha512_process_block): Perform total addition using
16762         128-bit if possible.
16763         (__sha512_finish_ctx): Likewise.
16764         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16765         as 64-bit value.
16766         * crypt/sha256.c (SWAP64): Define.
16767         (sha256_process_block): Perform total addition using 64-bit if
16768         possible.
16769         (__sha256_finish_ctx): Likewise.
16771 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16773         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16774         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16775         * nscd/hstcache.c (cache_addhst): Likewise.
16776         * nscd/grpcache.c (cache_addgr): Likewise.
16777         * nscd/aicache.c (addhstaiX): Likewise
16778         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16780 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16782         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16783         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16784         * nscd/hstcache.c (cache_addhst): Likewise.
16785         * nscd/grpcache.c (cache_addgr): Likewise.
16786         * nscd/aicache.c (addhstaiX): Likewise
16788 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16790         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16791         domain only when needed.
16793 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16795         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16796         is always restored.
16798 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16800         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16801         are re-adding the entry.
16802         * nscd/servicescache.c (cache_addserv): Likewise.
16804 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16806         * sysdeps/generic/dl-irel.h: fix protection against multiple
16807         inclusions.
16808         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16810 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16812         [BZ #12935]
16813         * malloc/memusage.sh: Fix quoting in message.
16814         * debug/xtrace.sh: Likewise.
16816         * configure.in: Remove support for --experimental-malloc option, make
16817         it the default.
16818         * config.make.in: Likewise.
16819         * malloc/Makefile: Likewise.
16821 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16823         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16824         two-byte characters.
16826 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16828         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16829         AC_CACHE_CHECK invocation.
16830         * configure: Regenerated.
16832         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16834 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16836         [BZ #12350]
16837         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16838         bit from old_res_options.
16840         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16842         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16843         value type for setfct.
16845 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16847         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16848         __gettimeofday instead of gettimeofday.
16850 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16852         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16854 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16856         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16858         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16859         info.
16861 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16863         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16864         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16865         strcpy-sse2-unaligned strncpy-sse2-unaligned
16866         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16867         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16868         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16869         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16870         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16871         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16872         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16873         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16874         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16875         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16876         (STRCPY): Support SSE2 and SSSE3 versions.
16878 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16880         [BZ #12874]
16881         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16882         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16883         kernels which artificially limit size of requests.
16885 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16887         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16888         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16889         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16890         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16891         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16892         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16893         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16894         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16895         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16896         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16897         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16898         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16899         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16900         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16901         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16902         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16903         Enable unaligned load optimization for Intel Core i3, i5 and i7
16904         processors.
16905         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16906         Define.
16907         (index_Fast_Unaligned_Load): Define.
16908         (HAS_FAST_UNALIGNED_LOAD): Define.
16910 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16912         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16914 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16916         [BZ #12907]
16917         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16918         until it is clear that the information is realy needed.
16919         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16921 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16923         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16925 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16927         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16928         /sys/devices/system/cpu/online if it is usable.
16930         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16931         reading the information from the /proc filesystem to once a second.
16933 2011-06-21  Andreas Jaeger  <aj@suse.de>
16935         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16936         NULL after inclusion of kernel headers.
16938 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16940         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16941         calls to internal_setent.
16943         [BZ #12885]
16944         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16945         addresses using gethostbyname4_r ignore IPv4 addresses.
16947         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16948         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16950         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16952 2011-06-20  David S. Miller  <davem@davemloft.net>
16954         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16955         inclusions.
16956         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16958         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16959         (elf_irel): Use it.
16960         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16961         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16962         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16963         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16964         * sysdeps/x86_64/dl-irel.h: Likewise.
16966         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16967         * elf/dl-sym.c: Likewise.
16969 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16971         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16972         need to dereference resplen2.
16974 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16976         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16978 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16980         * Makeconfig: Define vardbdir and inst_vardbdir.
16981         * nss/Makefile: Add rules to install db-Makefile.
16983         * nss/nss_db/db-XXX.c: Cleanup.
16985         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16986         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16987         GLIBC_PRIVATE.
16988         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16989         * nss/makedb.c: Implement -g option to specify that value strings
16990         are generated and should not be added to table iterated over for
16991         get*ent calls.
16992         * nss/nss_db/db-initgroups.c: New file.
16994         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16995         interface.
16997         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16998         (internal_getgrouplist): Adjust to name change.
16999         Update use_initgroups_entry if this is not the first call.
17000         * nss/databases.def: Add initgroups entry.
17002         * nss/makedb.c (compute_tables): Check result of multiple hash table
17003         sizes to minimize maximum chain length.
17005 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17007         * Versions.def: Add entry for libnss_db.
17008         * shlib-versions: Likewise.
17009         * nss/Makefile: Add rules to build libnss_db.
17010         * nss/Versions: Add libnss_db information.  Organize libnss_files
17011         entries better.
17012         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17013         makedb progra.  Some minor improvements to generate smaller files.
17014         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17015         here from...
17016         * nss/makedb.c: ...here.
17017         Improve database format to be smaller and require less memory at
17018         runtime.
17019         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17020         db anymore.
17021         * nss/nss_db/db-netgrp.c: Likewise.
17022         * nss/nss_db/db-open.c: Likewise.
17023         * nss/nss_files/flies-XXX.x: Adjust comments.
17024         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17025         * nss/nss_files/files-grp.c: Likewise.
17026         * nss/nss_files/files-hosts.c: Likewise.
17027         * nss/nss_files/files-network.c: Likewise.
17028         * nss/nss_files/files-proto.c: Likewise.
17029         * nss/nss_files/files-pwd.c: Likewise.
17030         * nss/nss_files/files-rpc.c: Likewise.
17031         * nss/nss_files/files-service.c: Likewise.
17032         * nss/nss_files/files-sgrp.c: Likewise.
17033         * nss/nss_files/files-spwd.c: Likewise.
17034         * nss/nss_db/db-alias.c: Removed.
17035         * nss/nss_db/dummy-db.h: Removed.
17037 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17039         * nss/makedb.c: Rewritten to not use database library.
17040         * nss/Makefile: Update to build new makedb program.
17042 2011-06-14  Andreas Jaeger  <aj@suse.de>
17044         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17045         memset declaration.
17047 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17049         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17050         tmpbuf.
17052 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17054         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17055         * elf/Makefile ($(objpfx)ld.so): Likewise.
17057         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17058         Don't list ld.so twice in dependencies.
17060         * posix/bug-regex31.c: Include <stdlib.h>.
17062         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17064         * nis/nss_compat/compat-spwd.c
17065         (getspent_next_nss_netgr): Remove unused variable.
17066         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17068         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17069         nonmembers" output to use the right array.
17071         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17073         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17075         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17076         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17077         * catgets/gencat.c (read_input_file): Likewise.
17078         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17080         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17081         variable definition inside #if's controlling its use.
17083         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17085         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17087         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17089         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17090         unreachable code.
17092         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17094         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17095         * configure: Regenerated.
17097         * Makerules: Revert last change.
17098         * elf/Makefile: Likewise.
17100 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17102         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17103         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17104         (reloc-link): Likewise.
17106 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17108         * elf/Makefile: Add rules to build pldd.
17109         * elf/pldd.c: New file.
17110         * elf/pldd-xx.c: New file.
17112 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17114         * version.h: Update for 2.15 development version.
17116 2011-06-07  David S. Miller  <davem@davemloft.net>
17118         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17119         ifuncs.
17120         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17121         elf_machine_lazy_rel): Likewise.
17122         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17123         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17124         elf_machine_lazy_rel): Likewise.
17125         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17126         dl_hwcap via passed in argument.
17127         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17128         Likewise.
17130 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17132         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17134 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17136         [BZ #12849]
17137         * manual/fdl-1.1.texi: New file, verbatim from:
17138         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17139         * manual/lgpl-2.1.texi: New file, verbatim from:
17140         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17141         * manual/Makefile (licenses): New variable, list those new file names.
17142         (texis): Use it.
17143         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17145         * manual/fdl.texi: File removed.
17146         * manual/lesser.texi: File removed.
17147         * manual/libc.texinfo (Copying, Documentation License):
17148         Use new @include file names, put @appendix directive before @include.
17150 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17152         [BZ #12841]
17153         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17154         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17155         (mq_open): Add __NTH.
17157 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17159         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17160         Assume Intel Core i3/i5/i7 processor if AVX is available.
17162 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17164         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17165         typo.
17167 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17169         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17170         memory.  Use alloca_account.  Fix memory leak when retrying.
17172 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17174         * version.h (RELEASE): Bump for 2.14 release.
17175         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17177         * config.make.in (RANLIB): Remove entry.
17179 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17181         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17182         (libc.pot): Work around missing support for .ksh extension in xgettext.
17184         [BZ #12684]
17185         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17186         if both request failed.
17187         (send_dg): In case of server errors clear resplen or *resplen2.
17189         [BZ #12454]
17190         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17191         when there are multiple maps.
17192         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17193         (_dl_fini): Remove test here.
17195         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17197 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17199         [BZ #12350]
17200         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17201         bit from old_res_options.
17202         (gaih_inet): Likewise.
17204         [BZ #11099]
17205         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17206         as signed.
17208         * resolv/res_init.c (res_setoptions): Make the code more compact.
17210         [BZ #11558]
17211         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17212         set RES_USEVC.
17214         [BZ #11634]
17215         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17217         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17219         [BZ #11781]
17220         * malloc/malloc.h: Declare malloc hook variables as volatile.
17222         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17223         in last patch.
17225         [BZ #11799]
17226         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17227         raise in the comment.
17228         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17229         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17230         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17232 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17234         [BZ #12811]
17235         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17236         grow the buffers more if it already has to be sufficient.
17237         (build_wcs_upper_buffer): Likewise.
17238         * posix/regexec.c (check_matching): Likewise.
17239         (clean_state_log_if_needed): Likewise.
17240         (extend_buffers): Don't enlarge buffers beyond size of the input
17241         buffer.
17242         Patches mostly by Emil Wojak <emil@wojak.eu>.
17243         * posix/bug-regex32.c: New file.
17244         * posix/Makefile (tests): Add bug-regex32.
17246         * locale/findlocale.c (_nl_find_locale): Return right away if
17247         _nl_explode_name failed.
17248         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17250         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17252         * debug/xtrace.sh: Unify messages.
17253         * malloc/memusage.sh: Likewise.
17255         [BZ #12813]
17256         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17257         time symbol from vDSO.  Substitute with vsyscall if not available.
17258         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17259         __vdso_time.
17261         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17262         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17263         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17264         Add sendmmsg and internal_sendmmsg.
17265         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17266         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17267         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17269         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17270         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17271         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17273 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17275         [BZ #12813]
17276         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17277         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17278         available.
17279         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17280         __vdso_getcpu.
17282         [BZ #12814]
17283         * iconvdata/Makefile (tests): Add bug-iconv9.
17284         * iconvdata/bug-iconv9.c: New file.
17286 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17288         [BZ #12814]
17289         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17291 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17293         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17294         (struct user_regs_struct): Change intcs field back to cs.
17296 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17298         * po/ja.po: Update from translation team.
17300 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17302         [BZ #12795]
17303         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17304         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17306 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17308         * stdlib/longlong.h: Update from GCC.
17310 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17312         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17313         parameter name.
17314         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17315         Add parameter name.
17316         (__sysconf): Pass it down.
17318 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17320         [BZ #12671]
17321         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17322         some situations.
17323         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17324         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17325         add in in __libc_use_alloca calls.  Adjust callers.
17326         (glob): Use malloc in some situations.
17328         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17329         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17330         pltexit.
17332 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17334         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17335         and CLOCK_BOOTTIME_ALARM.
17337         [BZ #12782]
17338         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17339         is returned.
17341         * string/_strerror.c (__strerror_r): Print negative errors as signed
17342         numbers.
17344         [BZ #12777]
17345         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17346         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17347         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17349         * configure.in: Fix typo in redirection and correct removal of test
17350         files in two cases.
17352         [BZ #12788]
17353         * locale/setlocale.c (new_composite_name): Fix test to check for
17354         identical name of all categories.
17356         [BZ #12792]
17357         * libio/filedoalloc.c (local_isatty): New function.
17358         (_IO_file_doallocate): Use local_isatty.
17359         * stdio-common/perror.c (perror): In case a new stream is used
17360         forward the stream error.
17361         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17362         error flag.
17364 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17366         [BZ #11869]
17367         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17368         alloca.
17369         * include/alloca.h (extend_alloca_account): Define.
17371         [BZ #11857]
17372         * posix/regex.h: Fix comments with documentation of user-accessible
17373         fields after compilation and describe correct free'ing of pattern
17374         after re_compile_pattern.
17375         Patch by Reuben Thomas <rrt@sc3d.org>.
17377 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17379         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17380         and -mno-altivec to prevent the compiler from using Altivec and/or
17381         VSX instructions when the corresponding registers are not available.
17383 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17385         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17387 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17389         * libio/freopen.c (freopen): Use __dup2, not dup2.
17390         * libio/freopen64.c (freopen64): Likewise.
17392 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17394         [BZ #12775]
17395         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17396         * math/Makefile (tests): Add test-powl.
17397         (CFLAGS-test-powl.c): Define.
17398         * math/test-powl.c: New file.
17400 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17402         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17404 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17406         [BZ #11837]
17407         * iconvdata/gb18030.c: Update to GB18020-2005.
17409 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17411         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17412         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17413         Patch by Aharon Robbins <arnold@skeeve.com>.
17415         [BZ #11892]
17416         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17417         on the stack.
17419         [BZ #11895]
17420         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17421         through underflows.
17423         [BZ #12766]
17424         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17425         point to strings before performing equality test for error_one_per_line
17426         mode.
17428         [BZ #11697]
17429         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17431         [BZ #11820]
17432         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17433         (struct user_fpregs_struct): Avoid __uint*_t types.
17435         [BZ #6420]
17436         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17437         symbol info.  Use it instead of calling _dl_addr locally.
17438         (lock_and_info): New function.
17439         (tr_freehook): Call lock_and_info and pass symbol info as additional
17440         parameter to tr_where.
17441         (tr_mallochook): Likewise.
17442         (tr_reallochook): Likewise.
17443         (tr_memalignhook): Likewise.
17445         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17446         used and couldn't be at all thread-safe.
17448 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17450         * libio/freopen.c (freopen): Don't close old file descriptor
17451         before the new one is opened.  Instead dup the new file descriptor
17452         to the old one after the new stream is created.
17453         * libio/freopen64.c (freopen64): Likewise.
17454         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17455         * libio/fileops.c (_IO_new_file_close_it): Handle new
17456         _IO_FLAGS2_NOCLOSE flag.
17457         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17458         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17459         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17460         _IO_FLAGS2_NOCLOSE flag.
17461         * include/unistd.h: Add hidden_proto for dup3.
17462         Define __have_dup3.
17463         * io/dup3.c: Define hidden symbol.
17464         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17466         [BZ #7101]
17467         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17468         when an incomplete long option is used.
17469         * posix/tst-getopt_long1.c: New file.
17470         * posix/Makefile (tests): Add tst-getopt_long1.
17472         [BZ #10138]
17473         * scripts/config.guess: Update from autoconf-2.68.
17474         * scripts/config.sub: Likewise.
17476         [BZ #10157]
17477         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17478         tests into ...
17479         (has_cpuclock): ...this.  New function.
17480         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17481         macro here based on has_cpuclock code.
17483         [BZ #10149]
17484         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17485         First byte (not low byte) is now always NUL.
17486         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17488         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17489         Use non-cancelable interfaces.
17491         [BZ #9809]
17492         * locale/iso-639.def: Add entry for Sorani.
17494         [BZ #11901]
17495         * include/stdlib.h: Move include protection to the right place.
17496         Define abort_msg_s.  Declare __abort_msg with it.
17497         * stdlib/abort.c (__abort_msg): Adjust type.
17498         * assert/assert.c (__assert_fail_base): New function.  Majority
17499         of code from __assert_fail.  Allocate memory for __abort_msg with
17500         mmap.
17501         (__assert_fail): Now call __assert_fail_base.
17502         * assert/assert-perr.c: Remove bulk of implementation.  Use
17503         __assert_fail_base.
17504         * include/assert.hL Declare __assert_fail_base.
17505         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17506         mmap.
17507         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17509 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17511         [BZ #11952]
17512         [BZ #12453]
17513         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17514         until all modules are registered in the DTV.
17515         * elf/Makefile: Add rules to build and run tst-tls19.
17516         * elf/tst-tls19.c: New file.
17517         * elf/tst-tls19mod1.c: New file.
17518         * elf/tst-tls19mod2.c: New file.
17519         * elf/tst-tls19mod3.c: New file.
17520         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17522         [BZ #12083]
17523         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17524         correctly.
17526         [BZ #12601]
17527         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17528         two-byte sequence errors.
17529         * iconvdata/Makefile (tests): Add bug-iconv8.
17530         * iconvdata/bug-iconv8.c: New file.
17532         [BZ #12626]
17533         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17534         buf2 definition.
17536         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17538         [BZ #12432]
17539         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17540         (dummy_getcfa): New function.
17541         (init): Get _Unwind_GetCFA address, use dummy if not found.
17542         (backtrace_helper): In recursion check, also check whether CFA changes.
17543         (__backtrace): Completely initialize arg.
17545         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17546         storing incomplete byte sequence in state object.  Avoid testing for
17547         guaranteed too small input if we know there is enough data available.
17549 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17551         * Makeconfig (+link-pie): Indent.
17552         * Rules (binaries-pie): Define if $(have-fpie) and
17553         $(build-shared).
17554         (binaries-shared): Also filter out $(binaries-pie).
17555         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17556         * nscd/Makefile (others-pie): Add nscd.
17557         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17558         ($(objpfx)nscd): Remove command override.
17559         * login/Makefile (others-pie): Add pt_chown.
17560         ($(objpfx)pt_chown): Remove command override.
17561         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17562         remove command overrides.
17564 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17566         * libio/tst_putwc.c: Fix error messages.
17568         [BZ #12724]
17569         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17570         currently writing and seek to current position when not.
17571         * libio/Makefile (tests): Add bug-fclose1.
17572         * libio/bug-fclose1.c: New file.
17574 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17576         [BZ #12511]
17577         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17578         don't set DF_1_NODELETE here.
17579         (do_lookup_x): When entering new entry test for copy relocation
17580         and if necessary set DF_1_NODELETE flag.
17581         * elf/tst-unique4.cc: New file.
17582         * elf/tst-unique4.h: New file.
17583         * elf/tst-unique4lib.cc: New file.
17584         * elf/Makefile: Add rules to build and run tst-unique4.
17585         Patch by Piotr Bury <pbury@goahead.com>.
17587 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17589         [BZ #12052]
17590         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17592         [BZ #12625]
17593         * misc/mntent_r.c (addmntent): Flush the stream after the output
17595         [BZ #12393]
17596         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17597         (is_trusted_path_normalize): Skip initial colon.  Append slash
17598         to empty buffer.  Duplicate is_trusted_path code but allow
17599         constructed patch to be prefix.
17600         (is_dst): Allow $ORIGIN followed by /.
17601         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17602         Correct testing of result of is_trusted_path_normalize
17603         (decompose_rpath): Fix warning.
17605 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17607         [BZ #11257]
17608         * grp/initgroups.c (internal_getgrouplist): When we found the service
17609         list through the initgroups entry in nsswitch.conf do not always
17610         continue on a successful lookup.  Don't always use the
17611         __nss_group_database value if it is set.
17612         * nss/nsswitch.conf (initgroups): Change action for successful db
17613         lookup to continue for compatibility.
17615 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17617         [BZ #11532]
17618         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17619         and CP774 modules.
17620         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17621         and CP774 modules.
17622         * iconvdata/tst-tables.sh: Likewise.
17623         * iconvdata/cp770.c: New file.
17624         * iconvdata/cp771.c: New file.
17625         * iconvdata/cp772.c: New file.
17626         * iconvdata/cp773.c: New file.
17627         * iconvdata/cp774.c: New file.
17628         * iconvdata/testdata/CP770: New file.
17629         * iconvdata/testdata/CP770..UTF8: New file.
17630         * iconvdata/testdata/CP771: New file.
17631         * iconvdata/testdata/CP771..UTF8: New file.
17632         * iconvdata/testdata/CP772: New file.
17633         * iconvdata/testdata/CP772..UTF8: New file.
17634         * iconvdata/testdata/CP773: New file.
17635         * iconvdata/testdata/CP773..UTF8: New file.
17636         * iconvdata/testdata/CP774: New file.
17637         * iconvdata/testdata/CP774..UTF8: New file.
17639         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17640         END CHARMAP line.
17641         * iconvdata/gen-8bit-gap.sh: Likewise.
17642         * iconvdata/gen-8bit.sh: Likewise.
17644         * locale/iso-639.def: Add ary entry.
17646         [BZ #11258]
17647         * locale/C-translit.h.in: Add U20A1 transliteration.
17649         [BZ #12178]
17650         * locale/iso-639.def: Add wae entry.
17651         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17653         [BZ #12545]
17654         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17655         for n.
17657         [BZ #12711]
17658         * locale/C-translit.h.in: Add entry for U20B9.
17659         Patch by pravin.d.s@gmail.com.
17661 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17663         [BZ #12713]
17664         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17665         ENAMETOOLONG use generic getcwd.
17666         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17667         in rtld.  Use *stat64.
17668         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17669         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17670         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17671         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17672         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17673         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17674         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17675         __fstatat64 macros.
17676         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17677         * dirent/rewinddir.c: Add libc_hidden_def.
17678         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17679         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17681         * include/dirent.h (__alloc_dir): Add flags parameter.
17682         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17683         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17684         __alloc_dir.
17685         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17686         from fdopendir if O_CLOEXEC is already set.
17688 2011-03-15  Alan Modra  <amodra@gmail.com>
17690         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17691         l_tls_firstbyte_offset non-zero.  Save padding offset in
17692         l_tls_firstbyte_offset for later use.
17693         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17694         freeing static tls block.
17696 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17698         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17699         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17700         being defined by the kernel headers.
17702 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17704         [BZ #12734]
17705         * resolv/resolv.h: Define RES_NOTLDQUERY.
17706         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17707         no-tld-query and set RES_NOTLDQUERY.
17708         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17709         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17710         modern BIND to search name as TLD unless forbidden.
17712 2011-05-07  Petr Baudis  <pasky@suse.cz>
17713             Ulrich Drepper  <drepper@gmail.com>
17715         [BZ #12393]
17716         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17717         (is_trusted_path): ...to here.
17718         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17719         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17720         using is_trusted_path_normalize() in setuid scripts.
17722 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17724         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17725         __BEGIN/__END_DECLS.
17727 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17729         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17730         NSS_STATUS_NOTFOUND if no record was found.
17732 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17734         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17735         (headers-not-in-tirpc): Remove rpc/netdb.h
17736         * resolv/netdb.h: Revert last change.
17738 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17740         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17741         circular dependency between libgcc.a and libc.a.
17743 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17745         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17746         * nis/Makefile: Don't install rpcsvc/*.
17747         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17748         instead of <rpc/types.h>.
17749         (MAXHOSTNAMELEN): Define.
17751 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17753         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17755 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17757         [BZ #12714]
17758         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17759         gethostbyname4_r when IPv6 results are possible.
17761 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17763         [BZ #12723]
17764         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17765         _PC_PIPE_BUF handling.
17767 2011-04-30  Bruno Haible  <bruno@clisp.org>
17769         [BZ #12717]
17770         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17771         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17772         to 'int'.
17773         * inet/getnameinfo.c (getnameinfo): Likewise.
17775 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17777         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17778         to groups setting in database lookup.
17779         * nss/nsswitch.conf: Add initgroups entry.
17781 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17783         [BZ #12685]
17784         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17785         mode string.
17786         Patch by Eric Blake <eblake@redhat.com>.
17788 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17790         * sunrpc/Makefile (need-export-routines): Add svc_run.
17791         (routines): Remove svc_run.
17792         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17793         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17794         * sunrpc/svc_run.c (svc_run): Likewise.
17795         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17797 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17799         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17800         problem in reallocation in last patch.
17802 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17804         * sunrpc/Makefile: Move inclusion of Rules.
17806 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17808         * nss/nss_files/files-initgroups.c: New file.
17809         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17810         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17811         _nss_files_initgroups_dyn.
17813 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17815         * elf/elf.h (R_ARM_IRELATIVE): Define.
17817 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17819         * po/ru.po: Update from translation team.
17821 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17823         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17824         dependencies.
17826 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17828         [BZ #12653]
17829         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17830         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17831         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17832         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17833         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17835 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17837         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17838         differing bytes.
17839         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17840         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17841         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17843 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17845         [BZ #12420]
17846         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17847         storing it.
17848         * stdlib/bug-getcontext.c: New file.
17849         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17851 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17853         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17854         instructions into .machine "z9-109".
17855         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17856         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17858 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17860         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17861         between environment variables and auxiliary vector.
17863 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17865         * Makefile: Add rules to build linkobj/libc.so.
17866         * include/libc-symbols.h: Define libc_hidden_nolink.
17867         * include/rpc/auth.h: Mark functions which are to be hidden.
17868         * include/rpc/auth_des.h: Likewise.
17869         * include/rpc/auth_unix.h: Likewise.
17870         * include/rpc/clnt.h: Likewise.
17871         * include/rpc/des_crypt.h: Likewise.
17872         * include/rpc/key_prot.h: Likewise.
17873         * include/rpc/pmap_clnt.h: Likewise.
17874         * include/rpc/pmap_prot.h: Likewise.
17875         * include/rpc/pmap_rmt.h: Likewise.
17876         * include/rpc/rpc_msg.h: Likewise.
17877         * include/rpc/svc.h: Likewise.
17878         * include/rpc/svc_auth.h: Likewise.
17879         * include/rpc/xdr.h: Likewise.
17880         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17881         * nss/Makefile: Likewise.
17882         * sunrpc/Makefile: Don't install headers.  Build library with normal
17883         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17884         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17885         for the compat linking library.  Remove use of INTDEF/INTUSE.
17886         * sunrpc/auth_none.c: Likewise.
17887         * sunrpc/auth_unix.c: Likewise.
17888         * sunrpc/authdes_prot.c: Likewise.
17889         * sunrpc/authuxprot.c: Likewise.
17890         * sunrpc/clnt_gen.c: Likewise.
17891         * sunrpc/clnt_perr.c: Likewise.
17892         * sunrpc/clnt_raw.c: Likewise.
17893         * sunrpc/clnt_simp.c: Likewise.
17894         * sunrpc/clnt_tcp.c: Likewise.
17895         * sunrpc/clnt_udp.c: Likewise.
17896         * sunrpc/clnt_unix.c: Likewise.
17897         * sunrpc/des_crypt.c: Likewise.
17898         * sunrpc/des_soft.c: Likewise.
17899         * sunrpc/get_myaddr.c: Likewise.
17900         * sunrpc/key_call.c: Likewise.
17901         * sunrpc/key_prot.c: Likewise.
17902         * sunrpc/netname.c: Likewise.
17903         * sunrpc/pm_getmaps.c: Likewise.
17904         * sunrpc/pm_getport.c: Likewise.
17905         * sunrpc/pmap_clnt.c: Likewise.
17906         * sunrpc/pmap_prot.c: Likewise.
17907         * sunrpc/pmap_prot2.c: Likewise.
17908         * sunrpc/pmap_rmt.c: Likewise.
17909         * sunrpc/publickey.c: Likewise.
17910         * sunrpc/rpc_cmsg.c: Likewise.
17911         * sunrpc/rpc_common.c: Likewise.
17912         * sunrpc/rpc_dtable.c: Likewise.
17913         * sunrpc/rpc_prot.c: Likewise.
17914         * sunrpc/rpc_thread.c: Likewise.
17915         * sunrpc/rtime.c: Likewise.
17916         * sunrpc/svc.c: Likewise.
17917         * sunrpc/svc_auth.c: Likewise.
17918         * sunrpc/svc_authux.c: Likewise.
17919         * sunrpc/svc_raw.c: Likewise.
17920         * sunrpc/svc_run.c: Likewise.
17921         * sunrpc/svc_simple.c: Likewise.
17922         * sunrpc/svc_tcp.c: Likewise.
17923         * sunrpc/svc_udp.c: Likewise.
17924         * sunrpc/svc_unix.c: Likewise.
17925         * sunrpc/svcauth_des.c: Likewise.
17926         * sunrpc/xcrypt.c: Likewise.
17927         * sunrpc/xdr.c: Likewise.
17928         * sunrpc/xdr_array.c: Likewise.
17929         * sunrpc/xdr_float.c: Likewise.
17930         * sunrpc/xdr_intXX_t.c: Likewise.
17931         * sunrpc/xdr_mem.c: Likewise.
17932         * sunrpc/xdr_rec.c: Likewise.
17933         * sunrpc/xdr_ref.c: Likewise.
17934         * sunrpc/xdr_sizeof.c: Likewise.
17935         * sunrpc/xdr_stdio.c: Likewise.
17937 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17939         [BZ #12650]
17940         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17941         * sysdeps/ia64/dl-tls.h: Likewise.
17942         * sysdeps/powerpc/dl-tls.h: Likewise.
17943         * sysdeps/s390/dl-tls.h: Likewise.
17944         * sysdeps/sh/dl-tls.h: Likewise.
17945         * sysdeps/sparc/dl-tls.h: Likewise.
17946         * sysdeps/x86_64/dl-tls.h: Likewise.
17947         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17949 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17951         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17952         rpath element also skip the following colon.
17953         (expand_dynamic_string_token): Add is_path parameter and pass
17954         down to DL_DST_REQUIRED and _dl_dst_substitute.
17955         (decompose_rpath): Call expand_dynamic_string_token with
17956         non-zero is_path.  Ignore empty rpaths.
17957         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17958         with zero is_path.
17960 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17963         Make cancelable.
17965 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17967         [BZ #12655]
17968         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17969         Patch by Filipe David Manana <fdmanana@apache.org>.
17971 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17973         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17974         Maintain aligned stack.
17975         (CHECK_RSP): Remove unused macro.
17977 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17979         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17980         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17982 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17984         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17986         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17988 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17990         [BZ #12518]
17991         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17992         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17993         * sysdeps/x86_64/memmove.c: New file.
17994         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17995         (memcpy): Renamed to ...
17996         (__new_memcpy): This.
17997         (memcpy): Provide GLIBC_2_14 memcpy.
17998         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17999         (memcpy): Provide GLIBC_2_2_5 memcpy.
18001 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18003         [BZ #12631]
18004         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18006 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18008         * misc/syncfs.c: New file.
18009         * misc/Makefile (routines): Add syncfs.
18010         * posix/unistd.h: Declare syncfs.
18011         * sysdeps/unix/syscalls.list: Add syncfs.
18013 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18015         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18016         open_by_handle_at.
18017         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18018         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18019         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18020         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18021         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18022         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18023         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18025 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18027         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18028         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18029         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18030         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18031         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18032         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18033         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18035         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18036         sync_file_range.c with -fexceptions.
18037         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18038         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18039         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18040         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18041         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18042         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18043         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18044         sync_file_range as cancellation point
18045         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18046         now a wrapper around __call_sync_file_range with cancellation handling.
18047         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18048         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18049         function name to __call_sync_file_range.
18050         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18051         Add call_sync_file_range.
18053 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18055         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18056         bits/timex.h.
18058 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18060         * iconv/iconv.h: Fix typo in comment.
18061         * io/fcntl.h: Likewise.
18062         * libio/stdio.h: Likewise.
18063         * posix/spawn.h: Likewise.
18064         * posix/unistd.h: Likewise.
18065         * stdlib/stdlib.h: Likewise.
18066         * time/time.h: Likewise.
18067         * wcsmbs/wchar.h: Likewise.
18069         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18070         open_by_handle): Add.
18071         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18072         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18073         Augment a few comments.
18074         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18075         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18076         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18077         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18078         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18079         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18080         open_by_handle.
18082         * io/fcntl.h (AT_EMPTY_PATH): Define.
18084 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18086         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18087         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18088         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18089         to...
18090         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18091         * Versions.def: Add GLIBC_2.14.
18092         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18093         Export.
18095 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18097         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18098         round counter.
18099         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18101 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18103         [BZ #12597]
18104         * string/test-strncmp.c (do_page_test): New function.
18105         (check2): Likewise.
18106         (test_main): Call check2.
18107         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18109 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18111         [BZ #12587]
18112         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18113         Handle cache information in CPU leaf 4.
18114         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18116 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18118         [BZ #12583]
18119         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18120         character representation.
18121         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18123 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18125         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18126         END(__isnan) to END(__isnanf) to match function entry point/label
18127         EALIGN(__isnanf,...).
18129 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18131         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18133 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18135         [BZ #12510]
18136         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18137         copy from the symbol referenced in the relocation to initialize the
18138         used variable.
18139         Patch by Piotr Bury <pbury@goahead.com>.
18140         * elf/Makefile: Add rules to build and tst-unique3.
18141         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18142         * elf/tst-unique3.cc: New file.
18143         * elf/tst-unique3.h: New file.
18144         * elf/tst-unique3lib.cc: New file.
18145         * elf/tst-unique3lib2.cc: New file.
18147         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18149 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18151         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18152         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18153         to _start.
18155 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18157         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18158         to-be-loaded object along a path to loader is ld.so.
18160 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18161             Ulrich Drepper  <drepper@gmail.com>
18163         * sysdeps/x86_64/memset.S: After aligning destination, code
18164         branches to different locations depending on the value of
18165         misalignment, when multiarch is enabled. Fix this.
18167 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18169         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18170         Set _x86_64_preferred_memory_instruction for AMD processsors.
18171         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18172         Set bit_Prefer_SSE_for_memop for AMD processors.
18174 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18176         * libio/fmemopen.c (fmemopen): Optimize a bit.
18178 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18180         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18182 2011-03-03  Roland McGrath  <roland@redhat.com>
18184         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18186 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18188         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18189         __bzero_ultra1 instead of __memset_ultra1.
18191 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18192             Ulrich Drepper  <drepper@gmail.com>
18194         [BZ #12509]
18195         * include/link.h (struct link_map): Add l_orig_initfini.
18196         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18197         returning unsuccessfully.
18198         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18199         close of a file loaded at startup, restore the original l_initfini
18200         list.
18201         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18202         list, store the pointer.
18203         * elf/Makefile ($(objpfx)noload-mem): New rule.
18204         (noload-ENV): Define.
18205         (tests): Add $(objpfx)noload-mem.
18206         * elf/noload.c: Include <memcheck.h>.
18207         (main): Call mtrace.  Close all opened handles.
18209 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18211         [BZ #12454]
18212         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18213         dependencies are missing.
18215 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18217         Fix __if_freereq crash: Unlike the generic version which uses free,
18218         Hurd needs munmap.
18219         * sysdeps/mach/hurd/ifreq.h: New file.
18221 2011-01-27  Petr Baudis  <pasky@suse.cz>
18222             Ulrich Drepper  <drepper@gmail.com>
18224         [BZ 12445]#
18225         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18226         to extend_alloca().
18227         * stdio-common/bug23.c: New file.
18228         * stdio-common/Makefile (tests): Add bug23.
18230 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18231             Ulrich Drepper  <drepper@gmail.com>
18233         [BZ #12489]
18234         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18235         before performing relro protection.  At old place add assertion
18236         to make sure nothing changed.
18238 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18239             Glauber de Oliveira Costa  <glommer@gmail.com>
18241         * elf/elf.h: Add new ARM TLS relocs.
18243 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18246         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18247         cast from r3.
18248         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18249         'tests' variable.
18250         * sysdeps/wordsize-64/tst-writev.c: New file.
18252 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18254         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18255         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18256         insns in _dl_start to prevent a TOC reference before relocs are
18257         resolved.
18259 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18261         [BZ #12469]
18262         * Makeconfig: Remove RANLIB definition.
18263         * Makerules: Don't use RANLIB.
18264         * aclocal.m4: Remove ranlib test.
18265         * configure.in: No need to check for ranlib.
18266         * elf/rtld-Rules: Don't use RANLIB.
18268 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18270         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18271         protection macro.
18272         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18273         inclusion protection macro.
18275         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18276         SIGRTMIN and SIGRTMAX and print information in that case only when
18277         SIGRTMIN is defined.
18279 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18281         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18282         arginfo fn returning -1.
18284         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18285         and thousands string is zero terminated.
18287 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18289         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18290         sysdeps/unix/sysv/linux/bits/socket.h.
18292 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18294         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18295         (__CPU_COUNT): Remove old macros.
18296         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18297         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18298         (__CPU_ALLOC, __CPU_FREE): Add macros.
18299         (__sched_cpualloc, __sched_cpufree): Add declarations.
18301 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18303         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18304         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18305         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18306         (readdhstai): Return value of addhstaiX call.
18307         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18308         (addgrbyX): Return value returned by cache_addgr.
18309         (readdgrbyname): Return value returned by addgrbyX.
18310         (readdgrbygid): Likewise.
18311         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18312         (addpwbyX): Return value returned by cache_addpw.
18313         (readdpwbyname): Return value returned by addhstbyX.
18314         (readdpwbyuid): Likewise.
18315         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18316         (addservbyX): Return value returned by cache_addserv.
18317         (readdservbyname): Return value returned by addservbyX:
18318         (readdservbyport): Likewise.
18319         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18320         (addhstbyX): Return value returned by cache_addhst.
18321         (readdhstbyname): Return value returned by addhstbyX.
18322         (readdhstbyaddr): Likewise.
18323         (readdhstbynamev6): Likewise.
18324         (readdhstbyaddrv6): Likewise.
18325         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18326         (readdinitgroups): Return value returned by addinitgroupsX.
18327         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18328         (prune_cache): Keep track of timeout value of re-added entries.
18329         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18330         * nscd/nscd.h: Adjust prototypes of readd* functions.
18332 2011-02-04  Roland McGrath  <roland@redhat.com>
18334         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18335         (nis_stats): Likewise.
18336         * nis/nis_modify.c (nis_modify): Likewise.
18337         * nis/nis_remove.c (nis_remove): Likewise.
18338         * nis/nis_add.c (nis_add): Likewise.
18340         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18342         * posix/fnmatch_loop.c: Add some consts.
18344         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18346 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18348         [BZ #12460]
18349         * config.make.in (config-cflags-novzeroupper): Define.
18350         * configure.in: Substitute libc_cv_cc_novzeroupper.
18351         * elf/Makefile (AVX-CFLAGS): Define.
18352         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18353         (CFLAGS-tst-auditmod4a.c): Likewise.
18354         (CFLAGS-tst-auditmod4b.c): Likewise.
18355         (CFLAGS-tst-auditmod6b.c): Likewise.
18356         (CFLAGS-tst-auditmod6c.c): Likewise.
18357         (CFLAGS-tst-auditmod7b.c): Likewise.
18358         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18360 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18362         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18363         function to the callback.
18364         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18366 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18368         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18369         of errno.
18371 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18373         [BZ #11724]
18374         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18375         of constructors.
18376         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18377         of destructors.
18378         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18380         [BZ #11724]
18381         * elf/Makefile: Add rules to build and run new test.
18382         * elf/tst-initorder.c: New file.
18383         * elf/tst-initorder.exp: New file.
18384         * elf/tst-initordera1.c: New file.
18385         * elf/tst-initordera2.c: New file.
18386         * elf/tst-initordera3.c: New file.
18387         * elf/tst-initordera4.c: New file.
18388         * elf/tst-initorderb1.c: New file.
18389         * elf/tst-initorderb2.c: New file.
18390         * elf/tst-order-a1.c: New file.
18391         * elf/tst-order-a2.c: New file.
18392         * elf/tst-order-a3.c: New file.
18393         * elf/tst-order-a4.c: New file.
18394         * elf/tst-order-b1.c: New file.
18395         * elf/tst-order-b2.c: New file.
18396         * elf/tst-order-main.c: New file.
18397         New test case by George Gensure <werkt0@gmail.com>.
18399 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18401         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18402         decoding ACE if AI_CANONIDN.
18404 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18406         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18408 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18410         * version.h (RELEASE): Bump for 2.13 release.
18411         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18413         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18415         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18416         MADV_NOHUGEPAGE.
18417         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18418         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18419         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18420         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18421         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18422         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18424         * posix/getconf.c: Update copyright year.
18425         * catgets/gencat.c: Likewise.
18426         * csu/version.c: Likewise.
18427         * debug/catchsegv.sh: Likewise.
18428         * debug/xtrace.sh: Likewise.
18429         * elf/ldconfig.c: Likewise.
18430         * elf/ldd.bash.in: Likewise.
18431         * elf/sprof.c (print_version): Likewise.
18432         * iconv/iconv_prog.c: Likewise.
18433         * iconv/iconvconfig.c: Likewise.
18434         * locale/programs/locale.c: Likewise.
18435         * locale/programs/localedef.c: Likewise.
18436         * malloc/memusage.sh: Likewise.
18437         * malloc/mtrace.pl: Likewise.
18438         * nscd/nscd.c (print_version): Likewise.
18439         * nss/getent.c: Likewise.
18441         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18442         PF_CAIF, and PF_ALG.
18443         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18445 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18447         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18448         (modules-names): Use them.
18449         (ifunc-test-modules, ifunc-pie-tests): Define.
18450         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18451         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18452         (test-extras): Likewise.
18453         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18454         $(compile-command.c).
18455         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18456         (all-built-dso): Define.
18457         (check-textrel.out, check-execstack.out): Depend on it.
18459         * configure.in: Don't override --enable-multi-arch.
18461 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18463         [BZ #6812]
18464         * nscd/hstcache.c (tryagain): Define.
18465         (cache_addhst): Return tryagain not notfound for temporary errors.
18466         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18467         failed.
18469 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18471         [BZ #10563]
18472         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18473         to make the syscall.
18474         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18476         [BZ #12378]
18477         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18478         and fall back to matching as normal character if the string ends before
18479         the matching ']' is found.  This is what POSIX requires.
18480         * posix/testfnm.c: Adjust test result.
18481         * posix/globtest.sh: Adjust test result.  Add new test.
18482         * posix/tst-fnmatch.input: Likewise.
18483         * posix/tst-fnmatch2.c: Add new test.
18485 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18487         * elf/Makefile (check-execstack): Revert last change.  Depend on
18488         check-execstack.h.
18489         (check-execstack.h): New target.
18490         (generated): Add check-execstack.h.
18491         * elf/check-execstack.c: Include "check-execstack.h".
18492         (main): Revert last change.
18493         (handle_file): Return zero if GNU_STACK is absent and
18494         DEFAULT_STACK_PERMS doesn't include PF_X.
18496 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18498         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18499         in child fails because the descriptor is already closed.
18500         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18501         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18502         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18504         [BZ #12397]
18505         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18506         syscall.
18508         [BZ #10484]
18509         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18510         temporary buffer used to handle multi lookups locally.
18511         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18513 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18515         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18516         loader is ld.so.
18518 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18520         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18521         alignment for SSE2.
18523 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18525         [BZ #12394]
18526         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18527         characters.  When rounding increased number of integer digits recompute
18528         number of groups.
18529         * stdio-common/tst-grouping.c: New file.
18530         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18532 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18534         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18535         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18537         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18538         void.
18539         * bits/select.h: Likewise.
18541 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18543         * po/ja.po: Update from translation team.
18545 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18547         [BZ #11155]
18548         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18549         implementation just like for lxstat, fxstatat, et al.
18551 2010-12-27  Jim Meyering  <meyering@redhat.com>
18553         [BZ #12348]
18554         * posix/regexec.c (build_trtable): Return failure indication upon
18555         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18557 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18559         [BZ #12201]
18560         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18561         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18562         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18563         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18565         [BZ #12207]
18566         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18568         [BZ #12204]
18569         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18570         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18572 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18574         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18575         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18576         script has SORT_BY_INIT_PRIORITY.
18577         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18578         NO_CTORS_DTORS_SECTIONS is defined.
18579         * elf/soinit.c: Likewise.
18580         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18581         NO_CTORS_DTORS_SECTIONS is defined.
18582         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18583         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18584         * sysdeps/sh/init-first.c: Likewise.
18585         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18587 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18589         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18590         always use the slow path.
18592 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18594         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18595         similar rule which adds the sysdep directories to the header search in
18596         order to pick up the correct platform stackinfo.h.
18597         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18598         perform test if it is, otherwise return successfully without testing.
18599         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18600         DEFAULT_STACK_PERMS define in stackinfo.h.
18601         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18602         defined in stackinfo.h.
18603         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18604         DEFAULT_STACK_PERMS defined in stackinfo.h.
18605         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18606         * sysdeps/ia64/stackinfo.h: Likewise.
18607         * sysdeps/s390/stackinfo.h: Likewise.
18608         * sysdeps/sh/stackinfo.h: Likewise.
18609         * sysdeps/sparc/stackinfo.h: Likewise.
18610         * sysdeps/x86_64/stackinfo.h: Likewise.
18611         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18612         PF_X for powerpc64.  Retain PF_X for powerpc32.
18614 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18616         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18617         accurately.
18618         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18619         GETDENTS_64BIT_ALIGNED.
18621 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18623         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18625 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18627         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18628         _GNU_SOURCE.
18630         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18631         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18632         Remove __restrict.
18633         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18634         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18636 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18638         [BZ #11655]
18639         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18640         are initialized.
18642 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18644         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18646 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18648         * po/it.po: Update from translation team.
18650 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18652         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18653         unused codes.
18655 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18657         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18659 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18661         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18662         specially.
18663         (gaih_getanswer_slice): Likewise.
18665 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18667         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18669 2010-05-31  Petr Baudis  <pasky@suse.cz>
18671         [BZ #11149]
18672         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18673         silently even in the chroot mode.
18675 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18677         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18678         last patch a bit.  Pretty printing
18680 2010-05-31  Petr Baudis <pasky@suse.cz>
18682         [BZ #10085]
18683         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18684         initialization of skip_initgroups_dyn.
18686 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18688         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18689         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18691 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18693         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18695 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18697         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18698         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18699         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18700         ($(objpfx)tst-fnmatch-mem): New rule.
18701         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18702         * posix/tst-fnmatch.c (main): Call mtrace.
18704 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18706         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18707         Support Intel processor model 6 and model 0x2c.
18709 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18711         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18712           signed comparison.
18714 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18716         [BZ #12205]
18717         * string/test-strncasecmp.c (check_result): New function.
18718         (do_one_test): Use it.
18719         (check1): New function.
18720         (test_main): Use it.
18721         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18722         Support strcasecmp and strncasecmp.
18724 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18726         [BZ #12194]
18727         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18728         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18730 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18732         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18733         IFUNC support.
18734         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18735         memset-x86-64.
18736         * sysdeps/x86_64/multiarch/bzero.S: New file.
18737         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18738         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18739         * sysdeps/x86_64/multiarch/memset.S: New file.
18740         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18741         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18742         Set bit_Prefer_SSE_for_memop for Intel processors.
18743         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18744         Define.
18745         (index_Prefer_SSE_for_memop): Define.
18746         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18748 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18750         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18751         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18753 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18755         [BZ #12191]
18756         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18757         (__x86_64_raw_data_cache_size_half): Likewise.
18758         (__x86_64_raw_shared_cache_size): Likewise.
18759         (__x86_64_raw_shared_cache_size_half): Likewise.
18761         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18762         (__x86_64_raw_data_cache_size_half): Likewise.
18763         (__x86_64_raw_shared_cache_size): Likewise.
18764         (__x86_64_raw_shared_cache_size_half): Likewise.
18765         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18766         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18767         and __x86_64_raw_shared_cache_size_half.  Round
18768         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18769         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18770         to multiple of 256 bytes.
18772 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18774         [BZ #12167]
18775         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18776         of inacessible symlinks.  Verify result of symlink before returning it.
18777         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18778         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18780 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18782         * math/math.h (isinf): Fix typo in comment.
18784 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18786         * po/da.po: Update from translation team.
18788 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18790         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18791         is added to the list.
18793 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18794             Ulrich Drepper  <drepper@gmail.com>
18796         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18797         the global list here.  Move code to...
18798         (_dl_add_to_namespace_list): ...here.  New function.
18799         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18800         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18801         * elf/dl-load.c (lose): Don't remove the element from the list.
18802         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18803         (_dl_map_object): Likewise.
18805 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18807         [BZ #12159]
18808         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18809         into all bytes of SSE register.
18810         Patch by Richard Li <richardpku@gmail.com>.
18812 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18814         [BZ #12140]
18815         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18816         perturbing.
18818 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18820         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18821         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18822         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18823         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18825         submachine.
18826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18828 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18830         * include/dlfcn.h (__RTLD_SECURE): Define.
18831         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18832         mode & __RTLD_SECURE instead.
18833         (open_path): Rename preloaded parameter to secure.
18834         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18835         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18836         * elf/dl-deps.c (openaux): Likewise.
18837         * elf/rtld.c (struct map_args): Remove is_preloaded.
18838         (map_doit): Don't use it.
18839         (dl_main): Likewise.
18840         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18841         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18843 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18845         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18846         (sysd-rules-targets): Remove duplicates.
18847         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18848         rtld-%.$o dependency.
18850 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18852         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18853         _dl_map_object do it.
18855 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18857         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18858         fast fma builtins, define the macros in the C99 standard.
18859         (FP_FAST_FMAF): Likewise.
18860         (FP_FAST_FMAL): Likewise.
18861         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18863         * bits/mathdef.h: Update copyright year.
18864         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18866 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18868         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18869         builtins, define the macros in the C99 standard.
18870         (FP_FAST_FMAF): Likewise.
18871         (FP_FAST_FMAL): Likewise.
18872         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18873         multiply/add.
18874         (FP_FAST_FMAF): Likewise.
18876 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18878         [BZ #3268]
18879         * math/libm-test.inc (fma_test): Some new testcases.
18880         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18881         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18882         y and infinite z.  Do multiplication by C already in long double.
18883         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18884         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18885         y and infinite z.  Do bitwise or of inexact bit into u.d.
18886         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18887         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18888         * sysdeps/i386/fpu/s_fma.S: Removed.
18889         * sysdeps/i386/fpu/s_fmal.S: Removed.
18891 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18893         [BZ #3268]
18894         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18895         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18896         computation is not scheduled after fetestexcept.  Fix value
18897         of minimum denormal long double.
18899 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18901         [BZ #3268]
18902         * math/libm-test.inc (fma_test): Add some more tests.
18903         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18904         correctly.
18906 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18908         * scripts/data/localplt-s390-linux-gnu.data: New file.
18909         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18911 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18913         [BZ #3268]
18914         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18915         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18916         instead of dbl-64.
18917         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18918         inlines.
18919         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18920         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18921         if one of x and y is very large and the other is subnormal.
18922         * sysdeps/s390/fpu/s_fmaf.c: New file.
18923         * sysdeps/s390/fpu/s_fma.c: New file.
18924         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18925         * sysdeps/powerpc/fpu/s_fma.S: New file.
18926         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18927         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18928         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18930 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18932         [BZ #3268]
18933         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18934         fma tests.
18935         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18936         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18937         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18938         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18939         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18940         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18941         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18943 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18945         [BZ #12078]
18946         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18947         * posix/bug-regex31.input: Add test case.
18949 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18951         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18952         * posix/bug-regex31.input: New file.
18954         [BZ #12078]
18955         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18956         (parse_sub_exp): Fix last change, use postorder.
18958         * posix/bug-regex31.c: New file.
18959         * posix/Makefile: Add rules to build and run bug-regex31.
18961         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18963         [BZ #12078]
18964         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18966         [BZ #12108]
18967         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18968         to have entries in sys_siglist.
18970         [BZ #12093]
18971         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18972         be NULL.
18974 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18976         [BZ #3268]
18977         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18978         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18979         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18980         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18981         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18982         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18983         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18984         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18985         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18986         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18987         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18988         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18989         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18990         * math/ftestexcept.c (fetestexcept): Likewise.
18991         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18992         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18993         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18994         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18995         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18996         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18997         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18999 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19001         [BZ #12107]
19002         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19003         newline.
19005 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19007         * string/bug-strstr1.c: New file.
19008         * string/Makefile: Add rules to build and run bug-strstr1.
19010 2010-10-05  Eric Blake  <eblake@redhat.com>
19012         [BZ #12092]
19013         * string/str-two-way.h (two_way_long_needle): Always clear memory
19014         when skipping input due to the shift table.
19016 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19018         [BZ #12005]
19019         * malloc/mcheck.c: Handle large requests.
19021         [BZ #12077]
19022         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19023         for strncmp and strncasecmp.
19024         * string/stratcliff.c: Add tests for strcmp and strncmp.
19025         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19027 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19029         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19030         __set_fpscr.
19032 2010-09-30  Andreas Jaeger  <aj@suse.de>
19034         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19035         (CGROUP_SUPER_MAGIC): Define.
19036         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19037         Handle btrfs and cgroup file systems.
19038         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19039         Likewise.
19041 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19043         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19044         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19046 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19048         [BZ #12067]
19049         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19050         trying to locate the ELF header.
19052 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19054         [BZ #11611]
19055         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19056         Mask out sign-bit copies when constructing f_fsid.
19058 2010-09-24  Petr Baudis <pasky@suse.cz>
19060         * debug/stack_chk_fail_local.c: Add missing licence exception.
19061         * debug/warning-nop.c: Likewise.
19063 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19065         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19066         implementing getdents64 using getdents syscall, set d_type if
19067         __ASSUME_GETDENTS32_D_TYPE.
19069 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19071         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19072         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19074 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19076         [BZ #12037]
19077         * posix/unistd.h: Undo change of feature selection for ftruncate from
19078         2010-01-11.
19080 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19082         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19083         detection.
19085 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19087         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19088         fanotify_mark.
19089         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19091 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19093         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19094         variables after CHECK_SP call.
19095         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19097 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19098             Ulrich Drepper  <drepper@redhat.com>
19100         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19101         re-relocationg ld.so.
19102         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19103         _dl_init_paths call.
19104         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19105         here anymore.
19107 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19109         * resolv/res_init.c (__res_vinit): Count the default server we added.
19111 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19112             Ulrich Drepper  <drepper@redhat.com>
19114         [BZ #11968]
19115         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19116         (____longjmp_chk): Use %ebx for saving value across system call.
19117         Add unwind info.
19119 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19121         * manual/Makefile: Don't mix pattern rules with normal rules.
19123 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19125         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19126         operation.
19127         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19128         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19129         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19130         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19131         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19132         Likewise.
19134 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19136         [BZ #11979]
19137         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19138         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19140 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19142         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19143         * sysdeps/x86_64/addmul_1.S: Likewise.
19144         * sysdeps/x86_64/lshift.S: Likewise.
19145         * sysdeps/x86_64/mul_1.S: Likewise.
19146         * sysdeps/x86_64/rshift.S: Likewise.
19147         * sysdeps/x86_64/sub_n.S: Likewise.
19148         * sysdeps/x86_64/submul_1.S: Likewise.
19150 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19152         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19153         Define __sched_param instead of SCHED_* and sched_param when
19154         <bits/sched.h> is included with __need_schedparam defined.
19155         * bits/sched.h [__need_schedparam]
19156         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19157         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19158         (__defined_schedparam): Define to 1.
19159         (__sched_param): New structure, identical to sched_param.
19160         (__need_schedparam): Undefine.
19162 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19164         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19165         (epoll_create1): Declare.
19167         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19169 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19171         [BZ #7066]
19172         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19173         shifting retval into place.
19175 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19177         * nis/rpcsvc/nis.h: Update copyright notice.
19178         * nis/rpcsvc/nis.x: Likewise.
19179         * nis/rpcsvc/nis_callback.h: Likewise.
19180         * nis/rpcsvc/nis_callback.x: Likewise.
19181         * nis/rpcsvc/nis_object.x: Likewise.
19182         * nis/rpcsvc/nis_tags.h: Likewise.
19183         * nis/rpcsvc/yp.h: Likewise.
19184         * nis/rpcsvc/yp.x: Likewise.
19185         * nis/rpcsvc/ypupd.h: Likewise.
19186         * nis/yp_xdr.c: Likewise.
19187         * nis/ypupdate_xdr.c: Likewise.
19189         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19190         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19191         (pmap_getport): Use __libc_rpc_getport.
19192         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19193         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19194         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19196 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19199         fanotify_mark.
19201 2010-08-27  Roland McGrath  <roland@redhat.com>
19203         * sysdeps/i386/i686/multiarch/Makefile
19204         (CFLAGS-varshift.c): New variable.
19206 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19208         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19209         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19211         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19213         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19215 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19217         * sysdeps/x86_64/strlen.S: Unroll the loop.
19218         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19219         strlen-sse2 strlen-sse2-bsf.
19220         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19221         __strlen_no_bsf if bit_Slow_BSF is set.
19222         (__strlen_sse42): Removed.
19223         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19224         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19226 2010-08-25  Roland McGrath  <roland@redhat.com>
19228         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19229         * sysdeps/x86_64/multiarch/varshift.c: New file.
19230         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19231         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19232         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19233         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19235 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19237         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19238         strlen-sse2 strlen-sse2-bsf.
19239         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19240         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19241         (__strlen_sse2): Removed.
19242         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19243         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19244         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19245         bit_Slow_BSF for Atom.
19246         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19247         (index_Slow_BSF): Define.
19248         (HAS_SLOW_BSF): Define.
19250 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19252         [BZ #10851]
19253         * resolv/res_init.c (__res_vinit): When no server address at all
19254         is given default to loopback.
19256 2010-08-24  Roland McGrath  <roland@redhat.com>
19258         * configure.in: Remove config-name.h generation.
19259         * configure: Regenerated.
19260         * config-name.in: File removed.
19261         * scripts/config-uname.sh: New file.
19262         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19263         ($(objdir)config-name.h): New target.
19265         * sunrpc/rpc_parse.h: Avoid nested comment.
19267 2010-08-24  Richard Henderson  <rth@redhat.com>
19268             Ulrich Drepper  <drepper@redhat.com>
19269             H.J. Lu  <hongjiu.lu@intel.com>
19271         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19272         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19273         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19274         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19275         _mm_alignr_epi8 with _mm_loadu_si128.
19276         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19277         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19278         (__m128i_shift_right): Removed.
19279         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19280         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19281         * sysdeps/x86_64/multiarch/varshift.h: New file.
19282         * sysdeps/x86_64/multiarch/varshift.S: New file.
19284 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19286         * configure.in: Move assembler checks to before sysdep dir checking.
19288 2010-08-20  Petr Baudis  <pasky@suse.cz>
19290         * LICENSES: Sync the sunrpc license.
19292 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19294         * sunrpc/auth_des.c: Update copyright notice once again.
19295         * sunrpc/auth_none.c: Likewise.
19296         * sunrpc/auth_unix.c: Likewise.
19297         * sunrpc/authdes_prot.c: Likewise.
19298         * sunrpc/authuxprot.c: Likewise.
19299         * sunrpc/bindrsvprt.c: Likewise.
19300         * sunrpc/clnt_gen.c: Likewise.
19301         * sunrpc/clnt_perr.c: Likewise.
19302         * sunrpc/clnt_raw.c: Likewise.
19303         * sunrpc/clnt_simp.c: Likewise.
19304         * sunrpc/clnt_tcp.c: Likewise.
19305         * sunrpc/clnt_udp.c: Likewise.
19306         * sunrpc/clnt_unix.c: Likewise.
19307         * sunrpc/des_crypt.c: Likewise.
19308         * sunrpc/des_soft.c: Likewise.
19309         * sunrpc/get_myaddr.c: Likewise.
19310         * sunrpc/getrpcport.c: Likewise.
19311         * sunrpc/key_call.c: Likewise.
19312         * sunrpc/key_prot.c: Likewise.
19313         * sunrpc/openchild.c: Likewise.
19314         * sunrpc/pm_getmaps.c: Likewise.
19315         * sunrpc/pm_getport.c: Likewise.
19316         * sunrpc/pmap_clnt.c: Likewise.
19317         * sunrpc/pmap_prot.c: Likewise.
19318         * sunrpc/pmap_prot2.c: Likewise.
19319         * sunrpc/pmap_rmt.c: Likewise.
19320         * sunrpc/rpc/auth.h: Likewise.
19321         * sunrpc/rpc/auth_unix.h: Likewise.
19322         * sunrpc/rpc/clnt.h: Likewise.
19323         * sunrpc/rpc/des_crypt.h: Likewise.
19324         * sunrpc/rpc/key_prot.h: Likewise.
19325         * sunrpc/rpc/netdb.h: Likewise.
19326         * sunrpc/rpc/pmap_clnt.h: Likewise.
19327         * sunrpc/rpc/pmap_prot.h: Likewise.
19328         * sunrpc/rpc/pmap_rmt.h: Likewise.
19329         * sunrpc/rpc/rpc.h: Likewise.
19330         * sunrpc/rpc/rpc_des.h: Likewise.
19331         * sunrpc/rpc/rpc_msg.h: Likewise.
19332         * sunrpc/rpc/svc.h: Likewise.
19333         * sunrpc/rpc/svc_auth.h: Likewise.
19334         * sunrpc/rpc/types.h: Likewise.
19335         * sunrpc/rpc/xdr.h: Likewise.
19336         * sunrpc/rpc_clntout.c: Likewise.
19337         * sunrpc/rpc_cmsg.c: Likewise.
19338         * sunrpc/rpc_common.c: Likewise.
19339         * sunrpc/rpc_cout.c: Likewise.
19340         * sunrpc/rpc_dtable.c: Likewise.
19341         * sunrpc/rpc_hout.c: Likewise.
19342         * sunrpc/rpc_main.c: Likewise.
19343         * sunrpc/rpc_parse.c: Likewise.
19344         * sunrpc/rpc_parse.h: Likewise.
19345         * sunrpc/rpc_prot.c: Likewise.
19346         * sunrpc/rpc_sample.c: Likewise.
19347         * sunrpc/rpc_scan.c: Likewise.
19348         * sunrpc/rpc_scan.h: Likewise.
19349         * sunrpc/rpc_svcout.c: Likewise.
19350         * sunrpc/rpc_tblout.c: Likewise.
19351         * sunrpc/rpc_util.c: Likewise.
19352         * sunrpc/rpc_util.h: Likewise.
19353         * sunrpc/rpcinfo.c: Likewise.
19354         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19355         * sunrpc/rpcsvc/key_prot.x: Likewise.
19356         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19357         * sunrpc/rpcsvc/mount.x: Likewise.
19358         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19359         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19360         * sunrpc/rpcsvc/rex.x: Likewise.
19361         * sunrpc/rpcsvc/rstat.x: Likewise.
19362         * sunrpc/rpcsvc/rusers.x: Likewise.
19363         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19364         * sunrpc/rpcsvc/spray.x: Likewise.
19365         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19366         * sunrpc/rtime.c: Likewise.
19367         * sunrpc/svc.c: Likewise.
19368         * sunrpc/svc_auth.c: Likewise.
19369         * sunrpc/svc_authux.c: Likewise.
19370         * sunrpc/svc_raw.c: Likewise.
19371         * sunrpc/svc_run.c: Likewise.
19372         * sunrpc/svc_simple.c: Likewise.
19373         * sunrpc/svc_tcp.c: Likewise.
19374         * sunrpc/svc_udp.c: Likewise.
19375         * sunrpc/svc_unix.c: Likewise.
19376         * sunrpc/svcauth_des.c: Likewise.
19377         * sunrpc/xcrypt.c: Likewise.
19378         * sunrpc/xdr.c: Likewise.
19379         * sunrpc/xdr_array.c: Likewise.
19380         * sunrpc/xdr_float.c: Likewise.
19381         * sunrpc/xdr_mem.c: Likewise.
19382         * sunrpc/xdr_rec.c: Likewise.
19383         * sunrpc/xdr_ref.c: Likewise.
19384         * sunrpc/xdr_sizeof.c: Likewise.
19385         * sunrpc/xdr_stdio.c: Likewise.
19387         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19388         handling.
19390 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19392         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19394 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19396         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19397         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19398         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19399         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19400         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19401         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19402         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19403         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19404         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19405         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19406         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19407         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19408         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19409         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19411 2010-07-26  Anton Blanchard  <anton@samba.org>
19413         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19414         * malloc/arena.c (heap_trim): Likewise.
19416 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19418         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19419         here.  Not...
19420         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19421         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19423 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19425         * sysdeps/i386/elf/Makefile: New file.
19427 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19429         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19430         from fanotify_init.
19431         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19432         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19434 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19436         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19437         of strncasecmp_l.
19438         * sysdeps/multiarch/strcmp.S: Likewise.
19440 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19442         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19443         strncase_l-nonascii.
19444         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19445         Add strncase_l-ssse3.
19446         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19447         * sysdeps/x86_64/strcmp.S: Likewise.
19448         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19449         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19450         * sysdeps/x86_64/strncase.S: New file.
19451         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19452         * sysdeps/x86_64/strncase_l.S: New file.
19453         * string/Makefile (strop-tests): Add strncasecmp.
19454         * string/test-strncasecmp.c: New file.
19456         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19457         warning.
19459         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19460         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19462 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19464         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19466 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19468         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19469         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19470         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19472 2010-05-01  Alan Modra  <amodra@gmail.com>
19474         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19475         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19476         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19477         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19478         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19479         tidying.  Don't tail-call __sigjmp_save for static lib.
19480         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19481         save location.
19482         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19483         (CALL_MCOUNT): Add eh info, and nop after bl.
19484         (TAIL_CALL_SYSCALL_ERROR): New macro.
19485         (PSEUDO_RET): Use it.
19486         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19487         Correct save location of integer regs and cr.
19488         (_dl_profile_resolve): Correct cr save location.  Delete nops
19489         after bl when SHARED.  Reduce cfi size a little by better
19490         placement of cfi directives.
19491         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19492         make a stack frame.  Instead use parm save area as a temp.
19493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19494         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19496         Don't make a stack frame for parent, use parm save area.
19497         Increase child stack frame to 112 bytes.  Don't save unused reg,
19498         and adjust reg usage.  Set up cfi on error recovery and
19499         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19501         (__makecontext): Add dummy nop after jump to exit.
19502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19503         Use correct parm save area and cr save, reduce stack frame.
19504         Correct cfi for possible PSEUDO_RET frame setup.
19505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19506         Branch to local label emitted by PSEUDO_RET rather than
19507         __syscall_error.
19509 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19511         [BZ #11904]
19512         * locale/programs/locale.c (print_assignment): New function.
19513         (show_locale_vars): Use it.
19515 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19517         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19518         field.
19519         (struct statfs64): Likewise.
19520         (_STATFS_F_FLAGS): Define.
19521         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19522         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19523         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19524         (ST_VALID): Define locally.
19525         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19526         __statvfs_getflags, use the provided value.
19527         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19528         __ASSUME_STATFS_F_FLAGS.
19530         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19532         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19533         Add sys/fanotify.h.
19534         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19535         fanotify_mask for GLIBC_2.13.
19536         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19537         fanotify_init and fanotify_mark.
19538         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19539         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19541         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19542         Add prlimit.
19543         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19544         prlimit64 for GLIBC_2.13.
19545         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19546         prlimit64.
19547         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19548         syscall.
19549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19550         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19551         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19552         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19553         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19554         add prlimit alias.
19555         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19557         [BZ #11903]
19558         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19559         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19561         * nss/Makefile: Add rules to build and run tst-nss-test1.
19562         * shlib-versions: Add entry for libnss_test1.
19563         * nss/nss_test1.c: New file.
19564         * nss/tst-nss-test1.c: New file.
19566         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19567         (__nss_configure_lookup): Set appropriate entry in
19568         __nss_configure_lookup to true.
19569         * nss/nsswitch.h: Define enum with indeces of databases in
19570         databases and __nss_database_custom arrays.  Declare
19571         __nss_database_custom.
19572         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19573         to avoid using nscd when custom rules are installed.
19574         * nss/getXXbyYY_r.c: Likewise.
19575         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19577         * nss/nss_files/files-parse.c: Whitespace fixes.
19579 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19581         [BZ #11883]
19582         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19583         * posix/fnmatch_loop.c: Likewise.
19585 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19587         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19588         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19589         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19590         * Versions.def [GLIBC_2.13]: Add.
19592 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19594         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19595         Also fail if tpwd after pwuid call is NULL.
19597 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19599         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19600         when converting to ms.
19602 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19604         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19605         EOPNOTSUPP errors with ENOTTY.
19606         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19607         EOPNOTSUPP errors with ENOTTY.
19609 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19611         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19612         Add strcasecmp_l-ssse3.
19613         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19614         strcasecmp.
19615         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19616         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19617         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19619 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19621         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19623         * string/Makefile (strop-tests): Add strcasecmp.
19624         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19625         strcasecmp_l-nonascii.
19626         (gen-as-const-headers): Add locale-defines.sym.
19627         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19628         * sysdeps/x86_64/strcasecmp.S: New file.
19629         * sysdeps/x86_64/strcasecmp_l.S: New file.
19630         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19631         * sysdeps/x86_64/locale-defines.sym: New file.
19632         * string/test-strcasecmp.c: New file.
19634         * string/test-strcasestr.c: Test both ends of the range of characters.
19635         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19637 2010-07-29  Roland McGrath  <roland@redhat.com>
19639         [BZ #11856]
19640         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19642 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19644         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19645         for ld.so.
19647 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19649         * manual/memory.texi (Malloc Tunable Parameters): Document
19650         M_PERTURB.
19652 2010-07-26  Roland McGrath  <roland@redhat.com>
19654         [BZ #11840]
19655         * configure.in (-fgnu89-inline check): Set and substitute
19656         gnu89_inline, not libc_cv_gnu89_inline.
19657         * configure: Regenerated.
19658         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19660 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19662         * string/test-strnlen.c: New file.
19663         * string/Makefile (strop-tests): Add strnlen.
19664         * string/tester.c (test_strnlen): Add a few more test cases.
19665         * string/tst-strlen.c: Better error reporting.
19667         * sysdeps/x86_64/strnlen.S: New file.
19669 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19671         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19672         lower-latency instructions.
19674 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19676         * string/test-strcasestr.c: New file.
19677         * string/test-strstr.c: New file.
19678         * string/Makefile (strop-tests): Add strstr and strcasestr.
19679         * string/str-two-way.h: Don't undefine MAX.
19680         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19682 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19684         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19685         strcasestr-nonascii.
19686         (CFLAGS-strcasestr-nonascii.c): Define.
19687         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19688         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19689         Remove unused attribute.
19691 2010-07-20  Roland McGrath  <roland@redhat.com>
19693         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19694         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19695         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19696         like LD_HWCAP_MASK can disable hwcaps.
19698 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19700         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19702 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19704         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19705         call in strcasestr.
19706         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19707         __strcasestr_sse42_nonascii.
19708         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19709         strcasestr-nonascii.c.
19710         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19712 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19714         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19715         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19716         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19717         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19719 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19721         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19722         fcntl.
19724 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19726         [BZ #11577]
19727         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19728         dl_signal_cerror.
19730 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19732         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19733         _PC_PIPE_BUF using F_GETPIPE_SZ.
19735 2010-07-05  Roland McGrath  <roland@redhat.com>
19737         * manual/arith.texi (Rounding Functions): Fix rint description
19738         implicit in round description.
19740 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19742         * elf/Makefile: Fix linking for a few tests to make recent linker
19743         happy.
19745 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19747         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19748         $(common-objpfx)libc_nonshared.a.
19750 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19752         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19753         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19754         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19755         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19756         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19757         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19758         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19759         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19774         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19775         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19776         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19777         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19778         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19779         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19780         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19781         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19782         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19783         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19784         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19785         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19801 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19803         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19804         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19805         * string/memmove.c (memmove): Renamed to ...
19806         (MEMMOVE): ...this.  Default to memmove.
19807         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19808         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19809         (END_CHK): Define.
19810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19811         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19812         mempcpy-ssse3-back memmove-ssse3-back.
19813         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19814         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19815         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19816         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19817         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19818         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19819         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19820         * sysdeps/x86_64/multiarch/memmove.c: New file.
19821         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19822         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19823         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19824         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19825         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19826         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19827         Define.
19828         (index_Fast_Copy_Backward): Define.
19829         (HAS_ARCH_FEATURE): Define.
19830         (HAS_FAST_REP_STRING): Define.
19831         (HAS_FAST_COPY_BACKWARD): Define.
19833 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19835         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19836         Restore proper fallback handling.
19838 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19840         [BZ #11701]
19841         * posix/group_member.c (__group_member): Correct checking loop.
19843         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19844         OOM in getpwuid_r correctly.  Return error number when the caller
19845         should return, otherwise -1.
19846         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19847         call returning > 0 value.
19848         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19850 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19852         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19853         libc_nonshared.a from targets in modules-names.
19855 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19857         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19858         requires it.
19860 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19862         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19863         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19864         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19865         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19867 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19869         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19871 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19873         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19874         and F_GETPIPE_SZ.
19875         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19876         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19877         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19878         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19879         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19880         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19882 2010-06-14  Roland McGrath  <roland@redhat.com>
19884         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19886 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19888         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19889         __REDIRECT followed by __THROW.
19890         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19891         * posix/getopt.h (getopt): Likewise.
19893 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19895         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19896         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19897         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19898         in AT_FLAGS.
19899         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19900         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19902 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19904         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19906 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19908         [BZ #11640]
19909         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19910         Properly check family and model.
19912 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19914         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19916 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19918         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19920 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19922         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19923         symbol reference.
19925 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19927         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19928         symbol reference.
19930 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19932         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19933         and internal_recvmmsg.
19934         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19935         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19936         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19937         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19939         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19940         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19941         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19943 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19945         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19947 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19949         POWER7 optimizations.
19950         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19951         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19953 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19955         * version.h: Update for 2.13 development version.
19957 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19959         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19960         exceptions.  Return 0.
19962 2010-05-07  Roland McGrath  <roland@redhat.com>
19964         * elf/ldconfig.c (main): Add a const.
19966 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19968         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19969         (args_options): Add no-idn option.
19970         (ahosts_keys_int): Add idn_flags to ai_flags.
19971         (parse_option): Handle 'i' option to clear idn_flags.
19973         * malloc/malloc.c (_int_free): Possible race in the most recently
19974         added check.  Only act on the data if no current modification
19975         happened.
19977 See ChangeLog.17 for earlier changes.