Use ElfW(Off) rather than off_t for offsets within ELF files.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2
3         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
4         Make 'mapoff' field ElfW(Off) rather than off_t.
5
6 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
7
8         * nscd/Makefile: Remove nscd-cflags and all its users.
9         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
10         (CFLAGS-nonlib): Add compiler flags for nscd modules.
11
12         [BZ #10631]
13         * malloc.c (malloc_printerr): Clarify error message.
14
15 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
16
17         [BZ #14648]
18         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19         Set bit_FMA_Usable if FMA is supported.
20         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
21         macro.
22         (bit_FMA4_Usable): Updated.
23         (index_FMA_Usable): New macro.
24         (CPUID_FMA): Likewise
25         (HAS_FMA): Defined with bit_FMA_Usable.
26
27 2012-10-01  Roland McGrath  <roland@hack.frob.com>
28
29         * bits/types.h (__swblk_t): Type removed.
30         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
31         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
32         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33         (__SWBLK_T_TYPE): Likewise.
34         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
35         (__SWBLK_T_TYPE): Likewise.
36         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
37         (__SWBLK_T_TYPE): Likewise.
38         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
39         (__SWBLK_T_TYPE): Likewise.
40
41 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
42             Honza Horak <hhorak@redhat.com>
43
44         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
45         (xdr_mapname): Use YPMAXMAP as maxsize.
46         (xdr_peername): Use YPMAXPEER as maxsize.
47         (xdr_keydat): Use YPAXRECORD as maxsize.
48         (xdr_valdat): Use YPMAXRECORD as maxsize.
49
50 2012-10-01  Roland McGrath  <roland@hack.frob.com>
51
52         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
53
54         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
55         * csu/init-first.c: ... here.
56         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
58         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
59         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
60         * sysdeps/i386/init-first.c: File removed.
61         * sysdeps/sh/init-first.c: File removed.
62
63 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
64
65         [BZ #14645]
66         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
67         if x * y might underflow to zero and z is zero.
68         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70         * math/libm-test.inc (min_subnorm_value): New variable.
71         (fma_test): Add more tests.
72         (fma_test_towardzero): Likewise.
73         (fma_test_downward): Likewise
74         (fma_test_upward): Likewise.
75         (initialize): Set min_subnorm_value.
76
77 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
78
79         [BZ #14638]
80         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
81         0 + 0.
82         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
83         mode for addition resulting in exact zero.
84         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
85         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
86         exact 0 + 0.
87         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
88         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
89         * math/libm-test.inc (fma_test): Add more tests.
90         (fma_test_towardzero): New function.
91         (fma_test_downward): Likewise.
92         (fma_test_upward): Likewise.
93         (main): Call the new functions.
94
95 2012-09-28  David S. Miller  <davem@davemloft.net>
96
97         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
98
99 2012-09-28  Roland McGrath  <roland@hack.frob.com>
100
101         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
102         instead of SIGALRM.
103
104         * sysdeps/gnu/_G_config.h: Moved to ...
105         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
106         * sysdeps/mach/hurd/_G_config.h: Moved to ...
107         * sysdeps/generic/_G_config.h: ... here.
108
109         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
110
111         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
112
113         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
114         Conditionalize target on [libnss_test1.so-version].
115
116         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
117
118         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
119         (elfobjdir): Move out of conditionals.
120
121         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
122         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
123         (__nss_lookup_function): Conditionalize label remove_from_tree on
124         [!DO_STATIC_NSS || SHARED], matching its only use.
125
126 2012-09-28  David S. Miller  <davem@davemloft.net>
127
128         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
129         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
130         file.
131         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
132         sysdep_routines.
133         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
134         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
135         when HWCAP_SPARC_CRYPTO is present.
136
137 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
138
139         * io/tst-mknodat.c: Create a FIFO instead of a socket.
140
141 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
142
143         [BZ #6530]
144         * stdio-common/vfprintf.c (process_string_arg): Revert
145         2000-07-22 change.
146
147 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
148
149         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
150         for testcase.
151         * stdio-common/tst-sprintf.c: Include <locale.h>
152         (main): Test sprintf's handling of incomplete multibyte
153         characters.
154
155 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
156
157         * elf/dl-runtime.c (VERSYMIDX): Removed.
158         * elf/dl-version.c (VERSYMIDX): Likewise.
159         * elf/do-rel.h (VERSYMIDX): Likewise.
160         (VALIDX): Likewise.
161         * elf/dynamic-link.h (VERSYMIDX): Likewise.
162         * elf/rtld.c (VALIDX): Likewise.
163         (ADDRIDX): Likewise.
164         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
165         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
166         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
167         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
168         (VALIDX): Likewise.
169         (ADDRIDX): Likewise.
170
171 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
172
173         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
174
175 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
176
177         [BZ #11438]
178         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
179         to global scope.
180         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
181         addresses are in the same scope as 192.0.2/24.
182         * posix/gai.conf: Document new scope table defaults.
183
184 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
185
186         [BZ #5298]
187         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
188         for ftell.  Compute offsets from write pointers instead.
189         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
190
191 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
192
193         [BZ #14543]
194         * libio/Makefile (tests): New test case tst-fseek.
195         * libio/tst-fseek.c: New test case to verify that fseek/ftell
196         combination works in wide mode.
197         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
198         state when the external buffer state changes.
199
200 2012-09-27  David S. Miller  <davem@davemloft.net>
201
202         [BZ #14376]
203         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
204         pass reloc->r_addend in as the 'high' argument to
205         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
206
207         * sysdeps/sparc/fpu/libm-test-ulps: Update.
208
209 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
210
211         * rt/tst-aio2.c: Include <pthread.h>.
212         * rt/tst-aio3.c: Likewise.
213
214 2012-09-27  Steve Ellcey  <sellcey@mips.com>
215
216         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
217
218 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
219
220         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
221         contents on [SHARED].
222
223 2012-09-26  Marek Polacek  <polacek@redhat.com>
224
225         [BZ #14530]
226         [BZ #13741]
227         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
228         for C++ and GCC <4.3 as well as for non GCC compilers.
229
230 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
231
232         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
233
234 2012-09-25  Roland McGrath  <roland@hack.frob.com>
235
236         * Makefile.in (all, install): Declare with .PHONY.
237         Reported by Michael Hope <michael.hope@linaro.org>.
238
239 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
240
241         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
242         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
243         system header.
244         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
245         Likewise.
246         (sydep_routines): Add the new and the internal functions.
247         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
248         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
250         (GLIBC_2.17): Add the new function.
251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
252         (GLIBC_2.17): Likewise.
253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
254         (GLIBC_2.17): Likewise.
255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
256         (GLIBC_2.17): Likewise.
257         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
258
259 2012-09-25  Alan Modra  <amodra@gmail.com>
260
261         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
262         Add release barrier before setting once_control to say
263         initialisation is done.  Add hints on lwarx.  Use macro in
264         place of isync.
265         (clear_once_control): Add release barrier.
266
267 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
268
269         [BZ #13629]
270         * math/s_clog.c (__clog): Handle more values close to |z| = 1
271         specially.
272         * math/s_clog10.c (__clog10): Likewise.
273         * math/s_clog10f.c (__clog10f): Likewise.
274         * math/s_clog10l.c (__clog10l): Likewise.
275         * math/s_clogf.c (__clogf): Likewise.
276         * math/s_clogl.c (__clogl): Likewise.
277         * math/Makefile (libm-calls): Add x2y2m1.
278         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
279         (__x2y2m1): Likewise.
280         (__x2y2m1l): Likewise.
281         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
282         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
283         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
284         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
285         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
286         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
287         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
288         * sysdeps/i386/fpu/libm-test-ulps: Update.
289         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
290
291         [BZ #14621]
292         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
293         int as type of variable DEPTH.
294         (glob): Use size_t instead of int as type of variables NEWCOUNT
295         and OLD_PATHC.
296
297 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
298
299         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
300         Add s_sincosf-sse2.
301         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
302         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
303         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
304         macros for using routine as __sincosf_ia32.
305         Use macro for function declaration and weak_alias.
306         * sysdeps/i386/fpu/libm-test-ulps: Update.
307
308         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
309         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
310
311         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
312         subnormal argument.
313         * math/s_cexpf.c (__cexpf): Likewise.
314         * math/s_csinf.c (__csinf): Likewise.
315         * math/s_csinhf.c (__csinhf): Likewise.
316         * math/s_ctanf.c (__ctanf): Likewise.
317         * math/s_ctanhf.c (__ctanhf): Likewise.
318         * math/s_ccosh.c (__ccoshf): Likewise.
319         * math/s_cexp.c (__cexpl): Likewise.
320         * math/s_csin.c (__csin): Likewise.
321         * math/s_csinh.c (__csinh): Likewise.
322         * math/s_ctan.c (__ctan): Likewise.
323         * math/s_ctanh.c (ctanh): Likewise.
324         * math/s_ccoshl.c (__ccoshl): Likewise.
325         * math/s_cexpl.c (__cexpl): Likewise.
326         * math/s_csinl.c (__csinl): Likewise.
327         * math/s_csinhl.c (__csinhl): Likewise.
328         * math/s_ctanl.c (__ctanl): Likewise.
329         * math/s_ctanhl.c (__ctanhl): Likewise.
330
331 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
332
333         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
334         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
335         (_IO_off_t): Define to __off_t, not _G_off_t.
336         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
337         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
338         (_IO_wint_t): Define to wint_t, not _G_wint_t.
339         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
340         type of __dummy and __dummy2 fields.
341         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
342         (_G_ssize_t): Likewise.
343         (_G_off_t): Likewise.
344         (_G_pid_t): Likewise.
345         (_G_uid_t): Likewise.
346         (_G_wchar_t): Likewise.
347         (_G_wint_t): Likewise.
348         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
349         (_G_ssize_t): Likewise.
350         (_G_off_t): Likewise.
351         (_G_pid_t): Likewise.
352         (_G_uid_t): Likewise.
353         (_G_wchar_t): Likewise.
354         (_G_wint_t): Likewise.
355         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
356         (_G_ssize_t): Likewise.
357         (_G_off_t): Likewise.
358         (_G_pid_t): Likewise.
359         (_G_uid_t): Likewise.
360         (_G_wchar_t): Likewise.
361         (_G_wint_t): Likewise.
362
363 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
364
365         * malloc/arena.c: Include malloc-sysdep.h.
366         (shrink_heap): Use check_may_shrink_heap to decide if madvise
367         is sufficient to shrink the heap or an unmap is needed.
368         * sysdeps/generic/malloc-sysdep.h: New file.  Define
369         new function check_may_shrink_heap.
370         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
371         new function check_may_shrink_heap.
372
373 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
374
375         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
376         comments.
377
378 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
379
380         * catgets/test-gencat.sh: Add "set -e".
381         * elf/tst-pathopt.sh: Likewise.
382         * grp/tst_fgetgrent.sh: Likewise.
383         * iconvdata/run-iconv-test.sh: Likewise.
384         * intl/tst-gettext.sh: Likewise.
385         * intl/tst-gettext2.sh: Likewise.
386         * intl/tst-gettext4.sh: Likewise.
387         * intl/tst-gettext6.sh: Likewise.
388         * intl/tst-translit.sh: Likewise.
389         * io/ftwtest-sh: Likewise.
390         * libio/test-freopen.sh: Likewise.
391         * malloc/tst-mtrace.sh: Likewise.
392         * posix/globtest.sh: Likewise.
393         * posix/tst-getconf.sh: Likewise.
394         * posix/wordexp-tst.sh: Likewise.
395         * stdio-common/tst-printf.sh: Likewise.
396         * stdio-common/tst-unbputc.sh: Likewise.
397         * stdlib/tst-fmtmsg.sh: Likewise.
398         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
399         * catgets/Makefile: Do not specify -e option when running
400         testsuite shell scripts.
401         * elf/Makefile: Likewise.
402         * grp/Makefile: Likewise.
403         * iconvdata/Makefile: Likewise.
404         * intl/Makefile: Likewise.
405         * io/Makefile: Likewise.
406         * libio/Makefile: Likewise.
407         * malloc/Makefile: Likewise.
408         * posix/Makefile: Likewise.
409         * stdio-common/Makefile: Likewise.
410         * stdlib/Makefile: Likewise.
411         * sysdeps/x86_64/Makefile: Likewise.
412
413         * io/ftwtest-sh: Add copyright header.
414         * posix/globtest.sh: Likewise.
415         * posix/tst-getconf.sh: Likewise.
416         * posix/wordexp-tst.sh: Likewise.
417         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
418
419 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
420
421         [BZ #13679]
422         * Makeconfig (+link): Defined as $(+link-static) if
423         $(build-shared) isn't yes.
424         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
425         isn't yes.
426         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
427
428         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
429
430         [BZ #14562]
431         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
432         new chunk size with MALLOC_ALIGN_MASK.
433
434 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
435
436         [BZ #5044]
437         * stdio-common/printf_fphex.c: Include <stdbool.h> and
438         <rounding-mode.h>.
439         (__printf_fphex): Determine rounding using get_rounding_mode and
440         round_away.
441         * stdio-common/tst-printf-round.c (struct hex_test): New
442         structure.
443         (hex_tests): New variable.
444         (test_hex_in_one_mode): New function.
445         (do_test): Also run tests for hex float output.
446
447 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
448
449         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
450         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
451         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
452         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
453         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
454         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
455         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
456         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
457
458 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
459
460         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
461         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
462         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
463         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
464
465 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
466
467         [BZ #14579]
468         * elf/rtld.c (dl_main): Limit the check for self loading to normal
469         mode only.
470         * elf/tst-rtld-load-self.sh: New test.
471         * elf/Makefile: Run it.
472
473 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
474
475         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
476         (tst-writev-ENV): Remove.
477         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
478
479 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
480
481         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
482
483 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
484
485         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
486         unconditional.
487         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
488         Likewise.
489         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
490         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
491         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
492         Likewise.
493
494 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
495
496         [BZ #14587]
497         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
498         * config.make.in (have-cpp-asm-debuginfo): Removed.
499         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
500         * configure: Regenerated.
501
502 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
503
504         [BZ #5044]
505         * stdio-common/printf_fp.c: Include <stdbool.h> and
506         <rounding-mode.h>.
507         (___printf_fp): Determine rounding using get_rounding_mode and
508         round_away.
509         * stdio-common/tst-printf-round.c: New file.
510         * stdio-common/Makefile (tests): Add tst-printf-round.
511         (link-libm): New variable.
512         ($(objpfx)tst-printf-round): Depend in $(link-libm).
513
514 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
515
516         [BZ #14576]
517         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
518         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
519         Likewise.
520         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
521         Likewise.
522
523 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
524
525         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
526         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
527         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
528         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
529
530 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
531
532         [BZ #14518]
533         * include/rounding-mode.h: New file.
534         * sysdeps/generic/get-rounding-mode.h: Likewise.
535         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
536         * stdlib/strtod_l.c: Include <rounding-mode.h>.
537         (MAX_VALUE): New macro.
538         (MIN_VALUE): Likewise.
539         (overflow_value): New function.
540         (underflow_value): Likewise.
541         (round_and_return): Use overflow_value and underflow_value to
542         determine return values in overflow and underflow cases.  Use
543         round_away to determine rounding depending on rounding mode.
544         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
545         determine return values in overflow and underflow cases.
546         * stdlib/tst-strtod-round.c: Include <fenv.h>.
547         (struct test_results): New structure.
548         (struct test): Use struct test_results to store expected results
549         for all rounding modes.
550         (TEST): Include expected results for all rounding modes.
551         (test_in_one_mode): New function.
552         (do_test): Use test_in_one_mode to compute and check results.
553         Check results for all rounding modes.
554         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
555         $(link-libm).
556
557 2012-12-09  Allan McRae  <allan@archlinux.org>
558
559         * sysdeps/i386/fpu/libm-test-ulps: Update
560
561 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
562
563         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
564         (_G_int32_t): Likewise.
565         (_G_uint16_t): Likewise.
566         (_G_uint32_t): Likewise.
567         (_G_HAVE_BOOL): Likewise.
568         (_G_HAVE_ATEXIT): Likewise.
569         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
570         (_G_HAVE_IO_FILE_OPEN): Likewise.
571         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
572         (_G_int32_t): Likewise.
573         (_G_uint16_t): Likewise.
574         (_G_uint32_t): Likewise.
575         (_G_HAVE_BOOL): Likewise.
576         (_G_HAVE_ATEXIT): Likewise.
577         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
578         (_G_HAVE_IO_FILE_OPEN): Likewise.
579         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
580         (_G_int32_t): Likewise.
581         (_G_uint16_t): Likewise.
582         (_G_uint32_t): Likewise.
583         (_G_HAVE_BOOL): Likewise.
584         (_G_HAVE_ATEXIT): Likewise.
585         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
586         (_G_HAVE_IO_FILE_OPEN): Likewise.
587
588 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
589
590         * csu/libc-tls.c: Update copyright years.
591
592 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
593
594         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
595         [!_G_USING_THUNKS]: Remove conditional code.
596         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
597         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
598
599         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
600         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
601         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
602         (_G_VTABLE_LABEL_PREFIX): Likewise.
603         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
604         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
605         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
606         (_G_VTABLE_LABEL_PREFIX): Likewise.
607         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
608         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
609         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
610         (_G_VTABLE_LABEL_PREFIX): Likewise.
611         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
612
613 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
614
615         * libio/Makefile: Include ../Makeconfig before tests.
616         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
617         only if $(build-shared) is yes.
618
619         * iconv/gconv_db.c: Update copyright years.
620
621 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
622
623         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
624         unwind info if defined PIC. Fix special cases description.
625         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
626
627         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
628         DP_HI_MASK entry.
629         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
630
631 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
632
633         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
634
635         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
636         is NULL.
637
638         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
639         (LDLIBS-tst-chk4): This.
640         (LDFLAGS-tst-chk5): Renamed to ...
641         (LDLIBS-tst-chk5): This.
642         (LDFLAGS-tst-chk6): Renamed to ...
643         (LDLIBS-tst-chk6): This.
644         (LDFLAGS-tst-lfschk4): Renamed to ...
645         (LDLIBS-tst-lfschk4): This.
646         (LDFLAGS-tst-lfschk5): Renamed to ...
647         (LDLIBS-tst-lfschk5): This.
648         (LDFLAGS-tst-lfschk6): Renamed to ...
649         (LDLIBS-tst-lfschk6): This.
650
651         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
652         on $(common-objpfx)soversions.mk.
653
654 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
655
656         [BZ #10014]
657         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
658         example host name.
659
660 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
661
662         * malloc/arena.c (arena_get_retry): New function that gets
663         another arena for the caller to try its request on.
664         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
665         current arena cannot fulfill the request.
666         (__libc_memalign): Likewise.
667         (__libc_memalign): Likewise.
668         (__libc_pvalloc): Likewise.
669         (__libc_calloc): Likewise.
670
671 2012-09-05  John Tobey  <john.tobey@gmail.com>
672
673         [BZ #13542]
674         * manual/arith.texi (Operations on Complex): Fix description
675         of carg branch cut.
676
677 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
678
679         [BZ #10014]
680         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
681         host name.
682
683         [BZ #10038]
684         * manual/memory.texi (Memory): Make order of menu items match
685         order of sections.
686
687 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
688
689         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
690         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
691         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
692
693 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
694
695         * csu/libc-tls.c (static_dtv): Renamed to ...
696         (_dl_static_dtv): This.  Make it global.
697         (_dl_initial_dtv): Removed.
698         (__libc_setup_tls): Updated.
699         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
700         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
701         DL_INITIAL_DTV.
702
703 2012-09-06  Petr Machata  <pmachata@redhat.com>
704
705         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
706         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
707         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
708         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
709
710 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
711
712         [BZ #14545]
713         * csu/libc-tls.c (_dl_initial_dtv): New variable.
714         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
715         freeing dtv[-1].
716
717 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
718
719         [BZ #14544]
720         * Makeconfig (link-static-before-libc): Replace $(+prector)
721         with $(+prectorT).
722         (link-static-after-libc): Replace $(+postctor) with
723         $(+postctorT).
724         (link-bounded): Replace $(+prector)/$(+postctor) with
725         $(+prectorT)/$(+postctorT).
726         (+prectorT): New macro.
727         (+postctorT): Likewise.
728
729 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
730
731         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
732         (round_str): Handle values above the maximum for IBM long double
733         as inexact.
734         * stdlib/tst-strtod-round.c (tests): Regenerated.
735
736 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
737
738         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
739         assembler flag.
740         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
741         zarch_nohighgprs around the zarch optimized routines.
742         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
743         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
744         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
745         for zarch.
746
747 2012-09-05  David S. Miller  <davem@davemloft.net>
748
749         * sysdeps/sparc/fpu/libm-test-ulps: Update.
750
751         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
752         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
753         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
754         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
755         entries.
756
757 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
758
759         * malloc/arena.c: Fold copyright years.
760         * malloc/mcheck.c, malloc/memusage.c: Likewise.
761
762 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
763
764         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
765
766 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
767
768         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
769
770 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
771
772         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
773         change internal state upon failure.
774
775 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
776
777         * malloc/mcheck.c (mcheck_check_all): Fix typo.
778         * malloc/memusage.c (mmap): Likewise.
779         (mmap64, mremap): Likewise.  Adjust name in comment.
780
781 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
782
783         * libio/fileops.c: Fix typos in comments.
784         * libio/oldfileops.c: Likewise.
785         * libio/wfileops.c: Likewise.
786
787 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
788
789         [BZ #1349]
790         * malloc/Makefile (tests): Add tst-malloc-usable test case.
791         (tst-malloc-usable-ENV): Set environment for test case.
792         * malloc/hooks.c (malloc_check_get_size): New function to get
793         requested size.
794         * malloc/malloc.c (musable): Use malloc_check_get_size.
795         * malloc/tst-malloc-usable.c: New test case.
796
797 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
798
799         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
800
801 2012-09-05  Allan McRae  <allan@archlinux.org>
802
803         [BZ #13966]
804         * configure.in (CXX_SYSINCLUDES): Use compiler output to
805         determine header location.
806         * configure: Regenerated.
807
808 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
809
810         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
811         float format.
812         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
813         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
814         format.
815         (test): Regenerate.
816
817 2012-09-04  David S. Miller  <davem@davemloft.net>
818
819         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
820         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
821         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
822
823 2012-09-04  Florian Weimer  <fweimer@redhat.com>
824
825         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
826         failures.
827
828         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
829
830 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
831
832         [BZ #9914]
833         * libio/iogetdelim.c: Include <limits.h>.
834         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
835         + len + 1 would overflow.
836
837 2012-09-03  Andreas Jaeger  <aj@suse.de>
838
839         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
840         * sysdeps/i386/fpu/libm-test-ulps: Update.
841
842 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
843
844         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
845         Add s_sinf-sse2, s_conf-sse2.
846
847         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
848         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
849         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
850         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
851
852         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
853         for using routine as __sinf_ia32.
854         Use macro for function declaration and weak_alias.
855         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
856         for using routine as __cosf_ia32.
857         Use macro for function declaration and weak_alias.
858
859         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
860         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
861
862         * sysdeps/x86_64/fpu/s_sinf.S: New file.
863         * sysdeps/x86_64/fpu/s_cosf.S: New file.
864         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
865
866         * math/libm-test.inc (cos_test): Add more test cases.
867         (sin_test): Likewise.
868         (sincos_test): Likewise.
869
870 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
871
872         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
873         (IFUNC_RESOLVE): Make pointers to the specialized implementations
874         hidden.
875         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
876
877 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
878
879         [BZ #14538]
880         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
881         first element of the GOT.
882         (elf_machine_load_address): Return the difference between
883         the runtime address of _DYNAMIC and elf_machine_dynamic ().
884
885 2012-09-01  Allan McRae  <allan@archlinux.org>
886
887         [BZ #13412]
888         * configure.in (AWK): Require gawk version 3.0 or later.
889         * configure: Regenerated.
890
891 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
892
893         * sysdeps/unix/sysv/linux/kernel-features.h
894         (__ASSUME_POSIX_CPU_TIMERS): Remove.
895         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
896         [__NR_clock_getres]: Make code unconditional.
897         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
898         (clock_getcpuclockid): Remove code left unreachable by removal of
899         conditionals.
900         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
901         code unconditional.
902         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
903         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
904         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
905         Make code unconditional.
906         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
907         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
908         * sysdeps/unix/sysv/linux/clock_settime.c
909         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
910         conditional code.
911         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
912         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
913
914 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
915
916         [BZ #14476]
917         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
918         scripts/test-installation.pl.
919
920         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
921         and $ld_so_version if it is set.
922
923 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
924
925         [BZ #14516]
926         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
927         failure if reading from procfs failed.
928         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
929
930 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
931
932         * sysdeps/unix/sysv/linux/kernel-features.h
933         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
934         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
935         Remove conditional code.
936         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
937         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
938         Remove conditional code.
939         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
940         * sysdeps/unix/sysv/linux/i386/fxstat.c
941         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
942         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
943         * sysdeps/unix/sysv/linux/i386/fxstatat.c
944         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
945         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
946         * sysdeps/unix/sysv/linux/i386/lxstat.c
947         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
948         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
949         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
950         Remove conditional code.
951         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
952         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
953         Remove conditional code.
954         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
955         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
956         <kernel-features.h>.
957         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
958         Remove.
959         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
960         Remove conditional code.
961         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
962         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
963         Remove conditional.
964
965 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
966
967         [BZ #5400]
968         * NEWS: Add fixed bug number.
969
970 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
971
972         [BZ #14519]
973         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
974         underflowing exponent in case of negative sign.
975         * stdlib/tst-strtod-round-data: Add more tests.
976         * stdlib/tst-strtod-round.c (tests): Regenerated.
977
978         [BZ #3479]
979         * stdlib/strtod_l.c (NDIG): Remove.
980         (HEXNDIG): Likewise.
981         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
982         smallest representable value.
983         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
984         lie within an exact representation of 1/2 ulp of the result.
985         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
986         unconditionally.
987         (TENS_P9_IDX): Define unconditionally.
988         (TENS_P9_SIZE): Likewise.
989         (TENS_P10_IDX): Likewise.
990         (TENS_P10_SIZE): Likewise.
991         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
992         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
993         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
994         entries for 10^2^13 and 10^2^14.
995         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
996         (TENS_P13_IDX): Define.
997         (TENS_P13_SIZE): Likewise.
998         (TENS_P14_IDX): Likewise.
999         (TENS_P14_SIZE): Likewise.
1000         (_fpioconst_pow10): Change array size to
1001         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1002         unconditional.
1003         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1004         1024]: Add entries for 10^2^13 and 10^2^14.
1005         [LAST_POW10 > _LAST_POW10]: Remove #error.
1006         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1007         (_fpioconst_pow10): Change array size to
1008         FPIOCONST_POW10_ARRAY_SIZE.
1009         * stdlib/gen-fpioconst.c: New file.
1010         * stdlib/gen-tst-strtod-round.c: Likewise.
1011         * stdlib/tst-strtod-round-data: Likewise.
1012         * stdlib/tst-strtod-round.c: Likewise.
1013         * stdlib/Makefile (tests): Add tst-strtod-round.
1014
1015         [BZ #14459]
1016         * stdlib/strtod_l.c: Include <stdint.h>.
1017         (NDEBUG): Do not define.
1018         (round_and_return): Change EXPONENT parameter to type intmax_t.
1019         Rearrange calculations to avoid internal overflow possibilities.
1020         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1021         Rearrange calculations to avoid internal overflow possibilities.
1022         Assert that number fits inside MPNSIZE limbs.
1023         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1024         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1025         calculations and add assertions to avoid internal overflow
1026         possibilities.  Add casts to avoid signed/unsigned operations.
1027         * stdlib/tst-strtod-overflow.c: New file.
1028         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1029
1030 2012-08-25  Marek Polacek  <polacek@redhat.com>
1031
1032         * time/time.h: Fix some typos in comments.
1033
1034 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1035
1036         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1037         * posix/tst-rfc3484-2.c: Likewise.
1038         * posix/tst-rfc3484-3.c: Likewise.
1039
1040 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1041
1042         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1043         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1044
1045 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1046
1047         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1048         #include of fxstatat64.c.
1049
1050 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1051
1052         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1053         * shadow/getspent_r.c: Likewise.
1054         * shadow/getspnam.c: Likewise.
1055         * shadow/getspnam_r.c: Likewise.
1056         * gshadow/getsgent.c: Likewise.
1057         * gshadow/getsgent_r.c: Likewise.
1058         * gshadow/getsgnam.c: Likewise.
1059         * gshadow/getsgnam_r.c: Likewise.
1060         * inet/getnetbyad.c: Likewise.
1061         * inet/getnetbyad_r.c: Likewise.
1062         * inet/getnetbynm.c: Likewise.
1063         * inet/getnetbynm_r.c: Likewise.
1064         * inet/getnetent.c: Likewise.
1065         * inet/getnetent_r.c: Likewise.
1066         * inet/getproto.c: Likewise.
1067         * inet/getproto_r.c: Likewise.
1068         * inet/getprtent.c: Likewise.
1069         * inet/getprtent_r.c: Likewise.
1070         * inet/getprtname.c: Likewise.
1071         * inet/getprtname_r.c: Likewise.
1072         * inet/getrpcbyname.c: Likewise.
1073         * inet/getrpcbyname_r.c: Likewise.
1074         * inet/getrpcbynumber.c: Likewise.
1075         * inet/getrpcbynumber_r.c: Likewise.
1076         * inet/getrpcent.c: Likewise.
1077         * inet/getrpcent_r.c: Likewise.
1078         * inet/getaliasent.c: Likewise.
1079         * inet/getaliasent_r.c: Likewise.
1080         * inet/getaliasname.c: Likewise.
1081         * inet/getaliasname_r.c: Likewise.
1082         * nscd/getgrgid_r.c: Likewise.
1083         * nscd/getgrnam_r.c: Likewise.
1084         * nscd/gethstbyad_r.c: Likewise.
1085         * nscd/gethstbynm3_r.c: Likewise.
1086         * nscd/getpwnam_r.c: Likewise.
1087         * nscd/getpwuid_r.c: Likewise.
1088         * nscd/getsrvbynm_r.c: Likewise.
1089         * nscd/getsrvbypt_r.c: Likewise.
1090         * nscd/gai.c: Likewise.
1091
1092         * configure.in (build_nscd): New substituted variable, set
1093         by --disable-build-nscd and defaults to $use_nscd.
1094         * configure: Regenerated.
1095         * config.make.in (build-nscd): New substituted variable.
1096         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1097         Change conditional to require [$(build-nscd) = yes] as well.
1098         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1099
1100         [BZ# 13696]
1101         * configure.in (use_nscd): New substituted variable, set by
1102         --disable-nscd.  If enabled, define USE_NSCD.
1103         * configure: Regenerated.
1104         * config.h.in: Add USE_NSCD.
1105         * config.make.in (use-nscd): New substituted variable.
1106         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1107         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1108         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1109         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1110         (CFLAGS-getgrnam_r.c): Likewise.
1111         (CFLAGS-initgroups.c): Likewise.
1112         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1113         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1114         Variables removed.
1115         * inet/getnetgrent_r.c
1116         (nscd_setnetgrent): New function, broken out of ...
1117         (setnetgrent): ... here.  Call it.
1118         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1119         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1120         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1121         * nscd/Makefile (routines, aux): Move definitions after include of
1122         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1123         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1124         Conditionalize on [USE_NSCD].
1125         (is_nscd, nscd_init_cb): Likewise.
1126         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1127         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1128         * nss/nss_db/db-init.c: Likewise.
1129         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1130         [USE_NSCD].
1131         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1132         (make_request): Use it.
1133         (cache_valid_p): New function.
1134         (__check_pf): Use it.
1135         * NEWS: Add item for --disable-nscd.
1136
1137 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1138
1139         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1140         to support sed >= 4.2.1-20-ga9bf076.
1141         * configure: Regenerated.
1142
1143 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1144
1145         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1146         Conditionalize whole body on [IREL].
1147
1148 2012-08-22  Jeff Law <law@redhat.com>
1149
1150         [BZ #14505]
1151         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1152         if the family is PF_UNSPEC.
1153
1154 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1155
1156         * Makerules (lib-version): Rename from V.
1157         (install-lib-nosubdir): Change V to lib-version.
1158
1159 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1160
1161         [BZ #14252]
1162         * powerpc32/power6/wcschr.c: New file.
1163         * powerpc32/power6/wcscpy.c: New file.
1164         * powerpc32/power6/wcsrchr.c: New file.
1165         * powerpc64/power6/wcschr.c: New file.
1166         * powerpc64/power6/wcscpy.c: New file.
1167         * powerpc64/power6/wcsrchr.c: New file.
1168
1169 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1170
1171         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1172         (two_way_short_needle): Use it.
1173         * string/strstr.c (AVAILABLE1_USES_J): Define.
1174         * string/strcasestr.c: Likewise.
1175
1176         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1177         array references.
1178         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1179
1180         [BZ #11607]
1181         * NEWS: Add an entry.
1182         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1183         define their defaults.
1184         (two_way_short_needle): Detect end-of-string on-the-fly.
1185         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1186         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1187         * string/bug-strcasestr1.c: New test.
1188         * string/Makefile: Run it.
1189
1190 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1191
1192         [BZ #11607]
1193         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1194         the first character.
1195
1196 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1197
1198         * csu/elf-init.c (__libc_csu_irel): Function removed.
1199         * csu/libc-start.c (apply_irel): New function.
1200         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1201
1202 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1203
1204         * sysdeps/unix/sysv/linux/kernel-features.h
1205         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1206         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1207         <kernel-features.h>.
1208         [__NR_fadvise64_64]: Make code unconditional.
1209         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1210         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1211         !__NR_fadvise64_64)]: Likewise.
1212         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1213         !__NR_fadvise64_64))]: Likewise.
1214         [__NR_fadvise64]: Make code unconditional.
1215         [!__NR_fadvise64]: Remove conditional code.
1216         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1217         <kernel-features.h>.
1218         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1219         unconditional.
1220         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1221         conditional code.
1222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1223         not include <kernel-features.h>.
1224         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1225         unconditional.
1226         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1227         conditional code.
1228         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1229         include <kernel-features.h>.
1230         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1231         unconditional.
1232         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1233         conditional code.
1234
1235 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1236
1237         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1238         slight instruction rearrangements per scrollpipe analysis.
1239         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1240
1241 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1242
1243         * manual/syslog.texi (syslog; vsyslog, closelog):
1244         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1245         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1246
1247         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1248         DSOCAPS to match condition on defining it.
1249
1250 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1251
1252         * sysdeps/unix/sysv/linux/kernel-features.h
1253         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1255         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1256         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1258         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1259         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1261         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1262         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1263
1264         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1265         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1266
1267         * sysdeps/unix/sysv/linux/kernel-features.h
1268         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1269         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1270         unconditional.
1271         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1272         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1273         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1274         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1275         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1276         Make code unconditional.
1277         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1278         (__mmap64) [!__NR_mmap2]: Likewise.
1279         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1280         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1281         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1282         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1283         [__NR_mmap2]: Make code unconditional.
1284         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1285         (__mmap64) [!__NR_mmap2]: Likewise.
1286
1287 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1288
1289         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1290
1291 2012-08-18  Andreas Jaeger  <aj@suse.de>
1292
1293         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1294
1295 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1296
1297         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1298         * include/unistd.h (__have_sock_cloexec): Likewise.
1299         (__have_pipe2): Likewise.
1300         (__have_dup3): Likewise.
1301
1302 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1303
1304         [BZ #9685]
1305         * include/unistd.h (__have_pipe2): Change define into an extern int.
1306         (__have_dup3): Likewise.
1307         * socket/have_sock_cloexec.c: Include fcntl.h.
1308         (__have_pipe2): New variable.
1309         (__have_dup3): Likewise.
1310
1311 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1312
1313         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1314
1315 2012-08-17  Marek Polacek  <polacek@redhat.com>
1316
1317         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1318         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1319
1320 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1321
1322         * configure.in: Add AC_SUBST for sysheaders.
1323         * configure: Regenerated.
1324         * config.make.in (sysheaders): New substituted variable.
1325
1326         * sysdeps/unix/mkfifo.c: Moved ...
1327         * sysdeps/posix/mkfifo.c: ... here.
1328         * sysdeps/unix/mkfifoat.c: Moved ...
1329         * sysdeps/posix/mkfifoat.c: ... here.
1330
1331         * sysdeps/unix/utime.c: Moved ...
1332         * sysdeps/posix/utime.c: ... here.
1333
1334         * sysdeps/unix/time.c: Moved ...
1335         * sysdeps/posix/time.c: ... here.
1336         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1337         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1338
1339         * sysdeps/unix/nice.c: Moved ...
1340         * sysdeps/posix/nice.c: ... here.
1341
1342         * sysdeps/unix/alarm.c: Moved ...
1343         * sysdeps/posix/alarm.c: ... here.
1344
1345         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1346
1347 2012-08-17  Jeff Law <law@redhat.com>
1348
1349         * intl/Makefile (codeset_mo): New variable.
1350         ($(codeset_mo)): New target.
1351         (tst-codeset.out): Depend on that.  Remove explicit rule.
1352         (tst-gettext3.out, tst-gettext5.out): Likewise.
1353         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1354         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1355         * intl/tst-codeset.sh: Remove.
1356         * intl/tst-gettext3.sh: Likewise.
1357         * intl/tst-gettext5.sh: Likewise.
1358
1359 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1360
1361         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1362         * sysdeps/unix/syscalls.list: ... here.
1363
1364         * sysdeps/posix/getaddrinfo.c
1365         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1366         (gaiconf_init, gaiconf_reload): Use them.
1367         [!_STATBUF_ST_NSEC]
1368         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1369         Define using time_t rather than struct timespec.
1370
1371         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1372         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1373         Macros removed.
1374         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1375         [!NO_THREADS].
1376         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1377         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1378         Likewise.
1379
1380         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1381         __libc_cleanup_push argument.
1382
1383         * bits/param.h: New file.
1384         * misc/sys/param.h: New file.
1385         * include/sys/param.h: New file.
1386         * misc/Makefile (headers): Add bits/param.h.
1387         * sysdeps/generic/sys/param.h: File removed.
1388         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1389         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1390         * sysdeps/mach/hurd/bits/param.h: New file.
1391         * sysdeps/mach/hurd/sys/param.h: New file.
1392
1393         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1394         last change.
1395
1396         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1397         [_IO_MTSAFE_IO].
1398         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1399         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1400         New macros.
1401
1402         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1403         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1404         rather than -D_IO_MTSAFE_IO conditionally.
1405         * stdio-common/Makefile (CPPFLAGS): Likewise.
1406         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1407         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1408         Use $(libio-mtsafe).
1409         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1410         of -D_IO_MTSAFE_IO.
1411         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1412         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1413         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1414         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1415         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1416         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1417         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1418         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1419         (CFLAGS-fread_u_chk.c): Likewise.
1420         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1421         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1422         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1423         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1424         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1425         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1426         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1427         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1428         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1429
1430         * libio/Makefile: Test [$(libc-reentrant) = yes]
1431         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1432
1433         * Makeconfig
1434         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1435         * sysdeps/pthread/configure: File removed.
1436         * sysdeps/pthread/Makeconfig: New file.
1437         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1438         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1439
1440 2012-08-16  Gary Benson  <gbenson@redhat.com>
1441
1442         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1443         unmapping the first object in a namespace.
1444
1445 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1446
1447         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1448         (__internal_setnetgrent): ... this.  Add internal_function to
1449         definition.  Add libc_hidden_def.
1450         (setnetgrent): Update caller.
1451         (internal_endnetgrent): Renamed to ...
1452         (__internal_endnetgrent): ... this.  Add internal_function to
1453         definition.  Add libc_hidden_def.
1454         (endnetgrent): Update caller.
1455         (internal_getnetgrent_r): Renamed to ...
1456         (__internal_getnetgrent_r): ... this.  Add internal_function to
1457         definition.  Add libc_hidden_def.
1458         (__getnetgrent_r): Update caller.
1459         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1460
1461 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1462
1463         * stdlib/longlong.h: Update from GCC.
1464
1465 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1466
1467         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1468         on _QL, which is set by umul_ppmm but never used.
1469         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1470         variables, which are set by GMP macros but never used.
1471         * stdio-common/_itowa.c (_itowa): Likewise.
1472         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1473         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1474
1475 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1476
1477         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1478         struct La_sh_regs is not constant.
1479         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1480         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1481         and struct La_sparc64_regs are not constant.
1482
1483 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1484
1485         * sysdeps/unix/sysv/linux/kernel-features.h
1486         (__ASSUME_POSIX_TIMERS): Remove.
1487         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1488         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1489         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1490         Make code unconditional.
1491         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1492         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1493         Make code unconditional.
1494         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1495         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1496         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1497         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1498         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1499         Make code unconditional.
1500         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1501         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1502         (__libc_missing_posix_timers): Remove.
1503
1504 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1505
1506         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1507         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1508
1509         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1510
1511         * elf/dl-sym.c: Include <stdlib.h>.
1512
1513         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1514         constants, which avoids warnings in 32-bit builds.
1515
1516         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1517         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1518
1519         * misc/lseek.c: File moved to ...
1520         * io/lseek.c: ... here.
1521
1522         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1523
1524         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1525         shifting LEN more than 31 bits at once.
1526
1527 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1528
1529         [BZ #14195]
1530         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1531         segmentation fault for a case of two empty input strings.
1532         * string/test-strncasecmp.c (check1): Renamed to...
1533         (bz12205): ...this.
1534         (bz14195): Add new testcase for two empty input strings and N > 0.
1535         (test_main): Call new testcase, adapt for renamed function.
1536
1537 2012-08-15  Andreas Jaeger  <aj@suse.de>
1538
1539         [BZ #14090]
1540         * crypt/md5test2.c: New test, based on test supplied by Serge
1541         Belyshev <belyshev@depni.sinp.msu.ru>.
1542         * crypt/Makefile (xtests): Add md5test-giant..
1543         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1544
1545 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1546
1547         [BZ #14090]
1548         * crypt/md5.c (md5_process_block): Don't assume the buffer
1549         length is less than 2**32.
1550         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1551         length is less than 2**64.
1552
1553 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1554
1555         * string/str-two-way.h: Include <sys/param.h>.
1556         (MAX): Macro removed.
1557
1558         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1559         Move #define and #undef of memmove to just before and after
1560         including <string.h>.
1561
1562         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1563         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1564         and after including <string.h>.  Move declarations of
1565         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1566         to before #include "string/memmove.c".
1567
1568         * include/dirent.h: Declare __getdirentries.
1569
1570         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1571         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1572
1573 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1574
1575         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1576         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1577         * sysdeps/i386/configure: Regenerated.
1578         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1579         STABS_CURRENT_FILE, and STABS_FUN.
1580         (END): Remove call to STABS_FUN_END.
1581         (STABS_CURRENT_FILE1): Delete.
1582         (STABS_CURRENT_FILE): Likewise.
1583         (STABS_FUN): Likewise.
1584         (STABS_FUN_END): Likewise.
1585         (STABS_FUN2): Likewise.
1586         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1587         * sysdeps/x86_64/configure: Regenerated.
1588
1589 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1590
1591         * elf/dl-open.c: Include <atomic.h>.
1592         * elf/dl-lookup.c: Likewise.
1593
1594 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1595
1596         * sysdeps/unix/sysv/linux/kernel-features.h
1597         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1598         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1599         unconditionally.
1600         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1601         unconditionally.
1602         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1603         condition on __ASSUME_CLONE_THREAD_FLAGS.
1604
1605 2012-08-14  Andreas Jaeger  <aj@suse.de>
1606
1607         * sysdeps/i386/fpu/libm-test-ulps: Update.
1608
1609 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1610
1611         * include/atomic.h (atomic_exchange_and_add): Split into ...
1612         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1613         New atomic macros.
1614
1615 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1616
1617         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1618
1619 2012-08-13  Jeff Law <law@redhat.com>
1620
1621         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1622         null byte in the output string.
1623
1624 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1625
1626         * sysdeps/unix/sysv/linux/kernel-features.h
1627         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1628         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1629         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1630         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1631         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1632         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1633         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1634
1635 2012-08-09  Jeff Law <law@redhat.com>
1636
1637         [BZ #13939]
1638         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1639         When avoid_arena is set, don't retry in the that arena.  Pick the
1640         next one, whatever it might be.
1641         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1642         (arena_lock): Pass in new parameter to arena_get2.
1643         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1644         arena_get2.
1645         (__libc_malloc): Unify retrying after main arena failure with
1646         __libc_memalign version.
1647         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1648
1649 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1650
1651         [BZ #14166]
1652         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1653         to __redirect_strstr.
1654         (__strstr_sse42): Use typeof __redirect_strstr.
1655         (__strstr_ia32): Likewise.
1656         (__libc_strstr): New prototype.
1657         (strstr): Renamed to ...
1658         (__libc_strstr): This.
1659         (strstr): New strong alias of __libc_strstr.
1660         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1661         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1662         __redirect_time.
1663         Include <time.h>.
1664         (__libc_time): New prototype.
1665         (time_ifunc): Replace time with __libc_time.
1666         (time): New strong alias and hidden definition of __libc_time.
1667         (__GI_time): Remove strong alias.
1668         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1669         Include <stddef.h>.
1670         (memmove): Redefined to __redirect_memmove.
1671         (__memmove_sse2): Use typeof __redirect_memmove.
1672         (__memmove_ssse3): Likewise.
1673         (__memmove_ssse3_back): Likewise.
1674         (__libc_memmove): New prototype.
1675         (memmove): Renamed to ...
1676         (__libc_memmove): This.
1677         (memmove): New strong alias of __libc_memmove.
1678
1679 2012-08-08  Mark Salter  <msalter@redhat.com>
1680
1681         * elf/elf.h
1682         (R_MN10300_TLS_GD): Define.
1683         (R_MN10300_TLS_LD): Likewise.
1684         (R_MN10300_TLS_LDO): Likewise.
1685         (R_MN10300_TLS_GOTIE): Likewise.
1686         (R_MN10300_TLS_IE): Likewise.
1687         (R_MN10300_TLS_LE): Likewise.
1688         (R_MN10300_TLS_DTPMOD): Likewise.
1689         (R_MN10300_TLS_DTPOFF): Likewise.
1690         (R_MN10300_TLS_TPOFF): Likewise.
1691         (R_MN10300_SYM_DIFF): Likewise.
1692         (R_MN10300_ALIGN): Likewise.
1693         (R_MN10300_NUM): Update.
1694
1695 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1696
1697         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1698         Remove.
1699
1700 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1701
1702         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1703
1704         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1705         sysdeps/unix -> sysdeps/posix move.
1706         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1707
1708 2012-08-07      Allan McRae     <allan@archlinux.org>
1709
1710         [BZ #14303]
1711         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1712         (SUNOS_CPP): Likewise.
1713         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1714         not found.
1715         (open_input): Call CPP using execvp.
1716
1717 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * sysdeps/unix/sysv/linux/kernel-features.h
1720         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1721         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1722         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1723         (__ASSUME_WAITID_SYSCALL): Likewise.
1724         * sysdeps/unix/sysv/linux/dl-execstack.c
1725         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1726         code unconditional.
1727         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1728         conditional code.
1729         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1730         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1731         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1732         code.
1733         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1734         unconditional.
1735         [__ASSUME_WAITID_SYSCALL]: Likewise.
1736         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1737
1738 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1739
1740         * sysdeps/unix/closedir.c: Renamed to ...
1741         * sysdeps/posix/closedir.c: ... here.
1742         * sysdeps/unix/dirfd.c: Renamed to ...
1743         * sysdeps/posix/dirfd.c: ... here.
1744         * sysdeps/unix/dirstream.h: Renamed to ...
1745         * sysdeps/posix/dirstream.h: ... here.
1746         * sysdeps/unix/fdopendir.c: Renamed to ...
1747         * sysdeps/posix/fdopendir.c: ... here.
1748         * sysdeps/unix/opendir.c: Renamed to ...
1749         * sysdeps/posix/opendir.c: ... here.
1750         * sysdeps/unix/readdir.c: Renamed to ...
1751         * sysdeps/posix/readdir.c: ... here.
1752         * sysdeps/unix/readdir_r.c: Renamed to ...
1753         * sysdeps/posix/readdir_r.c: ... here.
1754         * sysdeps/unix/rewinddir.c: Renamed to ...
1755         * sysdeps/posix/rewinddir.c: ... here.
1756         * sysdeps/unix/seekdir.c: Renamed to ...
1757         * sysdeps/posix/seekdir.c: ... here.
1758         * sysdeps/unix/telldir.c: Renamed to ...
1759         * sysdeps/posix/telldir.c: ... here.
1760         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1761         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1762         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1763         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1764
1765         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1766         * bits/fcntl.h: ... here.
1767
1768         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1769         not 0.
1770         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1771         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1772         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1773         (struct flock): Move l_start, l_len to the beginning.
1774         Use __pid_t for l_pid.
1775         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1776         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1777         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1778         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1779         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1780         [__USE_LARGEFILE64] (struct flock64): New type.
1781         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1782
1783         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1784         * bits/dirent.h: ... here.
1785
1786         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1787         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1788
1789 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1790
1791         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1792         Change from 2.6.0 to 2.6.16.
1793         * sysdeps/unix/sysv/linux/configure: Regenerated.
1794         * sysdeps/unix/sysv/linux/kernel-features.h
1795         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1796         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1797         version.
1798         (__ASSUME_UTIMES): Likewise.
1799         (__ASSUME_CLONE_STOPPED): Remove.
1800         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1801         architectures, not kernel version.
1802         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1803         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1804         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1805         (__ASSUME_WAITID_SYSCALL): Likewise.
1806         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1807         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1808         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1809         refer to older versions.
1810
1811 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1812
1813         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1814         Define alphasort64 as an alias.
1815         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1816         Define versionsort64 as an alias.
1817         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1818         Define scandir64 as an alias.
1819         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1820         Define scandirat64 as an alias.
1821         * dirent/alphasort64.c (alphasort64):
1822         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1823         * dirent/versionsort64.c: Likewise.
1824         * dirent/scandir64.c: Likewise.
1825         * dirent/scandirat64.c: Likewise.
1826         * sysdeps/wordsize-64/alphasort.c: File removed.
1827         * sysdeps/wordsize-64/alphasort64.c: File removed.
1828         * sysdeps/wordsize-64/scandir.c: File removed.
1829         * sysdeps/wordsize-64/scandir64.c: File removed.
1830         * sysdeps/wordsize-64/scandirat.c: File removed.
1831         * sysdeps/wordsize-64/scandirat64.c: File removed.
1832         * sysdeps/wordsize-64/versionsort.c: File removed.
1833         * sysdeps/wordsize-64/versionsort64.c: File removed.
1834         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1835         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1836         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1837         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1838         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1839         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1840         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1841         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1842
1843         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1844         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1845         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1846         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1847         [defined __arch64__ || defined __sparcv9]
1848         (__INO_T_MATCHES_INO64_T): New macro.
1849         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1850         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1851         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1852         * sysdeps/unix/sysv/linux/bits/dirent.h
1853         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1854         (_DIRENT_MATCHES_DIRENT64): New macro.
1855
1856         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1857         Define lockf64 as an alias.
1858         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1859         Define fseeko64 as an alias.
1860         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1861         Define ftello64 as an alias.
1862         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1863         Define _IO_fgetpos64 and fgetpos64 as aliases.
1864         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1865         Define _IO_fsetpos64 and fsetpos64 as aliases.
1866         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1867         Conditionalize body on this.
1868         * libio/fseeko64.c: Likewise.
1869         * libio/ftello64.c: Likewise.
1870         * libio/iofgetpos64.c: Likewise.
1871         * libio/iofsetpos64.c: Likewise.
1872         * sysdeps/wordsize-64/lockf.c: File removed.
1873         * sysdeps/wordsize-64/lockf64.c: File removed.
1874         * sysdeps/wordsize-64/fseeko.c: File removed.
1875         * sysdeps/wordsize-64/fseeko64.c: File removed.
1876         * sysdeps/wordsize-64/ftello.c: File removed.
1877         * sysdeps/wordsize-64/ftello64.c: File removed.
1878         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1879         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1880         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1881         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1882         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1883         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1884         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1885         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1886         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1887         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1888         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1889         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1890         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1891         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1892
1893         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1894         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1895         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1896         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1897         [defined __arch64__ || defined __sparcv9]
1898         (__OFF_T_MATCHES_OFF64_T): New macro.
1899         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1900         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1901         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1902         (__OFF_T_MATCHES_OFF64_T): New macro.
1903
1904 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1905
1906         * stdlib/secure-getenv.c (__secure_getenv): Replace
1907         GLIBC_2_16 with GLIBC_2_17.
1908
1909 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1910
1911         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1912         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1913
1914 2012-08-03  David S. Miller  <davem@davemloft.net>
1915
1916         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1917
1918 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1919
1920         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1921         Remove.
1922         (__ASSUME_CORRECT_SI_PID): Likewise.
1923         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1924         (__ASSUME_TMPFS_NAME): Likewise.
1925         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1926         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1927         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1928         (HAVE_AUX_SECURE): Make definition unconditional.
1929         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1930         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1931
1932 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1933
1934         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1935         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1936         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1937         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1938         __eloop_threshold instead of SYMLOOP_MAX.
1939
1940         * sysdeps/generic/eloop-threshold.h: New file.
1941         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1942         of MAXSYMLINKS.
1943         * elf/chroot_canon.c (chroot_canon): Likewise.
1944
1945 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1946
1947         [BZ #13717]
1948         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1949         Change to 2.6.0 everywhere.
1950         * sysdeps/unix/sysv/linux/configure: Regenerated.
1951         * sysdeps/unix/sysv/linux/kernel-features.h
1952         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1953         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1954         kernel versions.
1955         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1956         (__ASSUME_FUTEX_REQUEUE): Remove.
1957         (__ASSUME_STATFS64): Define unconditionally.
1958         (__ASSUME_AT_SECURE): Likewise.
1959         (__ASSUME_CORRECT_SI_PID): Likewise.
1960         (__ASSUME_TGKILL): Define without depending on kernel version for
1961         i386.
1962         (__ASSUME_UTIMES): Likewise.
1963         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1964         kernel version.
1965         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1966         (__ASSUME_TMPFS_NAME): Likewise.
1967         * README: Update reference to Linux kernel versions.
1968
1969 2012-08-02  Marek Polacek  <polacek@redhat.com>
1970
1971         [BZ# 14150]
1972         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1973         libc_cv_asm_type_prefix with %.
1974         * configure: Regenerated.
1975         * include/libc-symbols.h: Remove comment about
1976         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1977         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1978         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1979         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1980         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1981         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1982         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1983         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1984         * elf/tst-unique2mod1.c: Likewise.
1985         * elf/tst-unique1mod2.c: Likewise.
1986         * elf/tst-unique1mod1.c: Likewise.
1987         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1988         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1989         Replace ASM_TYPE_DIRECTIVE with .type.
1990         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1991         * sysdeps/i386/sysdep.h: Likewise.
1992         * sysdeps/x86_64/sysdep.h: Likewise.
1993         * sysdeps/sh/sysdep.h: Likewise.
1994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1995         Do not define ASM_TYPE_DIRECTIVE.
1996         * sysdeps/powerpc/sysdep.h: Likewise.
1997         * sysdeps/powerpc/powerpc32/sysdep.h:
1998         Replace ASM_TYPE_DIRECTIVE with .type.
1999         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2000         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2001         * sysdeps/i386/fpu/e_powf.S: Likewise.
2002         * sysdeps/i386/fpu/e_expl.S: Likewise.
2003         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2004         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2005         * sysdeps/i386/fpu/e_pow.S: Likewise.
2006         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2007         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2008         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2009         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2010         * sysdeps/i386/fpu/e_log2.S: Likewise.
2011         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2012         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2013         * sysdeps/i386/fpu/e_powl.S: Likewise.
2014         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2015         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2016         * sysdeps/i386/fpu/e_logl.S: Likewise.
2017         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2018         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2019         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2020         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2021         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2022         * sysdeps/i386/fpu/e_log.S: Likewise.
2023         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2024         * sysdeps/i386/fpu/e_logf.S: Likewise.
2025         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2026         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2027         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2028         * sysdeps/i386/fpu/e_log10.S: Likewise.
2029         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2030         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2031         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2032         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2033         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2034         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2035         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2036         * sysdeps/i386/i686/strtok.S: Likewise.
2037         * sysdeps/i386/i386-mcount.S: Likewise.
2038         * sysdeps/i386/strtok.S: Likewise.
2039         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2040         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2041         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2042         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2043         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2044         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2045         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2046         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2047         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2048         * sysdeps/x86_64/_mcount.S: Likewise.
2049         * sysdeps/x86_64/strtok.S: Likewise.
2050         * sysdeps/sh/_mcount.S: Likewise.
2051
2052 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2053
2054         * libio/iofopen.c: Include <fcntl.h>.
2055         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2056         (_IO_fopen64, fopen64): Define as aliases.
2057         * libio/iofopen64.c: Include <fcntl.h>.
2058         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2059         Conditionalize body on this.
2060         * sysdeps/wordsize-64/iofopen.c: File removed.
2061         * sysdeps/wordsize-64/iofopen64.c: File removed.
2062
2063 2012-08-01  Marek Polacek  <polacek@redhat.com>
2064
2065         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2066         Use dlfcn directly instead of a variable.
2067         (binfmt-subdir): Do not define.
2068         (dlfcn): Likewise.
2069
2070 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2071
2072         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2073         Remove all definitions.
2074         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2075         <kernel-features.h>.
2076         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2077         (miss_F_GETOWN_EX): Remove all definitions.
2078         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2079         macro definition.
2080         [!__ASSUME_FCNTL64]: Remove conditional code.
2081         [__ASSUME_FCNTL64]: Make code unconditional.
2082         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2083         <kernel-features.h>.
2084         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2085         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2086         (lockf64) [__NR_fcntl64]: Make code unconditional.
2087         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2088
2089         * sysdeps/unix/sysv/linux/kernel-features.h
2090         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2091         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2092         Make code unconditional.
2093         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2094         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2096         [__NR_vfork]: Make code unconditional.
2097         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2098         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2100         [__NR_vfork]: Make code unconditional.
2101         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2102         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2103
2104 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2105
2106         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2107         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2108
2109         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2110         Define mkstemp64 as an alias.
2111         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2112         Define mkstemps64 as an alias.
2113         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2114         Define mkostemp64 as an alias.
2115         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2116         Define mkostemps64 as an alias.
2117         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2118         Conditionalize body on this.
2119         * misc/mkostemp64.c: Likewise.
2120         * misc/mkostemps64.c: Likewise.
2121         * misc/mkstemps64.c: Likewise.
2122         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2123         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2124         * sysdeps/wordsize-64/mkostemp.c: File removed.
2125         * sysdeps/wordsize-64/mkstemp.c: File removed.
2126         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2127         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2128         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2129         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2130
2131         [BZ #14138]
2132         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2133         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2134         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2135         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2136
2137         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2138         compat_symbol macros from <shlib-compat.h> rather than the underlying
2139         default_symbol_version and symbol_version macros, so that DEFAULT
2140         lines in shlib-versions are respected.
2141         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2142
2143 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2144
2145         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2146         Declare with warn_unused_result.
2147         (setgid, setregid, setegid, setresgid): Likewise.
2148         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2149         Likewise.
2150         * WUR-REPORT: Remove set*id functions.
2151
2152 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2153
2154         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2155
2156 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2157
2158         * include/sys/socket.h (__libc_accept, __libc_accept4):
2159         Add attribute_hidden.
2160         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2161
2162         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2163         use of PTR_MANGLE.
2164         * inet/getnetgrent_r.c (setup): Likewise.
2165
2166         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2167
2168 2012-07-31  David S. Miller  <davem@davemloft.net>
2169
2170         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2171
2172 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2173
2174         [BZ #13629]
2175         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2176         value between 1.0 and 2.0 and smaller part has absolute value less
2177         than 1.0.
2178         * math/s_clog10.c (__clog10): Likewise.
2179         * math/s_clog10f.c (__clog10f): Likewise.
2180         * math/s_clog10l.c (__clog10l): Likewise.
2181         * math/s_clogf.c (__clogf): Likewise.
2182         * math/s_clogl.c (__clogl): Likewise.
2183         * math/libm-test.inc (clog_test): Add more tests.
2184         (clog10_test): Likewise.
2185         * sysdeps/i386/fpu/libm-test-ulps: Update.
2186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2187
2188 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2189
2190         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2191         Exit with zero in case no suitable GID is found, and write a
2192         message to standard error.
2193
2194 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2195
2196         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2197         rather than to 1.
2198         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2199         (MAXPATHLEN): Removed.
2200         (NOGROUP, NODEV): New macros.
2201         (setbit, clrbit, isset, isclr): New macros.
2202         (howmany, roundup, powerof2): New macros.
2203         (DEV_BSIZE): New macro.
2204
2205         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2206         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2207
2208         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2209         definition on [!__NO_LONG_DOUBLE_MATH].
2210
2211         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2212         PTR_MANGLE and PTR_DEMANGLE.
2213
2214         * socket/accept4.c (accept4): Rename to __libc_accept4.
2215         Define accept4 as a weak alias.
2216
2217         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2218         on [_DIRENT_HAVE_D_TYPE].
2219         * io/ftw.c (ftw_dir): Likewise.
2220
2221         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2222
2223         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2224
2225         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2226         Use the BSD numbers rather than the arbitrary ones we had.
2227         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2228         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2229         (SIGXCPU, SIGXFSZ): New macros.
2230         (_NSIG): Now 32.
2231
2232         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2233         initializer on [_LIBC_REENTRANT].
2234
2235         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2236         definitions inside [_POSIX_MAPPED_FILES].
2237
2238         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2239
2240         * dirent/opendir.c: Include <fcntl.h>.
2241
2242         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2243         (__libc_getspecific): Likewise.
2244         (__libc_key_create): Likewise.
2245
2246         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2247         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2248         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2249         (tmpfile64): Define as alias.
2250         * sysdeps/wordsize-64/tmpfile.c: File removed.
2251         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2252         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2253         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2254
2255         * stdio-common/vfscanf.c: Include <stdbool.h>.
2256         * nss/makedb.c: Likewise.
2257         * stdio-common/_i18n_number.h: Likewise.
2258         * argp/argp-help.c: Likewise.
2259         * posix/wordexp.c: Likewise.
2260         * sysdeps/posix/spawni.c: Likewise.
2261         * nss/nss_files/files-initgroups.c: Likewise.
2262         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2263         * nss/nss_files/files-initgroups.c: Likewise.
2264         * nss/nss_db/db-netgrp.c: Likewise.
2265         * nss/nss_db/db-initgroups.c: Likewise.
2266         * io/fchmodat.c: Include <sys/stat.h>.
2267
2268         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2269         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2270
2271         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2272         [HAVE_MMAP].
2273
2274         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2275         Add multiple inclusion protection.
2276
2277 2012-07-27  David S. Miller  <davem@davemloft.net>
2278
2279         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2280
2281 2012-07-27  Gary Benson  <gbenson@redhat.com>
2282
2283         [BZ #14298]
2284         * elf/rtld.c: Include <stap-probe.h>.
2285         (dl_main): Added static probes "init_start" and "init_complete".
2286         * elf/dl-load.c: Include <stap-probe.h>.
2287         (lose): Take new parameter "nsid".
2288         Added static probe "map_failed".
2289         (_dl_map_object_from_fd): Pass namespace id to lose.
2290         Added static probe "map_start".
2291         (open_verify): Pass namespace id to lose.
2292         * elf/dl-open.c: Include <stap-probe.h>.
2293         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2294         and "reloc_complete".
2295         * elf/dl-close.c: Include <stap-probe.h>.
2296         (_dl_close_worker): Added static probes "unmap_start" and
2297         "unmap_complete".
2298         * elf/rtld-debugger-interface.txt: New file documenting the above.
2299
2300 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2301
2302         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2303         rather than a string variable.
2304         * sunrpc/rpc_main.c (h_output): Likewise.
2305         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2306
2307 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2308
2309         * inet/check_native.c: New file.
2310
2311 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2312
2313         [BZ #13629]
2314         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2315         if larger part has absolute value 1.0.
2316         * math/s_clog10.c (__clog10): Likewise.
2317         * math/s_clog10f.c (__clog10f): Likewise.
2318         * math/s_clog10l.c (__clog10l): Likewise.
2319         * math/s_clogf.c (__clogf): Likewise.
2320         * math/s_clogl.c (__clogl): Likewise.
2321         * math/libm-test.inc (clog_test): Add more tests.
2322         (clog10_test): Likewise.
2323         * sysdeps/i386/fpu/libm-test-ulps: Update.
2324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2325
2326         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2327         (pltexit): Likewise.
2328         (La_regs): Likewise.
2329         (La_retval): Likewise.
2330         (int_retval): Likewise.
2331         Update #error for removed macros to refer only to definitions in
2332         tst-audit.h.
2333         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2334         macro.
2335         (pltexit): Likewise.
2336         (La_regs): Likewise.
2337         (La_retval): Likewise.
2338         (int_retval): Likewise.
2339         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2340         macro.
2341         (pltexit): Likewise.
2342         (La_regs): Likewise.
2343         (La_retval): Likewise.
2344         (int_retval): Likewise.
2345         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2346         macro.
2347         (pltexit): Likewise.
2348         (La_regs): Likewise.
2349         (La_retval): Likewise.
2350         (int_retval): Likewise.
2351         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2352         macro.
2353         (pltexit): Likewise.
2354         (La_regs): Likewise.
2355         (La_retval): Likewise.
2356         (int_retval): Likewise.
2357         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2358         macro.
2359         (pltexit): Likewise.
2360         (La_regs): Likewise.
2361         (La_retval): Likewise.
2362         (int_retval): Likewise.
2363         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2364         macro.
2365         (pltexit): Likewise.
2366         (La_regs): Likewise.
2367         (La_retval): Likewise.
2368         (int_retval): Likewise.
2369         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2370         macro definitions in tst-audit.h.
2371         * sysdeps/i386/tst-audit.h: New file.
2372         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2373         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2374         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2375         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2376         * sysdeps/sh/tst-audit.h: Likewise.
2377         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2378         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2379         * sysdeps/x86_64/tst-audit.h: Likewise.
2380
2381 2012-07-26  Andreas Jaeger  <aj@suse.de>
2382
2383         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2384         ptrace.
2385
2386         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2387         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2388         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2389         PTRACE_O_MASK.
2390         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2391         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2392         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2393
2394         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2395         value.
2396
2397         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2398         _sigsys.
2399         (si_call_addr, si_syscall, si_arch): Define new macro.
2400         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2401         _sigsys.
2402         (si_call_addr, si_syscall, si_arch): Define new marcro.
2403         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2404         _sigsys.
2405         (si_call_addr, si_syscall, si_arch): Define new macro.
2406         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2407         _sigsys.
2408         (si_call_addr, si_syscall, si_arch): Define new macro.
2409
2410 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2411
2412         [BZ #13717]
2413         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2414         Change to 2.4.21 where previously 2.4.1.
2415         * sysdeps/unix/sysv/linux/configure: Regenerated.
2416         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2417         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2418         Linux kernel version.
2419         (__ASSUME_STD_AUXV): Remove.
2420         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2421         kernel version.
2422         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2423         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2424         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2425         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2426         (__ASSUME_NETLINK_SUPPORT): Likewise.
2427         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2428         (__no_netlink_support): Remove conditional definition.
2429         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2430         Remove.
2431         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2432         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2433         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2434         (if_nameindex_ioctl): Remove.
2435         (if_nameindex_netlink): Do not handle __no_netlink_support.
2436         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2437         code.
2438         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2439         Remove conditional code.
2440         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2441         code.
2442         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2443         unconditional.
2444         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2445         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2446         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2447         Remove.
2448         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2449         [!__ASSUME_STD_AUXV]: Remove conditional code.
2450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2451         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2452         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2454         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2455         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2456         code.
2457         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2459         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2460         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2461         conditional code.
2462         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2464         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2465         code.
2466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2467         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2468         conditional code.
2469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2470         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2471         code unconditional.
2472         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2473         conditional code.
2474         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2475         unconditional.
2476         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2477         conditional code.
2478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2479         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2480         unconditional.
2481         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2482         conditional code.
2483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2484         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2485         code unconditional.
2486         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2487         conditional code.
2488         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2489         unconditional.
2490         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2491         conditional code.
2492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2493         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2494         code unconditional.
2495         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2496         conditional code.
2497         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2498         unconditional.
2499         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2500         conditional code.
2501
2502 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2503
2504         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2505         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2506         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2507         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2508         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2509         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2510         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2511         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2512         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2513         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2514         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2515         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2516         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2517         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2518         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2519         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2520         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2521         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2522         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2523         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2524         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2525         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2526         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2527
2528 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2529
2530         * Versions.def: Add GLIBC_2.17.
2531         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2532         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2533         Introduce __libc_secure_getenv.
2534         * stdlib/Versions (2.17): Add secure_getenv
2535         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2536         * stdlib/secure-getenv.c: Rename __secure_getenv to
2537         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2538         symbol __secure_getenv for GLIBC_2.0.
2539         * stdlib/tst-secure-getenv.c: New.
2540         * stdlib/Makefile (tests): Add testcase.
2541         * manual/startup.texi (Environment Access): Document
2542         secure_getenv.
2543         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2544         __libc_secure_getenv.
2545         * inet/ruserpass.c (ruserpass): Likewise.
2546         * malloc/mtrace.c (mtrace): Likewise.
2547         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2548         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2549         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2550         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2551         HAVE_SECURE_GETENV.
2552         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2553         __secure_getenv to __libc_secure_getenv.
2554         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2556         Likewise.
2557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2558         Likewise.
2559         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2560         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2561         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2564         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2565         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2566
2567 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2568
2569         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2570         (struct La_i86_retval): Likewise.
2571         (struct La_x86_64_regs): Likewise.
2572         (struct La_x86_64_retval): Likewise.
2573         (struct La_x32_regs): Likewise.
2574         (struct La_x32_retval): Likewise.
2575         (struct La_ppc32_regs): Likewise.
2576         (struct La_ppc32_retval): Likewise.
2577         (struct La_ppc64_regs): Likewise.
2578         (struct La_ppc64_retval): Likewise.
2579         (struct La_sh_regs): Likewise.
2580         (struct La_sh_retval): Likewise.
2581         (struct La_s390_32_regs): Likewise.
2582         (struct La_s390_32_retval): Likewise.
2583         (struct La_s390_64_regs): Likewise.
2584         (struct La_s390_64_retval): Likewise.
2585         (struct La_sparc32_regs): Likewise.
2586         (struct La_sparc32_retval): Likewise.
2587         (struct La_sparc64_regs): Likewise.
2588         (struct La_sparc64_retval): Likewise.
2589         (struct audit_ifaces): Remove architecture-specific pltenter and
2590         pltexit members.
2591         * sysdeps/i386/ldsodefs.h: New file.
2592         * sysdeps/powerpc/ldsodefs.h: Likewise.
2593         * sysdeps/s390/ldsodefs.h: Likewise.
2594         * sysdeps/sh/ldsodefs.h: Likewise.
2595         * sysdeps/sparc/ldsodefs.h: Likewise.
2596         * sysdeps/x86_64/ldsodefs.h: Likewise.
2597
2598 2012-07-25  Marek Polacek  <polacek@redhat.com>
2599
2600         [BZ #6808]
2601         * math/libm-test.inc (yn_test): Add another test.
2602         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2603         to ERANGE when the result is +-Inf.
2604         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2605         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2606         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2607         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2608
2609 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2610
2611         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2612         equal to 0.
2613         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2614         clock_t.
2615         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2616
2617 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2618
2619         * configure.in <sysdeps resolving>: Correct printing
2620         Implies_before.
2621         * configure: Regenerate.
2622
2623 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2624
2625         * math/w_ilogb.c: Include <limits.h>.
2626         * math/w_ilogbl.c: Likewise.
2627
2628 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2629
2630         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2631         va_copy.  Document allowing for unavailable va_copy only as
2632         pre-C99 compatibility.
2633         * manual/string.texi (Copying and Concatenation): Use va_copy
2634         instead of __va_copy in concat example.
2635
2636 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2637
2638         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2639         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2640         it if not null.
2641
2642         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2643         with O_NOLINK passed to __file_name_lookup.
2644
2645         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2646         with O_NOLINK passed to __file_name_lookup.
2647
2648         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2649         negative N or less than NGIDS.
2650
2651         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2652         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2653         enough.  Use memcpy instead of strncpy.
2654
2655 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2656
2657         * elf/Makefile (check-data): Remove.
2658         (localplt.data): New vpath directive.
2659         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2660         instead of $(check-data).
2661         * scripts/data/localplt-generic.data: Move to ...
2662         * sysdeps/generic/localplt.data: ... here.
2663         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2664         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2665         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2667         ... here.
2668         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2670         ... here.
2671         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2673         ... here.
2674         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2675         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2676         ... here.
2677         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2678         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2679         ... here.
2680         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2681         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2682         ... here.
2683
2684 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2685
2686         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2687         PPC32 and PPC64 files.
2688         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2689         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2690
2691 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2692
2693         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2694         __makecontext_ret to ...
2695         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2696         ... here and call exit if uc_link is NULL.  New file.
2697         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2698         __makecontext_ret.S.
2699         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2700         __makecontext_ret to ...
2701         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2702         ... here and call exit if uc_link is NULL.  New file.
2703         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2704         __makecontext_ret.S.
2705
2706 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2707
2708         * elf/elf.h (R_390_IRELATIVE): New definition.
2709         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2710         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2711         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2712         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2713         (elf_machine_lazy_rel): Likewise.
2714         * sysdeps/s390/dl-irel.h: New file.
2715         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2716         * sysdeps/s390/s390-64/memset.S: New asm code.
2717         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2718         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2719         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2720         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2721         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2722         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2723         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2724         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2725         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2726         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2727         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2728         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2729         * sysdeps/s390/s390-32/memset.S: New asm code.
2730         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2731
2732 2012-07-17  Marek Polacek  <polacek@redhat.com>
2733
2734         [BZ #14349]
2735         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2736         * sysdeps/s390/s390-64/configure.in: Likewise.
2737         * sysdeps/sparc/configure.in: Likewise.
2738         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2739         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2740         * sysdeps/i386/configure.in: Likewise.
2741         * sysdeps/x86_64/configure.in: Likewise.
2742         * sysdeps/sh/configure.in: Likewise.
2743         * sysdeps/s390/s390-32/configure: Regenerated.
2744         * sysdeps/s390/s390-64/configure: Likewise.
2745         * sysdeps/x86_64/configure: Likewise.
2746         * sysdeps/sh/configure: Likewise.
2747         * sysdeps/powerpc/powerpc64/configure: Likewise.
2748         * sysdeps/powerpc/powerpc32/configure: Likewise.
2749         * sysdeps/sparc/configure: Likwise.
2750         * sysdeps/i386/configure: Likewise.
2751
2752         * elf/dl-open.c: Comment fixes.
2753
2754 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2755
2756         * Makefile [CXX] (check-data): Remove.
2757         [CXX] (c++-types.data): New vpath directive.
2758         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2759         vpath.  Do not allow for C++ type data being missing.
2760         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2761         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2762         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2763         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2764         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2765         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2766         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2768         ... here.
2769         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2771         ... here.
2772         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2773         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2774         ... here.
2775         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2776         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2777         ... here.
2778         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2779         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2780         ... here.
2781         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2782         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2783         ... here.
2784         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2785         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2786         ... here.
2787         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2789
2790         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2791         definitions to architecture-specific files.
2792         (TLS_IE): Likewise.
2793         (TLS_LD): Likewise.
2794         (TLS_GD): Likewise.
2795         * sysdeps/i386/tls-macros.h: New file.
2796         * sysdeps/powerpc/tls-macros.h: Likewise.
2797         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2798         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2799         * sysdeps/sh/tls-macros.h: Likewise.
2800         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2801         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2802         * sysdeps/x86_64/tls-macros.h: Likewise.
2803
2804 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2805
2806         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2807         zero value for regular exit case.
2808
2809         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2810         (__start_context): Preserve zero value for regular exit case.
2811
2812 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2813             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2814
2815         * manual/setjmp.texi (setcontext): Clarify normal process
2816         termination when uc_link is the null pointer.
2817         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2818         exit call.
2819
2820 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2821
2822         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2823         preprocessor.  Test for each exception mask separately.
2824
2825 2012-07-16  Andreas Jaeger  <aj@suse.de>
2826
2827         * po/ru.po: Update from translation team.
2828
2829 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2830
2831         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2832         equal to 0.
2833         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2834         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2835         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2836         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2837         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2838
2839 2012-07-13  Andreas Jaeger  <aj@suse.de>
2840
2841         * po/fr.po: Update from translation team.
2842
2843 2012-07-12  Marek Polacek  <polacek@redhat.com>
2844
2845         [BZ #14173]
2846         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2847         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2848         loop condition.
2849
2850 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2851
2852         [BZ #13717]
2853         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2854         Change to 2.4.1 where previously 2.4.0.
2855         * sysdeps/unix/sysv/linux/configure: Regenerated.
2856         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2857         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2858         version.
2859         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2860         (__ASSUME_AT_CLKTCK): Remove.
2861         (__ASSUME_AT_PAGESIZE): Likewise.
2862         (__ASSUME_AT_XID): Likewise.
2863         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2864         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2865         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2866         unconditionally.
2867         (HAVE_AUX_PAGESIZE): Likewise.
2868         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2869         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2870         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2871
2872 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2873
2874         [BZ #14307]
2875         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2876         the temporary buffer used to invoke __gethostbyname2_r,
2877         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2878         host_data / struct gaih_addrtuple.
2879         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2880         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2881         header file nss/nsswitch.h.
2882         * nss/nsswitch.h (global scope): Add definition of implementation
2883         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2884         resolv/nss_dns/dns-host.c).
2885
2886 2012-07-11  Andreas Jaeger  <aj@suse.de>
2887
2888         * po/fr.po: Update from translation team.
2889
2890         * po/sv.po: Update from translation team
2891         * po/fr.po: Another update from translation team.
2892
2893 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2894
2895         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2896         for subnormals or multiply small sinh result by itself.
2897         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2899
2900 2012-07-11  David S. Miller  <davem@davemloft.net>
2901
2902         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2903
2904 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2905
2906         [BZ #14347]
2907         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2908         (INTERNAL_MARK): Shift it here.
2909
2910 2012-07-10  Marek Polacek  <polacek@redhat.com>
2911
2912         [BZ #14151]
2913         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2914         libc_cv_asm_global_directive with .globl.
2915         * configure: Regenerated.
2916         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2917         with .globl.
2918         * sysdeps/i386/configure: Regenerated.
2919         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2920         with .globl.
2921         * sysdeps/x86_64/configure: Regenerated.
2922         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2923         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2924         * elf/tst-unique2mod2.c: Likewise.
2925         * elf/tst-unique2mod1.c: Likewise.
2926         * elf/tst-unique1mod2.c: Likewise.
2927         * elf/tst-unique1mod1.c: Likewise.
2928         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2929         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2930         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2931         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2932         * sysdeps/mach/sysdep.h: Likewise.
2933         * sysdeps/i386/sysdep.h: Likewise.
2934         * sysdeps/i386/i386-mcount.S: Likewise.
2935         * sysdeps/x86_64/_mcount.S: Likewise.
2936         * sysdeps/x86_64/sysdep.h: Likewise.
2937         * sysdeps/sh/_mcount.S: Likewise.
2938         * sysdeps/sh/sysdep.h: Likewise.
2939         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2940         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2941         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2942         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2943         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2944         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2945         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2946         * locale/localeinfo.h: Likewise.
2947         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2948         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2949
2950 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2951
2952         [BZ #14336]
2953         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2954         system".
2955         * manual/message.texi (The Uniforum approach): Likewise.
2956         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2957         (glibc iconv Implementation): Likewise.
2958
2959 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2960
2961         [BZ #14337]
2962         * math/s_clog.c (__clog): Avoid scaling a value down where that
2963         could result in underflow.
2964         * math/s_clog10.c (__clog10): Likewise.
2965         * math/s_clog10f.c (__clog10f): Likewise.
2966         * math/s_clog10l.c (__clog10l): Likewise.
2967         * math/s_clogf.c (__clogf): Likewise.
2968         * math/s_clogl.c (__clogl): Likewise.
2969         * math/libm-test.inc (clog_test): Add more tests.
2970         (clog10_test): Likewise.
2971         * sysdeps/i386/fpu/libm-test-ulps: Update.
2972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2973
2974 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2975
2976         [BZ #14283]
2977         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2978         by 7 not 8 to examine high bit of fractional part.
2979
2980         [BZ #14042]
2981         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2982         for call to __mcount_internal.
2983         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2984         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2985         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2986
2987 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2988
2989         [BZ #14154]
2990         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2991         approximation for values within 0x1p-13f of an odd multiple of
2992         pi/4.
2993         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2994         exception.  Add more tests.
2995         * sysdeps/i386/fpu/libm-test-ulps: Update.
2996
2997         [BZ #6778]
2998         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2999         inputs and return -1 for them.  Do not check for +Inf in case not
3000         reachable for +Inf.
3001         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3002         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3003         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3004         and return -1 for them.  Do not check for +Inf in case not
3005         reachable for +Inf.
3006         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3007         define.
3008         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3009         and return -1 for them.  Do not check for +Inf in case not
3010         reachable for +Inf.
3011         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3012         spurious underflow.
3013         * sysdeps/i386/fpu/libm-test-ulps: Update.
3014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3015
3016 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3017
3018         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3019
3020 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3021
3022         [BZ #14157]
3023         [BZ #14331]
3024         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3025         could result in spurious underflow.  Scale down values above
3026         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3027         * math/s_csqrtf.c (__csqrtf): Likewise.
3028         * math/s_csqrtl.c (__csqrtl): Likewise.
3029         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3030         spurious underflow.
3031         * sysdeps/i386/fpu/libm-test-ulps: Update.
3032         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3033
3034 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3035
3036         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3037         xopen-msg.sed.
3038         * catgets/xopen-msg.awk: New file.
3039         * catgets/xopen-msg.sed: Removed.
3040
3041         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3042         po2text.sed.
3043         * intl/po2test.awk: New file.
3044         * intl/po2test.sed: Removed.
3045
3046 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3047
3048         [BZ #14328]
3049         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3050         or multiply small sinh result by itself.
3051         * math/s_ctanf.c (__ctanf): Likewise.
3052         * math/s_ctanh.c (__ctanh): Likewise.
3053         * math/s_ctanhf.c (__ctanhf): Likewise.
3054         * math/s_ctanhl.c (__ctanhl): Likewise.
3055         * math/s_ctanl.c (__ctanl): Likewise.
3056         * math/libm-test.inc (ctan_test_tonearest): New function.
3057         (ctan_test_towardzero): Likewise.
3058         (ctan_test_downward): Likewise.
3059         (ctan_test_upward): Likewise.
3060         (ctanh_test_tonearest): Likewise.
3061         (ctanh_test_towardzero): Likewise.
3062         (ctanh_test_downward): Likewise.
3063         (ctanh_test_upward): Likewise.
3064         (main): Call these new functions.
3065         * sysdeps/i386/fpu/libm-test-ulps: Update.
3066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3067
3068 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3069
3070         * .gitignore: Delete /ports entry.
3071
3072 2012-07-03  Andreas Jaeger  <aj@suse.de>
3073
3074         * po/bg.po: Update from translation team.
3075         * po/cs.po: Likewise.
3076         * po/de.po: Likewise.
3077         * po/hr.po: Likewise.
3078         * po/nl.pl: Likewise.
3079         * po/pl.po: Likewise.
3080         * po/vi.po: Likewise.
3081
3082 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3083
3084         * Makeconfig [!+link] (+link-before-libc): New variable.
3085         [!+link] (+link-after-libc): Likewise.
3086         [!+link] (+link-tests): Likewise.
3087         [!+link] (+link): Define in terms of $(+link-before-libc) and
3088         $(+link-after-libc).
3089         [!+link-static] (+link-static-before-libc): New variable.
3090         [!+link-static] (+link-static-after-libc): Likewise.
3091         [!+link-static] (+link-static-tests): Likewise.
3092         [!+link-static] (+link-static): Define in terms of
3093         $(+link-static-before-libc) and $(+link-static-after-libc).
3094         [build-shared] (link-libc-before-gnulib): New variable.
3095         [build-shared] (link-libc-tests): Likewise.
3096         [build-shared] (link-libc): Define in terms of
3097         $(link-libc-before-gnulib).
3098         [!build-shared] (link-libc-tests): New variable.
3099         (link-libc-static-tests): New variable.
3100         [!gnulib] (gnulib-arch): New variable.
3101         [!gnulib] (gnulib-tests): Likewise.
3102         [!gnulib] (static-gnulib-arch): Likewise.
3103         [!gnulib] (static-gnulib-tests): Likewise.
3104         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3105         Define with "=" instead of ":=".
3106         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3107         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3108         * Rules (binaries-all-notests): New variable.
3109         (binaries-all-tests): Likewise.
3110         (binaries-static-notests): Likewise.
3111         (binaries-static-tests): Likewise.
3112         (binaries-all): Define using $(binaries-all-notests) and
3113         $(binaries-all-tests).
3114         (binaries-static): Define using $(binaries-static-notests) and
3115         $(binaries-static-tests).
3116         (binaries-shared-tests): New variable.
3117         (binaries-shared-notests): Likewise.
3118         (binaries-shared): Remove variable.
3119         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3120         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3121         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3122         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3123         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3124         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3125         * elf/Makefile (sln-modules): New variable.
3126         (extra-objs): Add $(sln-modules:=.o).
3127         (ldconfig-modules): Add static-stubs.
3128         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3129         * elf/static-stubs.c: New file.
3130
3131         [BZ #14283]
3132         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3133         by 7 not 8 to examine high bit of fractional part.  Use volatile
3134         variables when splitting into final array of floats if
3135         __FLT_EVAL_METHOD__ != 0.
3136         * math/libm-test.inc (cos_test): Add another test.
3137         (sin_test): Likewise.
3138         * sysdeps/i386/fpu/libm-test-ulps: Update.
3139
3140         [BZ #14273]
3141         * math/libm-test.inc (cosh_test): Add more tests.
3142
3143         * version.h (RELEASE): Set to "development".
3144         (VERSION): Set to "2.16.90".
3145
3146 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3147
3148         * NEWS: Update copyright. Remove last-updated date.
3149         Mention math library bug fixes and timezone data changes.
3150         * README: Mention GNU/Hurd, x32, and HPPA support status.
3151
3152 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3153
3154         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3155
3156 2012-06-27  Andreas Jaeger  <aj@suse.de>
3157
3158         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3159
3160 2012-06-25  Andreas Jaeger  <aj@suse.de>
3161
3162         * sysdeps/s390/fpu/libm-test-ulps: Update.
3163
3164 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3165             Thomas Schwinge  <thomas@codesourcery.com>
3166
3167         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3168         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3169         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3170         fanotify_mark.
3171
3172 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3173
3174         * sysdeps/mach/start.c: Remove file.
3175         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3176         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3177         * sysdeps/sh/init-first.c: Likewise.
3178
3179         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3180         registers for frame unwinding purposes, add CFI directives.
3181         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3182         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3183         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3184         Likewise.
3185
3186         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3187         __fortify_fail returning.
3188         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3189
3190         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3191         sysdeps/sh/____longjmp_chk.S.
3192         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3193         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3194         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3195         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3196
3197         * sysdeps/sh/abort-instr.h: New file.
3198         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3199         process in case exit returns.
3200
3201         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3202         initialize the GOT register before use.
3203
3204         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3205         calculation of ARGC > 4.
3206
3207         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3208         meaningful names to some local labels.
3209
3210 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3211             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3212
3213         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3214         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3215         (__arch_compare_and_exchange_val_16_acq): Likewise.
3216         (__arch_compare_and_exchange_val_32_acq): Likewise.
3217         (atomic_exchange_and_add): Fix gUSA sequence.
3218         (atomic_add): Likewise.
3219         (atomic_add_negative): Likewise.
3220         (atomic_add_zero): Likewise.
3221         (atomic_bit_test_set): Likewise.
3222
3223 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3224
3225         [BZ #13579]
3226         * include/link.h (struct link_map): Add l_free_initfini.
3227         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3228         l_initfini.
3229         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3230         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3231         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3232         set.
3233
3234 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3235
3236         * configure.in: Use AC_LANG_SOURCE.
3237         * configure: Regenerate.
3238
3239 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3240
3241         * configure.in (libc_cv_localstatedir): New substituted variable.
3242         * configure: Regenerated.
3243         * config.make.in (localstatedir): New variable, substituted from
3244         libc_cv_localstatedir.
3245         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3246         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3247         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3248         * sysdeps/gnu/configure: Regenerated.
3249
3250 2012-06-21  Jeff Law  <law@redhat.com>
3251
3252         [BZ #14277]
3253         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3254         free.  Simplify list management for _LIBC case.
3255
3256 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3257
3258         [BZ #14273]
3259         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3260         Clear sign bit of 64-bit integer value before comparing against
3261         overflow value.
3262
3263         * sysdeps/mach/configure: Regenerated.
3264
3265 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3266
3267         [BZ #14278]
3268         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3269
3270 2012-06-21  Jeff Law  <law@redhat.com>
3271
3272         [BZ #13882]
3273         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3274         uint16_t for elements in the "seen" array to avoid char overflows.
3275         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3276         * elf/dl-open.c (dl_open_worker): Likewise.
3277
3278 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3279
3280         * scripts/list-sources.sh: Scan PORTS for translations.
3281         * po/libc.pot: Regenerated.
3282
3283 2012-06-21  Andreas Jaeger  <aj@suse.de>
3284
3285         [BZ #12194]
3286         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3287         warning.
3288         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3289         * bits/byteswap-16.h (__bswap_16): Likewise.
3290         * bits/byteswap.h (__bswap_constant_16): Likewise.
3291
3292 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3293
3294         [BZ #14117]
3295         * sysdeps/i386/fpu_control.h: Removed.
3296         * sysdeps/x86_64/fpu_control.h: Moved to ...
3297         * sysdeps/x86/fpu_control.h: Here.
3298
3299         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3300         (_FPU_SETCW): Likewise.
3301
3302 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3303
3304         [BZ #14117]
3305         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3306         * sysdeps/x86/fpu/bits/mathinline.h: This.
3307         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3308
3309         [BZ #14050]
3310         [BZ #14117]
3311         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3312         functions if __x86_64__ is defined.
3313
3314 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3315
3316         * string/endian.h: Add !__ASSEMBLER__ condition for including
3317         conversion interfaces.
3318
3319 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3320
3321         [BZ #14241]
3322         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3323         of ABS(x) in calculating zero to negative powers other than odd
3324         integers.
3325         * math/libm-test.inc (pow_test): Add more tests.
3326
3327 2012-06-15  Andreas Jaeger  <aj@suse.de>
3328
3329         * manual/contrib.texi (Contributors): Update entry of Liubov
3330         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3331         Machado Filho.
3332
3333 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3334
3335         * string/string.h: Add __wur to GNU version of strerror_r.
3336
3337 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3338
3339         [BZ #14229]
3340         * string/Makefile (tests): Add tst-strtok_r.
3341         * string/tst-strtok_r.c: New file.
3342         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3343         RAX_LP/RDX_LP on SAVE_PTR.
3344
3345 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3346
3347         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3348
3349 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3350
3351         * libm_test.inc (csqrt_test): Allow more spurious underflow
3352         exceptions.
3353         (j0_test): Likewise.
3354         (j1_test): Likewise.
3355         (y0_test): Likewise.
3356         (y1_test): Likewise.
3357
3358 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3359
3360         * po/Makefile (libc.pot): Use UTF-8 charset.
3361
3362 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3363
3364         [BZ #14210]
3365         Suppress sign-conversion warning from FD_SET.
3366         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3367         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3368         not unsigned long int.
3369         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3370
3371 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3372
3373         [BZ #14050]
3374         [BZ #14117]
3375         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3376         __extern_always_inline instead of __extern_inline.
3377         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3378         (__signbit): Likewise.
3379         (__signbitl): Support C++ namespace.
3380         (lrintf): New inline function.
3381         (lrint): Likewise.
3382         (llrintf): Likewise.
3383         (llrint): Likewise.
3384         (fmaxf): Likewise.
3385         (fmax): Likewise.
3386         (fminf): Likewise.
3387         (fmin): Likewise.
3388         (rint): Likewise.
3389         (rintf): Likewise.
3390         (ceil): Likewise.
3391         (ceilf): Likewise.
3392         (floor): Likewise.
3393         (floorf): Likewise.
3394         (nearbyint): Likewise.
3395         (nearbyintf): Likewise.
3396
3397 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3398
3399         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3400         non-default versions.
3401
3402 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3403
3404         [BZ #14218]
3405         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3406
3407 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3408
3409         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3410         (FE_UPWARD, FE_DOWNWARD): Don't define.
3411         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3412         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3413
3414         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3415         reading it.
3416         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3417         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3418
3419 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3420
3421         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3422         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3423         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3424         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3425
3426 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3427
3428         [BZ #14117]
3429         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3430         * sysdeps/i386/fpu/Implies: New file.
3431         * sysdeps/x86_64/fpu/Implies: Likewise.
3432         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3433         * sysdeps/x86/fpu/bits/fenv.h: This.
3434
3435         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3436         __SSE_MATH__.
3437
3438 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3439
3440         [BZ #14134]
3441         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3442         character 0xffff that matches the last element of the
3443         conversion table.
3444
3445 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3446
3447         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3448         fmodl commit.
3449
3450 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3451
3452         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3453         values higher than 25.6283.
3454
3455 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3456
3457         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3458         subnormal exponent extraction and add some __builtin_expect.
3459         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3460         Fix for subnormal mantissa calculation.
3461
3462 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3463
3464         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3465         cpu2 is -1 and errno is not ENOSYS.
3466
3467 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3468
3469         [BZ #14117]
3470         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3471         * sysdeps/x86/bits/string.h: This.
3472         * sysdeps/x86_64/bits/string.h: Removed.
3473
3474         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3475         if not compiling for x86-64, but compiling for >= i486.
3476
3477         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3478         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3479
3480         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3481         New macro from Linux kernel 3.4.0.
3482         (FP_XSTATE_MAGIC2): Likewise.
3483         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3484         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3485         (struct _fpx_sw_bytes): New struct.
3486         (struct _xsave_hdr): Likewise.
3487         (struct _ymmh_state): Likewise.
3488         (struct _xstate): Likewise.
3489
3490         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3491         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3492         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3493         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3494         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3495         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3496
3497         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3498         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3499         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3500         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3501         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3502         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3503
3504 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3505
3506         [BZ #13743]
3507         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3508         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3509         (sysdep_headers): Include sys/platform/ppc.h.
3510         * sysdeps/powerpc/test-gettimebase.c: Test for
3511         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3512         * manual/Makefile (appendices): Include platform.texi.
3513         * manual/contrib.texi (Contributors): Update @node pointers.
3514         * manual/maint.texi (Maintenance): Likewise.
3515         (Platform): New node.
3516         * manual/platform.texi: New file.  Document the new features.
3517
3518 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3519             Jakub Jelinek  <jakub@redhat.com>
3520
3521         [BZ #14188]
3522         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3523         where __builtin_expect is unavailable.
3524
3525 2012-06-03  David S. Miller  <davem@davemloft.net>
3526
3527         * stdlib/longlong.h: Updated from GCC.
3528
3529 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3530
3531         [BZ #14042]
3532         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3533         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3534         __mcount_internal.
3535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3536         (GLIBC_2.16): Likewise.
3537
3538 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3539
3540         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3541
3542 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3543
3544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3545         (default-abi): New variable.
3546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3547         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3548         variable.
3549         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3550         Likewise.
3551         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3552         Likewise.
3553         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3554         Likewise.
3555
3556         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3557         definition.  Document in comment.
3558
3559 2012-06-01  David S. Miller  <davem@davemloft.net>
3560
3561         * stdlib/longlong.h: Updated from GCC.
3562
3563 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3564
3565         [BZ #14117]
3566         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3567         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3568         sys/debugreg.h sys/io.h here.
3569         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3570         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3571         sys/io.h.
3572         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3573         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3574         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3575         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3576         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3577         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3578
3579         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3580         Define only if __x86_64__ is defined.
3581
3582 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3583
3584         [BZ #14048]
3585         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3586         Use int64_t for variable i.
3587         * math/libm-test.inc (fmod_test): Add more tests.
3588
3589         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3590         z computation is not scheduled after fetestexcept.
3591         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3592         Use math_force_eval instead of asm to ensure calculation scheduled
3593         before exception test.
3594         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3595         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3596
3597 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3598
3599         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3600         computation is not scheduled after fetestexcept.
3601
3602 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3603
3604         [BZ #14117]
3605         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3606         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3607
3608 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3609
3610         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3611         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3612
3613 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3614
3615         [BZ #14117]
3616         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3617         <bits/wordsize.h>.
3618         (__WCHAR_MIN): Support __WORDSIZE == 64.
3619         (__WCHAR_MAX): Likewise.
3620
3621         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3622         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3623
3624         [BZ #14183]
3625         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3626         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3627
3628         [BZ #14117]
3629         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3630         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3631
3632         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3633         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3634
3635         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3636         Defined to 1 if __x86_64__ isn't defined.
3637         (_STAT_VER_LINUX_OLD): New.
3638         (st_atime): Remove duplicate.
3639         (st_mtime): Likewise.
3640         (st_ctime): Likewise.
3641
3642 2012-05-31  David S. Miller  <davem@davemloft.net>
3643
3644         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3645         entries.
3646
3647 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3648
3649         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3650         gen-libm-test.pl.
3651
3652         [BZ #14132]
3653         * elf/dl-reloc.c: Include <_itoa.h>.
3654         (_dl_reloc_bad_type): Remove use of INTUSE.
3655         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3656         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3657         * stdio-common/psiginfo.c (psiginfo): Likewise.
3658         * stdio-common/psignal.c (psignal): Likewise.
3659         * string/strsignal.c (strsignal): Likewise.
3660         * include/signal.h (_sys_siglist): Declare hidden proto.
3661         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3662         INTVARDEF with libc_hidden_data_def.
3663         * stdio-common/itoa-udigits.c: Likewise.
3664         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3665         (_itoa_lower_digits_internal): Remove declaration.
3666         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3667         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3668         (_sys_sigabbrev_internal): Remove aliases.
3669         (_sys_siglist): Define hidden alias.
3670
3671 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3672
3673         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3674         bits/sysctl.h.
3675
3676 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3677
3678         [BZ #14117]
3679         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3680         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3681
3682         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3683         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3684         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3685         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3686         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3687         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3688
3689         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3690         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3691         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3692
3693         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3694         with __addr.
3695         (insw): Likewise.
3696         (insl): Likewise.
3697         (outsb): Likewise.
3698         (outsw): Likewise.
3699         (outsl): Likewise.
3700
3701         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3702         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3703         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3704
3705         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3706         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3707         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3708         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3709         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3710         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3711
3712         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3713         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3714
3715         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3716         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3717
3718         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3719         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3720         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3721
3722         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3723         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3724         to ...
3725         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3726
3727         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3728         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3729         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3730
3731         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3732         for x86-64.
3733         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3734
3735 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3736
3737         * math/math.h (M_El): Use two more decimal places.
3738         (M_LOG2El): Likewise.
3739         (M_LOG10El): Likewise.
3740         (M_LN2l): Likewise.
3741         (M_LN10l): Likewise.
3742         (M_PIl): Likewise.
3743         (M_PI_2l): Likewise.
3744         (M_PI_4l): Likewise.
3745         (M_1_PIl): Likewise.
3746         (M_2_PIl): Likewise.
3747         (M_2_SQRTPIl): Likewise.
3748         (M_SQRT2l): Likewise.
3749         (M_SQRT1_2l): Likewise.
3750
3751 2012-05-31  David S. Miller  <davem@davemloft.net>
3752
3753         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3754         values between float registers.
3755         * sysdeps/sparc/sparc64/memset.S: Likewise.
3756         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3757
3758 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3759
3760         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3761         -D_FORTIFY_SOURCE=1.
3762         (CPPFLAGS-tst-longjmp_chk.c): Define.
3763         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3764         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3765         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3766         CFLAGS-tst-wchar-h.c.
3767
3768 2012-05-31  Marek Polacek  <polacek@redhat.com>
3769
3770         [BZ #14132]
3771         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3772         __endmntent_internal): Remove declaration.
3773         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3774         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3775         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3776
3777 2012-05-30  David S. Miller  <davem@davemloft.net>
3778
3779         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3780         (___Q_simulate_exceptions): Use real FP ops rather than writing
3781         into the %fsr.
3782         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3783         Likewise.
3784
3785 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3786
3787         [BZ #14117]
3788         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3789         * sysdeps/x86/bits/xtitypes.h: This.
3790
3791         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3792         * sysdeps/x86/bits/wordsize.h: This.
3793
3794         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3795         * sysdeps/x86/bits/huge_vall.h: This.
3796
3797         * sysdeps/i386/bits/select.h: Removed.
3798         * sysdeps/x86_64/bits/select.h: Renamed to ...
3799         * sysdeps/x86/bits/select.h: This.
3800
3801         * sysdeps/i386/bits/setjmp.h: Removed.
3802         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3803         * sysdeps/x86/bits/setjmp.h: This.
3804
3805         * sysdeps/i386/bits/mathdef.h: Removed.
3806         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3807         * sysdeps/x86/bits/mathdef.h: This.
3808
3809 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3810
3811         [BZ #14132]
3812         * include/sys/socket.h (__connect_internal)
3813         (__libc_sa_len_internal): Remove declaration.
3814         (__connect, __libc_sa_len): Declare hidden_proto.
3815         (SA_LEN): Remove use of INTUSE.
3816         * socket/connect.c: Add libc_hidden_def.
3817         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3818         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3819         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3820         alias.
3821         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3822         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3823         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3824         of adding _internal alias.
3825
3826 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3827
3828         [BZ #14117]
3829         * sysdeps/i386/bits/link.h: Removed.
3830         * sysdeps/i386/bits/linkmap.h: Likewise.
3831         * sysdeps/x86_64/bits/link.h: Renamed to ...
3832         * sysdeps/x86/bits/link.h: This.
3833         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3834         * sysdeps/x86/bits/linkmap.h: This.
3835
3836         * sysdeps/i386/bits/endian.h: Removed.
3837         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3838         * sysdeps/x86/bits/endian.h: This.
3839
3840         * sysdeps/i386/bits/byteswap.h: Removed.
3841         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3842         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3843         * sysdeps/x86/bits/byteswap.h: This.
3844         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3845         * sysdeps/x86/bits/byteswap-16.h: This.
3846         * sysdeps/i386/Implies: Add x86.
3847         * sysdeps/x86_64/Implies: Likewise.
3848
3849 2012-05-30  David S. Miller  <davem@davemloft.net>
3850
3851         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3852         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3853         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3854         (FP_TRAPPING_EXCEPTIONS): Define.
3855         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3856         (FP_TRAPPING_EXCEPTIONS): Define.
3857         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3858         subnormals only when inexact has been signalled or underflow
3859         exceptions are enabled.
3860         (_FP_PACK_CANONICAL): Likewise.
3861
3862 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3863
3864         [BZ #14183]
3865         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3866         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3867
3868 2012-05-30  Richard Henderson  <rth@twiddle.net>
3869
3870         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3871         with #ifndef NOT_IN_libc.
3872
3873         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3874         marked to avoid plt entry.
3875
3876 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3877
3878         [BZ #14112]
3879         * Makeconfig (default-abi): New macro.
3880         (abi-includes): Likewise.
3881         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3882         $(abi-$(default-abi)-lib-soname) for soname if defined.
3883         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3884         abi-variants.
3885         * Makefile (installed-stubs): Likewise.
3886         * include/stubs-biarch.h: Removed.
3887         * scripts/lib-names.awk: Only handle one library at a time.
3888         * scripts/soversions.awk: Remove WORDSIZE support.
3889         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3890         entries.
3891         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3892         Removed.
3893         (syscall-list-default-condition): Likewise.
3894         (syscall-list-default-condition): Likewise.
3895         (syscall-list-includes): Likewise.
3896         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3897         syscall-list-* with abi-*.  Handle undefined abi-variants.
3898         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3899         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3900         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3901         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3902         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3903         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3904         Removed.
3905         (syscall-list-32-options): Likewise.
3906         (syscall-list-32-condition): Likewise.
3907         (syscall-list-64-options): Likewise.
3908         (syscall-list-64-condition): Likewise.
3909         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3910         macro.
3911         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3912         Renamed to ...
3913         (abi-*): This.
3914         (abi-64-ld-soname): New macro.
3915         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3916         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3917         Renamed to ...
3918         (abi-*): This.
3919         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3920         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3921
3922 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3923
3924         * sysdeps/unix/sysv/linux/kernel-features.h
3925         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3926         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3927         include <kernel-features.h>.
3928         [!__NR_ftruncate64]: Remove conditional code.
3929         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3930         [__NR_ftruncate64]: Make code unconditional.
3931         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3932         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3933         include <kernel-features.h>.
3934         [!__NR_ftruncate64]: Remove conditional code.
3935         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3936         [__NR_ftruncate64]: Make code unconditional.
3937         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3939         include <kernel-features.h>.
3940         [!__NR_ftruncate64]: Remove conditional code.
3941         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3942         [__NR_ftruncate64]: Make code unconditional.
3943         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3945         include <kernel-features.h>.
3946         [!__NR_ftruncate64]: Remove conditional code.
3947         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3948         [__NR_ftruncate64]: Make code unconditional.
3949         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3950
3951         * configure.in (libc_cv_fpie): Weaken to a compile test using
3952         LIBC_TRY_CC_OPTION.
3953         * configure: Regenerated.
3954
3955 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3956
3957         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3958         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3959         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3960         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3961         Refreshed.
3962         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3963         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3964         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3965         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3966         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3967         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3968         Refreshed.
3969
3970 2012-05-27  David S. Miller  <davem@davemloft.net>
3971
3972         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3973         (___Q_zero): New.
3974         (__Q_simulate_exceptions): Return void.  Change to simulate
3975         exceptions by writing into the %fsr.
3976         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3977         (__Qp_handle_exceptions): Likewise.
3978         (numbers): Delete.
3979         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3980         __Qp_handle_exceptions.
3981         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3982         __Qp_handle_exceptions.
3983         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3984         as unused and give dummy FP_RND_NEAREST initializer.
3985         (FP_INHIBIT_RESULTS): Define.
3986         (___Q_simulate_exceptions): Update declaration.
3987         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3988         formatting.
3989         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3990         as unused and give dummy FP_RND_NEAREST initializer.
3991         (__Qp_handle_exceptions): Update declaration.
3992         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3993         formatting.
3994
3995 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3996
3997         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3998         the temporary FPU control word.
3999         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4000         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4001         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4002         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4003         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4004         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4005         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4006         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4007         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4008         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4009         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4010
4011 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4012
4013         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4014         fields.
4015
4016 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4017
4018         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4019         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4020         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4021         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4022         Likewise.
4023         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4024         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4025         Likewise.
4026
4027 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4028
4029         * po/h.po: Update from translation team.
4030
4031 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4032
4033         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4034
4035         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4036         handling of denormals.
4037         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4038         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4039         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4040         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4041         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4042         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4043         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4044         Likewise.
4045
4046 2012-05-26  Marek Polacek  <polacek@redhat.com>
4047
4048         [BZ #14152]
4049         * math/libm-test.inc (fma_test): Don't always expect underflow
4050         exception.
4051
4052 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4053
4054         [BZ #12416]
4055         * elf/tst-execstack.c: Include stackinfo.h.
4056         (do_test): Adjust test case to ensure that pthread_getattr_np
4057         behaviour remains the same after marking stack executable.
4058
4059 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4060
4061         * sysdeps/unix/sysv/linux/kernel-features.h
4062         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4063         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4064         kernel-features.h.
4065         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4066         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4067         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4068         kernel-features.h.
4069         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4070         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4071
4072 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4073
4074         * configure.in: Define the default includes to being none.
4075         * configure: Regenerated.
4076
4077 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4078
4079         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4080         * sysdeps/x86_64/setjmp.S: Likewise.
4081         * sysdeps/i386/bsd-setjmp.S: Likewise.
4082         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4083         * sysdeps/i386/setjmp.S: Likewise.
4084         * sysdeps/i386/__longjmp.S: Likewise.
4085         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4086         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4087
4088         * include/stap-probe.h: New file.
4089         * configure.in: Handle --enable-systemtap.
4090         * configure: Regenerated.
4091         * config.h.in (USE_STAP_PROBE): New #undef.
4092         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4093         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4094         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4095
4096 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4097
4098         [BZ #13717]
4099         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4100         to 2.4.0 where earlier.
4101         * sysdeps/unix/sysv/linux/configure: Regenerated.
4102         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4103         <kernel-features.h>.
4104         [__ASSUME_32BITUIDS]: Make code unconditional.
4105         [!__ASSUME_32BITUIDS]: Remove conditional code.
4106         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4107         <kernel-features.h>.
4108         [__ASSUME_32BITUIDS]: Make code unconditional.
4109         [!__ASSUME_32BITUIDS]: Remove conditional code.
4110         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4111         [__ASSUME_32BITUIDS]: Make code unconditional.
4112         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4113         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4114         <kernel-features.h>.
4115         [__ASSUME_32BITUIDS]: Make code unconditional.
4116         [!__ASSUME_32BITUIDS]: Remove conditional code.
4117         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4118         <kernel-features.h>.
4119         [__ASSUME_32BITUIDS]: Make code unconditional.
4120         [!__ASSUME_32BITUIDS]: Remove conditional code.
4121         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4122         <kernel-features.h>.
4123         [__ASSUME_32BITUIDS]: Make code unconditional.
4124         [!__ASSUME_32BITUIDS]: Remove conditional code.
4125         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4126         <kernel-features.h>.
4127         [__ASSUME_32BITUIDS]: Make code unconditional.
4128         [!__ASSUME_32BITUIDS]: Remove conditional code.
4129         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4130         <kernel-features.h>.
4131         [__ASSUME_32BITUIDS]: Make code unconditional.
4132         [!__ASSUME_32BITUIDS]: Remove conditional code.
4133         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4134         <kernel-features.h>.
4135         [__ASSUME_32BITUIDS]: Make code unconditional.
4136         [!__ASSUME_32BITUIDS]: Remove conditional code.
4137         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4138         <kernel-features.h>.
4139         [__ASSUME_32BITUIDS]: Make code unconditional.
4140         [!__ASSUME_32BITUIDS]: Remove conditional code.
4141         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4142         <kernel-features.h>.
4143         [__ASSUME_32BITUIDS]: Make code unconditional.
4144         [!__ASSUME_32BITUIDS]: Remove conditional code.
4145         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4146         <kernel-features.h>.
4147         [__ASSUME_32BITUIDS]: Make code unconditional.
4148         [!__ASSUME_32BITUIDS]: Remove conditional code.
4149         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4150         <kernel-features.h>.
4151         [__ASSUME_32BITUIDS]: Make code unconditional.
4152         [!__ASSUME_32BITUIDS]: Remove conditional code.
4153         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4154         <kernel-features.h>.
4155         [__NR_setresgid] (__setresgid): Do not declare.
4156         [__ASSUME_32BITUIDS]: Make code unconditional.
4157         [!__ASSUME_32BITUIDS]: Remove conditional code.
4158         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4159         <kernel-features.h>.
4160         [__NR_setresuid] (__setresuid): Do not declare.
4161         [__ASSUME_32BITUIDS]: Make code unconditional.
4162         [!__ASSUME_32BITUIDS]: Remove conditional code.
4163         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4164         <kernel-features.h>.
4165         [__ASSUME_32BITUIDS]: Make code unconditional.
4166         [!__ASSUME_32BITUIDS]: Remove conditional code.
4167         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4168         <kernel-features.h>.
4169         [__ASSUME_32BITUIDS]: Make code unconditional.
4170         [!__ASSUME_32BITUIDS]: Remove conditional code.
4171         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4172         <kernel-features.h>.
4173         [__ASSUME_32BITUIDS]: Make code unconditional.
4174         [!__ASSUME_32BITUIDS]: Remove conditional code.
4175         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4176         <kernel-features.h>.
4177         [__ASSUME_32BITUIDS]: Make code unconditional.
4178         [!__ASSUME_32BITUIDS]: Remove conditional code.
4179         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4180         <kernel-features.h>.
4181         [__ASSUME_32BITUIDS]: Make code unconditional.
4182         [!__ASSUME_32BITUIDS]: Remove conditional code.
4183         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4184         <kernel-features.h>.
4185         [__ASSUME_32BITUIDS]: Make code unconditional.
4186         [!__ASSUME_32BITUIDS]: Remove conditional code.
4187         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4188         <kernel-features.h>.
4189         [__ASSUME_32BITUIDS]: Make code unconditional.
4190         [!__ASSUME_32BITUIDS]: Remove conditional code.
4191         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4192         <kernel-features.h>.
4193         [__ASSUME_32BITUIDS]: Make code unconditional.
4194         [!__ASSUME_32BITUIDS]: Remove conditional code.
4195         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4196         <kernel-features.h>.
4197         [__ASSUME_32BITUIDS]: Make code unconditional.
4198         [!__ASSUME_32BITUIDS]: Remove conditional code.
4199         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4200         <kernel-features.h>.
4201         [__ASSUME_32BITUIDS]: Make code unconditional.
4202         [!__ASSUME_32BITUIDS]: Remove conditional code.
4203         * sysdeps/unix/sysv/linux/kernel-features.h
4204         (__ASSUME_SETRESUID_SYSCALL): Remove.
4205         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4206         (__ASSUME_32BITUIDS): Likewise.
4207         (__ASSUME_LDT_WORKS): Likewise.
4208         (__ASSUME_O_DIRECTORY): Likewise.
4209         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4210         architecture but not kernel version.
4211         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4212         (__ASSUME_MMAP2_SYSCALL): Likewise.
4213         (__ASSUME_STAT64_SYSCALL): Likewise.
4214         (__ASSUME_IPC64): Likewise.
4215         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4216         <kernel-features.h>.
4217         [__ASSUME_32BITUIDS]: Make code unconditional.
4218         [!__ASSUME_32BITUIDS]: Remove conditional code.
4219         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4220         <kernel-features.h>.
4221         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4222         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4223         132096]: Remove conditional code.
4224         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4225         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4226         <kernel-features.h>.
4227         [__ASSUME_32BITUIDS]: Make code unconditional.
4228         [!__ASSUME_32BITUIDS]: Remove conditional code.
4229         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4230         <kernel-features.h>.
4231         [__ASSUME_32BITUIDS]: Make code unconditional.
4232         [!__ASSUME_32BITUIDS]: Remove conditional code.
4233         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4234         <kernel-features.h>.
4235         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4236         unconditional.
4237         (__setresgid): Do not declare.
4238         [__ASSUME_32BITUIDS]: Make code unconditional.
4239         [!__ASSUME_32BITUIDS]: Remove conditional code.
4240         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4241         <kernel-features.h>.
4242         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4243         unconditional.
4244         (__setresuid): Do not declare.
4245         [__ASSUME_32BITUIDS]: Make code unconditional.
4246         [!__ASSUME_32BITUIDS]: Remove conditional code.
4247         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4248         <kernel-features.h>.
4249         [__ASSUME_32BITUIDS]: Make code unconditional.
4250         [!__ASSUME_32BITUIDS]: Remove conditional code.
4251         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4252         <kernel-features.h>.
4253         [__ASSUME_32BITUIDS]: Make code unconditional.
4254         [!__ASSUME_32BITUIDS]: Remove conditional code.
4255
4256 2012-05-25  Richard Henderson  <rth@twiddle.net>
4257
4258         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4259         dl_hwcap to ifunc resolver.
4260         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4261         elf_ifunc_invoke.
4262         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4263         dl_hwcap to ifunc resolver.
4264         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4265
4266 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4267
4268         [BZ #14153]
4269         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4270         for |x| <= 2**-26, not 2**-57.
4271         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4272         exception.
4273
4274 2012-05-24  Jeff Law  <law@redhat.com>
4275
4276         * stdio-common/Makefile (tests): Add bug25.
4277         * stdio-common/bug25.c: New test.
4278
4279 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4280
4281         [BZ #13576]
4282         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4283         multiple of MALLOC_ALIGNMENT in size.
4284         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4285
4286 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4287
4288         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4289         Require >= 256.
4290         (FILENAME_MAX): Use macro-int-constant.
4291         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4292         (_IOFBF): Use macro-int-constant.
4293         (_IOLBF): Likewise.
4294         (_IONBF): Likewise.
4295         (SEEK_CUR): Likewise.
4296         (SEEK_END): Likewise.
4297         (SEEK_SET): Likewise.
4298         (TMP_MAX): Likewise.
4299         (EOF): Use macro-int-constant.  Require < 0.
4300         (NULL): Use macro-constant.  Require == 0.
4301         (stdin): Require type to be FILE *.
4302         (stdout): Likewise.
4303         (stderr): Likewise.
4304         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4305         macro-int-constant.
4306         (EXIT_SUCCESS): Likewise.
4307         (NULL): Use macro-constant.  Require == 0.
4308         (RAND_MAX): Use macro-int-constant.
4309         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4310         [C99-based standards] (strtof): Require function.
4311         [C99-based standards] (strtold): Likewise.
4312         [C99-based standards] (strtoll): Likewise.
4313         [C99-based standards] (strtoull): Likewise.
4314         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4315         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4316         [ISO || ISO99 || ISO11] (math.h): Likewise.
4317         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4318         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4319         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4320
4321 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4322
4323         [BZ #14132]
4324         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4325         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4326         * intl/dgettext.c (DCGETTEXT): Likewise.
4327         * intl/gettext.c (DCGETTEXT): Likewise.
4328         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4329         * posix/regex_internal.h (gettext): Likewise.
4330         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4331         Remove declaration.
4332         * include/argz.h (__argz_count_internal)
4333         (__argz_stringify_internal): Remove declaration.
4334         (__argz_count, __argz_stringify): Declare hidden proto.
4335         * intl/dcgettext.c: Remove use of INTDEF.
4336         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4337         * string/argz-stringify.c: Likewise.
4338         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4339         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4340         Declare hidden proto.
4341         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4342         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4343         Declare hidden proto.
4344         * include/stdio.h (__asprintf_internal): Don't declare.
4345         (__asprintf): Don't define as macro.  Declare hidden proto.
4346         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4347         (__fsetlocking): Declare hidden proto.
4348         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4349         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4350         hidden proto.
4351         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4352         (_IO_setlinebuf): Remove use of INTUSE.
4353         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4354         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4355         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4356         Remove declaration.
4357         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4358         (_IO_do_flush): Remove use of INTUSE.
4359         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4360         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4361         (_IO_adjust_column, _IO_least_wmarker)
4362         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4363         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4364         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4365         (_IO_default_doallocate, _IO_wdefault_doallocate)
4366         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4367         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4368         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4369         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4370         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4371         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4372         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4373         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4374         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4375         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4376         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4377         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4378         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4379         proto.
4380         (_IO_flush_all_internal, _IO_adjust_column_internal)
4381         (_IO_default_uflow_internal, _IO_default_finish_internal)
4382         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4383         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4384         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4385         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4386         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4387         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4388         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4389         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4390         (_IO_file_close_internal, _IO_file_close_it_internal)
4391         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4392         (_IO_file_init_internal, _IO_file_attach_internal)
4393         (_IO_file_fopen_internal, _IO_file_read_internal)
4394         (_IO_file_sync_internal, _IO_file_seek_internal)
4395         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4396         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4397         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4398         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4399         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4400         (_IO_list_all_internal, _IO_link_in_internal)
4401         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4402         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4403         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4404         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4405         (_IO_do_write_internal, _IO_padn_internal)
4406         (_IO_getline_info_internal, _IO_getline_internal)
4407         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4408         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4409         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4410         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4411         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4412         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4413         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4414         with libc_hidden_ver, remove use of INTUSE.
4415         * libio/genops.c: Likewise.
4416         * libio/freopen.c: Likewise.
4417         * libio/freopen64.c: Likewise.
4418         * libio/iofclose.c: Likewise.
4419         * libio/iofdopen.c: Likewise.
4420         * libio/iofflush.c: Likewise.
4421         * libio/iofflush_u.c: Likewise.
4422         * libio/iofgets.c: Likewise.
4423         * libio/iofgets_u.c: Likewise.
4424         * libio/iofopen.c: Likewise.
4425         * libio/iofopncook.c: Likewise.
4426         * libio/iofread.c: Likewise.
4427         * libio/iofread_u.c: Likewise.
4428         * libio/ioftell.c: Likewise.
4429         * libio/iofwrite.c: Likewise.
4430         * libio/iogetline.c: Likewise.
4431         * libio/iogets.c: Likewise.
4432         * libio/iogetwline.c: Likewise.
4433         * libio/iopadn.c: Likewise.
4434         * libio/iopopen.c: Likewise.
4435         * libio/ioseekoff.c: Likewise.
4436         * libio/ioseekpos.c: Likewise.
4437         * libio/iosetbuffer.c: Likewise.
4438         * libio/iosetvbuf.c: Likewise.
4439         * libio/ioungetc.c: Likewise.
4440         * libio/ioungetwc.c: Likewise.
4441         * libio/iovdprintf.c: Likewise.
4442         * libio/iovsprintf.c: Likewise.
4443         * libio/iovsscanf.c: Likewise.
4444         * libio/memstream.c: Likewise.
4445         * libio/obprintf.c: Likewise.
4446         * libio/oldfileops.c: Likewise.
4447         * libio/oldiofclose.c: Likewise.
4448         * libio/oldiofdopen.c: Likewise.
4449         * libio/oldiofopen.c: Likewise.
4450         * libio/oldiopopen.c: Likewise.
4451         * libio/oldstdfiles.c: Likewise.
4452         * libio/putc.c: Likewise.
4453         * libio/setbuf.c: Likewise.
4454         * libio/setlinebuf.c: Likewise.
4455         * libio/stdfiles.c: Likewise.
4456         * libio/strops.c: Likewise.
4457         * libio/vasprintf.c: Likewise.
4458         * libio/vscanf.c: Likewise.
4459         * libio/vsnprintf.c: Likewise.
4460         * libio/vswprintf.c: Likewise.
4461         * libio/wfiledoalloc.c: Likewise.
4462         * libio/wfileops.c: Likewise.
4463         * libio/wgenops.c: Likewise.
4464         * libio/wmemstream.c: Likewise.
4465         * libio/wstrops.c: Likewise.
4466         * libio/__fpurge.c: Likewise.
4467         * libio/__fsetlocking.c: Likewise.
4468         * assert/assert.c: Likewise.
4469         * debug/fgets_chk.c: Likewise.
4470         * debug/fgets_u_chk.c: Likewise.
4471         * debug/fread_chk.c: Likewise.
4472         * debug/fread_u_chk.c: Likewise.
4473         * debug/gets_chk.c: Likewise.
4474         * debug/obprintf_chk.c: Likewise.
4475         * debug/vasprintf_chk.c: Likewise.
4476         * debug/vdprintf_chk.c: Likewise.
4477         * debug/vsnprintf_chk.c: Likewise.
4478         * debug/vsprintf_chk.c: Likewise.
4479         * malloc/mtrace.c: Likewise.
4480         * misc/error.c: Likewise.
4481         * misc/syslog.c: Likewise.
4482         * stdio-common/asprintf.c: Likewise.
4483         * stdio-common/fxprintf.c: Likewise.
4484         * stdio-common/getw.c: Likewise.
4485         * stdio-common/isoc99_fscanf.c: Likewise.
4486         * stdio-common/isoc99_scanf.c: Likewise.
4487         * stdio-common/isoc99_vfscanf.c: Likewise.
4488         * stdio-common/isoc99_vscanf.c: Likewise.
4489         * stdio-common/isoc99_vsscanf.c: Likewise.
4490         * stdio-common/printf-prs.c: Likewise.
4491         * stdio-common/printf_fp.c: Likewise.
4492         * stdio-common/printf_fphex.c: Likewise.
4493         * stdio-common/printf_size.c: Likewise.
4494         * stdio-common/putw.c: Likewise.
4495         * stdio-common/scanf.c: Likewise.
4496         * stdio-common/sprintf.c: Likewise.
4497         * stdio-common/tmpfile.c: Likewise.
4498         * stdio-common/vfprintf.c: Likewise.
4499         * stdio-common/vfscanf.c: Likewise.
4500         * stdlib/strfmon_l.c: Likewise.
4501         * sunrpc/openchild.c: Likewise.
4502         * sunrpc/xdr_stdio.c: Likewise.
4503         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4504         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4505
4506 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4507
4508         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4509
4510         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4511         in the third column, to generate for the shared library an IFUNC
4512         that uses _dl_vdso_vsym.
4513         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4514         * Makeconfig (object-suffixes-noshared): New variable.
4515
4516         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4517         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4518         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4519         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4520
4521         [BZ #14132]
4522         * include/sys/time.h (__gettimeofday): Remove macro.
4523         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4524         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4525         Remove INTDEF.
4526         (__gettimeofday): Add libc_hidden_def.
4527         (gettimeofday): Add libc_hidden_weak.
4528         * sysdeps/mach/gettimeofday.c: Likewise.
4529         * sysdeps/posix/gettimeofday.c: Likewise.
4530         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4531         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4532         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4533         (__gettimeofday_internal): Remove strong_alias.
4534         (__gettimeofday): Add libc_hidden_def.
4535         (gettimeofday): Add libc_hidden_weak.
4536         * sysdeps/unix/syscalls.list (gettimeofday):
4537         Remove __gettimeofday_internal alias.
4538
4539 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4540             H.J. Lu  <hongjiu.lu@intel.com>
4541
4542         [BZ #12495]
4543         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4544         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4545         (largebin_index_32_big): New.
4546         (largebin_index): Use it for 16-byte alignment.
4547         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4548         correction with front_misalign.
4549
4550 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4551
4552         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4553         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4554         Likewise.
4555         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4556         Likewise.
4557         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4558         Likewise.
4559         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4560         Likewise.
4561         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4562         Likewise.
4563         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4564         Likewise.
4565         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4566         Likewise.
4567         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4568         Likewise.
4569         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4570         Likewise.
4571         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4572         Likewise.
4573         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4574         Likewise.
4575         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4576         Likewise.
4577
4578         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4579         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4580
4581 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4582
4583         [BZ #10846]
4584         [BZ #14036]
4585         * math/libm-test.inc (exp_test): Add test from bug 14036.
4586         (pow_test): Add test from bug 10846.
4587
4588         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4589         and other flags.
4590         (special_function): Do not include flags in test name.
4591         (parse_args): Likewise.
4592         * sysdeps/i386/fpu/libm-test-ulps: Update.
4593         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4594         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4595         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4596         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4597
4598         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4599         exceptions.
4600         * math/libm-test.inc ("Philosophy"): Update comment about
4601         exception testing.
4602         (UNDERFLOW_EXCEPTION): New macro.
4603         (UNDERFLOW_EXCEPTION_OK): Likewise.
4604         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4605         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4606         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4607         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4608         (INVALID_EXCEPTION_OK): Update value.
4609         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4610         (OVERFLOW_EXCEPTION_OK): Likewise.
4611         (IGNORE_ZERO_INF_SIGN): Likewise.
4612         (test_exceptions): Handle underflow exceptions.
4613         (acos_test): Update for underflow exception expectations.
4614         (cexp_test): Likewise.
4615         (clog_test): Likewise.
4616         (clog10_test): Likewise.
4617         (csqrt_test): Likewise.
4618         (ctan_test): Likewise.
4619         (ctanh_test): Likewise.
4620         (exp_test): Likewise.
4621         (exp10_test): Likewise.
4622         (exp2_test): Likewise.
4623         (expm1_test): Likewise.
4624         (fma_test): Likewise.
4625         (j0_test): Likewise.
4626         (jn_test): Likewise.
4627         (nexttoward_test): Likewise.
4628         (pow_test): Likewise.
4629         (scalbn_test): Likewise.
4630         (scalbln_test): Likewise.
4631         (tan_test): Likewise.
4632         (y1_test): Likewise.
4633         * sysdeps/i386/fpu/libm-test-ulps: Update.
4634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4635
4636 2012-05-23  David S. Miller  <davem@davemloft.net>
4637
4638         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4639         (__libc_sigaction): Remove unused local variables.
4640
4641 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4642
4643         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4644
4645 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4646
4647         mktime: avoid signed integer overflow
4648         * time/mktime.c (__mktime_internal): Do not mishandle the case
4649         where diff == INT_MIN.
4650
4651         mktime: simplify computation of average
4652         * time/mktime.c (ranged_convert): Use new time_t_avg function
4653         instead of rolling our own (probably-slower) code.
4654
4655         mktime: do not assume signed right shift propagates sign bit
4656         * time/mktime.c (isdst_differ): New static function.
4657         (__mktime_internal): No need to normalize tm_isdst now.
4658         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4659         tm_isdst values.
4660
4661         mktime: merge another wrapv change from gnulib
4662         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4663         from some compilers.
4664
4665         mktime: remove incorrect attempt at unusual arithmetics
4666         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4667         The code didn't really work on such machines anyway.
4668         (TYPE_MINIMUM): Assume two's complement.
4669         (twos_complement_arithmetic): Verify that long_int and time_t
4670         are two's complement (or unsigned, in the latter case).
4671
4672         mktime: check signed shifts on long_int and time_t, too
4673         * time/mktime.c (SHR): Check that shifts work as desired
4674         on the types long_int and time_t too, as SHR is used on
4675         such types.
4676
4677         mktime: do not assume 'long' is wide enough
4678         * time/mktime.c (verify): Move decl up.
4679         (long_int): New type.
4680         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4681         to remove assumption in the code that 'long' is wide enough to
4682         store year values.  This assumption is not true on x32 and on
4683         some non-glibc platforms.
4684
4685         mktime: merge wrapv change from gnulib
4686         * time/mktime.c (WRAPV): New macro.
4687         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4688         (guess_time_tm, __mktime_internal): Do not assume that signed
4689         integer overflow wraps around; modern compilers generate code
4690         where this assumption is no longer valid.
4691
4692 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4693
4694         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4695         Replace "jmp L(pseudo_end)" with "ret".
4696         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4697         Likewise.
4698
4699 2012-05-23  Andreas Jaeger  <aj@suse.de>
4700
4701         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4702         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4703
4704 2012-05-23  Andreas Jaeger  <aj@suse.de>
4705             Maximilian Attems  <max@stro.at>
4706
4707         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4708         New macros.
4709
4710 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4711
4712         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4713         code so that pseudo_end is just ret and the stack pointer is
4714         correct also for static library in error case.
4715
4716 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4717
4718         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4719         move to syscalls.list.
4720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4724
4725         * manual/install.texi (Running make install): Do not mention Linux
4726         kernel version for which pt_chown is not needed.
4727         (Linux): Do not mention problems with nscd with 2.0 kernels.
4728         * INSTALL: Regenerated.
4729
4730 2012-05-23  Andreas Jaeger  <aj@suse.de>
4731
4732         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4733         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4734         macro.
4735         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4736         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4737         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4738         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4739         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4740         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4741         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4742         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4743         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4744         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4745         * sysdeps/unix/sysv/linux/bits/in.h
4746         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4747
4748 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4749
4750         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4751         (PREPARE_VERSION): Just use assert instead, it will be elided
4752         under [NDEBUG] anyway.
4753
4754 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4755
4756         * sysdeps/unix/sysv/linux/Makefile: Include
4757         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4758         (sysdep_routines): Remove sysctl.
4759         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4760         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4761         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4762         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4763         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4764
4765 2012-05-22  Andreas Jaeger  <aj@suse.de>
4766
4767         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4768         that pseudo_end is just ret and the stack pointer is correct also
4769         for static library in error case.
4770
4771 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4772
4773         [BZ #14122]
4774         * nss/nsswitch.c (defconfig_entries): New variable.
4775         (__nss_database_lookup): Don't leak defconfig entries.
4776         (nss_parse_service_list): Don't leak on error paths.
4777         (free_database_entries): New function.
4778         (free_defconfig): New function.
4779         (free_mem): Move common code to free_database_entries.
4780
4781 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4782
4783         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4784         Add arch_prctl.
4785         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4786
4787         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4788         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4789         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4790         New macro.
4791         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4792         (INTERNAL_SYSCALL_TYPES): Likewise.
4793         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4794         (LOAD_REGS_TYPES_[1-6]): Likewise.
4795         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4796         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4797
4798 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4799
4800         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4801         copysignl for GLIBC_2_0.
4802         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4803         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4804         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4805         logbl for GLIBC_2_0.
4806         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4807         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4808
4809 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4810
4811         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4812         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4813
4814         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4815         Use "neg %eax".
4816
4817         * time/mktime.c: Update copyright years.
4818
4819 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4820
4821         mktime: merge comment-quoting-style change from gnulib
4822         * time/mktime.c: Quote 'like this' in comments.
4823         The GNU coding standards suggest that we no longer quote `like this',
4824         as "`" and "'" are typically rendered asymmetrically nowadays.
4825         The typical gnulib style is to quote 'like this' when quoting
4826         code, and "like this" when quoting English.
4827
4828         * time/mktime.c (compile-command): Add "-I.".
4829
4830         mktime: merge mktime-internal.h change from gnulib
4831         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4832
4833         mktime: merge time_r change from gnulib
4834         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4835
4836         mktime: merge DEBUG change from gnulib
4837         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4838         case system <time.h> has a #define.
4839
4840         mktime: merge <sys/types.h> change from gnulib
4841         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4842         since <time.t> is now guaranteed to define time_t.
4843
4844         mktime: merge HAVE_CONFIG_H change from gnulib
4845         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4846
4847 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4848
4849         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4850         Use "neg %eax".
4851
4852         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4853         __rlim_t cast.
4854         (struct rusage): Use anonymous union to pad each field to
4855         __syscall_slong_t.
4856
4857 2012-05-21  David S. Miller  <davem@davemloft.net>
4858
4859         * Makefules (o-iterator): Remove .s cases.
4860         (compile-command.s): Delete.
4861         (COMPILE.s): Delete.
4862         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4863
4864 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4865
4866         * configure.in (libc_cv_predef_stack_protector): Only consider
4867         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4868         * configure: Regenerated.
4869
4870 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4871
4872         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4873         New macro.  Use R*LP on int and pointer.
4874         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4875         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4876         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4877         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4878
4879         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4880         [__WORDSIZE_TIME64_COMPAT32] instead of
4881         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4882         (struct utmp): Likewise.
4883         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4884         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4885         Renamed to ...
4886         (__WORDSIZE_TIME64_COMPAT32): This.
4887         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4888         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4889         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4890         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4891         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4892         (__WORDSIZE_TIME64_COMPAT32): New macro.
4893
4894 2012-05-21  Andreas Jaeger  <aj@suse.de>
4895
4896         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4897         only if [SHARED]. Add prototype for __wcschr_ia32.
4898
4899 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4900
4901         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4902         of %rbp unmolested in the jmp_buf while mangling the low bits.
4903         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4904         unmolested high bits of %rbp while demangling the low bits.
4905         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4906
4907 2012-05-21  Andreas Jaeger  <aj@suse.de>
4908
4909         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4910         * sunrpc/svc_simple.c: Use it for registerrpc.
4911         * sunrpc/xcrypt.c: Use it for passwd2des.
4912
4913         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4914
4915 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4916
4917         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4918         Don't define if [__SYSCALL_WORDSIZE != 32].
4919         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4920         New macro.
4921
4922 2012-05-21  Bruno Haible  <bruno@clisp.org>
4923             Andreas Jaeger  <aj@suse.de>
4924
4925         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4926         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4927         inptr and inend for must_buffer_ch.
4928         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4929         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4930         * stdio-common/Makefile (tests): Remove bug15.
4931         (bug15-ENV): Remove macro.
4932         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4933         anymore.
4934
4935 2012-05-19  Andreas Jaeger  <aj@suse.de>
4936             Roland McGrath  <roland@hack.frob.com>
4937
4938         * manual/contrib.texi: Completely rewritten. It contains now an
4939         alphabetical list of contributors and their contributions.
4940
4941 2012-05-21  Richard Henderson  <rth@twiddle.net>
4942
4943         * misc/getauxval.c (__getauxval): Use unsigned long int.
4944         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4945         (getauxval): Use unsigned long int.
4946
4947 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4948
4949         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4950
4951 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4952
4953         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4954         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4955         __alignof__ (long double).
4956
4957 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4958
4959         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4960
4961 2012-05-20  Richard Henderson  <rth@twiddle.net>
4962
4963         * misc/getauxval.c: New file.
4964         * misc/sys/auxv.h: New file.
4965         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4966         (routines): Add getauxval.
4967         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4968         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4969         * elf/dl-sysdep.c (_dl_auxv): Remove.
4970         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4971         * elf/dl-support.c (_dl_auxv): New variable.
4972         (_dl_aux_init): Initialize it.
4973         * manual/startup.texi (Auxiliary Vector): New node.
4974         * sysdeps/generic/bits/hwcap.h: New file.
4975         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4976         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4977         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4978         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4979         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4980         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4982         Update.
4983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4984         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4985         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4986         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4987         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4988         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4989         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4990         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4991
4992 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4993
4994         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4995
4996 2012-05-19  David S. Miller  <davem@davemloft.net>
4997
4998         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4999
5000 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5001
5002         [BZ #14123]
5003         * math/s_ccosh.c: Include <float.h>
5004         (__ccosh): Avoid internal overflow calculating sinh and cosh
5005         values before multiplying by sin and cos values.
5006         * math/s_ccoshf.c: Likewise.
5007         * math/s_ccoshl.c: Likewise.
5008         * math/s_csin.c: Likewise.
5009         * math/s_csinf.c: Likewise.
5010         * math/s_csinl.c: Likewise.
5011         * math/s_csinh.c: Likewise.
5012         * math/s_csinhf.c: Likewise.
5013         * math/s_csinhl.c: Likewise.
5014         * math/libm-test.inc (ccos_test): Add more tests.
5015         (ccosh_test): Likewise.
5016         (csin_test): Likewise.
5017         (csinh_test): Likewise.
5018         * sysdeps/i386/fpu/libm-test-ulps: Update.
5019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5020
5021 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5022
5023         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5024         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5025
5026         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5027
5028 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5029
5030         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5031         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5032         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5033         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5034         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5035         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5036         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5037         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5038         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5039         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5040         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5041         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5042         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5043         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5044         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5045         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5046         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5047         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5048         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5049         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5050         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5051         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5052         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5053         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5054         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5055         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5056         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5057         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5058         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5059         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5060         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5061
5062 2012-05-18  Andreas Jaeger  <aj@suse.de>
5063
5064         * csu/.gitignore: Delete.
5065
5066 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5067
5068         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5069         (timex): Use __syscall_slong_t.
5070
5071 2012-05-18  Andreas Jaeger  <aj@suse.de>
5072             Carlos O'Donell  <carlos_odonell@mentor.com>
5073
5074         * manual/install.texi (Configuring and compiling): Update
5075         description about files modified in the source directory.
5076         * INSTALL: Regenerated.
5077
5078 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5079
5080         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5081         value.  Use "or" to set return value to -1.
5082         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5083         negate return value.
5084
5085 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5086
5087         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5088         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5089         failure if the compiler has Graphite support disabled.
5090         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5091         Likewise.
5092         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5093         CFLAGS-memmove.c): Likewise.
5094         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5095         Likewise.
5096
5097 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5098
5099         * sysdeps/x86_64/x32/_itoa.h: New file.
5100
5101         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5102         getdents system call only if kernel and user dirents have the
5103         same d_ino and d_off.
5104
5105         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5106         LLONG_MAX != LONG_MAX.
5107         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5108         (_fitoa_word): Likewise.
5109
5110         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5111         years.
5112         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5113         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5114         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5115
5116         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5117         include <bits/wordsize.h>.  Check __x86_64__ instead of
5118         __WORDSIZE.
5119         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5120         if __x86_64__ is defined.  Use anonymous union on fpstate.
5121
5122         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5123         anonymous union.
5124
5125 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5126
5127         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5128         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5129         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5130         Refer to _rtld_local_ro instead of _rtld_global_ro.
5131         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5132         Likewise.
5133         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5134         Likewise.
5135         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5136         Likewise.
5137         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5138         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5139         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5140
5141         * sysdeps/powerpc/powerpc32/dl-machine.c
5142         (__elf_machine_runtime_setup) [PROF]: Don't reference
5143         _dl_prof_resolve.
5144
5145 2012-05-18  Andreas Jaeger  <aj@suse.de>
5146
5147         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5148         function only available for GCCs before 3.4 since GCC 3.4
5149         introduced a builtin.
5150         (lrint): Likewise.
5151         (llrintf): Likewise.
5152         (llrint): Likewise.
5153         (fmaxf): Likewise.
5154         (fmax): Likewise.
5155         (fminf): Likewise.
5156         (fmin): Likewise.
5157         (rint): Likewise.
5158         (rintf): Likewise.
5159         (nearbyint): Likewise.
5160         (nearbyintf): Likewise.
5161         (ceil): Likewise.
5162         (ceilf): Likewise.
5163         (floor): Likewise.
5164         (floorf): Likewise.
5165
5166 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5167
5168         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5169         on both fields and cast pointer to __syscall_ulong_t.
5170
5171         * bits/types.h (__fsword_t): New type.
5172         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5173         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5174         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5175         (__FSWORD_T_TYPE): Likewise.
5176         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5177         (__FSWORD_T_TYPE): Likewise.
5178         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5179         (__FSWORD_T_TYPE): Likewise.
5180         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5181         (__FSWORD_T_TYPE): Likewise.
5182         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5183         __SWORD_TYPE with __fsword_t.
5184         (statfs64): Likewise.
5185
5186 2012-05-17  David S. Miller  <davem@davemloft.net>
5187
5188         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5189
5190 2012-05-17  Andreas Jaeger  <aj@suse.de>
5191
5192         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5193         warning.
5194
5195 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5196
5197         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5198
5199 2012-05-17  Andreas Jaeger  <aj@suse.de>
5200
5201         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5202         when it is used.
5203
5204 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5205
5206         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5207
5208 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5209
5210         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5211         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5212
5213 2012-05-17  Andreas Jaeger  <aj@suse.de>
5214             Carlos O'Donell  <carlos_odonell@mentor.com>
5215
5216         [BZ #14059]
5217         * sysdeps/x86_64/multiarch/init-arch.h
5218         (bit_YMM_Usable): Rename to...
5219         (bit_AVX_Usable): ... this.
5220         (bit_FMA4_Usable): New macro.
5221         (bit_XMM_state): New macro.
5222         (bit_YMM_state): New macro.
5223         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5224         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5225         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5226         (CPUID_OSXSAVE): New macro.
5227         (CPUID_AVX): New macro.
5228         (CPUID_FMA4): New macro.
5229         (index_YMM_Usable): Rename to...
5230         (index_AVX_Usable): ... this.
5231         (HAS_AVX): Use HAS_ARCH_FEATURE.
5232         (HAS_FMA4): Likewise.
5233         (HAS_YMM_USABLE): Remove.
5234         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5235         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5236         are present.
5237         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5238         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5239         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5240         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5241         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5242
5243 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5244
5245         * math/libm-test.c: Support platforms without multiple rounding modes.
5246         * math/bug-nextafter.c: Support platforms without FP exceptions.
5247         * math/bug-nexttoward.c: Likewise.
5248         * math/test-fenv.c: Likewise.
5249         * math/test-misc.c: Likewise.
5250         * stdlib/bug-getcontext.c: Likewise.
5251
5252 2012-05-17  Andreas Jaeger  <aj@suse.de>
5253
5254         * manual/examples/search.c (critter_cmp): Change signature to
5255         avoid warnings.
5256         * manual/string.texi (Collation Functions): Likewise.
5257
5258 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5259
5260         * bits/types.h: Fold copyright years.
5261         * bits/typesizes.h: Likewise.
5262         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5263         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5264         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5265         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5266         * time/time.h: Likewise.
5267
5268 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5269
5270         [BZ #208]
5271         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5272         in instead of returning them.  Return void.
5273         (__libc_mallinfo): Accumulate over all arenas.
5274         (__malloc_stats): Adjust for change in int_mallinfo interface.
5275
5276 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5277
5278         [BZ #10375]
5279         * configure.in (NM): Add AC_CHECK_TOOL for it.
5280         (libc_extra_cflags): New substituted variable.
5281         Check for -fstack-protector being used implicitly.
5282         * configure: Regenerated.
5283         * config.make.in (config-extra-cflags): New variable,
5284         gets @libc_extra_cflags@.
5285         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5286
5287         [BZ #10375]
5288         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5289         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5290         * configure: Regenerated.
5291         * config.make.in (CPPUNDEFS): New substituted variable.
5292         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5293         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5294         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5295
5296 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5297
5298         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5299         (mq_attr): Use __syscall_slong_t.
5300
5301 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5302
5303         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5304         Check __x86_64__ instead of __WORDSIZE.
5305         (_STAT_VER_LINUX): Likewise.
5306         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5307         __syscall_ulong_t and __syscall_slong_t.
5308         (stat64): Likewise.
5309
5310 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5311
5312         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5313
5314 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5315
5316         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5317
5318 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5319
5320         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5321         __syscall_ulong_t.
5322
5323         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5324         include <bits/wordsize.h>.  Check __x86_64__ instead of
5325         __WORDSIZE.
5326         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5327         defined.
5328         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5329
5330         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5331         include <bits/wordsize.h>.  Check __x86_64__ instead of
5332         __WORDSIZE.
5333         (user_regs_struct): Use "__extension__ unsigned long long"
5334         instead of "unsigned long" if __x86_64__ is defined.
5335         (user): Likewise.  Pad after pointer field if __ILP32__ is
5336         defined.
5337
5338 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5339
5340         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5341         versions 5 to 9.
5342         * configure: Regenerated.
5343         * manual/install.texi (texinfo): Increase version requirement to
5344         4.5 or later.
5345         * INSTALL: Regenerated.
5346
5347         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5348
5349 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5350
5351         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5352
5353         * sysdeps/x86_64/x32/ffs.c: New file.
5354
5355         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5356         __syscall_ulong_t.
5357         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5358         defined.  Use __syscall_ulong_t.
5359         (shminfo): Use __syscall_ulong_t.
5360         (shm_info): Likewise.
5361
5362         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5363         __syscall_ulong_t.
5364
5365         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5366         <bits/wordsize.h>.
5367         (msgqnum_t): Use __syscall_ulong_t.
5368         (msglen_t): Likewise.
5369         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5370         __syscall_ulong_t.
5371
5372         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5373         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5374
5375         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5376
5377         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5378         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5379
5380         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5381         __syscall_slong_t.
5382
5383         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5384         include <bits/wordsize.h>.  Check __x86_64__ instead of
5385         __WORDSIZE.
5386
5387         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5388         "unsigned long long int" if __x86_64__ is defined.
5389         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5390
5391         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5392         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5393         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5394
5395         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5396         <stdint.h>.
5397         (GET_PC): Cast to uintptr_t first.
5398         (GET_FRAME): Likewise.
5399         (GET_STACK): Likewise.
5400
5401         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5402         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5403         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5404         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5405         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5406         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5407         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5408         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5409         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5410         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5411         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5412         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5413         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5414         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5415         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5416         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5417         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5418         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5419         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5420         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5421         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5422         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5423         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5424         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5425         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5426         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5427         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5428         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5429         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5430
5431 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5432
5433         * Makerules (+depfiles): Also collect depfiles from .oS in
5434         $(extra-objs).
5435         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5436         .oS, $(libnldbl-routines)).
5437
5438         * Makerules (native-compile-mkdep-flags): Define.
5439         * sunrpc/Makefile (extra-objs): Add $(addprefix
5440         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5441         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5442         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5443         calling $(make-target-directory).
5444
5445 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5446
5447         * bits/types.h (__snseconds_t): Removed.
5448         * time/time.h (struct timespec): Replace __snseconds_t with
5449         __syscall_slong_t.
5450         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5451         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5452         Likewise.
5453         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5454         (__SNSECONDS_T_TYPE): Likewise.
5455         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5456         (__SNSECONDS_T_TYPE): Likewise.
5457         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5458         (__SNSECONDS_T_TYPE): Likewise.
5459
5460 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5461
5462         * sysdeps/mach/hurd/bits/typesizes.h
5463         (__SYSCALL_SLONG_TYPE): New macro.
5464         (__SYSCALL_ULONG_TYPE): Likewise.
5465
5466 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5467
5468         * bits/types.h (__syscall_slong_t): New type.
5469         (__syscall_ulong_t): Likewise.
5470
5471         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5472         (__SYSCALL_ULONG_TYPE): Likewise.
5473         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5474         (__SYSCALL_SLONG_TYPE): Likewise.
5475         (__SYSCALL_ULONG_TYPE): Likewise.
5476         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5477         (__SYSCALL_SLONG_TYPE): Likewise.
5478         (__SYSCALL_ULONG_TYPE): Likewise.
5479         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5480         (__SYSCALL_SLONG_TYPE): Likewise.
5481         (__SYSCALL_ULONG_TYPE): Likewise.
5482
5483 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5484
5485         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5486         Add sigaltstack-offsets.sym.
5487         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5488         <sigaltstack-offsets.h>.
5489         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5490         longjmp_msg pointer.
5491         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5492         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5493         signal stack.
5494         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5495
5496 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5497
5498         * elf/stackguard-macros.h: Remove file.
5499         * sysdeps/generic/stackguard-macros.h: New file.
5500         * sysdeps/i386/stackguard-macros.h: Likewise.
5501         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5502         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5503         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5504         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5505         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5506         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5507         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5508         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5509         <elf/stackguard-macros.h>.
5510
5511         [BZ #14109]
5512         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5513         __aligned__ in attribute.
5514         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5515         (gregset_t): Likewise.
5516
5517 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5518
5519         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5520         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5521         * sysdeps/x86_64/x32/Implies-after: New file.
5522
5523 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5524
5525         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5526         and access return value for _dl_profile_fixup.  Use R10_LP to
5527         load frame size.
5528
5529 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5530
5531         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5532
5533 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5534
5535         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5536         * sysdeps/x86_64/x32/sysdep.h: New file.
5537
5538 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5539
5540         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5541         * sysdeps/x86_64/setjmp.S: Likewise.
5542
5543 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5544
5545         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5546         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5547         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5548         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5549         remove unused global constant.
5550
5551 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5552
5553         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5554         include of <not-cancel.h>.
5555
5556 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5557
5558         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5559
5560 2012-05-15  Jeff Law  <law@redhat.com>
5561             Andreas Jaeger  <aj@suse.de>
5562
5563         [BZ #13594]
5564         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5565         out from...
5566         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5567         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5568         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5569         code changing __hst_map_handle.map.
5570
5571 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5572
5573         * configure.in (sysnames): Look for Implies-before and Implies-after
5574         files.
5575         * configure: Regenerated.
5576
5577 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5578
5579         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5580         8-byte data alignment with LP_SIZE alignment.
5581
5582 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5583
5584         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5585         into R10_LP.
5586
5587 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5590
5591 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5592
5593         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5594         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5595         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5596         Likewise.
5597         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5598
5599 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5600
5601         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5602         (stackinfo_sub_sp): Likewise.
5603
5604 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5605
5606         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5607         RAX_LP.
5608
5609 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5610
5611         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5612         into R*_LP.
5613
5614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5615
5616         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5617         sizes into R*_LP.
5618
5619 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5620
5621         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5622
5623 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5624
5625         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5626         into R11_LP and load __x86_64_shared_cache_size_half into
5627         R8_LP.
5628
5629 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5630
5631         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5632         R8_LP.
5633
5634 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5635
5636         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5637         logb for POWER7.
5638         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5639         logbf for POWER7.
5640         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5641         logbl for POWER7.
5642         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5643         powerpc32/power7/fpu/s_logb.c via #include.
5644         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5645         powerpc32/power7/fpu/s_logbf.c via #include.
5646         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5647         powerpc32/power7/fpu/s_logbl.c via #include.
5648
5649 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5650
5651         * README.libm: Remove file.
5652
5653 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5654
5655         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5656         count for x32.  Use R*_LP and omit operand-size suffix.
5657
5658 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5659
5660         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5661         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5662         * sysdeps/x86_64/x32/shlib-versions: New file.
5663
5664 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5665
5666         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5667         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5668         Use _dl_fatal_printf instead.
5669
5670 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5671
5672         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5673         set if not set by the user.  Do not allow for being unset.
5674         * sysdeps/unix/sysv/linux/configure: Regenerated.
5675
5676 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5677
5678         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5679         the `q' suffix from lea and replace .quad with ASM_ADDR.
5680
5681 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5682
5683         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5684         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5685         instead of $17.
5686         (PTR_DEMANGLE): Likewise.
5687
5688 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5689
5690         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5691         (LP_OP): Likewise.
5692         (ASM_ADDR): Likewise.
5693         (RAX_LP): Likewise.
5694         (RBP_LP): Likewise.
5695         (RBX_LP): Likewise.
5696         (RCX_LP): Likewise.
5697         (RDI_LP): Likewise.
5698         (RSI_LP): Likewise.
5699         (RSP_LP): Likewise.
5700         (R8_LP): Likewise.
5701         (R9_LP): Likewise.
5702         (R10_LP): Likewise.
5703         (R10_LP): Likewise.
5704         (R11_LP): Likewise.
5705         (R12_LP): Likewise.
5706         (R13_LP): Likewise.
5707         (R14_LP): Likewise.
5708         (R15_LP): Likewise.
5709
5710 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5711
5712         * sysdeps/x86_64/x32/dl-machine.h: New file.
5713
5714 2012-05-14  Andreas Jaeger  <aj@suse.de>
5715
5716         * manual/Makefile (subdir): Remove export of subdir.
5717         (all): Remove target.
5718         (.PHONY): Remove all from list.
5719         (mkinstalldirs): Remove.
5720         (.PHONY): Remove installdirs from list.
5721         ($(inst_infodir)/libc.info): Use make-target-directory.
5722         (installdirs): Remove.
5723         (subdir_%): Remove.
5724         (glibc-targets): Remove.
5725         (lib): Remove.
5726         (stubs): Remove.
5727         ($(objpfx)stubs ../po/manual.pot): Remove.
5728         ($(objpfx)stamp%): Remove.
5729         (make-target-directory): Remove.
5730         (subdir_install): Remove.
5731         (routines): Remove.
5732         (aux): Remove.
5733         (sources): Remove.
5734         (objects): Remove.
5735         (headers): Remove.
5736
5737         [BZ #13750]
5738         * manual/.gitignore: Remove, it's not needed anymore.
5739         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5740         all files in it.
5741         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5742         directory.
5743         (texis): Renamed to $(objpfx)texis.
5744         (texis-path): New, contains path to generated files.
5745         (chapters.%): Use texis-path for complete path, add extra argument
5746         libc-texinfo.sh.
5747         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5748         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5749         (summary,texi, stamp-summary): Use complete path of
5750         files. Generate files in build dir.
5751         (dir-add.texi): Build in build dir.
5752         (libm-err.texi,stamp-libm-err): Likewise.
5753         (version.texi, stamp-version): Likewise.
5754         (.%c.texi): Likewise.
5755         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5756         (mostlyclean): Remove target.
5757         (realclean): Remove target.
5758         (generated): Add new variable with contents from mostlyclean and
5759         realclean, remove entries duplicated in common-mostlyclean, add
5760         stamp-libm-err and stamp-version.
5761         (generated-dirs): Add libc directory.
5762         ($(inst_infodir)/libc.info): Install files from build dir.
5763
5764         * manual/install.texi (Configuring and compiling): Adjust since
5765         the info files are not part of the tar ball anymore.
5766
5767 2012-05-14  Andreas Jaeger  <aj@suse.de>
5768
5769         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5770         variable.
5771
5772 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5773
5774         [BZ #13717]
5775         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5776         to 2.2.0 where earlier.
5777         * sysdeps/unix/sysv/linux/configure: Regenerated.
5778         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5779         Remove conditional code.
5780         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5781         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5782         Remove conditional code.
5783         [!__NR_lchown]: Likewise.
5784         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5785         [__NR_lchown]: Likewise.
5786         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5787         comment referencing __ASSUME_LCHOWN_SYSCALL.
5788         * sysdeps/unix/sysv/linux/i386/sigaction.c
5789         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5790         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5791         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5792         Remove conditional code.
5793         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5794         (__protocol_available): Remove #if 0 code.
5795         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5796         conditional code.
5797         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5798         * sysdeps/unix/sysv/linux/kernel-features.h
5799         (__ASSUME_GETCWD_SYSCALL): Don't define.
5800         (__ASSUME_REALTIME_SIGNALS): Likewise.
5801         (__ASSUME_PREAD_SYSCALL): Likewise.
5802         (__ASSUME_PWRITE_SYSCALL): Likewise.
5803         (__ASSUME_POLL_SYSCALL): Likewise.
5804         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5805         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5806         non-SPARC.
5807         (__ASSUME_SIOCGIFNAME): Don't define.
5808         (__ASSUME_MSG_NOSIGNAL): Likewise.
5809         (__ASSUME_SENDFILE): Define unconditionally.
5810         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5811         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5812         conditional code.
5813         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5814         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5815         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5816         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5817         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5818         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5819         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5821         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5822         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5824         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5825         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5827         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5828         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5830         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5831         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5833         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5834         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5836         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5837         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5839         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5840         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5842         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5843         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5844         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5845         Remove conditional code.
5846         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5847         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5848         Remove conditional code.
5849         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5850         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5851         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5852         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5853         Remove conditional code.
5854         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5855         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5856         Remove conditional code.
5857         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5858         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5859         Remove conditional code.
5860         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5861         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5862         Remove conditional code.
5863         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5864         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5865         Remove conditional code.
5866         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5867         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5868         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5869         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5870         * sysdeps/unix/sysv/linux/sigaction.c
5871         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5872         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5873         * sysdeps/unix/sysv/linux/sigpending.c
5874         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5875         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5876         * sysdeps/unix/sysv/linux/sigprocmask.c
5877         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5878         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5879         * sysdeps/unix/sysv/linux/sigsuspend.c
5880         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5881         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5882         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5883         (__libc_missing_rt_sigs): Remove.
5884         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5885         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5886         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5887         Remove conditional code.
5888         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5889         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5890         return 1.
5891         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5892         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5893         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5894         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5895
5896 2012-05-14  Andreas Jaeger  <aj@suse.de>
5897
5898         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5899         it's not used in glibc.
5900         (__coshm1): Likewise.
5901         (__acosh1p): Likewise.
5902         (__sgn): Likewise.
5903
5904         * manual/string.texi (Copying and Concatenation): Add missing
5905         variable in concat example.
5906         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5907
5908 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5909
5910         [BZ #14103]
5911         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5912         __builtin_clzl with __builtin_clzll.
5913
5914 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5915
5916         [BZ #14104]
5917         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5918         libc_freeres_ptr.
5919
5920 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5921
5922         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5923         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5924         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5925         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5926
5927 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5928
5929         * NEWS: Update ia64 info.
5930
5931 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5932
5933         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5934         used as bcopy.
5935
5936 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5937
5938         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5939         * sysdeps/unix/syscalls.list (dup3): Likewise.
5940         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5941         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5942
5943 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5944
5945         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5946         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5947
5948 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5949
5950         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5951         thread pointer.
5952         (TLS_IE): Use mov/add instead of movq/addq to load thread
5953         pointer.
5954         (TLS_GD_PREFIX): New.
5955         (TLS_GD): Use it.
5956
5957 2012-05-11  David S. Miller  <davem@davemloft.net>
5958
5959         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5960         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5961         (_FPU_SETCW): Likewise.
5962
5963 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5964
5965         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5966         is 32-byte aligned.
5967
5968 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5969
5970         [BZ #11837]
5971         * iconvdata/gb18030.c: Update tables.
5972         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5973         characters specially.
5974         (BODY for TO_LOOP): Add encoding of missing ranges.
5975
5976 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5977
5978         [BZ #13673]
5979         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5980         * sysdeps/mach/hurd/dup3.c: Likewise.
5981         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5982         * sysdeps/powerpc/memmove.c:: Likewise.
5983
5984 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5985
5986         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5987         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5988
5989 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5990
5991         * elf/elf.h (R_X86_64_RELATIVE64): New.
5992         (R_X86_64_NUM): Updated.
5993         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5994         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5995         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5996         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5997         tst-quad1pie tst-quad2pie
5998         (modules-names): Add tst-quadmod1 tst-quadmod2.
5999         ($(objpfx)tst-quad1): New dependency.
6000         ($(objpfx)tst-quad2): Likewise.
6001         ($(objpfx)tst-quad1pie): Likewise.
6002         ($(objpfx)tst-quad2pie): Likewise.
6003         * sysdeps/x86_64/tst-quad1.c: New file.
6004         * sysdeps/x86_64/tst-quad1pie.c: New file.
6005         * sysdeps/x86_64/tst-quad2.c: Likewise.
6006         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6007         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6008         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6009         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6010         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6011
6012 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6013
6014         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6015         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6016         * streams/stropts.h (t_scalar_t): Define type.
6017
6018         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6019         (_PATH_PRESERVE): Set to "/var/lib".
6020         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6021
6022         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6023         instead of int.
6024
6025         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6026         if __dir_mkfile succeeded.
6027
6028         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6029         checking for _hurd_dtablesize.  Unlock it right after having
6030         finished _hurd_dtable allocation.
6031
6032 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6033
6034         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6035         * sysdeps/mach/hurd/configure: Regenerated.
6036         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6037         special-casing to...
6038         * sysdeps/gnu/configure.in: ... this new file.
6039         * sysdeps/unix/sysv/linux/configure: Regenerated.
6040         * sysdeps/gnu/configure: New generated file.
6041
6042         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6043         for Linux: use nsec instead of usec, as well as:
6044         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6045         members of type struct timespec.
6046         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6047         New macros.
6048         (struct stat64): Likewise.
6049         (_STATBUF_ST_NSEC): New macro.
6050         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6051
6052         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6053         __strtoul_internal rather than strtoul.
6054
6055 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6056
6057         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6058         and reject them.
6059
6060 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6061
6062         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6063         which preserves existing values.
6064         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6065
6066 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6067
6068         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6069         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6070         greater than FD_SETSIZE.
6071
6072 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6073
6074         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6075         allocated, call __vm_protect to finish enabling the existing space, and
6076         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6077         allocate the remainder.
6078
6079 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6080
6081         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6082         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6083
6084 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6085
6086         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6087         sysdeps/mach/hurd/readlink.c.
6088
6089         * posix/tst-sysconf.c (posix_options): Only use
6090         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6091         _POSIX_SYNCHRONIZED_IO when they are defined
6092         * sysdeps/mach/hurd/bits/posix_opt.h:
6093         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6094         (_XOPEN_REALTIME): Undefine macro.
6095         (_XOPEN_REALTIME_THREADS): Undefine macro.
6096         (_XOPEN_SHM): Undefine macro.
6097         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6098         macro to -1.
6099         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6100         macro to -1.
6101         (_POSIX_ASYNC_IO): Undefine macro.
6102         (_POSIX_PRIORITIZED_IO): Undefine macro.
6103         (_POSIX_SPIN_LOCKS): Define macro to -1.
6104
6105         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6106         SA_NODEFER, SA_RESETHAND.
6107         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6108         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6109         F_DUPFD_CLOEXEC.
6110
6111 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6112
6113         * elf/Makefile (pldd-modules): Define unconditionally.
6114
6115 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6116
6117         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6118
6119 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6120
6121         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6122         Return ENOENT when name is empty.
6123         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6124
6125 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6126
6127         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6128
6129         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6130
6131 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6132
6133         Fix mlock in all cases except non-readable pages.
6134         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6135         instead of VM_PROT_ALL as parameter to __vm_wire function.
6136
6137         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6138         (__mkdir): When path is `/', just fail with EEXIST.
6139         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6140
6141 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6142
6143         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6144         <sys/uio.h> (for writev).
6145         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6146         and <sys/param.h> (for MIN).
6147
6148 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6149
6150         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6151         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6152         if interrupted.
6153
6154 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6155
6156         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6157         Depend on against $(link-rpcuserlibs).
6158
6159 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6160
6161         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6162         (__libc_stack_end): Do not use attribute_relro.
6163         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6164         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6165         to libthread-provided value.
6166         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6167         attribute_relro.
6168
6169 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6170
6171         [BZ #3748]
6172         * bits/libc-lock.h (__libc_once_get): New macro.
6173         * sysdeps/mach/bits/libc-lock.h: Likewise.
6174         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6175         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6176         instead of using implementation details.
6177
6178         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6179         * libio/freopen.c: Likewise.
6180         * libio/freopen64.c: Likewise.
6181         * misc/syslog.c: Likewise.
6182         * nscd/connections.c: Likewise.
6183         * nscd/netgroupcache.c: Likewise.
6184         * sysdeps/posix/getcwd.c: Likewise.
6185
6186 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6187
6188         * math/w_ilogbf.c: Add #include <limits.h>.
6189
6190 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6191
6192         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6193         path instead of returning without unlocking.
6194
6195         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6196         immediate-write ioctls.
6197         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6198
6199 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6200
6201         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6202         __builtin_frame_address instead of making assumptions about the
6203         location of the return address relative to DATA.  Force early load of
6204         the return address.
6205         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6206         __builtin_frame_address.
6207
6208         dup3 for GNU Hurd.
6209         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6210         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6211         implement dup3 and do some further code clean-ups.
6212         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6213         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6214
6215 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6216
6217         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6218
6219         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6220         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6221         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6222         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6223         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6224         d->port.lock.
6225
6226         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6227         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6228         when handler == SIG_ERR, not when handler != SIG_ERR.
6229
6230 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6231
6232         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6233         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6234         definitions.
6235
6236         accept4 for GNU Hurd.
6237         * include/sys/socket.h (__libc_accept4): New prototype.
6238         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6239         to implement __libc_accept4.
6240         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6241         __libc_accept4.
6242         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6243
6244         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6245         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6246         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6247         signal-defines.sym.
6248
6249 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6250
6251         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6252
6253 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6254
6255         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6256         assertion on O_CLOEXEC flag.
6257         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6258         * hurd/intern-fd.c: Likewise.
6259         * hurd/port2fd.c: Likewise.
6260
6261 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6262
6263         [BZ #3906]
6264         * bits/in.h (IPV6_PKTINFO): Define new macro.
6265         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6266
6267 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6268
6269         [BZ #13954]
6270         [BZ #13955]
6271         [BZ #13956]
6272         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6273         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6274         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6275         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6276         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6277         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6278         * math/libm-test.inc (logb_test) : Additional logb tests.
6279
6280 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6281             Andreas Jaeger  <aj@suse.de>
6282
6283         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6284         * configure: Regenerated.
6285         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6286         * config.make.in (link-obsolete-rpc): New substituted variable.
6287         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6288         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6289         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6290         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6291         so that libc.a contains the symbols.
6292         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6293         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6294         * sunrpc/auth_none.c: Likewise.
6295         * sunrpc/auth_unix.c: Likewise.
6296         * sunrpc/authdes_prot.c: Likewise.
6297         * sunrpc/authuxprot.c: Likewise.
6298         * sunrpc/clnt_gen.c: Likewise.
6299         * sunrpc/clnt_perr.c: Likewise.
6300         * sunrpc/clnt_raw.c: Likewise.
6301         * sunrpc/clnt_simp.c: Likewise.
6302         * sunrpc/clnt_tcp.c: Likewise.
6303         * sunrpc/clnt_udp.c: Likewise.
6304         * sunrpc/clnt_unix.c: Likewise.
6305         * sunrpc/des_crypt.c: Likewise.
6306         * sunrpc/des_soft.c: Likewise.
6307         * sunrpc/get_myaddr.c: Likewise.
6308         * sunrpc/key_call.c: Likewise.
6309         * sunrpc/key_prot.c: Likewise.
6310         * sunrpc/netname.c: Likewise.
6311         * sunrpc/pm_getmaps.c: Likewise.
6312         * sunrpc/pm_getport.c: Likewise.
6313         * sunrpc/pmap_clnt.c: Likewise.
6314         * sunrpc/pmap_prot.c: Likewise.
6315         * sunrpc/pmap_prot2.c: Likewise.
6316         * sunrpc/pmap_rmt.c: Likewise.
6317         * sunrpc/publickey.c: Likewise.
6318         * sunrpc/rpc_cmsg.c: Likewise.
6319         * sunrpc/rpc_common.c: Likewise.
6320         * sunrpc/rpc_dtable.c: Likewise.
6321         * sunrpc/rpc_prot.c: Likewise.
6322         * sunrpc/rpc_thread.c: Likewise.
6323         * sunrpc/rtime.c: Likewise.
6324         * sunrpc/svc.c: Likewise.
6325         * sunrpc/svc_auth.c: Likewise.
6326         * sunrpc/svc_raw.c: Likewise.
6327         * sunrpc/svc_run.c: Likewise.
6328         * sunrpc/svc_tcp.c: Likewise.
6329         * sunrpc/svc_udp.c: Likewise.
6330         * sunrpc/svc_unix.c: Likewise.
6331         * sunrpc/svcauth_des.c: Likewise.
6332         * sunrpc/xcrypt.c: Likewise.
6333         * sunrpc/xdr.c: Likewise.
6334         * sunrpc/xdr_array.c: Likewise.
6335         * sunrpc/xdr_float.c: Likewise.
6336         * sunrpc/xdr_intXX_t.c: Likewise.
6337         * sunrpc/xdr_mem.c: Likewise.
6338         * sunrpc/xdr_rec.c: Likewise.
6339         * sunrpc/xdr_ref.c: Likewise.
6340         * sunrpc/xdr_sizeof.c: Likewise.
6341         * sunrpc/xdr_stdio.c: Likewise.
6342
6343 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6344
6345         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6346         change.  Update copyright years.
6347
6348 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6349
6350         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6351
6352 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6353             Joseph Myers  <joseph@codesourcery.com>
6354             Paul Pluzhnikov  <ppluzhnikov@google.com>
6355
6356         [BZ #14012]
6357         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6358         requiring rpcgen.
6359         [cross-compiling] (extra-libs): Likewise.
6360         [cross-compiling] (extra-libs-others): Likewise.
6361         [cross-compiling] (librpcsvc-routines): Likewise.
6362         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6363         [cross-compiling] (omit-deps): Likewise.
6364         (sunrpc-CPPFLAGS): New variable.
6365         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6366         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6367         (cross-rpcgen-objs): New variable.
6368         (extra-objs): Append $(cross-rpcgen-objs).
6369         ($(cross-rpcgen-objs)): New rule.
6370         ($(objpfx)cross-rpcgen): Likewise.
6371         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6372         comment.
6373         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6374         ($(objpfx)x%.stmp): Likewise.
6375         * sunrpc/proto.h [IS_IN_build] (_): Define.
6376         [IS_IN_build] (_libc_intl_domainname): Likewise.
6377
6378 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6379
6380         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6381         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6382         and R_X86_64_TPOFF64.
6383
6384 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6385
6386         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6387         sysdeps/unix/sysv/syscalls.list.
6388         (stime): Likewise.
6389         (utime): Likewise.
6390         * sysdeps/unix/sysv/syscalls.list: Remove file.
6391
6392 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6393
6394         [BZ #3440]
6395         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6396         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6397         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6398         (__LC_IDENTIFICATION): Make these macros useful in #if
6399         expressions, as required by C99.
6400
6401 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6402
6403         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6404         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6405         after this.
6406
6407 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6408
6409         * stdlib/longlong.h: Updated from GCC.
6410
6411 2012-05-09  Andreas Jaeger  <aj@suse.de>
6412
6413         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6414         default is first entry.
6415         (run_mode): Set type.
6416         (main): Remove informal message about syslog.
6417         (options): Fix typo.
6418
6419         [BZ #14053]
6420         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6421         to asm.
6422         (lrint): Likewise.
6423         (llrintf): Likewise.
6424         (llrint): Likewise.
6425         (rint): Likewise.
6426         (rintf): Likewise.
6427         (nearbyint): Likewise.
6428         (nearbyintf): Likewise.
6429
6430 2012-05-09  Andreas Jaeger  <aj@suse.de>
6431             Pedro Alves  <palves@redhat.com>
6432
6433         * nscd/nscd.c (run_mode): Use enum.
6434         (main): Cleanup coding style issue.
6435
6436 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6437             Andreas Jaeger  <aj@suse.de>
6438
6439         * nscd/nscd.c (go_background): Replaced with...
6440         (run_mode): ... this.
6441         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6442         (options): Add -F --foreground.
6443         (main): Implement it.
6444         (parse_opt): Parse it.
6445
6446 2012-05-09  Andreas Jaeger  <aj@suse.de>
6447
6448         [BZ #14083]
6449         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6450         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6451         -Wconversion warning.
6452         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6453         Likewise.
6454
6455 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6456
6457         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6458         == 0.
6459         (LC_ALL): Use macro-int-constant.
6460         (LC_COLLATE): Likewise.
6461         (LC_CTYPE): Likewise.
6462         (LC_MESSAGES): Likewise.
6463         (LC_MONETARY): Likewise.
6464         (LC_NUMERIC): Likewise.
6465         (LC_TIME): Likewise.
6466         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6467         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6468         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6469         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6470         Specify type.
6471         [C99-based standards] (float_t): Expect type.
6472         [C99-based standards] (double_t): Expect type.
6473         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6474         type.
6475         [C99-based standards] (HUGE_VALL): Likewise.
6476         [C99-based standards] (INFINITY): Likewise.
6477         [C99-based standards] (NAN): Likewise.
6478         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6479         [C99-based standards] (FP_NAN): Likewise.
6480         [C99-based standards] (FP_NORMAL): Likewise.
6481         [C99-based standards] (FP_SUBNORMAL): Likewise.
6482         [C99-based standards] (FP_ZERO): Likewise.
6483         [C99-based standards] (FP_FAST_FMA): Use
6484         optional-macro-int-constant.  Specify type.  Require == 1.
6485         [C99-based standards] (FP_FAST_FMAF): Likewise.
6486         [C99-based standards] (FP_FAST_FMAL): Likewise.
6487         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6488         [C99-based standards] (FP_ILOGBNAN): Likewise.
6489         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6490         Specify type.
6491         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6492         [C99-based standards] (math_errhandling): Specify type.
6493         [ISO99 || ISO11] (signgam): Do not allow.
6494         [non-C99-based standards] (copysignf): Do not allow.
6495         [non-C99-based standards] (exp2f): Likewise.
6496         [non-C99-based standards] (log2f): Likewise.
6497         [non-C99-based standards] (modff): Allow.
6498         [non-C99-based standards] (erff): Do not allow.
6499         [non-C99-based standards] (erfcf): Likewise.
6500         [non-C99-based standards] (gammaf): Likewise.
6501         [non-C99-based standards] (hypotf): Likewise.
6502         [non-C99-based standards] (j0f): Likewise.
6503         [non-C99-based standards] (j1f): Likewise.
6504         [non-C99-based standards] (jnf): Likewise.
6505         [non-C99-based standards] (lgammaf): Likewise.
6506         [non-C99-based standards] (tgammaf): Likewise.
6507         [non-C99-based standards] (y0f): Likewise.
6508         [non-C99-based standards] (y1f): Likewise.
6509         [non-C99-based standards] (ynf): Likewise.
6510         [non-C99-based standards] (isnanf): Likewise.
6511         [non-C99-based standards] (acoshf): Likewise.
6512         [non-C99-based standards] (asinhf): Likewise.
6513         [non-C99-based standards] (atanhf): Likewise.
6514         [non-C99-based standards] (cbrtf): Likewise.
6515         [non-C99-based standards] (expm1f): Likewise.
6516         [non-C99-based standards] (ilogbf): Likewise.
6517         [non-C99-based standards] (log1pf): Likewise.
6518         [non-C99-based standards] (logbf): Likewise.
6519         [non-C99-based standards] (nextafterf): Likewise.
6520         [non-C99-based standards] (remainderf): Likewise.
6521         [non-C99-based standards] (rintf): Likewise.
6522         [non-C99-based standards] (scalbf): Likewise.
6523         [non-C99-based standards] (copysignl): Likewise.
6524         [non-C99-based standards] (exp2l): Likewise.
6525         [non-C99-based standards] (log2l): Likewise.
6526         [non-C99-based standards] (modfl): Allow.
6527         [non-C99-based standards] (erfl): Do not allow.
6528         [non-C99-based standards] (erfcl): Likewise.
6529         [non-C99-based standards] (gammal): Likewise.
6530         [non-C99-based standards] (hypotl): Likewise.
6531         [non-C99-based standards] (j0l): Likewise.
6532         [non-C99-based standards] (j1l): Likewise.
6533         [non-C99-based standards] (jnl): Likewise.
6534         [non-C99-based standards] (lgammal): Likewise.
6535         [non-C99-based standards] (tgammal): Likewise.
6536         [non-C99-based standards] (y0l): Likewise.
6537         [non-C99-based standards] (y1l): Likewise.
6538         [non-C99-based standards] (ynl): Likewise.
6539         [non-C99-based standards] (isnanl): Likewise.
6540         [non-C99-based standards] (acoshl): Likewise.
6541         [non-C99-based standards] (asinhl): Likewise.
6542         [non-C99-based standards] (atanhl): Likewise.
6543         [non-C99-based standards] (cbrtl): Likewise.
6544         [non-C99-based standards] (expm1l): Likewise.
6545         [non-C99-based standards] (ilogbl): Likewise.
6546         [non-C99-based standards] (log1pl): Likewise.
6547         [non-C99-based standards] (logbl): Likewise.
6548         [non-C99-based standards] (nextafterl): Likewise.
6549         [non-C99-based standards] (remainderl): Likewise.
6550         [non-C99-based standards] (rintl): Likewise.
6551         [non-C99-based standards] (scalbl): Likewise.
6552         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6553         [non-C99-based standards] (FP_*): Do not allow.
6554         [C99-based standards] (FP_*): Change to
6555         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6556         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6557         allow.
6558         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6559         (SIG_ERR): Likewise.
6560         [X/Open-based standards] (SIG_HOLD): Likewise.
6561         (SIG_IGN): Likewise.
6562         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6563         positive value.
6564         (SIGFPE): Likewise.
6565         (SIGILL): Likewise.
6566         (SIGINT): Likewise.
6567         (SIGSEGV): Likewise.
6568         (SIGTER): Likewise.
6569         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6570         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6571         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6572         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6573         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6574         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6575         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6576         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6577         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6578         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6579         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6580         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6581         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6582         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6583         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6584         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6585         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6586         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6587         [X/Open-based standards] (SIGTRAP): Likewise.
6588         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6589         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6590         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6591         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6592         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6593         allow.
6594
6595 2012-05-08  Ian Wienand  <ianw@vmware.com>
6596
6597         [BZ #14080]
6598         * time/tzset.c (__tzset_parse_tz): Update default rules for
6599         daylight time changes in the Energy Policy Act of 2005.
6600
6601 2012-05-09  Andreas Jaeger  <aj@suse.de>
6602
6603         [BZ #13983]
6604         * elf/ldconfig.c (parse_conf): Change string to make clear that
6605         ldconfig only issued a warning if ld.so.conf does not exist.
6606
6607 2012-05-08  David S. Miller  <davem@davemloft.net>
6608
6609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6610         movxtod instead of popping the value on the stack.
6611
6612         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6613
6614 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6615
6616         * config.h.in: Add HAVE_ARM_PCS_VFP.
6617
6618 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6619
6620         [BZ #13979]
6621         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6622         checking but the checks are disabled for any reason.
6623
6624 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6625
6626         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6627         and ELF64_R_TYPE with ELFW(R_TYPE).
6628
6629 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6630
6631         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6632         (ulimit): Likewise.
6633
6634         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6635         (settimeofday): Likewise.
6636
6637 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6638
6639         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6640         a struct th_u2 inside the union, and move tu_block/tu_code into
6641         a new th_u3 union of tu_block/tu_code inside of that.  Move
6642         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6643         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6644         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6645         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6646         (th_stuff): Change to th_u1.tu_stuff.
6647         (th_data): Define.
6648         (th_msg): Change to th_u1.th_u2.tu_data.
6649
6650 2012-05-07  David S. Miller  <davem@davemloft.net>
6651
6652         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6653
6654         [BZ #14074]
6655         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6656         (SETUP_PIC_REG): Use it.
6657         (SETUP_PIC_REG_LEAF): Use it.
6658
6659 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6660
6661         [BZ #13885]
6662         [BZ #13923]
6663         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6664         USE_AS_EXPM1L.
6665         (EXPL_FINITE): Likewise.
6666         (FLDLOG): Likewise.
6667         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6668         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6669         e_expl.S.
6670         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6671         USE_AS_EXPM1L.
6672         (EXPL_FINITE): Likewise.
6673         (FLDLOG): Likewise.
6674         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6675         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6676         e_expl.S.
6677         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6678         test of -max_value argument for long double.
6679         * sysdeps/i386/fpu/libm-test-ulps: Update.
6680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6681
6682 2012-05-06  David S. Miller  <davem@davemloft.net>
6683
6684         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6685         quad soft-float symbols whose references which are compiler
6686         generated.
6687         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6688
6689 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6690
6691         [BZ #13884]
6692         [BZ #13914]
6693         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6694         USE_AS_EXP10L.
6695         (EXPL_FINITE): Likewise.
6696         (FLDLOG): Likewise.
6697         (c0): Likewise.
6698         (c1): Likewise.
6699         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6700         Adjust comments for base varying.
6701         (__expl_finite): Change alias to EXPL_FINITE.
6702         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6703         e_expl.S.
6704         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6705         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6706         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6707         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6708         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6709         USE_AS_EXP10L.
6710         (EXPL_FINITE): Likewise.
6711         (FLDLOG): Likewise.
6712         (c0): Likewise.
6713         (c1): Likewise.
6714         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6715         Adjust comments for base varying.
6716         (__expl_finite): Change alias to EXPL_FINITE.
6717         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6718         tests for bugs.
6719         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6720
6721         [BZ #14064]
6722         * math/libm-test.inc (check_float_internal): Correct ulp
6723         calculation for subnormal expected results.
6724
6725 2012-05-06  Andreas Jaeger  <aj@suse.de>
6726
6727         * Makeconfig (+math-flags): New, set to -frounding-math.
6728         (+cflags): Add +math-flags so that all of glibc gets compiled with
6729         it.
6730
6731         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6732
6733 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6734
6735         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6736         Disable one test.
6737
6738         [BZ #13787]
6739         [BZ #13922]
6740         [BZ #14036]
6741         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6742         (__ieee754_expl): Allow for and saturate large arguments.
6743         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6744         (u_threshold): Likewise.
6745         (__exp): Call __ieee754_exp before checking for overflow and
6746         underflow.
6747         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6748         (u_threshold): Likewise.
6749         (__expf): Call __ieee754_expf before checking for overflow and
6750         underflow.
6751         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6752         (u_threshold): Likewise.
6753         (__expl): Call __ieee754_expl before checking for overflow and
6754         underflow.
6755         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6756         (__ieee754_expl): Allow for and saturate large arguments.
6757         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6758         missing overflow exception on overflow.
6759         (expm1_test): Do not allow missing overflow exception on overflow.
6760
6761         * sysdeps/i386/fpu/e_expl.c: Move to ...
6762         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6763         rather than using inline asm.
6764         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6765         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6766         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6767
6768         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6769         (nice): Likewise.
6770         (poll): Likewise.
6771         (signal): Likewise.
6772         (time): Likewise.
6773         (times): Likewise.
6774
6775 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6776
6777         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6778         sysdeps/unix/common/syscalls.list.
6779         (fchmod): Likewise.
6780         (fchown): Likewise.
6781         (ftruncate): Likewise.
6782         (getrusage): Likewise.
6783         (gettimeofday): Likewise.
6784         (setpgid): Likewise.
6785         (setregid): Likewise.
6786         (setreuid): Likewise.
6787         (sigaction): Likewise.
6788         (truncate): Likewise.
6789         (vhangup): Likewise.
6790         * sysdeps/unix/common/syscalls.list: Remove file.
6791         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6792         * sysdeps/unix/sysv/linux/Implies: Likewise.
6793
6794 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6795
6796         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6797         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6798         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6799         Moved to ...
6800         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6801         Here.
6802         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6803         to ...
6804         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6805         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6806         to ...
6807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6808         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6809         to ...
6810         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6811         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6812         to ...
6813         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6814         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6815         to ...
6816         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6817         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6818         to ...
6819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6820         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6821         to ...
6822         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6823         Here.
6824         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6825         to ...
6826         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6827         Here.
6828         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6829         to ...
6830         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6831         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6832         Moved to ...
6833         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6834         Here.
6835         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6836         to ...
6837         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6838
6839 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6840
6841         * sysdeps/unix/common/bits/dirent.h: Remove file.
6842         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6843
6844         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6845         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6846         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6847         * sysdeps/unix/bsd/isatty.c: Likewise.
6848         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6849         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6850         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6851
6852 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6853
6854         [BZ #13563]
6855         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6856         long double comparison inaccuracies.
6857         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6858         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6859
6860 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6861
6862         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6863         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6864
6865 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6866
6867         [BZ #14049]
6868         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6869         nonzero digits before rounding a hex value.
6870         * stdlib/tst-strtod.c (tests): Add another test.
6871
6872 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6873
6874         * sysdeps/s390/fpu/libm-test-ulps: Update.
6875
6876 2012-05-03  Andreas Jaeger  <aj@suse.de>
6877
6878         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6879         does not get optimized out.
6880         (malloc_opt_barrier): New.
6881
6882 2012-05-03  Andreas Jaeger  <aj@suse.de>
6883             Roland McGrath  <roland@hack.frob.com>
6884
6885         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6886         intermediate file deletion.
6887         (generated): Add .symlist files.
6888
6889 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6890
6891         [BZ #13775]
6892         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6893         Redirect under this condition.
6894         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6895         [__USE_GNU] (__dprintf_chk): Not under this condition.
6896         [__USE_GNU] (__vdprintf_chk): Likewise.
6897         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6898         under this condition.
6899         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6900         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6901         [__USE_XOPEN2K8] (vdprintf): Likewise.
6902         [__USE_GNU] (__dprintf_chk): Not under this condition.
6903         [__USE_GNU] (__vdprintf_chk): Likewise.
6904         [__USE_GNU] (dprintf): Likewise.
6905         [__USE_GNU] (vdprintf): Likewise.
6906
6907 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6908
6909         * elf/Makefile (common-generated): Set this instead of generated for
6910         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6911         $(all-built-dso)-derived lists.
6912
6913 2012-05-03  Andreas Jaeger  <aj@suse.de>
6914
6915         * sysdeps/i386/fpu/libm-test-ulps: Update.
6916
6917         * FAQ: Removed.
6918         * FAQ.in: Likewise.
6919         * scripts/gen-FAQ.pl: Likewise.
6920         * manual/install.texi (Installation): Point to online location of
6921         FAQ.
6922         * Makefile (files-for-dist): Remove FAQ.
6923         (FAQ): Remove.
6924
6925 2012-05-02  Allan McRae  <allan@archlinux.org>
6926
6927         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6928         (LDFLAGS-reldepmod5.so): Likewise.
6929         (LDFLAGS-reldep6mod1.so): Likewise.
6930         (LDFLAGS-reldep6mod4.so): Likewise.
6931         (LDFLAGS-reldep8mod3.so): Likewise.
6932         (LDFLAGS-unload4mod1.so): Likewise.
6933         (LDFLAGS-unload4mod2.so): Likewise.
6934         (LDFLAGS-tst-initorder): Likewise.
6935         (LDFLAGS-tst-initordera2.so): Likewise.
6936         (LDFLAGS-tst-initordera3.so): Likewise.
6937         (LDFLAGS-tst-initordera4.so): Likewise.
6938         (LDFLAGS-tst-initorderb2.so): Likewise.
6939         (LDFLAGS-noload): Likewise.
6940         (LDFLAGS-next): Likewise.
6941         (LDFLAGS-order2mod1.so): Likewise.
6942         (LDFLAGS-order2mod2.so): Likewise.
6943         (LDFLAGS-tst-initorder2): Likewise.
6944         (LDFLAGS-tst-initorder2a.so): Likewise.
6945         (LDFLAGS-tst-initorder2b.so): Likewise.
6946         (LDFLAGS-tst-initorder2c.so): Likewise.
6947         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6948
6949 2012-05-02  David S. Miller  <davem@davemloft.net>
6950
6951         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6952
6953 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6954
6955         [BZ #14055]
6956         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6957
6958 2012-05-02  Andreas Jaeger  <aj@suse.de>
6959
6960         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6961         since we manipulate rounding mode.
6962         (CPPFLAGS-test-idouble.c): Likewise.
6963         (CPPFLAGS-test-ifloat.c): Likewise.
6964         (CFLAGS-test-ldouble.c): Likewise.
6965         (CFLAGS-test-double.c): Likewise.
6966         (CFLAGS-test-float.c): Likewise.
6967         (CFLAGS-test-misc.c): Likewise.
6968         (CFLAGS-test-test-fenv.c): Likewise.
6969
6970 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6971
6972         [BZ #2550]
6973         [BZ #2570]
6974         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6975         comparisons to determine direction to adjust input.
6976
6977 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6978
6979         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6980         output to the target.
6981
6982         * scripts/localplt.awk: New file.
6983         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6984         (check-localplt-CFLAGS): Variable removed.
6985         ($(all-built-dso:=.jmprel)): New static pattern rule.
6986         (generated): Add those targets.
6987         (localplt-built-dso): New variable.
6988         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6989
6990         * elf/check-localplt.c: File removed.
6991
6992         * scripts/check-execstack.awk: New file.
6993         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6994         (check-execstack-CFLAGS): Variable removed.
6995         ($(objpfx)check-execstack.h): Target removed.
6996         ($(objpfx)execstack-default): New target.
6997         (generated): Add that instead of check-execstack.h.
6998         ($(all-built-dso:=.phdr)): New static pattern rule.
6999         (generated): Add those targets.
7000         * elf/check-execstack.c: File removed.
7001
7002         * scripts/check-textrel.awk: New file.
7003         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7004         (check-textrel-CFLAGS): Variable removed.
7005         (all-built-dso): Use := to define.o
7006         ($(all-built-dso:=.dyn)): New static pattern rule.
7007         (generated): Add those targets.
7008         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7009         * config.make.in (READELF): New substituted variable.
7010         * elf/check-textrel.c: File removed.
7011
7012 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7013
7014         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7015         allow.
7016         * conform/data/ctype.h-data [C99-based standards] (isblank):
7017         Expect function.
7018         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7019         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7020         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7021         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7022         Specify type.  Require positive value.
7023         (EILSEQ): Likewise.
7024         (ERANGE): Likewise.
7025         [ISO || POSIX] (EILSEQ): Do not expect.
7026         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7027         Specify type.  Require positive value.
7028         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7029         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7030         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7031         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7032         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7033         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7034         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7035         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7036         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7037         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7038         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7039         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7040         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7041         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7042         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7043         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7044         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7045         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7046         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7047         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7048         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7049         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7050         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7051         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7052         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7053         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7054         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7055         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7056         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7057         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7058         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7059         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7060         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7061         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7062         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7063         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7064         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7065         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7066         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7067         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7068         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7069         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7070         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7071         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7072         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7073         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7074         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7075         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7076         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7077         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7078         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7079         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7080         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7081         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7082         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7083         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7084         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7085         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7086         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7087         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7088         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7089         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7090         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7091         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7092         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7093         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7094         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7095         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7096         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7097         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7098         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7099         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7100         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7101         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7102         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7103         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7104         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7105         Require >= 2.
7106         (FLT_ROUNDS): Expect as macro, not constant.
7107         (FLT_MANT_DIG): Use macro-int-constant.
7108         (DBL_MANT_DIG): Likewise.
7109         (LDBL_MANT_DIG): Likewise.
7110         (FLT_DIG): Likewise.
7111         (DBL_DIG): Likewise.
7112         (LDBL_DIG): Likewise.
7113         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7114         (DBL_MIN_EXP): Likewise.
7115         (LDBL_MIN_EXP): Likewise.
7116         (FLT_MAX_EXP): Use macro-int-constant.
7117         (DBL_MAX_EXP): Likewise.
7118         (LDBL_MAX_EXP): Likewise.
7119         (FLT_MAX_10_EXP): Likewise.
7120         (DBL_MAX_10_EXP): Likewise.
7121         (LDBL_MAX_10_EXP): Likewise.
7122         (FLT_MAX): Use macro-constant.
7123         (DBL_MAX): Likewise.
7124         (LDBL_MAX): Likewise.
7125         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7126         (DBL_EPSILON): Likewise.
7127         (LDBL_EPSILON): Likewise.
7128         (FLT_MIN): Likewise.
7129         (DBL_MIN): Likewise.
7130         (LDBL_MIN): Likewise.
7131         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7132         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7133         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7134         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7135         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7136         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7137         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7138         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7139         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7140         [ISO11] (FLT_TRUE_MIN): Likewise.
7141         [ISO11] (LDBL_TRUE_MIN): Likewise.
7142         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7143         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7144         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7145         (SCHAR_MAX): Likewise.
7146         (UCHAR_MAX): Likewise.
7147         (CHAR_MIN): Likewise.
7148         (CHAR_MAX): Likewise.
7149         (MB_LEN_MAX): Use macro-int-constant.
7150         (SHRT_MIN): Use macro-int-constant.  Specify type.
7151         (SHRT_MAX): Likewise.
7152         (USHRT_MAX): Likewise.
7153         (INT_MAX): Likewise.
7154         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7155         bound negative.
7156         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7157         bound with "U".
7158         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7159         bound with "L".
7160         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7161         bound negative.  Suffix upper bound with "L".
7162         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7163         bound with "UL".
7164         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7165         Specify type.
7166         [C99-based standards] (LLONG_MAX): Likewise.
7167         [C99-based standards] (ULLONG_MAX): Likewise.
7168         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7169         == 0.
7170         [ISO11] (max_align_t): Require type.
7171         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7172
7173         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7174         from $CFLAGS, without defining away __attribute__ calls.
7175         (checknamespace): Use $CFLAGS_namespace.
7176
7177         * conform/conformtest.pl (@keywords): Only include C99 keywords
7178         for standards based on C99 or C11.
7179
7180         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7181         Disable tests.
7182         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7183         UNIX98]: Likewise.
7184
7185         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7186         usability of symbols in #if.
7187
7188         * conform/conformtest.pl: If macro or constant types start
7189         "promoted:", expect the symbol to be of the following type
7190         promoted by the integer promotions.
7191
7192         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7193         in one place.  Also handle "macro-constant".
7194
7195         * conform/conformtest.pl: Only accept expected macro values with
7196         "==".  Parse all "macro" lines in one place.
7197         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7198
7199         * conform/conformtest.pl: Handle braced types on "constant" lines
7200         instead of handling "typed-constant".
7201         * conform/data/signal.h-data: Use "constant" instead of
7202         "typed-constant".
7203
7204         * conform/conformtest.pl: Handle "optional-" at start of lines in
7205         one place rather than duplicating several cases.  Handle each
7206         format of "macro" line with initial "optional-".
7207
7208         * conform/conformtest.pl: Only accept expected constant or
7209         optional-constant values with "==".  Parse all "constant" lines in
7210         one place.  Parse all "optional-constant" lines in one place.
7211         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7212         * conform/data/fmtmsg.h-data: Likewise.
7213         * conform/data/netinet/in.h-data: Likewise.
7214         * conform/data/tar.h-data: Likewise.
7215         * conform/data/limits.h-data: Use "==" form on "constant" and
7216         "optional-constant" lines.
7217
7218         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7219         Use -std=c99 for XOPEN2K.
7220         (@knownproblems): Remove.
7221         (newtoken): Don't check %isknown.
7222
7223         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7224         Do not expect macro.
7225         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7228         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7229         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7230         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7231         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7232         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7233         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7234         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7235         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7236         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7237         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7238         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7239         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7240         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7241         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7242         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7243         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7244         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7245         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7246         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7247         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7248         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7249         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7250         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7251         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7252         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7253         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7254         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7255         [XPG3] (acosh): Likewise.
7256         [XPG3] (asinh): Likewise.
7257         [XPG3] (atanh): Likewise.
7258         [XPG3] (cbrt): Likewise.
7259         [XPG3] (expm1): Likewise.
7260         [XPG3] (ilogb): Likewise.
7261         [XPG3] (log1p): Likewise.
7262         [XPG3] (logb): Likewise.
7263         [XPG3] (nextafter): Likewise.
7264         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7265         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7266         [XPG3] (remainder): Likewise.
7267         [XPG3] (rint): Likewise.
7268         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7275         [UNIX98 || XOPEN2K] (scalb): Expect.
7276         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7277         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7295         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7296         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7297         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7298         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7299         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7300         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7301         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7302         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7303         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7304         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7305         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7306         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7307         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7308         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7309         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7310         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7311         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7312         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7313         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7314         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7315         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7316         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7317         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7318         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7319         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7320         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7321         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7322         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7323         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7324         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7325         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7326         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7327         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7328         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7329         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7330         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7331         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7332         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7333         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7334         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7335         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7336         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7337         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7338         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7339         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7340         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7341         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7342         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7343         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7344         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7345         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7346         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7347         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7348         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7349         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7350         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7351         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7352         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7353         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7354         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7355         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7356         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7357         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7358         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7359         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7360         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7361         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7362         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7363         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7364         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7365         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7366         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7367         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7368         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7369         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7370         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7371         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7372         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7373         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7374         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7375         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7376         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7377         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7378         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7379         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7380         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7381         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7382         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7383         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7384         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7385         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7386         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7387         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7388         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7389         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7390         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7391         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7392         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7393         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7394         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7395         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7396         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7397         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7398         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7399         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7400         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7401         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7402         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7403         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7404         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7405         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7406         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7407         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7408         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7409         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7410         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7411         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7412         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7413
7414         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7415         _XOPEN_SOURCE_EXTENDED for XPG4.
7416
7417         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7418
7419         * Makeconfig (localtime): Remove variable.
7420         (inst_localtime-file): Likewise.
7421
7422 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7423
7424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7425         Update.
7426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7427         Update.
7428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7429         Update.
7430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7431         Update.
7432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7433         Update.
7434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7435         Update.
7436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7437         Update.
7438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7439         Update.
7440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7441         Update.
7442
7443 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7444
7445         [BZ #2550]
7446         [BZ #2570]
7447         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7448         comparisons to determine direction to adjust input.
7449         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7450         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7451         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7452         Likewise.
7453         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7454         Likewise.
7455         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7456         Likewise.
7457         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7458         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7459         Likewise.
7460         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7461         Likewise.
7462         * math/libm-test.inc (nexttoward_test): Add more tests.
7463
7464 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7465
7466         [BZ #14040]
7467         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7468         in version GLIBC_2.1, not GLIBC_2.0.
7469         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7470         Likewise.
7471
7472 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7473
7474         [BZ #13942]
7475         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7476         (1 - x) * (1 + x).
7477         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7478         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7479         * math/libm-test.inc (acos_test): Add more tests.
7480         (asin_test): Likewise.
7481         * sysdeps/i386/fpu/libm-test-ulps: Update.
7482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7483
7484         [BZ #14034]
7485         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7486         of square root.
7487         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7488         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7489         * math/libm-test.inc (acos_test_tonearest): New function.
7490         (acos_test_towardzero): Likewise.
7491         (acos_test_downward): Likewise.
7492         (acos_test_upward): Likewise.
7493         (asin_test_tonearest): Likewise.
7494         (asin_test_towardzero): Likewise.
7495         (asin_test_downward): Likewise.
7496         (asin_test_upward): Likewise.
7497         (main): Call the new functions.
7498         * sysdeps/i386/fpu/libm-test-ulps: Update.
7499         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7500
7501         [BZ #13884]
7502         [BZ #13924]
7503         * math/e_exp10.c: Include <float.h>.
7504         (__ieee754_exp10): Handle underflow here rather than multiplying
7505         large negative argument by M_LN10.
7506         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7507         of __ieee754_expf.
7508         * math/e_exp10l.c: Include <float.h>.
7509         (__ieee754_exp10l): Handle underflow here rather than multiplying
7510         large negative argument by M_LN10l.
7511         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7512         spurious overflow exception on underflow.
7513
7514 2012-04-29  Marek Polacek  <polacek@redhat.com>
7515
7516         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7517         (__fortify_function): New macro.
7518         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7519         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7520         __extern_always_inline.
7521         * libio/bits/stdio2.h: Likewise.
7522         * libio/bits/stdio.h: Likewise.
7523         * string/string.h: Likewise.
7524         * string/bits/string3.h: Likewise.
7525         * include/stdio.h: Likewise.
7526         * stdlib/bits/stdlib.h: Likewise.
7527         * stdlib/stdlib.h: Likewise.
7528         * rt/bits/mqueue2.h: Likewise.
7529         * rt/mqueue.h: Likewise.
7530         * posix/bits/unistd.h: Likewise.
7531         * posix/unistd.h: Likewise.
7532         * io/bits/poll2.h: Likewise.
7533         * io/bits/fcntl2.h: Likewise.
7534         * io/fcntl.h: Likewise.
7535         * io/sys/poll.h: Likewise.
7536         * misc/bits/syslog.h: Likewise.
7537         * misc/bits/syslog-ldbl.h: Likewise.
7538         * misc/sys/syslog.h: Likewise.
7539         * socket/bits/socket2.h: Likewise.
7540         * socket/sys/socket.h: Likewise.
7541         * debug/tst-chk1.c: Likewise.
7542         * wcsmbs/bits/wchar2.h: Likewise.
7543         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7544         * wcsmbs/wchar.h: Likewise.
7545
7546 2012-04-29  Andreas Jaeger  <aj@suse.de>
7547
7548         * Makerules (tests): Remove enable-check-abi protection.
7549         (check-abi-warn): Remove.
7550         (check-abi-%): Remove check-abi-warn usage.
7551
7552         * configure.in: Remove check-abi configure option.
7553         * configure: Regenerated.
7554         * config.make.in (enable-check-abi): Remove.
7555
7556 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7557
7558         [BZ #14033]
7559         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7560         double functions to double *_finite functions.
7561
7562         [BZ #13941]
7563         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7564         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7565         LDBL_MIN_EXP.
7566         * stdio-common/Makefile (tests): Add tst-sprintf3.
7567         * stdio-common/tst-sprintf3.c: New file.
7568
7569         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7570         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7571
7572 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7573
7574         * conform/conformtest.pl: Remove duplicate typed-constant
7575         handling.
7576
7577 2012-04-28  David S. Miller  <davem@davemloft.net>
7578
7579         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7580         (check-abi-%): Remove AWK script prerequisite and explicit
7581         abilist directory.
7582         (check-abi): Rewrite to just diff the symlist with the abilist.
7583         (config-tls, config-abi-config): Delete, no longer used.
7584         (update-abi-%): Remove AWK script and explicit abilist directory.
7585         (update-abi): Rewrite to simply compare and conditionally copy the
7586         symlist and the sysdep abilist file.  Remove update-abi-config
7587         checks.
7588         * abilist/ld.abilist: Remove.
7589         * abilist/libBrokenLocale.abilist: Remove.
7590         * abilist/libanl.abilist: Remove.
7591         * abilist/libcrypt.abilist: Remove.
7592         * abilist/libdl.abilist: Remove.
7593         * abilist/librt.abilist: Remove.
7594         * abilist/libthread_db.abilist: Remove.
7595         * abilist/libutil.abilist: Remove.
7596         * scripts/extract-abilist.awk: Remove.
7597         * scripts/merge-abilist.awk: Remove.
7598         * sysdeps/generic/libcidn.abilist: New file.
7599         * sysdeps/generic/libnss_compat.abilist: New file.
7600         * sysdeps/generic/libnss_db.abilist: New file.
7601         * sysdeps/generic/libnss_dns.abilist: New file.
7602         * sysdeps/generic/libnss_files.abilist: New file.
7603         * sysdeps/generic/libnss_hesiod.abilist: New file.
7604         * sysdeps/generic/libnss_nis.abilist: New file.
7605         * sysdeps/generic/libnss_nisplus.abilist: New file.
7606         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7607         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7608         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7609         file.
7610         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7611         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7612         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7613         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7614         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7615         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7616         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7617         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7618         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7619         file.
7620         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7621         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7622         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7623         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7624         file.
7625         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7626         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7627         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7628         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7629         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7630         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7631         file.
7632         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7633         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7634         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7635         file.
7636         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7637         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7638         New file.
7639         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7640         New file.
7641         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7642         New file.
7643         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7644         New file.
7645         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7646         New file.
7647         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7648         New file.
7649         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7650         New file.
7651         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7652         New file.
7653         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7654         New file.
7655         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7656         New file.
7657         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7658         New file.
7659         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7660         New file.
7661         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7662         New file.
7663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7664         file.
7665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7666         New file.
7667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7668         New file.
7669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7670         file.
7671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7672         New file.
7673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7674         New file.
7675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7676         file.
7677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7678         New file.
7679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7680         New file.
7681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7682         New file.
7683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7684         New file.
7685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7686         New file.
7687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7688         New file.
7689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7690         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7691         file.
7692         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7693         New file.
7694         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7695         file.
7696         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7697         file.
7698         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7699         file.
7700         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7701         file.
7702         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7703         file.
7704         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7705         New file.
7706         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7707         file.
7708         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7709         file.
7710         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7711         New file.
7712         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7713         file.
7714         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7715         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7716         file.
7717         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7718         New file.
7719         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7720         file.
7721         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7722         file.
7723         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7724         file.
7725         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7726         file.
7727         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7728         file.
7729         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7730         New file.
7731         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7732         file.
7733         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7734         file.
7735         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7736         New file.
7737         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7738         file.
7739         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7740         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7741         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7742         file.
7743         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7744         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7745         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7746         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7747         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7748         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7749         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7750         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7751         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7752         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7753         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7754         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7755         file.
7756         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7757         New file.
7758         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7759         file.
7760         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7761         file.
7762         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7763         file.
7764         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7765         file.
7766         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7767         file.
7768         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7769         New file.
7770         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7771         New file.
7772         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7773         file.
7774         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7775         New file.
7776         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7777         file.
7778         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7779         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7780         file.
7781         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7782         New file.
7783         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7784         file.
7785         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7786         file.
7787         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7788         file.
7789         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7790         file.
7791         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7792         file.
7793         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7794         New file.
7795         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7796         New file.
7797         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7798         file.
7799         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7800         New file.
7801         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7802         file.
7803
7804 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7805
7806         * conform/conformtest.pl: Fix typo in handling typed-constant from
7807         allow-header.
7808
7809 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7810
7811         * README: Cut down references to pre-2.6 Linux kernels and
7812         Linuxthreads.  Update lists of configurations in libc and ports
7813         and sort alphabetically.  Say "or newer" with Linux kernel version
7814         requirements.
7815
7816         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7817
7818 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7819
7820         [BZ #887]
7821         * math/libm-test.inc (logb_test_downward): New test to expose
7822         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7823         rounding mode.
7824
7825 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7826
7827         [BZ #14027]
7828         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7829         to be done.
7830         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7831         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7832
7833 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7834
7835         * sysdeps/unix/i386/brk.S: Remove file.
7836         * sysdeps/unix/i386/dl-brk.S: Likewise.
7837         * sysdeps/unix/i386/pipe.S: Likewise.
7838         * sysdeps/unix/i386/sigreturn.S: Likewise.
7839         * sysdeps/unix/i386/syscall.S: Likewise.
7840         * sysdeps/unix/i386/vfork.S: Likewise.
7841         * sysdeps/unix/i386/wait.S: Likewise.
7842
7843         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7844         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7845
7846         * configure.in (arm*-none*): Do not allow without
7847         --enable-hacker-mode.
7848         (netbsd*): Remove case setting base_os.
7849         (386bsd*): Likewise.
7850         (freebsd*): Likewise.
7851         (bsdi*): Likewise.
7852         (osf*): Likewise.
7853         (sunos*): Likewise.
7854         (ultrix*): Likewise.
7855         (newsos*): Likewise.
7856         (dynix*): Likewise.
7857         (*bsd*): Likewise.
7858         (sysv*): Likewise.
7859         (isc*): Likewise.
7860         (esix*): Likewise.
7861         (sco*): Likewise.
7862         (minix*): Likewise.
7863         (irix4*): Likewise.
7864         (irix6*): Likewise.
7865         (solaris[2-9]*): Likewise.
7866         (none): Likewise.
7867         * configure: Regenerated.
7868
7869 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7870
7871         [BZ #11521]
7872         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7873         overflow or cancellation in calculating denominator.
7874         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7875         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7876         down expression to avoid unexpected rounding in newer GCCs.
7877         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7878
7879 2012-04-26  David S. Miller  <davem@davemloft.net>
7880
7881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7882         long-double compat symbols.
7883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7888         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7889         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7890         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7891         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7892         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7893         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7894         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7896
7897 2012-04-25  David S. Miller  <davem@davemloft.net>
7898
7899         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7900         HWCAP_* values only after the memory barriers have been defined.
7901         (atomic_full_barrier): Define.
7902         (atomic_read_barrier): Define.
7903         (atomic_write_barrier): Define.
7904
7905 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7906
7907         * shlib-versions: Add libgcc_s version information.
7908         * sysdeps/generic/libgcc_s.h: Remove.
7909         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7910         libgcc_s.h.
7911         * sysdeps/gnu/unwind-resume.c: Likewise.
7912         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7913
7914 2012-04-25  David S. Miller  <davem@davemloft.net>
7915
7916         * sysdeps/unix/sparc/brk.S: Delete.
7917         * sysdeps/unix/sparc/dl-brk.S: Delete.
7918         * sysdeps/unix/sparc/pipe.S: Delete.
7919         * sysdeps/unix/sparc/sysdep.S: Delete.
7920         * sysdeps/unix/sparc/sysdep.h: Delete.
7921         * sysdeps/unix/sparc/vfork.S: Delete.
7922         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7923         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7924         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7925         ret_ERRVAL, r0, r1, MOVE): Define.
7926         (JUMPTARGET): Remove.
7927         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7928         sysdeps/unix/sparc/sysdep.h
7929         (ENTRY, END): Remove.
7930         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7931
7932 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7933
7934         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7935         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7936         -DIS_IN_build.
7937
7938         * timezone/README: Update upstream location and email address for
7939         tzcode and tzdata.
7940         * timezone/zdump.c: Update from tzcode 2012b.
7941         * timezone/zic.c: Likewise.
7942
7943         * configure.in (libc_cv_as_needed): Remove test.
7944         * configure: Regenerated.
7945         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7946         conditional definition.
7947         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7948         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7949         * config.make.in (have-as-needed): Remove variable.
7950
7951 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7952             Paul Pluzhnikov  <ppluzhnikov@google.com>
7953
7954         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7955         strings correctly.
7956
7957 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7958
7959         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7960         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7961         * sysdeps/sh/strlen.S: Likewise.
7962
7963 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7964
7965         * sysdeps/unix/fork.S: Remove file.
7966         * sysdeps/unix/i386/fork.S: Likewise.
7967         * sysdeps/unix/sparc/fork.S: Likewise.
7968
7969         * sysdeps/unix/system.c: Remove file.
7970         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7971
7972         * sysdeps/unix/getegid.S: Remove file.
7973         * sysdeps/unix/geteuid.S: Likewise.
7974
7975 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7976
7977         * scripts/check-localplt.awk: New file.
7978         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7979         of diff.
7980         * scripts/data/localplt-generic.data: Add a comment.
7981
7982         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7983         NODE when __dir_mkfile failed.
7984         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7985         Reported by Ludovic Courtès <ludo@gnu.org>.
7986
7987 2012-04-24  Andreas Jaeger  <aj@suse.de>
7988
7989         * Makerules (common-clean): Also remove gen-as-const-headers
7990         files.
7991
7992 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7993
7994         * Makerules (native-compile): Do not change working directory for
7995         build.  Use $(OUTPUT_OPTION) in command.
7996         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7997
7998 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7999
8000         [BZ #13886]
8001         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8002         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8003         * math/libm-test.inc (floor_test): Add more tests.
8004         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8005
8006 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8007
8008         * sysdeps/unix/getdents.c: Remove file.
8009         * sysdeps/unix/sysv/getdents.c: Likewise.
8010         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8011
8012         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8013         sysdeps/unix/mman/syscalls.list.
8014         (mmap): Likewise.
8015         (mprotect): Likewise.
8016         (msync): Likewise.
8017         (munmap): Likewise.
8018         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8019         * sysdeps/unix/mman/syscalls.list: Remove.
8020         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8021
8022         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8023         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8024         * configure: Regenerated.
8025         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8026         $(libgcc_s_suffix).
8027         * config.make.in (libgcc_s_suffix): Remove variable.
8028
8029 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8030
8031         * sysdeps/unix/sysv/gethostname.c: Move to ...
8032         * sysdeps/posix/gethostname.c: ... here.
8033
8034         * sysdeps/unix/execve.S: Remove file.
8035
8036         * sysdeps/unix/_exit.S: Remove file.
8037
8038 2012-04-23  Andreas Jaeger  <aj@suse.de>
8039
8040         [BZ #13739]
8041         * manual/Makefile: Remove make dist support, there's no
8042         need for a stand-alone documentation tar ball.
8043         (TEXI2DVI): Define always, it's not in Makeconfig.
8044         (dist): Removed.
8045         (tar-it): Removed.
8046         (edition): Removed.
8047         (glibc-doc-$(edition).tar): Removed
8048         (%.Z): Removed.
8049         (%.gz): Removed.
8050         (%.uu): Removed.
8051         (ETAGS): Remove, it's in Makeconfig.
8052         (move-if-change): Remove, it's in Makeconfig.
8053
8054 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8055
8056         [BZ #13970]
8057         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8058         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8059         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8060         (strtod_l, strtof_l, strtold_l): Remove __wur.
8061         It is not necessarily an error to ignore strtol's return value.
8062         One can reliably look at the stored endptr to decide whether
8063         the number had valid syntax.
8064
8065 2012-04-21  Andreas Jaeger  <aj@suse.de>
8066
8067         [BZ #13739]
8068         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8069
8070 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8071
8072         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8073         * sysdeps/unix/sysv/Versions: Remove file.
8074
8075 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8076
8077         [BZ #13927]
8078         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8079
8080 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8081
8082         [BZ #7064]
8083         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8084         version from __vm86.
8085
8086 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8087
8088         * sysdeps/unix/common/lxstat.c: Remove file.
8089         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8090
8091         * sysdeps/unix/sysv/Makefile: Remove file.
8092
8093         * sysdeps/unix/sysv/direct.h: Remove file.
8094
8095         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8096         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8097         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8098         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8099         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8100         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8101         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8102
8103         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8104
8105         * sysdeps/unix/xmknod.c: Remove file.
8106         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8107
8108         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8109
8110         * sysdeps/unix/sysv/i386/time.S: Remove file.
8111
8112         * sysdeps/unix/fxstat.c: Remove file.
8113         * sysdeps/unix/xstat.c: Likewise.
8114         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8115
8116         * sysdeps/unix/sysv/sigaction.c: Remove file.
8117
8118         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8119         (sysdep_headers): Remove variable.
8120         [termio.h not in sysdep_headers] (generated): Likewise.
8121         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8122         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8123         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8124         * sysdeps/unix/sysv/tcflow.c: Likewise.
8125         * sysdeps/unix/sysv/tcflush.c: Likewise.
8126         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8127         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8128         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8129         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8130         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8131
8132         * sysdeps/unix/siglist.c: Remove file.
8133
8134         * sysdeps/unix/getppid.S: Remove file.
8135
8136         * sysdeps/unix/mkdir.c: Remove file.
8137         * sysdeps/unix/rmdir.c: Likewise.
8138
8139 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8140
8141         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8142         ERR_MAX value.
8143         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8144         errlist-compat value.
8145
8146 2012-04-18  David S. Miller  <davem@davemloft.net>
8147
8148         * sysdeps/generic/memcopy.h (reg_char): Delete.
8149         * debug/strcat_chk.c: Use char, not reg_char.
8150         * debug/strcpy_chk.c: Likewise.
8151         * debug/strncat_chk.c: Likewise.
8152         * debug/strncpy_chk.c: Likewise.
8153         * string/memchr.c: Likewise.
8154         * string/memrchr.c: Likewise.
8155         * string/rawmemchr.c: Likewise.
8156         * string/strcat.c: Likewise.
8157         * string/strchr.c: Likewise.
8158         * string/strchrnul.c: Likewise.
8159         * string/strcmp.c: Likewise.
8160         * string/strcpy.c: Likewise.
8161         * string/strncat.c: Likewise.
8162         * string/strncmp.c: Likewise.
8163         * string/strncpy.c: Likewise.
8164
8165 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8166
8167         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8168         __builtin_memcopy is called when src and dest ranges are known to not
8169         overlap.
8170
8171 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8172
8173         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8174         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8175         fwd_align_merge macro call.
8176         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8177         bwd_align_merge macro call.
8178         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8179
8180 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8181
8182         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8183         bwd_align_merge macros.
8184         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8185         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8186         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8187
8188 2012-04-18  David S. Miller  <davem@davemloft.net>
8189
8190         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8191
8192 2012-04-18  Andreas Jaeger  <aj@suse.de>
8193
8194         [BZ# 6794]
8195         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8196         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8197         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8198
8199         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8200         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8201         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8202
8203         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8204         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8205         Adjust for changed ldbl-128 files.
8206
8207         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8208         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8209         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8210
8211 2012-04-17  David S. Miller  <davem@davemloft.net>
8212
8213         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8214
8215 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8216
8217         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8218         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8219         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8220         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8221         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8222         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8223
8224 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8225
8226         [BZ #6794]
8227         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8228         * math/libm-test.inc: Add ilogb errno and exception tests.
8229         * math/w_ilogb.c: New file: ilogb wrapper.
8230         * math/w_ilogbf.c: New file: ilogbf wrapper.
8231         * math/w_ilogbl.c: New file: ilogbl wrapper.
8232         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8233         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8234         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8235         exception being thrown with 0.0 as argument.
8236         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8237         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8238         exception being thrown with 0.0 as argument.
8239         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8240         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8241         exception being thrown with 0.0 as argument.
8242         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8243         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8244         exception being thrown with 0.0 as argument.
8245         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8246         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8247         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8248         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8249         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8250         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8251         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8252         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8253         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8254
8255 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8256
8257         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8258         with altivec.
8259
8260 2012-04-16  Marek Polacek  <polacek@redhat.com>
8261
8262         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8263
8264 2012-04-16  Marek Polacek  <polacek@redhat.com>
8265
8266         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8267         operands of fdivp instruction.
8268
8269 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8270
8271         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8272         * elf/tst-auditmod3b.c: Likewise.
8273         * elf/tst-auditmod4b.c: Likewise.
8274         * elf/tst-auditmod5b.c: Likewise.
8275         * elf/tst-auditmod6b.c: Likewise.
8276         * elf/tst-auditmod6c.c: Likewise.
8277         * elf/tst-auditmod7b.c: Likewise.
8278         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8279         * sysdeps/x86_64/preconfigure.in: Likewise.
8280         * sysdeps/x86_64/preconfigure: Regenerated.
8281
8282 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8283
8284         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8285         __ILP32__.
8286
8287 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8288
8289         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8290         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8291
8292 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8293
8294         [BZ #13973]
8295         * locale/iso-639.def: Fix gl language name. Spotted by
8296         Yaron Shahrabani.
8297
8298 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8299
8300         [BZ #2074]
8301         * libio/libio.h (__io_write_fn): Update comment.
8302
8303 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8304
8305         [BZ #2074]
8306         * stdio.texi (Hook Functions): The user provided writer function
8307         is not allowed to return -1.
8308
8309 2012-04-11  David S. Miller  <davem@davemloft.net>
8310
8311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8312
8313 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8314
8315         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8316         Add a leading slash to rtkaio.
8317
8318 2012-04-11  Jim Meyering  <meyering@redhat.com>
8319
8320         [BZ #11959]
8321         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8322         It is not necessarily an error to ignore fwrite's return
8323         value.  One can reliably use ferror to test for errors after
8324         the fact.
8325
8326 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8327
8328         * bits/types.h (__snseconds_t): New type.
8329         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8330
8331         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8332         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8333         (__SNSECONDS_T_TYPE): Likewise.
8334         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8335         (__SNSECONDS_T_TYPE): Likewise.
8336         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8337         (__SNSECONDS_T_TYPE): Likewise.
8338
8339 2012-04-10  Andreas Jaeger  <aj@suse.de>
8340
8341         [BZ #2636]
8342         * manual/time.texi (Processor Time): Return type of times is
8343         elapsed real time since an arbitrary point in the past.
8344         (CPU Time): Move CLK_TCK from here...
8345         (Processor Time): ...to here.  Correct description.
8346         * manual/conf.texi (Constants for Sysconf): Correct description of
8347         _SC_CLK_TCK.
8348
8349 2012-04-10  David S. Miller  <davem@davemloft.net>
8350
8351         [BZ #13967]
8352         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8353         where the is a gap between DT_REL(A) and DT_JMPREL.
8354
8355 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8356
8357         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8358         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8359         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8360
8361 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8362
8363         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8364         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8365         (dl_main): Handle --inhibit-cache.
8366         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8367         _dl_inhibit_cache.
8368         * elf/dl-load.c (_dl_map_object): Use it.
8369         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8370
8371 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8372
8373         [BZ #13872]
8374         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8375         (__ieee754_powl): Saturate large exponents rather than testing for
8376         overflow of y*log2(x).
8377         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8378         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8379         exceptions.
8380
8381         [BZ #11521]
8382         * math/s_ctan.c: Include <float.h>.
8383         (__ctan): Avoid internal overflow or cancellation in calculating
8384         denominator.
8385         * math/s_ctanf.c: Likewise.
8386         * math/s_ctanl.c: Likewise.
8387         * math/s_ctanh.c: Likewise.
8388         * math/s_ctanhf.c: Likewise.
8389         * math/s_ctanhl.c: Likewise.
8390         * math/libm-test.inc (ctan_test): Add more tests.
8391         (ctanh_test): Likewise.
8392         * sysdeps/i386/fpu/libm-test-ulps: Update.
8393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8394
8395 2012-04-09  Andreas Jaeger  <aj@suse.de>
8396
8397         [BZ #6894]
8398         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8399         is an optional BSD extension.
8400
8401         [BZ #10254]
8402         * manual/stdio.texi (Opening Streams): Document additional fopen
8403         parameters.
8404
8405 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8406
8407         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8408         %eax without telling the compiler.
8409
8410 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8411
8412         [BZ # 13963]
8413         * manual/install.texi: Use sourceware.org.
8414
8415 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8416
8417         [BZ #13873]
8418         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8419         (__ieee754_pow): Generate overflow and underflow using huge*huge
8420         and tiny*tiny rather than just returning constant infinity or zero
8421         for large exponents.
8422         * math/libm-test.inc (pow_test): Require overflow exceptions for
8423         applicable cases of large exponents.
8424
8425         [BZ #706]
8426         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8427         (__ieee754_pow): Use iterative multiplication algorithm only for
8428         integer exponents with absolute value below 1024.  Check for odd
8429         integer exponents when using algorithm for real exponents.
8430         * math/libm-test.inc (pow_test): Add more tests.
8431         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8432
8433 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8434
8435         [BZ #13705]
8436         * math/libm-test.inc (exp_test): Do not allow overflow exception
8437         on underflow test.
8438
8439 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8440
8441         [BZ #13705]
8442         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8443         instead of __kernel_standard_f.
8444
8445 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8446
8447         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8448         * sysdeps/x86_64/memset_chk.S: Likewise.
8449
8450 2012-04-08  Andreas Jaeger  <aj@suse.de>
8451
8452         [BZ #10153]
8453         * manual/startup.texi (Environment Access): Describe return value
8454         for putenv and setenv.
8455
8456         [BZ #6895]
8457         * manual/filesys.texi (Directory Entries): Add description for
8458         DT_LNK.
8459
8460         [BZ #6890]
8461         * manual/filesys.texi (Directory Entries): Clarify that it's file
8462         system not operating system in the description of DT_UNKNOWN.
8463
8464         [BZ #6578]
8465         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8466
8467 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8468
8469         [BZ #6649]
8470         * manual/llio.texi (Opening and Closing Files): Add cross
8471         reference to explain mode argument.
8472
8473 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8474
8475         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8476         * sysdeps/x86_64/memset_chk.S: Likewise.
8477
8478 2012-04-07  David S. Miller  <davem@davemloft.net>
8479
8480         * elf/elf.h (R_SPARC_WDISP10): Define.
8481         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8482         R_SPARC_SIZE32.
8483         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8484         R_SPARC_SIZE64 and R_SPARC_H34.
8485
8486 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8487
8488         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8489         conditions and remove no longer applicable assertion.
8490
8491 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8492
8493         * bits/byteswap.h: Include <features.h>.
8494         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8495         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8496
8497 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8498
8499         * bits/byteswap.h (__bswap_16): Removed.
8500         Include <bits/byteswap-16.h> to get __bswap_16.
8501         * sysdeps/i386/bits/byteswap.h: Likewise.
8502         * sysdeps/s390/bits/byteswap.h: Likewise.
8503         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8504         * bits/byteswap-16.h: New file.
8505         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8506         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8507         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8508         * string/Makefile (headers): Add bits/byteswap-16.h.
8509
8510 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8511
8512         [BZ #13895]
8513         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8514         extra indirection.
8515         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8516         * nss/tst-nss-static.c: New.
8517
8518 2012-04-06  Robert Millan  <rmh@gnu.org>
8519
8520         [BZ #6486]
8521         * manual/llio.texi (File Position Primitive): lseek
8522         refers to WHENCE when it really means OFFSET.
8523
8524 2012-04-06  Andreas Jaeger  <aj@suse.de>
8525
8526         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8527         strncmp declarations.
8528
8529         * abilist/libc.abilist: Add __poll and __ppoll.
8530
8531 2012-04-05  David S. Miller  <davem@davemloft.net>
8532
8533         * scripts/check-local-headers.sh: Accept a host triplet in the
8534         path matched by the exclude regexp.
8535
8536         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8537         definition.
8538         * sysdeps/powerpc/powerpc32/dl-machine.h
8539         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8540         * sysdeps/s390/s390-32/dl-machine.h
8541         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8542         * sysdeps/sparc/sparc32/dl-machine.h
8543         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8544         * sysdeps/sparc/sparc64/dl-machine.h
8545         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8546
8547         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8548         lazy binding.
8549         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8550         undefined symbol errors.
8551
8552         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8553         DT_NEEDED entries.
8554
8555 2012-04-05  Michael Matz  <matz@suse.de>
8556
8557         [BZ #13592]
8558         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8559
8560 2012-04-05  Andreas Jaeger  <aj@suse.de>
8561
8562         [BZ #13908]
8563         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8564         comment.
8565
8566 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8567
8568         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8569         which ROUND is no valid rounding mode.
8570
8571 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8572
8573         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8574         read again.
8575         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8576
8577 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8578
8579         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8580         an exception using FPU order intentionally.
8581
8582 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8583
8584         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8585         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8586         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8587         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8588
8589 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8590
8591         [BZ #12340]
8592         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8593         EINVAL when BUFLEN is too smal.
8594
8595 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8596
8597         [BZ #13553]
8598         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8599         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8600
8601 2012-04-03  Andreas Jaeger  <aj@suse.de>
8602
8603         [BZ #13938]
8604         * manual/setjmp.texi (System V contexts): Fix sentence.
8605
8606         [BZ #13926]
8607         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8608         New macro for this case.
8609         [!__GNUC__] (__bswap_64): New inline function for this case.
8610         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8611         * bits/byteswap.h: Likewise.
8612         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8613         ull, guard with __GLIBC_HAVE_LONG_LONG.
8614
8615         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8616         __GLIBC_HAVE_LONG_LONG.
8617
8618         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8619         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8620
8621 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8622
8623         [BZ #13691]
8624         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8625         inptr and inend, rather than using last_ch.
8626
8627 2012-04-02  David S. Miller  <davem@davemloft.net>
8628
8629         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8630         * stdio-common/printf-parse.h (read_int): Change return type to
8631         'int', return -1 on INT_MAX overflow.
8632         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8633         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8634         overflows INT_MAX.  Check for overflow of in-format-string precision
8635         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8636         SIZE_MAX not INT_MAX for integer overflow test.
8637         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8638         skip the construct in the format string but do not record anything.
8639         * stdio-common/bug22.c: Adjust to test both width/prevision
8640         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8641         explicitly for proper errno values.
8642
8643 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8644
8645         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8646         CHAR_MAX.
8647         * string/test-strcmp.c [! WIDE]: Likewise.
8648         * time/tst-mktime2.c: Likewise for INT_MAX.
8649         * string/test-string.h: #include <sys/param.h> for MIN.
8650
8651         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8652         * sysdeps/i386/init-first.c (init): Likewise.
8653         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8654         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8655         * sysdeps/sh/init-first.c (init): Likewise.
8656
8657 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8658
8659         * po/ru.po: Update from translation team.
8660         * po/vi.po: Likewise.
8661
8662 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8663
8664         * resolv/nss_dns/dns-host.c: Merge copyright years.
8665
8666 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8667
8668         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8669         Optimize memcpy with prefetch if
8670         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8671         src, dst pointers have unequal 16 byte alignments.
8672
8673 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8674
8675         [BZ #13928]
8676         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8677         from a CNAME entry and return the minimum ttl for the query.
8678         (gaih_getanswer_slice): Likewise.
8679
8680 2012-03-30  Jeff Law  <law@redhat.com>
8681
8682         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8683         due to long keys.
8684         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8685         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8686
8687         * resolv/nss_dns/dns-host.c: Update copyright year.
8688
8689 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8690
8691         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8692         requests to save a system call.  Fix check that all bytes are sent.
8693
8694         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8695         comments for sendmmsg.
8696
8697 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8698
8699         [BZ #13691]
8700         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8701         with only 1 character between 0x0041 and 0x01b0.
8702         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8703         * wcsmbs/tst-mbsnrtowcs.c: New file.
8704
8705 2012-03-29  David S. Miller  <davem@davemloft.net>
8706
8707         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8708         small copies by hand.
8709
8710 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8711
8712         [BZ #13761]
8713         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8714         _nss_compat_initgroups_dyn): Fall back to malloc/free
8715         for large group memberships.
8716
8717 2012-03-28  David S. Miller  <davem@davemloft.net>
8718
8719         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8720         that branches into memcpy.
8721         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8722         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8723         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8724         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8725         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8726         bits.
8727         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8728         implementation too.
8729         * sysdeps/sparc/mempcpy.S: New file.
8730
8731         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8732         the IFUNC routine in the libc case.
8733         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8734
8735         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8736         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8737         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8738         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8739         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8740         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8741         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8742         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8743
8744         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8745         loop to 256 bytes instead of 64 bytes and fix test signedness.
8746
8747         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8748         * sysdeps/sparc/sparc32/Makefile: rather than here...
8749         * sysdeps/sparc/sparc64/Makefile: and here.
8750
8751 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8752
8753         * malloc/mallocbug.c: Avoid warnings about unused variables.
8754
8755 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8756
8757         [BZ #13760]
8758         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8759         in the right place. Discard and retry query if response is
8760         larger than input buffer size.
8761
8762 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8763
8764         [BZ #369]
8765         [BZ #2678]
8766         [BZ #3866]
8767         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8768         x for large integer exponent.
8769         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8770         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8771         sign of result as needed afterwards.
8772         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8773         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8774         result for underflowing pow the same as for overflow.
8775         (__kernel_standard_l): Handle powl overflow and underflow here
8776         rather than calling __kernel_standard.
8777         * math/libm-test.inc (pow_test): Add more tests.
8778
8779         [BZ #3868]
8780         [BZ #13879]
8781         [BZ #13910]
8782         [BZ #13911]
8783         [BZ #13912]
8784         [BZ #13913]
8785         [BZ #13915]
8786         [BZ #13916]
8787         [BZ #13917]
8788         [BZ #13918]
8789         [BZ #13919]
8790         [BZ #13920]
8791         [BZ #13921]
8792         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8793         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8794         (__kernel_standard_l): New function.
8795         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8796         __kernel_standard.
8797         * math/w_acosl.c (__acosl): Likewise.
8798         * math/w_asinl.c (__asinl): Likewise.
8799         * math/w_atan2l.c (__atan2l): Likewise.
8800         * math/w_atanhl.c (__atanhl): Likewise.
8801         * math/w_coshl.c (__coshl): Likewise.
8802         * math/w_exp10l.c (__exp10l): Likewise.
8803         * math/w_exp2l.c (__exp2l): Likewise.
8804         * math/w_fmodl.c (__fmodl): Likewise.
8805         * math/w_hypotl.c (__hypotl): Likewise.
8806         * math/w_j0l.c (__j0l, __y0l): Likewise.
8807         * math/w_j1l.c (__j1l, __y1l): Likewise.
8808         * math/w_jnl.c (__jnl, __ynl): Likewise.
8809         * math/w_lgammal.c (__lgammal): Likewise.
8810         * math/w_log10l.c (__log10l): Likewise.
8811         * math/w_log2l.c (__log2l): Likewise.
8812         * math/w_logl.c (__logl): Likewise.
8813         * math/w_powl.c (__powl): Likewise.
8814         * math/w_remainderl.c (__remainderl): Likewise.
8815         * math/w_scalbl.c (sysv_scalbl): Likewise.
8816         * math/w_sinhl.c (__sinhl): Likewise.
8817         * math/w_sqrtl.c (__sqrtl): Likewise.
8818         * math/w_tgammal.c (__tgammal): Likewise.
8819         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8820         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8821         * math/libm-test.inc (acos_test): Add more tests.
8822         (acosh_test): Likewise.
8823         (asin_test): Likewise.
8824         (atanh_test): Likewise.
8825         (exp_test): Likewise.
8826         (exp10_test): Likewise.
8827         (exp2_test): Likewise.
8828         (expm1_test): Likewise.
8829         (lgamma_test): Likewise.
8830         (log_test): Likewise.
8831         (log10_test): Likewise.
8832         (log1p_test): Likewise.
8833         (log2_test): Likewise.
8834         (pow_test): Do not allow some spurious overflow exceptions.
8835         (sqrt_test): Add more tests.
8836         (tgamma_test): Likewise.
8837         (y0_test): Likewise.
8838         (y1_test): Likewise.
8839         (yn_test): Likewise.
8840
8841 2012-03-27  Anton Blanchard  <anton@samba.org>
8842
8843         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8844         MAP_HUGETLB.
8845         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8846         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8847         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8848
8849 2012-03-27  David S. Miller  <davem@davemloft.net>
8850
8851         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8852
8853         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8854         have-as-vis3 check.
8855
8856 2012-03-27  Andreas Jaeger  <aj@suse.de>
8857
8858         * sysdeps/x86_64/elf/configure.in: Moved to ...
8859         * sysdeps/x86_64/configure.in: ... here.
8860         * sysdeps/x86_64/elf/start.S: Moved to ...
8861         * sysdeps/x86_64/start.S: ... here.
8862         * sysdeps/x86_64/elf/configure: Delete.
8863
8864         * sysdeps/x86_64/configure.in: Merge contents from
8865         sysdeps/i386/configure.in (without i686 check).
8866
8867         * sysdeps/i386/elf/Versions: Merge into ...
8868         * sysdeps/i386/Versions: ... this.
8869         * sysdeps/i386/elf/Versions: Delete file.
8870         * sysdeps/i386/elf/start.S: Moved to ...
8871         * sysdeps/i386/start.S: ...here.
8872         * sysdeps/i386/elf/configure.in: Merge into...
8873         * sysdeps/i386/configure.in: ...here.
8874         * sysdeps/i386/elf/configure.in: Delete file.
8875         * sysdeps/i386/elf/configure: Delete file.
8876
8877         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8878         * debug/backtracesyms.c: ... here.
8879         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8880         * debug/backtracesymsfd.c: ... here.
8881         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8882         * sysdeps/generic/ifunc-sel.h: ... here.
8883
8884         * sysdeps/unix/i386/start.c: Delete file.
8885         * sysdeps/unix/sparc/start.c: Delete file.
8886         * sysdeps/unix/start.c: Delete file.
8887
8888         * sysdeps/sh/elf/configure.in: Moved to ...
8889         * sysdeps/sh/configure.in: ... here.
8890         * sysdeps/sh/elf/start.S: Moved to ...
8891         * sysdeps/sh/start.S: ... here.
8892         * sysdeps/sh/elf/configure: Delete file.
8893
8894         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8895         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8896         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8897         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8898         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8899         * sysdeps/powerpc/powerpc64/start.S: here.
8900         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8901         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8902         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8903         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8904         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8905
8906         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8907         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8908         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8909         * sysdeps/powerpc/powerpc32/start.S: ... here.
8910         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8911         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8912         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8913
8914         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8915         * sysdeps/powerpc/ifunc-sel.h: ... here.
8916         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8917         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8918
8919         * sysdeps/sparc/elf/configure.in: Moved to ...
8920         * sysdeps/sparc/configure.in: ... here.
8921         * sysdeps/sparc/elf/configure: Delete file.
8922         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8923         * sysdeps/sparc/sparc32/start.S: ... here.
8924         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8925         * sysdeps/sparc/sparc64/start.S: ... here.
8926         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8927         * sysdeps/sparc/sparc32/Makefile: ... this.
8928         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8929         * sysdeps/sparc/sparc64/Makefile: ... this.
8930
8931         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8932         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8933         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8934         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8935         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8936         * sysdeps/s390/s390-32/setjmp.S: ... here.
8937         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8938         * sysdeps/s390/s390-32/configure.in: ... here.
8939         * sysdeps/s390/s390-32/elf/configure: Delete file.
8940         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8941         * sysdeps/s390/s390-32/start.S: ... here.
8942
8943         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8944         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8945         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8946         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8947         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8948         * sysdeps/s390/s390-64/setjmp.S: ... here.
8949         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8950         * sysdeps/s390/s390-64/configure.in: ... here
8951         * sysdeps/s390/s390-64/elf/configure: Delete file.
8952         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8953         * sysdeps/s390/s390-64/start.S: ... here.
8954         * sysdeps/s390/s390-64/elf/configure: Delete.
8955
8956         * configure.in: Remove support for elf directories in sysdeps.
8957
8958         * configure: Regenerated.
8959         * sysdeps/i386/configure: Regenerated.
8960         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8961         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8962         * sysdeps/s390/s390-32/configure: Regenerated.
8963         * sysdeps/s390/s390-64/configure: Regenerated.
8964         * sysdeps/sh/configure: Regenerated.
8965         * sysdeps/sparc/configure: Regenerated.
8966         * sysdeps/x86_64/configure: Regenerated.
8967
8968 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8969
8970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8971
8972         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8973         denormal result into account.
8974
8975 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8976
8977         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8978         Reported by Allan McRae <allan@archlinux.org>.
8979
8980 2012-03-23  Jeff Law  <law@redhat.com>
8981
8982         * nss/getnssent.c (__nss_getent): Fix typo.
8983
8984 2012-03-23  David S. Miller  <davem@davemloft.net>
8985
8986         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8987
8988 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8989
8990         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8991         to pad to uint64_t for each field.
8992         (dl_tls_index): Replace unsigned long with uint64_t.
8993
8994 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8995         Paul Pluzhnikov  <ppluzhnikov@google.com>
8996
8997         [BZ #6528]
8998         * grp/Makefile (otherlibs): Don't set it.
8999         * inet/Makefile (otherlibs): Likewise.
9000         * login/Makefile (otherlibs): Likewise.
9001         * nscd/Makefile (otherlibs): Likewise.
9002         * posix/Makefile (otherlibs): Likewise.
9003         * pwd/Makefile (otherlibs): Likewise.
9004         * rt/Makefile (otherlibs): Likewise.
9005         * sunrpc/Makefile (otherlibs): Likewise.
9006         * nss/Makefile (otherlibs): Likewise.
9007         Add libnss_files to routines and static-only-routines.
9008         ($(objpfx)getent): Remove rule.
9009         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9010         static-only-routines.
9011
9012 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9013
9014         [BZ #13892]
9015         * math/s_cexp.c: Include <float.h>.
9016         (__cexp): Handle exp result overflowing not necessarily
9017         overflowing both real and imaginary parts of result.
9018         * math/s_cexpf.c: Likewise.
9019         * math/s_cexpl.c: Likewise.
9020         * math/libm-test.inc (cexp_test): Add more tests.
9021         * sysdeps/i386/fpu/libm-test-ulps: Update.
9022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9023
9024 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9025
9026         * include/link.h (ELFW): New macro.
9027         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9028         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9029
9030 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9031
9032         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9033         with uint64_t.
9034
9035 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9036
9037         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9038         declaration.
9039         (struct La_x32_retval): Likewise.
9040
9041 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9042
9043         * sysdeps/x86_64/preconfigure.in: New file.
9044         * sysdeps/x86_64/preconfigure: New generated file.
9045
9046 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9047
9048         [BZ #13824]
9049         * math/e_exp2l.c: Include <float.h>.
9050         (__ieee754_exp2l): Handle overflow and underflow cases
9051         separately.  Only pass fractional part of argument to
9052         __ieee754_expl.
9053         * math/libm-test.inc (exp2_test): Add more tests.
9054
9055         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9056         negating x to take absolute value.
9057         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9058         Likewise.
9059         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9060         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9061         Likewise.
9062         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9063         computing low part if x was negated.
9064         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9065
9066 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9067
9068         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9069         la_x32_gnu_pltexit.
9070         (pltexit): Cast int_retval to ptrdiff_t.
9071         * elf/tst-auditmod3b.c: Likewise.
9072         * elf/tst-auditmod4b.c: Likewise.
9073         * elf/tst-auditmod5b.c: Likewise.
9074         * elf/tst-auditmod6b.c: Likewise.
9075         * elf/tst-auditmod6c.c: Likewise.
9076         * elf/tst-auditmod7b.c: Likewise.
9077
9078         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9079         and x32_gnu_pltexit.
9080
9081         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9082         __ELF_NATIVE_CLASS.
9083         (La_x32_regs): New macro.
9084         (La_x32_retval): Likewise.
9085         (la_x32_gnu_pltenter): New function prototype.
9086         (la_x32_gnu_pltexit): Likewise.
9087
9088 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9089
9090         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9091         exponent.
9092
9093         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9094
9095         * configure.in (libc_cv_cc_nofma): Check for option to disable
9096         generation of FMA instructions.
9097         * configure: Regenerate.
9098         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9099         * sysdeps/ieee754/dbl-64/Makefile: New file.
9100         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9101         Remove brandred-fma4.
9102         (CFLAGS-brandred-fma4.c): Remove.
9103         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9104         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9105         define.
9106         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9107         define.
9108
9109 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9110
9111         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9112         LLONG_MAX != LONG_MAX.
9113         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9114         (_fitoa_word): Likewise.
9115         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9116         LLONG_MAX != LONG_MAX.
9117         * stdio-common/_itowa.h: Include <_itoa.h>.
9118         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9119         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9120         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9121         only if not defined.
9122         (_ITOA_WORD_TYPE): Likewise.
9123         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9124         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9125
9126 2012-03-21  David S. Miller  <davem@davemloft.net>
9127
9128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9129
9130 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9131
9132         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9133         of x86_64 when setting libc_cv_slibdir, libdir and
9134         libc_cv_localedir.
9135         * sysdeps/unix/sysv/linux/configure: Regenerated.
9136
9137 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9138
9139         * manual/lang.texi (Old Varargs): Remove section.
9140         (How Variadic): Update menu.
9141         (va_start): Do not mention varargs.h.
9142
9143 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9144             Joseph Myers  <joseph@codesourcery.com>
9145
9146         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9147         link test.
9148         * configure: Regenerated.
9149
9150 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9151
9152         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9153         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9154         conformtest.pl
9155
9156 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9157
9158         * NOTES: Remove.
9159         * Makefile (files-for-dist): Remove NOTES.
9160         (NOTES): Remove rule.
9161         * README: Don't refer to NOTES.
9162         * manual/creature.texi: Don't include macros.texi.
9163         * manual/intro.texi (creature.texi): Remove comment referring to
9164         NOTES.
9165
9166         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9167         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9168         * configure: Regenerated.
9169         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9170         LIBC_TRY_CC_OPTION.
9171         (libc_cv_as_i686): Likewise.
9172         (libc_cv_cc_avx): Likewise.
9173         (libc_cv_cc_sse2avx): Likewise.
9174         (libc_cv_cc_fma4): Likewise.
9175         (libc_cv_cc_novzeroupper): Likewise.
9176         * sysdeps/i386/configure: Regenerated.
9177
9178         [BZ #13883]
9179         * sysdeps/i386/fpu/s_cexp.S: Remove.
9180         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9181         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9182         * math/libm-test.inc (cexp_test): Add more tests.
9183         * sysdeps/i386/fpu/libm-test-ulps: Update.
9184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9185
9186 2012-03-21  Allan McRae  <allan@archlinux.org>
9187
9188         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9189
9190 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9191
9192         [BZ #13871]
9193         * math/w_exp2.c: Do not include <float.h>.
9194         (o_threshold, u_threshold): Remove.
9195         (__exp2): Calculate result before checking finiteness and calling
9196         __kernel_standard.
9197         * math/w_exp2f.c: Likewise.
9198         * math/w_exp2l.c: Likewise.
9199         * math/libm-test.inc (exp2_test): Require overflow exception for
9200         1e6 input.
9201
9202         [BZ #3866]
9203         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9204         range of signed 64-bit integers before using fistpll.  Remove
9205         checks for whether integers fit in mantissa bits.
9206         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9207         the range of signed 32-bit integers before using fistpl.  Remove
9208         checks for whether integers fit in mantissa bits.
9209         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9210         (__ieee754_powl): Test for y outside the range of signed 64-bit
9211         integers before using fistpll.  Reduce 64-bit values to 63-bit
9212         ones as needed.
9213         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9214         divide-by-zero is raised for zero to large negative powers.
9215         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9216         (__ieee754_powl): Test for y outside the range of signed 64-bit
9217         integers before using fistpll.  Reduce 64-bit values to 63-bit
9218         ones as needed.
9219         * math/libm-test.inc (pow_test): Add more tests.
9220
9221 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9222
9223         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9224         <stdio-common/_itoa.h>.
9225         * debug/segfault.c: Likewise.
9226         * elf/dl-cache.c: Likewise.
9227         * elf/dl-minimal.c: Likewise.
9228         * elf/dl-misc.c: Likewise.
9229         * elf/dl-sysdep.c: Likewise.
9230         * elf/dl-version.c: Likewise.
9231         * elf/rtld.c: Likewise.
9232         * hurd/hurdsock.c: Likewise.
9233         * hurd/lookup-retry.c: Likewise.
9234         * malloc/malloc.c: Likewise.
9235         * malloc/mtrace.c: Likewise.
9236         * nscd/nscd_getgr_r.c: Likewise.
9237         * nscd/nscd_getpw_r.c: Likewise.
9238         * nscd/nscd_getserv_r.c: Likewise.
9239         * posix/getopt_init.c: Likewise.
9240         * posix/wordexp.c: Likewise.
9241         * stdio-common/_itoa.c: Likewise.
9242         * stdio-common/printf_fphex.c: Likewise.
9243         * stdio-common/vfprintf.c: Likewise.
9244         * string/_strerror.c: Likewise.
9245         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9246         * sysdeps/i386/i686/hp-timing.h: Likewise.
9247         * sysdeps/mach/_strerror.c: Likewise.
9248         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9249         * sysdeps/mach/hurd/sethostid.c: Likewise.
9250         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9251         * sysdeps/mach/xpg-strerror.c: Likewise.
9252         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9253         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9254         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9255         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9256         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9257         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9258         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9259         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9260         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9261         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9262         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9263         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9264         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9265         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9266         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9267         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9268         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9269         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9270         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9271         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9272         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9273
9274         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9275
9276         * stdio-common/_itoa.h: Moved to ...
9277         * sysdeps/generic/_itoa.h: Here.
9278
9279         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9280
9281         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9282         instead of "_itoa.h" and "_itowa.h".
9283         * stdio-common/vfprintf.: Likewise.
9284
9285 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9286
9287         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9288         <bits/wordsize.h>.
9289         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9290         (__signbit): Likwise.
9291         (llrintf): Likwise.
9292         (llrint): Likwise.
9293
9294 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9295
9296         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9297         __WORDSIZE != 64.
9298
9299 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9300
9301         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9302         OVERFLOW_EXCEPTION_OK.
9303         * math/libm-test.inc ("Philosophy"): Update comment about
9304         exception testing.
9305         (OVERFLOW_EXCEPTION): Define.
9306         (OVERFLOW_EXCEPTION_OK): Likewise.
9307         (INVALID_EXCEPTION_OK): Renumber.
9308         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9309         (IGNORE_ZERO_INF_SIGN): Likewise.
9310         (test_exceptions): Handle FE_OVERFLOW.
9311         (exp10_test): Expect overflow exceptions.
9312         (exp2_test): Likewise.
9313         (expm1_test): Likewise.
9314         (nextafter_test): Likewise.
9315         (pow_test): Likewise.
9316         (scalbn_test): Likewise.
9317         (scalbln_test): Likewise.
9318
9319 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9320
9321         * sysdeps/x86_64/bits/atomic.h
9322         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9323         64bit integer.
9324         (atomic_exchange_acq): Likewise.
9325         (__arch_exchange_and_add_body): Likewise.
9326         (__arch_add_body): Likewise.
9327         (atomic_add_negative): Likewise.
9328         (atomic_add_zero): Likewise.
9329
9330 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9331
9332         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9333         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9334
9335 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9336
9337         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9338         Check __x86_64__ instead of __WORDSIZE.
9339
9340 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9341
9342         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9343
9344 2012-03-19  David S. Miller  <davem@davemloft.net>
9345
9346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9347
9348         * sysdeps/sparc/fpu/fenv_private.h: New file.
9349         * sysdeps/sparc/fpu/math_private.h: Use it.
9350         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9351         Remove.
9352         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9353         (libc_feholdexcept_setroundl): Remove.
9354         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9355         Remove.
9356         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9357         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9358
9359 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9360
9361         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9362         int64_t instead of long int.
9363         (INSERT_WORDS64): Likwise.
9364
9365 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9366
9367         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9368         _Unwind_GetCFA return to _Unwind_Ptr first.
9369
9370 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9371
9372         [BZ #13629]
9373         * math/s_clog.c: Include <float.h>.
9374         (__clog): Scale large or subnormal inputs.
9375         * math/s_clogf.c: Likewise.
9376         * math/s_clogl.c: Likewise.
9377         * math/s_clog10.c: Include <float.h>.
9378         (M_LOG10_2): Define.
9379         (__clog10): Scale large or subnormal inputs.
9380         * math/s_clog10f.c: Likewise.
9381         * math/s_clog10l.c: Likewise.
9382         * math/libm-test.inc (clog_test): Add more tests.
9383         (clog10_test): Likewise.
9384         * sysdeps/i386/fpu/libm-test-ulps: Update.
9385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9386
9387         [BZ #11451]
9388         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9389         x and y.
9390         * math/libm-test.inc (atan2_test): Add another test.
9391
9392         * Makerules (common-objdir-compile): Remove.
9393         * sysdeps/unix/Makefile (config-generated): Do not add
9394         $(unix-generated) to variable.
9395         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9396         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9397         Remove rule.
9398         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9399         Likewise.
9400         [generic bits/local_lim.h] (before-compile): Do not append to
9401         variable.
9402         [generic bits/local_lim.h] (common-generated): Likewise.
9403         [generic sys/param.h] (before-compile): Do not append to variable.
9404         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9405         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9406         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9407         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9408         include.
9409         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9410         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9411         [generic sys/param.h] ($(addprefix
9412         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9413         [generic sys/param.h] (common-generated): Do not append to
9414         variable.
9415         [generic sys/param.h] (sysdep_headers): Likewise.
9416         [generic bits/errno.h] (before-compile): Do not append to
9417         variable.
9418         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9419         rule.
9420         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9421         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9422         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9423         [generic bits/errno.h] (common-generated): Do not append to
9424         variable.
9425         [generic bits/ioctls.h] (before-compile): Do not append to
9426         variable.
9427         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9428         rule.
9429         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9430         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9431         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9432         rule.
9433         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9434         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9435         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9436         [generic bits/ioctls.h] (common-generated): Do not append to
9437         variable.
9438         [generic sys/syscall.h] (syscall.h): Remove variable.
9439         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9440         rule.
9441         [generic sys/syscall.h] (before-compile): Do not append to
9442         variable.
9443         [generic sys/syscall.h] (common-generated): Likewise.
9444         * sysdeps/unix/errnos-tmpl.c: Remove file.
9445         * sysdeps/unix/errnos.awk: Likewise.
9446         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9447         * sysdeps/unix/ioctls.awk: Likewise.
9448         * sysdeps/unix/mk-local_lim.c: Likewise.
9449         * sysdeps/unix/snarf-ioctls: Likewise.
9450
9451 2012-03-19  Richard Henderson  <rth@twiddle.net>
9452
9453         * sysdeps/i386/fpu/fenv_private.h: New file.
9454         * sysdeps/i386/fpu/math_private.h: Use it.
9455         (math_opt_barrier, math_force_eval): Remove.
9456         (libc_feholdexcept_setround_53bit): Remove.
9457         (libc_feupdateenv_53bit): Remove.
9458         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9459         (math_opt_barrier, math_force_eval): Remove.
9460         (libc_feholdexcept): Remove.
9461         (libc_feholdexcept_setround): Remove.
9462         (libc_fetestexcept, libc_fesetenv): Remove.
9463         (libc_feupdateenv_test): Remove.
9464         (libc_feupdateenv, libc_feholdsetround): Remove.
9465         (libc_feresetround): Remove.
9466
9467         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9468         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9469
9470         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9471         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9472         (libc_feupdateenv_testl): New.
9473         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9474         (libc_feupdateenv_testf): New.
9475         (libc_feupdateenv): Use libc_feupdateenv_test.
9476         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9477         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9478
9479         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9480         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9481         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9482         (libc_feresetround_noex): New.
9483         (libc_feresetround_noexf): New.
9484         (libc_feresetround_noexl): New.
9485         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9486         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9487         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9488         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9489         SET_RESTORE_ROUND.
9490         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9491         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9492         (__cos): Likewise.
9493         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9494         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9495         SET_RESTORE_ROUND_NOEX.
9496         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9497         SET_RESTORE_ROUND_NOEXF.
9498         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9499         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9500         (libc_feholdsetroundf): New.
9501         (libc_feresetround, libc_feresetroundf): New.
9502
9503         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9504         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9505         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9506
9507         * sysdeps/generic/math_private.h: Include <fenv.h>.
9508         (default_libc_feholdexcept): New.
9509         (default_libc_feholdexcept_setround): New.
9510         (default_libc_fesetenv, default_libc_feupdateenv): New.
9511         (libc_feholdexcept): Only define if undefined.
9512         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9513         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9514         (libc_feholdexcept_setroundl): Likewise.
9515         (libc_feholdexcept_setround_53bit): Likewise.
9516         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9517         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9518         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9519         (libc_feupdateenv_53bit): Likewise.
9520         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9521         (libc_feholdexcept): Convert from macro to inline function.
9522         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9523         (libc_fesetenv, libc_feupdateenv): Likewise.
9524
9525         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9526         not previously defined.
9527         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9528         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9529         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9530         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9531         * sysdeps/ieee754/flt-32/math_private.h: New file.
9532         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9533         math_private.h below SET_FLOAT_WORD.
9534         (__isnan, __isinf_ns, __finite): Remove.
9535         (__isnanf, __isinf_nsf, __finitef): Remove.
9536
9537 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9538
9539         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9540
9541 2012-03-17  David S. Miller  <davem@davemloft.net>
9542
9543         [BZ #6471]
9544         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9545         for 2.16.
9546
9547 2012-03-16  David S. Miller  <davem@davemloft.net>
9548
9549         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9550         warnings.
9551
9552         [BZ #6471]
9553         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9554         properly.
9555         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9556         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9557         sysdep_routines when subdir is sysvipc.
9558         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9559         __getshmlba helper.
9560
9561         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9562
9563 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9564
9565         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9566         [__LP64__].
9567
9568 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9569
9570         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9571         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9572         (__lround): Renamed to ...
9573         (__llround): This.  Replace long int with long long int.
9574         Define lround functions as aliases of llround functions.
9575         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9576
9577 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9578
9579         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9580         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9581         adresses to uintptr_t.  Replace "long int" and "unsigned long
9582         int" with "greg_t" on va_arg.
9583
9584 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9585
9586         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9587         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9588
9589         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9590         Move e_machine check before EI_CLASS check.  Handle x32
9591         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9592         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9593         SKIP_EM_IA_64 and include
9594         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9595
9596         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9597         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9598         (add_system_dir): New macro.
9599
9600         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9601         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9602
9603 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9604
9605         [BZ #2551]
9606         [BZ #2552]
9607         [BZ #2553]
9608         [BZ #2554]
9609         [BZ #2562]
9610         [BZ #2563]
9611         [BZ #2565]
9612         [BZ #2566]
9613         [BZ #2576]
9614         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9615         (y0): Likewise.
9616         * math/w_j0f.c (j0f): Likewise.
9617         (y0f): Likewise.
9618         * math/w_j0l.c (__j0l): Likewise.
9619         (__y0l): Likewise.
9620         * math/w_j1.c (j1): Likewise.
9621         (y1): Likewise.
9622         * math/w_j1f.c (j1f): Likewise.
9623         (y1f): Likewise.
9624         * math/w_j1l.c (__j1l): Likewise.
9625         (__y1l): Likewise.
9626         * math/w_jn.c (jn): Likewise.
9627         (yn): Likewise.
9628         * math/w_jnf.c (jnf): Likewise.
9629         (ynf): Likewise.
9630         * math/w_jnl.c (__jnl): Likewise.
9631         (__ynl): Likewise.
9632         * math/libm-test.inc (j0_test): Add more tests.
9633         (j1_test): Likewise.
9634         (jn_test): Likewise.  Add trailing semicolon to existing test.
9635         (y0_test): Likewise.
9636         (y1_test): Likewise.
9637         * sysdeps/i386/fpu/libm-test-ulps: Update.
9638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9639
9640         [BZ #13851]
9641         [BZ #13854]
9642         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9643         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9644         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9645         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9646         (__tanl): Set errno for infinite argument.
9647         * sysdeps/i386/fpu/mptan.c: Remove.
9648         * sysdeps/i386/fpu/s_tan.S: Likewise.
9649         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9650         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9651         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9652         * math/libm-test.inc (tan_test): Add more tests and enable more
9653         tests for double and long double.
9654         * sysdeps/i386/fpu/libm-test-ulps: Update.
9655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9656
9657 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9658
9659         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9660         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9661
9662 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9663
9664         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9665         * configure.in: Use it for both main tree and add-ons.
9666         * configure: Regenerated.
9667
9668 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9669
9670         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9671
9672 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9673
9674         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9675         in comment.
9676
9677         [BZ #13851]
9678         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9679         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9680         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9681         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9682         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9683         infinite argument.
9684         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9685         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9686         != 0 for prec == 2.
9687         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9688         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9689         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9690         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9691         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9692         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9693         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9694         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9695         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9696         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9697         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9698         * math/libm-test.inc (cos_test): Add more tests and enable more
9699         tests for long double.
9700         (sin_test): Likewise.
9701         (sincos_test): Likewise.
9702         * sysdeps/i386/fpu/libm-test-ulps: Update.
9703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9704
9705 2012-03-16  David S. Miller  <davem@davemloft.net>
9706
9707         * sysdeps/sparc/fpu/math_private.h: New file.
9708
9709 2012-03-15  David S. Miller  <davem@davemloft.net>
9710
9711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9712         file.
9713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9715         file.
9716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9717         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9718         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9719         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9720         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9721         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9722         sysdep routines.
9723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9724
9725         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9726         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9727
9728         * sysdeps/sparc/sparc-ifunc.h: New file.
9729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9730         sparc-ifunc.h
9731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9733         Likewise.
9734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9735         Likewise.
9736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9740         Likewise.
9741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9746         Likewise.
9747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9748         Likewise.
9749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9753         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9754         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9755         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9756         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9757         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9758         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9759         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9760         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9761         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9762         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9763         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9764         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9765         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9766         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9767         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9768         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9769         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9770         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9771         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9772         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9773
9774 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9775
9776         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9777         scaling.
9778         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9779
9780 2012-03-15  Andreas Jaeger  <aj@suse.de>
9781
9782         [BZ #13852]
9783         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9784         ieee754/flt-32 implementation for sin, cos and sincos.
9785         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9786         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9787         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9788         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9789         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9790         ieee754/flt-32 implementation for tan.
9791
9792         * math/libm-test.inc (cos_test): Enable some large input tests for
9793         float as well
9794         (sin_test): Likewise.
9795         (sincos_test): Likewise.
9796         (tan_test): Add tests for large input.
9797
9798         * sysdeps/i386/fpu/libm-test-ulps: Update.
9799
9800 2012-03-15  Andreas Jaeger  <aj@suse.de>
9801
9802         [BZ #13658]
9803         * math/libm-test.inc (cos_test): Add more test cases.
9804         (sin_test): Likewise.
9805         (sincos_test): Likewise.
9806
9807 2012-03-15  Andreas Jaeger  <aj@suse.de>
9808
9809         [BZ #13837]
9810         * math/libm-test.inc (cos_test): Add a test case for large input
9811         value.
9812         (sin_test): Likewise.
9813         (sincos_test): Likewise.
9814
9815 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9816         Joseph Myers  <joseph@codesourcery.com>
9817
9818         [BZ #13658]
9819         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9820         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9821         * sysdeps/i386/fpu/branred.c: Likewise.
9822         * sysdeps/i386/fpu/dosincos.c: Likewise.
9823         * sysdeps/i386/fpu/mpa.c: Likewise.
9824         * sysdeps/i386/fpu/s_cos.S: Likewise.
9825         * sysdeps/i386/fpu/s_sin.S: Likewise.
9826         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9827         * sysdeps/i386/fpu/sincos32.c: Likewise.
9828
9829         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9830         Define.
9831         (libc_feupdateenv_53bit): Define.
9832         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9833         Define.
9834         (libc_feupdateenv_53bit): Define.
9835
9836         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9837         53 bit (without extend i386 double precision).
9838
9839         * math/libm-test.inc (sincos_test): Add tests for large input.
9840         (sin): Likewise.
9841         (cos): Likewise.
9842
9843         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9844
9845 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9846
9847         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9848
9849 2012-03-15  David S. Miller  <davem@davemloft.net>
9850
9851         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9852         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9853         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9854         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9855         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9856         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9857         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9859         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9860         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9861         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9862         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9863         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9864         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9865         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9867         file.
9868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9870         file.
9871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9873         file.
9874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9876         file.
9877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9878         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9879         fmin/fmax sysdep routines.
9880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9881
9882 2012-03-14  David S. Miller  <davem@davemloft.net>
9883
9884         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9885         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9886         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9887         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9888         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9889         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9890         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9891         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9892         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9893         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9894         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9895         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9896         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9897         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9898         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9899         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9900         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9901         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9902         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9903         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9904         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9905         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9906         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9907         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9908         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9909         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9910         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9911         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9912         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9913         routines.
9914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9915         file.
9916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9918         file.
9919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9921         file.
9922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9924         file.
9925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9927         file.
9928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9930         file.
9931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9932         file.
9933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9934         file.
9935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9936         file.
9937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9938         New file.
9939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9940         file.
9941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9942         file.
9943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9945         file.
9946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9948         file.
9949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9951         file.
9952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9954         VIS3 routines.
9955
9956         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9957         New file.
9958
9959         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9960
9961         * sysdeps/sparc/configure.in: New file.
9962         * sysdeps/sparc/configure: Generate.
9963         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9964         * configure: Regenerate.
9965         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9966         * config.make.in (have-as-vis3): New.
9967         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9968         available use -Av9d instead of -Av9a.
9969         * sysdeps/sparc/sparc64/Makefile: Likewise.
9970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9972         New file.
9973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9974         file.
9975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9976         New file.
9977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9978         file.
9979         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9980         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9981         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9982         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9983         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9984
9985         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9986         fzeros/fnegs to load 0x80000000 into a float register instead of
9987         using the stack.
9988         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9989
9990 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9991
9992         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9993         bits/syscall.h.
9994         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9995         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9996         ($(inst_includedir)/bits/syscall.h): Remove rule.
9997         ($(objpfx)bits/syscall.d): Include instead of
9998         $(objpfx)syscall-list.d.
9999         (generated): Change syscall-list.h and syscall-list.d to
10000         bits/syscall.h and bits/syscall.d.
10001
10002 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10003
10004         [BZ #13846]
10005         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10006
10007 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10008
10009         [BZ #13841]
10010         * math/s_csqrt.c: Include <float.h>.
10011         (__csqrt): Scale large or subnormal inputs.
10012         * math/s_csqrtf.c: Likewise.
10013         * math/s_csqrtl.c: Likewise.
10014         * math/libm-test.inc (csqrt_test): Add more tests.
10015         * sysdeps/i386/fpu/libm-test-ulps: Update.
10016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10017
10018         [BZ #13840]
10019         * math/libm-test.inc (hypot_test): Add more tests.
10020
10021 2012-03-13  David S. Miller  <davem@davemloft.net>
10022
10023         [BZ #13840]
10024         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10025         double-precision for the calculation instead of scaling.
10026
10027 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10028
10029         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10030         manipulate bits before adding and subtracting TWO52[sx].
10031         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10032         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10033         Likewise.
10034         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10035
10036 2012-03-13  David S. Miller  <davem@davemloft.net>
10037
10038         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10039         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10040         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10041         rtld-global-offsets.h
10042         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10043
10044         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10045         large parameters.
10046
10047         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10048
10049         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10050         'err' in the ifdef scope in which it is actually used.
10051
10052         * nss/nss_db/db-init.c: Include string.h
10053
10054 2012-03-12  David S. Miller  <davem@davemloft.net>
10055
10056         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10057         masking out of the most significant byte of random value used.
10058         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10059         Fix coding style in previous change.
10060
10061         * sysdeps/unix/sysv/linux/kernel-features.h
10062         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10063         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10064         expression.
10065         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10066         later.
10067
10068 2012-03-11  David S. Miller  <davem@davemloft.net>
10069
10070         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10071         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10072         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10073         for 'resultvar' otherwise things get truncated on 64-bit.
10074
10075         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10076         Fix masking out of the most significant byte of random value used.
10077
10078         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10079
10080 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10081
10082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10083
10084 2012-03-09  David S. Miller  <davem@davemloft.net>
10085
10086         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10087         variables with appropriate CPP guards.
10088         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10089         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10090         on resulting framesize and the management of the outregs buffer for pltexit.
10091         Preserve floating point return values across _dl_call_pltexit call.
10092         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10093         framesize and the management of the outregs buffer for pltexit.
10094         Preserve floating point return values across _dl_call_pltexit
10095         call.
10096         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10097         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10098         (print_exit): Fix format string for return register value.
10099
10100 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10101
10102         * sunrpc/Makefile (others): Add rpcgen.
10103         ($(objpfx)rpcgen): Remove special build rule and dependency on
10104         libc.
10105         * sunrpc/rpcgen.c: New file.
10106
10107 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10108
10109         [BZ #13673]
10110         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10111         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10112         * sysdeps/i386/crti.S: Likewise.
10113         * sysdeps/i386/crtn.S: Likewise.
10114         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10115         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10116         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10117         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10118         * sysdeps/sh/crti.S: Likewise.
10119         * sysdeps/sh/crtn.S: Likewise.
10120         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10121
10122         [BZ #13673]
10123         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10124         with URL.
10125         * locale/programs/locfile-kw.gperf: Likewise.
10126         * locale/programs/charmap-kw.h: Regenerated.
10127         * locale/programs/locfile-kw.h: Likewise.
10128
10129         [BZ #13673]
10130         * intl/plural.y: Replace FSF snail mail address with URL.
10131         * intl/plural.c: Regenerated.
10132
10133 2012-03-09  Richard Henderson  <rth@twiddle.net>
10134
10135         * include/math_private.h: Remove file.
10136         * math/math_private.h: Move file ...
10137         * sysdeps/generic/math_private.h: ... here.
10138
10139         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10140         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10141         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10142
10143         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10144         and <math_private.h>.
10145         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10146         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10147         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10148         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10149         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10150         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10151         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10152         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10153         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10154         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10155         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10156         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10157         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10158         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10159         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10160         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10161         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10162         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10163         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10164         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10165         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10166         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10167         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10168         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10169         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10170         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10171         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10172         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10173         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10174         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10175         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10176         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10177         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10178         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10179         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10180         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10181         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10182         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10183         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10184         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10185         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10186         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10187         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10188         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10189         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10190         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10191         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10192         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10193         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10194         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10195         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10196         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10197         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10198         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10199         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10200         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10201         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10202         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10203         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10204         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10205         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10206         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10207         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10208         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10209         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10210         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10211         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10212         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10213         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10214         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10215         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10216         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10217         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10218         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10219         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10220         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10221         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10222         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10223         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10224         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10225         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10226         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10227         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10228         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10229         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10230         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10231         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10232         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10233         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10234         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10235         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10236         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10237         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10238         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10239         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10240         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10241         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10242         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10243         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10244         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10245         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10246         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10247         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10248         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10249         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10250         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10251         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10252         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10253         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10254         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10255         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10256         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10257         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10258         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10259         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10260         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10261         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10262         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10263         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10264         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10265         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10266         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10267         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10268         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10269         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10270         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10271         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10272         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10273         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10274         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10275         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10276         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10277         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10278         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10279         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10280         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10281         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10282         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10283         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10284         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10285         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10286         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10287         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10288         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10289         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10290         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10291         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10292         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10293         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10294         * sysdeps/ieee754/k_standard.c: Likewise.
10295         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10296         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10297         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10298         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10299         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10300         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10301         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10302         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10303         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10304         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10305         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10306         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10307         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10308         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10309         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10310         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10311         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10312         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10313         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10314         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10316         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10317         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10318         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10319         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10320         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10321         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10322         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10323         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10324         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10325         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10326         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10327         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10328         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10329         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10330         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10331         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10332         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10333         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10334         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10335         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10336         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10337         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10338         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10340         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10341         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10342         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10343         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10344         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10345         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10346         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10347         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10348         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10349         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10350         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10351         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10352         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10353         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10354         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10355         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10356         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10357         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10358         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10359         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10360         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10361         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10362         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10363         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10364         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10365         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10366         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10367         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10368         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10369         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10370         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10371         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10372         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10373         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10374         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10375         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10376         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10377         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10378         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10379         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10380         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10381         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10382         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10383         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10384         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10385         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10386         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10387         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10388         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10389         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10390         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10391         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10392         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10393         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10394         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10395         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10396         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10397         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10398         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10399         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10400         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10401         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10402         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10403         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10404         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10405         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10406         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10407         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10408         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10409         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10410         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10411         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10412         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10413         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10414         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10415         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10416         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10417         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10418         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10419         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10421         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10422         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10423         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10424         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10425         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10426         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10427         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10428         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10429         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10430         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10431         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10432         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10433         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10434         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10435         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10436         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10437         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10438         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10439         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10440         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10441         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10442         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10443         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10444         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10445         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10446         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10447         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10448         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10449         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10450         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10451         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10452         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10453         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10454         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10455         * sysdeps/ieee754/s_lib_version.c: Likewise.
10456         * sysdeps/ieee754/s_matherr.c: Likewise.
10457         * sysdeps/ieee754/s_signgam.c: Likewise.
10458         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10459         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10460         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10461         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10462         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10463         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10464         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10465         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10466         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10467         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10468         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10469         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10470         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10471         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10472         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10473         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10474         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10475         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10476         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10477         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10478         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10479
10480 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10481
10482         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10483         * sunrpc/rpc_main.c: Likewise.
10484         * sunrpc/rpc_svcout.c: Likewise.
10485
10486 2012-03-09  David S. Miller  <davem@davemloft.net>
10487
10488         * include/math_private.h: New file.
10489
10490 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10491
10492         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10493         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10494         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10495         from <bits/socket_type.h>.
10496         (enum __socket_type): Don't define here.
10497         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10498         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10499         bits/socket_type.h.
10500
10501         [BZ #13566]
10502         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10503         checking __USE_GNU.
10504
10505         * Makerules ($(inst_includedir)/%.h): New rule.
10506         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10507         (install-others): Remove variable setting.
10508         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10509
10510 2012-03-08  Richard Henderson  <rth@twiddle.net>
10511
10512         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10513         from macro to inline function; merge with the
10514         !__LIBC_INTERNAL_MATH_INLINES version.
10515         (__ieee754_sqrtf): Likewise.
10516
10517         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10518         to inline function.
10519         (__rintf, __floor, __floorf): Likewise.
10520
10521         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10522         macro to inline function.
10523         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10524
10525         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10526         not <math/math_private.h>.
10527
10528 2012-03-08  David S. Miller  <davem@davemloft.net>
10529
10530         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10531         copyright year.
10532         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10533
10534 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10535
10536         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10537         normalization.
10538         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10539         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10540
10541 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10542
10543         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10544         be defined individually, they must be defined as a block.  Define
10545         S for printing a string instead of hidint the different by using a
10546         macro for adding the 'l'.
10547         * stdio-common/tst-fphex-wide.c: Adjust.
10548
10549 2012-03-07  Marek Polacek  <polacek@redhat.com>
10550
10551         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10552
10553 2012-03-08  Marek Polacek  <polacek@redhat.com>
10554
10555         [BZ #13806]
10556         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10557         * stdio-common/tst-fphex.c: Define a few macros to make the
10558         test reusable.  Use them.
10559         * stdio-common/tst-fphex-wide.c: New file.
10560
10561 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10562
10563         [BZ #6911]
10564         * manual/macros.texi (gnusystems): New macro.
10565         (nongnusystems): Likewise.
10566         (gnulinuxhurdsystems): Likewise.
10567         (gnuhurdsystems): Likewise..
10568         (gnulinuxsystems): Likewise.
10569         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10570         variants of the GNU system, not "GNU system".
10571         * manual/conf.texi: Likewise.
10572         * manual/errno.texi: Likewise.  Update example of errno macro
10573         expansion.
10574         * manual/filesys.texi: Likewise.
10575         (getumask): Document as specific to GNU/Hurd.
10576         * manual/install.texi: Likewise.  Reword some references to
10577         GNU/Linux.
10578         * manual/intro.texi: Likewise.
10579         * manual/io.texi: Likewise.
10580         (File Name Portability): Detail which constraints are inapplicable
10581         to all GNU systems and which are only inapplicable to GNU/Hurd.
10582         * manual/job.texi: Likewise.
10583         * manual/llio.texi: Likewise.
10584         (O_NOCTTY): Document as present on GNU/Linux.
10585         * manual/maint.texi: Likewise.
10586         * manual/memory.texi: Likewise.
10587         * manual/pattern.texi: Likewise.
10588         * manual/pipe.texi: Likewise.
10589         * manual/process.texi: Likewise.
10590         * manual/resource.texi: Likewise.
10591         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10592         child on GNU/Hurd.
10593         * manual/setjmp.texi: Likewise.
10594         * manual/signal.texi: Likewise.
10595         * manual/startup.texi: Likewise.
10596         * manual/stdio.texi: Likewise.
10597         * manual/terminal.texi: Likewise.
10598         (ONLCR): Document as POSIX.
10599         (OXTABS): Document availability on GNU/Linux as XTABS.
10600         (ONOEOT): Document availability separately from other bits.
10601         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10602         * manual/time.texi: Likewise.
10603         * manual/users.texi: Likewise.
10604         * INSTALL: Regenerated.
10605         * sysdeps/gnu/errlist.c: Regenerated.
10606
10607         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10608         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10609         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10610         puts.
10611         * configure: Regenerated.
10612
10613 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10614
10615         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10616         default includes instead of AC_HEADER_CHECK.
10617         * sysdeps/i386/configure: Regenerated.
10618
10619         [BZ #10716]
10620         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10621         * math/s_cacoshf.c (__cacoshf): Likewise.
10622         * math/s_cacoshl.c (__cacoshl): Likewise.
10623         * math/s_casinh.c (__casinh): Set signs of result from argument.
10624         * math/s_casinhf.c (__casinhf): Likewise.
10625         * math/s_casinhl.c (__casinhl): Likewise.
10626         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10627         (casinh_test): Add more tests.
10628         * sysdeps/i386/fpu/libm-test-ulps: Update.
10629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10630
10631 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10632
10633         * po/zh_TW.po: Update from translation team.
10634
10635         * login/Makefile (distribute): Remove variable.
10636         * catgets/Makefile: Likewise.
10637         * mach/Makefile: Likewise.
10638         * malloc/Makefile: Likewise.
10639         * misc/Makefile: Likewise.
10640         * iconv/Makefile: Likewise.
10641         * nscd/Makefile: Likewise.
10642         * hurd/Makefile: Likewise.
10643         * manual/Makefile: Likewise.
10644         * locale/Makefile: Likewise.
10645         * intl/Makefile: Likewise.
10646         * conform/Makefile: Likewise.
10647         * nss/Makefile: Likewise.
10648         * time/Makefile: Likewise.
10649         * soft-fp/Makefile: Likewise.
10650         * dirent/Makefile: Likewise.
10651         * gmon/Makefile: Likewise.
10652         * po/Makefile: Likewise.
10653         * rt/Makefile: Likewise.
10654         * socket/Makefile: Likewise.
10655         * math/Makefile: Likewise.
10656         * signal/Makefile: Likewise.
10657         * debug/Makefile: Likewise.
10658         * elf/Makefile: Likewise.
10659         * timezone/Makefile: Likewise.
10660         * stdlib/Makefile: Likewise.
10661         * iconvdata/Makefile: Likewise.
10662         * sunrpc/Makefile: Likewise.
10663         * io/Makefile: Likewise.
10664         * argp/Makefile: Likewise.
10665         * inet/Makefile: Likewise.
10666         * hesiod/Makefile: Likewise.
10667         * grp/Makefile: Likewise.
10668         * csu/Makefile: Likewise.
10669         * wctype/Makefile: Likewise.
10670         * crypt/Makefile: Likewise.
10671         * libio/Makefile: Likewise.
10672         * string/Makefile: Likewise.
10673         * nis/Makefile: Likewise.
10674         * resolv/Makefile: Likewise.
10675         * stdio-common/Makefile: Likewise.
10676         * wcsmbs/Makefile: Likewise.
10677         * dlfcn/Makefile: Likewise.
10678         * posix/Makefile: Likewise.
10679
10680         [BZ #6959]
10681         * timezone/Makefile: Don't install timezone files, just the programs
10682         and scripts.
10683
10684 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10685
10686         * nss/databases.def: Add missing gshadow entry.
10687
10688         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10689
10690 2012-03-06  Marek Polacek  <polacek@redhat.com>
10691
10692         [BZ #13726]
10693         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10694         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10695         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10696         * stdio-common/tst-long-dbl-fphex.c: New file.
10697
10698 2012-03-06  David S. Miller  <davem@davemloft.net>
10699
10700         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10701         (set_obp_int): New function.
10702         (get_obp_int): New function.
10703         (__get_clockfreq_via_dev_openprom): Likewise.
10704         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10705         Avoid unused variable warnings on 'val' and use builtin_expect.
10706         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10707         __builtin_expect.
10708         (INLINE_CLONE_SYSCALL): Likewise.
10709
10710 2012-03-05  David S. Miller  <davem@davemloft.net>
10711
10712         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10713
10714 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10715
10716         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10717
10718         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10719         only for |x| >= 40.
10720         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10721
10722 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10723
10724         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10725         Replace gettimeofday with __vdso_gettimeofday.
10726
10727         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10728         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10729         __vdso_clock_gettime and __vdso_getcpu.
10730
10731         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10732         time with __vdso_time.
10733
10734 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10735
10736         * manual/lang.texi (size_t): Note types to which size_t may be
10737         equivalent with the GNU C Library, but do not describe when
10738         differences between them are significant.
10739
10740 2012-03-05  Andreas Jaeger  <aj@suse.de>
10741
10742         * sysdeps/i386/fpu/libm-test-ulps: Update.
10743
10744 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10745
10746         [BZ #3976]
10747         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10748         (__ieee754_pow): Save and restore rounding mode and use
10749         round-to-nearest for main computations.
10750         * math/libm-test.inc (pow_test_tonearest): New function.
10751         (pow_test_towardzero): Likewise.
10752         (pow_test_downward): Likewise.
10753         (pow_test_upward): Likewise.
10754         (main): Call the new functions.
10755         * sysdeps/i386/fpu/libm-test-ulps: Update.
10756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10757
10758         [BZ #3976]
10759         * math/libm-test.inc (cosh_test_tonearest): New function.
10760         (cosh_test_towardzero): Likewise.
10761         (cosh_test_downward): Likewise.
10762         (cosh_test_upward): Likewise.
10763         (sinh_test_tonearest): Likewise.
10764         (sinh_test_towardzero): Likewise.
10765         (sinh_test_downward): Likewise.
10766         (sinh_test_upward): Likewise.
10767         (main): Call the new functions.
10768         * sysdeps/i386/fpu/libm-test-ulps: Update.
10769         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10770
10771 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10772
10773         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10774         default stack guard is set in last bytes.
10775         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10776
10777 2012-03-05  Kees Cook  <keescook@chromium.org>
10778
10779         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10780
10781         [BZ #13656]
10782         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10783         possibly allocate from heap instead of stack.
10784         * stdio-common/bug-vfprintf-nargs.c: New file.
10785         * stdio-common/Makefile (tests): Add nargs overflow test.
10786
10787 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10788
10789         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10790
10791 2012-03-03  Marek Polacek  <polacek@redhat.com>
10792
10793         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10794         * math/math_private.h: Likewise.
10795         * stdlib/tst-strtod.c: Likewise.
10796         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10797         * sysdeps/x86_64/bits/atomic.h: Likewise.
10798
10799 2012-03-02  David S. Miller  <davem@davemloft.net>
10800
10801         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10802         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10803         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10804         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10805         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10806         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10807         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10808         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10809
10810 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10811
10812         [BZ #13792]
10813         * manual/examples/README: New file, says the example source files
10814         can be used under GPL>=2.
10815         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10816         line containing just "*/".
10817         * manual/examples/add.c: Add copyright header (GPL>=2).
10818         * manual/examples/argp-ex1.c: Likewise.
10819         * manual/examples/argp-ex2.c: Likewise.
10820         * manual/examples/argp-ex3.c: Likewise.
10821         * manual/examples/argp-ex4.c: Likewise.
10822         * manual/examples/atexit.c: Likewise.
10823         * manual/examples/db.c: Likewise.
10824         * manual/examples/dir.c: Likewise.
10825         * manual/examples/dir2.c: Likewise.
10826         * manual/examples/execinfo.c: Likewise.
10827         * manual/examples/filecli.c: Likewise.
10828         * manual/examples/filesrv.c: Likewise.
10829         * manual/examples/fmtmsgexpl.c: Likewise.
10830         * manual/examples/genpass.c: Likewise.
10831         * manual/examples/inetcli.c: Likewise.
10832         * manual/examples/inetsrv.c: Likewise.
10833         * manual/examples/isockad.c: Likewise.
10834         * manual/examples/longopt.c: Likewise.
10835         * manual/examples/memopen.c: Likewise.
10836         * manual/examples/memstrm.c: Likewise.
10837         * manual/examples/mkfsock.c: Likewise.
10838         * manual/examples/mkisock.c: Likewise.
10839         * manual/examples/mygetpass.c: Likewise.
10840         * manual/examples/pipe.c: Likewise.
10841         * manual/examples/popen.c: Likewise.
10842         * manual/examples/rprintf.c: Likewise.
10843         * manual/examples/search.c: Likewise.
10844         * manual/examples/select.c: Likewise.
10845         * manual/examples/setjmp.c: Likewise.
10846         * manual/examples/sigh1.c: Likewise.
10847         * manual/examples/sigusr.c: Likewise.
10848         * manual/examples/stpcpy.c: Likewise.
10849         * manual/examples/strdupa.c: Likewise.
10850         * manual/examples/strftim.c: Likewise.
10851         * manual/examples/strncat.c: Likewise.
10852         * manual/examples/subopt.c: Likewise.
10853         * manual/examples/swapcontext.c: Likewise.
10854         * manual/examples/termios.c: Likewise.
10855         * manual/examples/testopt.c: Likewise.
10856         * manual/examples/testpass.c: Likewise.
10857         * manual/examples/timeval_subtract.c: Likewise.
10858
10859         [BZ #13792]
10860         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10861         function to ...
10862         * manual/timeval_subtract.c.texi: ... here, new file.
10863
10864 2012-03-02  David S. Miller  <davem@davemloft.net>
10865
10866         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10867
10868 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10869
10870         [BZ #3976]
10871         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10872         (__sin): Save and restore rounding mode and use round-to-nearest
10873         for all computations.
10874         (__cos): Save and restore rounding mode and use round-to-nearest
10875         for all computations.
10876         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10877         <fenv.h>.
10878         (tan): Save and restore rounding mode and use round-to-nearest for
10879         all computations.
10880         * math/libm-test.inc (cos_test_tonearest): New function.
10881         (cos_test_towardzero): Likewise.
10882         (cos_test_downward): Likewise.
10883         (cos_test_upward): Likewise.
10884         (sin_test_tonearest): Likewise.
10885         (sin_test_towardzero): Likewise.
10886         (sin_test_downward): Likewise.
10887         (sin_test_upward): Likewise.
10888         (tan_test_tonearest): Likewise.
10889         (tan_test_towardzero): Likewise.
10890         (tan_test_downward): Likewise.
10891         (tan_test_upward): Likewise.
10892         (main): Call the new functions.
10893         * sysdeps/i386/fpu/libm-test-ulps: Update.
10894         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10895
10896         [BZ #10135]
10897         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10898         small n, then large n, before computing and testing k+n.
10899         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10900         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10901         Likewise.
10902         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10903         Likewise.
10904         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10905         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10906         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10907         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10908         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10909         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10910         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10911         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10912         * math/libm-test.inc (scalbn_test): Add more tests.
10913         (scalbln_test): Likewise.
10914
10915         * manual/filesys.texi (mode_t): Describe constraints on size and
10916         signedness, not exact equivalence to a particular type.
10917         (ino_t): Likewise.
10918         (ino64_t): Likewise.
10919         (dev_t): Likewise.
10920         (nlink_t): Likewise.
10921         (blkcnt_t): Likewise.
10922         (blkcnt64_t): Likewise.
10923         * manual/llio.texi (off_t): Likewise.
10924
10925         [BZ #3976]
10926         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10927         (__ieee754_exp): Save and restore rounding mode and use
10928         round-to-nearest for all computations.
10929         * math/libm-test.inc (exp_test_tonearest): New function.
10930         (exp_test_towardzero): Likewise.
10931         (exp_test_downward): Likewise.
10932         (exp_test_upward): Likewise.
10933         (main): Call the new functions.
10934         * sysdeps/i386/fpu/libm-test-ulps: Update.
10935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10936
10937 2012-03-01  Chris Demetriou  <cgd@google.com>
10938
10939         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10940         have predictable order.
10941
10942 2012-03-01  David S. Miller  <davem@davemloft.net>
10943
10944         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10945
10946         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10947         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10948         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10949         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10950
10951         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10952         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10953         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10954         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10955         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10956         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10957         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10958         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10959         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10960
10961         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10962
10963         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10964         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10965         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10966
10967         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10968         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10969         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10970         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10971         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10972         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10973         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10974         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10975         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10976         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10977         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10978         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10979         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10980         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10981         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10982         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10983         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10984         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10985         * sysdeps/sparc/elf/configure: Regenerated.
10986
10987 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10988
10989         * configure.in (AS, LD): Require binutils 2.20 or later.
10990         * configure: Regenerated.
10991         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10992         as required minimum version.
10993         * INSTALL: Regenerated.
10994
10995         [BZ #2541]
10996         [BZ #4108]
10997         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10998         before squaring exponent.
10999         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11000         bottom long double and 27 bits of top long double before squaring
11001         exponent.
11002         * math/libm-test.inc (erfc_test): Add more tests.
11003         * sysdeps/i386/fpu/libm-test-ulps: Update.
11004         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11006
11007 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11008
11009         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11010         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11011         containing bit-fields.
11012         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11013         * soft-fp/single.h (_FP_UNION_S): Likewise.
11014         * soft-fp/double.h (_FP_UNION_D): Likewise.
11015
11016 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11017
11018         [BZ #13786]
11019         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11020         not include ../strcmp.S.
11021         [USE_AS_STRNCASECMP_L]: Likewise.
11022         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11023         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11024         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11025         (__strncasecmp_l_ia32): Define as alias to
11026         __strncasecmp_l_nonascii.
11027
11028         [BZ #5794]
11029         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11030         * sysdeps/i386/fpu/libm-test-ulps: Update.
11031         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11032
11033         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11034         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11035
11036 2012-02-29  Jeff Law  <law@redhat.com>
11037
11038         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11039         out of bounds read.
11040
11041 2012-02-29  Marek Polacek  <polacek@redhat.com>
11042
11043         [BZ #13706]
11044         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11045         * elf/Makefile: Add rules to run tst-unused-dep.out.
11046
11047 2012-02-28  David S. Miller  <davem@davemloft.net>
11048
11049         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11050         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11051         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11052         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11053         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11054         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11055
11056 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11057
11058         * math/libm-test.inc (llround_test): Move one test from
11059         lround_test.  Use TEST_f_L in moved test.
11060         (lround_test): Move misplaced test to llround_test.  Add testcase
11061         from bug 2561.
11062
11063 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11064
11065         * sysdeps/x86_64/fpu/e_expf.S: New file.
11066         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11067
11068 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11069
11070         [BZ #13637]
11071         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11072         of remain_len that may cause incomplete multi-byte character and
11073         false match.
11074         * posix/bug-regex33.c: New file.
11075         * posix/Makefile (tests): Add bug-regex33.
11076
11077 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11078
11079         * manual/macros.texi: New file.
11080         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11081         * manual/libc.texinfo: Include macros.texi.
11082         * manual/creatute.texi: Likewise.
11083         * manual/install.texi: Likewise.
11084         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11085         @glibcadj{} in references to the GNU C Library.
11086         * manual/charset.texi: Likewise.
11087         * manual/conf.texi: Likewise.
11088         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11089         when not using those macros.
11090         * manual/creature.texi: Likewise.
11091         * manual/crypt.texi: Likewise.
11092         * manual/errno.texi: Likewise.
11093         * manual/filesys.texi: Likewise.
11094         * manual/header.texi: Likewise.
11095         * manual/install.texi: Likewise.
11096         * manual/intro.texi: Likewise.
11097         * manual/io.texi: Likewise.
11098         * manual/job.texi: Likewise.
11099         * manual/lang.texi: Likewise.
11100         * manual/libc.texiinfo: Likewise.
11101         * manual/llio.texi: Likewise.
11102         * manual/locale.texi: Likewise.
11103         * manual/maint.texi: Likewise.
11104         * manual/math.texi: Likewise.
11105         * manual/memory.texi: Likewise.
11106         * manual/message.texi: Likewise.
11107         * manual/nss.texi: Likewise.
11108         * manual/pattern.texi: Likewise.
11109         * manual/process.texi: Likewise.
11110         * manual/resource.texi: Likewise.
11111         * manual/search.texi: Likewise.
11112         * manual/setjmp.texi: Likewise.
11113         * manual/signal.texi: Likewise.
11114         * manual/socket.texi: Likewise.
11115         * manual/startup.texi: Likewise.
11116         * manual/stdio.texi: Likewise.
11117         * manual/string.texi: Likewise.
11118         * manual/sysinfo.texi: Likewise.
11119         * manual/syslog.texi: Likewise.
11120         * manual/terminal.texi: Likewise.
11121         * manual/time.texi: Likewise.
11122         * manual/users.texi: Likewise.
11123         * INSTALL: Regenerated.
11124         * NOTES: Regenerated.
11125         * sysdeps/gnu/errlist.c: Regenerated.
11126
11127 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11128
11129         * include/dirent.h: Include <dirstream.h> before
11130         <dirent/dirent.h>.
11131
11132 2012-02-28  David S. Miller  <davem@davemloft.net>
11133
11134         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11135         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11136         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11137         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11138
11139 2012-02-27  David S. Miller  <davem@davemloft.net>
11140
11141         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11142         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11143         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11144         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11145
11146         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11147         frame pointer instead of stack pointer relative arg slot.
11148         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11149         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11150         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11151
11152 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11153
11154         [BZ #3992]
11155         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11156
11157 2012-02-27  David S. Miller  <davem@davemloft.net>
11158
11159         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11160         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11161         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11162         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11163         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11164         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11165         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11166         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11167
11168 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11169
11170         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11171         later.  Allow versions 5-9.
11172         * configure: Regenerated.
11173         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11174         required minimum version and 4.6 as recommended version.  Do not
11175         mention bugs in GCC 2.7 and 2.8.
11176         * INSTALL: Regenerated.
11177
11178 2012-02-27  David S. Miller  <davem@davemloft.net>
11179
11180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11181         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11182         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11183         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11184         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11185         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11186         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11187         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11188
11189         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11190         manipulate bits before adding and subtracting TWO112[sx].
11191         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11192
11193 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11194
11195         [BZ #13775]
11196         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11197         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11198         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11199         being in POSIX, because they are in 1003.1-2008.
11200
11201         * rt/tst-aio.c: Include <fcntl.h>.
11202         * rt/tst-aio7.c: Likewise.
11203         * rt/tst-aio64.c: Likewise.
11204
11205         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11206
11207 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11208
11209         * manual/install.texi (--with-headers): Describe headers as
11210         interface headers, not private headers.
11211         (Specific advice for GNU/Linux systems): Describe use of headers
11212         from "make headers_install", not private headers from older
11213         kernels.
11214         * INSTALL: Regenerated.
11215         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11216         Change to 2.6.19.
11217         * sysdeps/unix/sysv/linux/configure: Regenerated.
11218
11219         * manual/llio.texi (fclean): Remove documentation.
11220
11221         * manual/Makefile (libc-texi-generated): New variable.  Include
11222         version.texi.
11223         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11224         $(libc-texi-generated), not duplicated list of files.
11225         (version.texi, stamp-version): New rules.
11226         (realclean): Remove $(libc-texi-generated), not individual files
11227         from that list.  Do not remove dir-add.texinfo.
11228         * manual/libc.texinfo: Comment out uses of edition numbers and
11229         references to printed manual.  Remove last-updated dates.
11230         (EDITION): Comment out.
11231         (ISBN): Likewise.
11232         (VERSION, UPDATED): Remove.
11233         (version.texi): Include.
11234
11235 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11236
11237         * sysdeps/posix/spawni.c: Include <signal.h>.
11238         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11239         * sysdeps/pthread/aio_fsync.c: Likewise.
11240
11241 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11242
11243         * conform/Makefile (tests): Run only when not cross-compiling and
11244         when fast-check is not defined.
11245
11246         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11247         * conform/data/limits.h-data: Fixes for POSIX2008.
11248         * conform/run-conformtest.sh: Run all tests.
11249         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11250         headers.
11251         * include/bits/dlfcn.h: Likewise.
11252         * include/langinfo.h: Likewise.
11253         * include/monetary.h: Likewise.
11254         * include/sys/poll.h: Likewise.
11255
11256         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11257         for __USE_GNU.
11258         * posix/spawn.h: Define __need_sigset_t.
11259         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11260         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11261         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11262         to get sigevent_t only.
11263         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11264         only for __USE_GNU.
11265         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11266         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11267         process_vm_writev only for __USE_GNU.
11268         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11269
11270         * conform/Makefile: For now ignore errors from run-conformtest.
11271         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11272         POSIX to avoid namespace pollution.  Don't prepend headers.
11273         * conform/data/aio.h-data: Fixes for POSIX testing.
11274         * conform/data/fcntl.h-data: Likewise.
11275         * conform/data/glob.h-data: Likewise.
11276         * conform/data/grp.h-data: Likewise.
11277         * conform/data/pthread.h-data: Likewise.
11278         * conform/data/pwd.h-data: Likewise.
11279         * conform/data/signal.h-data: Likewise.
11280         * conform/data/spawn.h-data: Likewise.
11281         * conform/data/stdio.h-data: Likewise.
11282         * conform/data/stdlib.h-data: Likewise.
11283         * conform/data/stropts.h-data: Likewise.
11284         * conform/data/sys/mman.h-data: Likewise.
11285         * conform/data/sys/stat.h-data: Likewise.
11286         * conform/data/sys/types.h-data: Likewise.
11287         * conform/data/sys/wait.h-data: Likewise.
11288         * conform/data/time.h-data: Likewise.
11289         * conform/data/unistd.h-data: Likewise.
11290         * conform/data/utime.h-data: Likewise.
11291
11292         * io/sys/stat.h: fchmod was always in POSIX.
11293         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11294         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11295         * rt/aio.h: Define __need_timespec before including <time.h>.
11296         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11297         struct.  Add forward declaration of pthread_attr_t and use it in
11298         sigevent.
11299         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11300         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11301         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11302         always remove CLK_TCK definition.
11303
11304 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11305
11306         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11307
11308 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11309
11310         * conform/run-conformtest.sh: New file.
11311         * conform/Makefile: Run run-conformtest for tests.
11312         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11313         support.
11314
11315         * conform/data/uchar.h-data: New file.
11316         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11317         * conform/data/arpa/inet.h-data: Likewise.
11318         * conform/data/assert.h-data: Likewise.
11319         * conform/data/complex.h-data: Likewise.
11320         * conform/data/cpio.h-data: Likewise.
11321         * conform/data/ctype.h-data: Likewise.
11322         * conform/data/dirent.h-data: Likewise.
11323         * conform/data/dlfcn.h-data: Likewise.
11324         * conform/data/errno.h-data: Likewise.
11325         * conform/data/fcntl.h-data: Likewise.
11326         * conform/data/float.h-data: Likewise.
11327         * conform/data/fmtmsg.h-data: Likewise.
11328         * conform/data/fnmatch.h-data: Likewise.
11329         * conform/data/ftw.h-data: Likewise.
11330         * conform/data/glob.h-data: Likewise.
11331         * conform/data/grp.h-data: Likewise.
11332         * conform/data/iconv.h-data: Likewise.
11333         * conform/data/inttypes.h-data: Likewise.
11334         * conform/data/langinfo.h-data: Likewise.
11335         * conform/data/libgen.h-data: Likewise.
11336         * conform/data/limits.h-data: Likewise.
11337         * conform/data/locale.h-data: Likewise.
11338         * conform/data/math.h-data: Likewise.
11339         * conform/data/monetary.h-data: Likewise.
11340         * conform/data/mqueue.h-data: Likewise.
11341         * conform/data/ndbm.h-data: Likewise.
11342         * conform/data/net/if.h-data: Likewise.
11343         * conform/data/netdb.h-data: Likewise.
11344         * conform/data/netinet/in.h-data: Likewise.
11345         * conform/data/nl_types.h-data: Likewise.
11346         * conform/data/poll.h-data: Likewise.
11347         * conform/data/pthread.h-data: Likewise.
11348         * conform/data/pwd.h-data: Likewise.
11349         * conform/data/regex.h-data: Likewise.
11350         * conform/data/sched.h-data: Likewise.
11351         * conform/data/search.h-data: Likewise.
11352         * conform/data/semaphore.h-data: Likewise.
11353         * conform/data/setjmp.h-data: Likewise.
11354         * conform/data/signal.h-data: Likewise.
11355         * conform/data/spawn.h-data: Likewise.
11356         * conform/data/stdarg.h-data: Likewise.
11357         * conform/data/stdio.h-data: Likewise.
11358         * conform/data/stdlib.h-data: Likewise.
11359         * conform/data/string.h-data: Likewise.
11360         * conform/data/strings.h-data: Likewise.
11361         * conform/data/stropts.h-data: Likewise.
11362         * conform/data/sys/ipc.h-data: Likewise.
11363         * conform/data/sys/mman.h-data: Likewise.
11364         * conform/data/sys/msg.h-data: Likewise.
11365         * conform/data/sys/resource.h-data: Likewise.
11366         * conform/data/sys/select.h-data: Likewise.
11367         * conform/data/sys/sem.h-data: Likewise.
11368         * conform/data/sys/shm.h-data: Likewise.
11369         * conform/data/sys/socket.h-data: Likewise.
11370         * conform/data/sys/stat.h-data: Likewise.
11371         * conform/data/sys/statvfs.h-data: Likewise.
11372         * conform/data/sys/time.h-data: Likewise.
11373         * conform/data/sys/timeb.h-data: Likewise.
11374         * conform/data/sys/times.h-data: Likewise.
11375         * conform/data/sys/types.h-data: Likewise.
11376         * conform/data/sys/uio.h-data: Likewise.
11377         * conform/data/sys/un.h-data: Likewise.
11378         * conform/data/sys/utsname.h-data: Likewise.
11379         * conform/data/sys/wait.h-data: Likewise.
11380         * conform/data/syslog.h-data: Likewise.
11381         * conform/data/tar.h-data: Likewise.
11382         * conform/data/termios.h-data: Likewise.
11383         * conform/data/utime.h-data: Likewise.
11384         * conform/data/utmpx.h-data: Likewise.
11385         * conform/data/varargs.h-data: Likewise.
11386         * conform/data/wchar.h-data: Likewise.
11387         * conform/data/wctype.h-data: Likewise.
11388         * conform/data/wordexp.h-data: Likewise.
11389
11390         * include/stropts.h: New file.
11391         * include/uchar.h: New file.
11392         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11393         * include/assert.h: Likewise.
11394         * include/ctype.h: Likewise.
11395         * include/dirent.h: Likewise.
11396         * include/dlfcn.h: Likewise.
11397         * include/fcntl.h: Likewise.
11398         * include/fnmatch.h: Likewise.
11399         * include/glob.h: Likewise.
11400         * include/grp.h: Likewise.
11401         * include/libio.h: Likewise.
11402         * include/locale.h: Likewise.
11403         * include/math.h: Likewise.
11404         * include/net/if.h: Likewise.
11405         * include/netdb.h: Likewise.
11406         * include/netinet/in.h: Likewise.
11407         * include/pthread.h: Likewise.
11408         * include/pwd.h: Likewise.
11409         * include/regex.h: Likewise.
11410         * include/sched.h: Likewise.
11411         * include/search.h: Likewise.
11412         * include/setjmp.h: Likewise.
11413         * include/signal.h: Likewise.
11414         * include/stdio.h: Likewise.
11415         * include/stdlib.h: Likewise.
11416         * include/string.h: Likewise.
11417         * include/sys/cdefs.h: Likewise.
11418         * include/sys/mman.h: Likewise.
11419         * include/sys/msg.h: Likewise.
11420         * include/sys/resource.h: Likewise.
11421         * include/sys/select.h: Likewise.
11422         * include/sys/socket.h: Likewise.
11423         * include/sys/stat.h: Likewise.
11424         * include/sys/statvfs.h: Likewise.
11425         * include/sys/time.h: Likewise.
11426         * include/sys/times.h: Likewise.
11427         * include/sys/uio.h: Likewise.
11428         * include/sys/utsname.h: Likewise.
11429         * include/sys/wait.h: Likewise.
11430         * include/termios.h: Likewise.
11431         * include/time.h: Likewise.
11432         * include/ulimit.h: Likewise.
11433         * include/unistd.h: Likewise.
11434         * include/utime.h: Likewise.
11435         * include/wchar.h: Likewise.
11436         * include/wctype.h: Likewise.
11437         * include/wordexp.h: Likewise.
11438
11439         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11440
11441         * time/time.h: TIME_UTC must be a macro.
11442         Make timespec_get available for ISO C11 only as well.
11443
11444 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11445
11446         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11447         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11448
11449 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11450
11451         * configure.in: Use -o not -a in test for unsupported multi-arch.
11452
11453 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11454
11455         * manual/texinfo.tex: Update to version 2012-01-19.16.
11456
11457 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11458
11459         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11460
11461 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11462
11463         [BZ #13738]
11464         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11465         * manual/fdl-1.3.texi: New file.
11466         * manual/fdl-1.1.texi: File removed.
11467
11468         [BZ #13738]
11469         * manual/libc.texinfo (FDL_VERSION): New @set.
11470         Use it for mention of FDL in cover text.
11471         (Documentation License): Use it in @include file name.
11472
11473 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11474             Roland McGrath  <roland@hack.frob.com>
11475
11476         [BZ #5461]
11477         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11478         not LONG_LONG_MAX and LONG_LONG_MIN.
11479         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11480         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11481         name.
11482         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11483
11484 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11485
11486         [BZ #2547]
11487         [BZ #11365]
11488         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11489         manipulate bits before adding and subtracting TWO23[sx].
11490         * math/libm-test.inc (nearbyint_test): Add more tests.
11491
11492 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11493
11494         [BZ #2548]
11495         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11496         bits before adding and subtracting TWO23[sx].
11497         * math/libm-test.inc (rint_test): Add more tests.
11498         (rint_test_tonearest): Likewise.
11499         (rint_test_towardzero): Likewise.
11500         (rint_test_downward): Likewise.
11501         (rint_test_upward: Likewise.
11502
11503 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11504
11505         [BZ #10110]
11506         * include/stdc-predef.h: New file.  Extracted from features.h.
11507         * include/features.h: Include stdc-predef.h.
11508         * Makefile (headers): Add stdc-predef.h.
11509         * CONFORMANCE (Compiler limitations): Update.
11510
11511 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11512
11513         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11514
11515 2012-02-21  David S. Miller  <davem@davemloft.net>
11516
11517         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11518         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11519
11520 2012-02-20  David S. Miller  <davem@davemloft.net>
11521
11522         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11523         using a normal save/restore sequence, rather than allocating a
11524         dummy stack frame just to store a frame pointer and restore.
11525         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11526
11527 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11528
11529         * manual/install.texi: Fix stray word in line-wrapped comment.
11530
11531 2012-02-20  David S. Miller  <davem@davemloft.net>
11532
11533         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11534         both binutils and gcc support GOTDATA.
11535
11536         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11537         "rd %pc" in the PIC register setup sequences.
11538
11539         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11540         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11541         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11542         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11543         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11544         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11545         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11546         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11547         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11548         (SYSCALL_ERROR_HANDLER): Likewise.
11549         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11550         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11551         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11552         (SYSCALL_ERROR_HANDLER): Likewise.
11553
11554         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11555         (HAVE_GCC_GOTDATA): New.
11556         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11557         relocation support in both binutils and gcc.
11558         * sysdeps/sparc/elf/configure: Regenerate.
11559
11560         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11561         * sysdeps/sparc/sparc32/elf/configure: Delete.
11562         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11563         * sysdeps/sparc/sparc64/elf/configure: Delete.
11564         * sysdeps/sparc/elf/configure.in: New file.
11565         * sysdeps/sparc/elf/configure: Generate.
11566
11567         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11568         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11569         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11570         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11571         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11572
11573 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11574
11575         * manual/install.texi: Do not mention specific glibc version
11576         numbers.
11577         * manual/libc.texinfo (VERSION, UPDATED): Update.
11578         (@copying): Use @copyright{} and range of years.
11579
11580 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11581
11582         [BZ #13695]
11583         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11584         [crti.S not in sysdirs] (generated): Do not append.
11585         [crti.S not in sysdirs] (omit-deps): Likewise.
11586         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11587         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11588         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11589         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11590         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11591         Likewise.
11592         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11593         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11594         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11595         * csu/defs.awk: Remove file.
11596         * sysdeps/generic/initfini.c: Likewise.
11597         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11598         variable.
11599         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11600         Likewise.
11601
11602 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11603
11604         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11605         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11606         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11607         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11608         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11609         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11610         <bits/epoll.h>.
11611         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11612         (__EPOLL_PACKED): Define to empty if not defined by
11613         <bits/epoll.h>.
11614         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11615         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11616         bits/epoll.h.
11617
11618 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11619
11620         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11621         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11622         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11623         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11624         <bits/timerfd.h>.
11625         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11626         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11627         bits/timerfd.h.
11628
11629 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11630
11631         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11632         in C locale.
11633         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11634         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11635         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11637
11638 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11639
11640         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11641         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11642
11643 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11644
11645         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11646         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11647         defined.
11648         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11649         Likewise.
11650         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11651         entry for 2.16.
11652
11653 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11654
11655         * math/w_acos.c: Use non-signaling floating-point comparisons.
11656         * math/w_acosf.c: Likewise.
11657         * math/w_acosh.c: Likewise.
11658         * math/w_acoshf.c: Likewise.
11659         * math/w_acoshl.c: Likewise.
11660         * math/w_acosl.c: Likewise.
11661         * math/w_asin.c: Likewise.
11662         * math/w_asinf.c: Likewise.
11663         * math/w_asinl.c: Likewise.
11664         * math/w_atanh.c: Likewise.
11665         * math/w_atanhf.c: Likewise.
11666         * math/w_atanhl.c: Likewise.
11667         * math/w_exp2.c: Likewise.
11668         * math/w_exp2f.c: Likewise.
11669         * math/w_exp2l.c: Likewise.
11670         * math/w_j0.c: Likewise.
11671         * math/w_j0f.c: Likewise.
11672         * math/w_j0l.c: Likewise.
11673         * math/w_j1.c: Likewise.
11674         * math/w_j1f.c: Likewise.
11675         * math/w_j1l.c: Likewise.
11676         * math/w_jn.c: Likewise.
11677         * math/w_jnf.c: Likewise.
11678         * math/w_log.c: Likewise.
11679         * math/w_log10.c: Likewise.
11680         * math/w_log10f.c: Likewise.
11681         * math/w_log10l.c: Likewise.
11682         * math/w_log2.c: Likewise.
11683         * math/w_log2f.c: Likewise.
11684         * math/w_log2l.c: Likewise.
11685         * math/w_logf.c: Likewise.
11686         * math/w_logl.c: Likewise.
11687         * math/w_sqrt.c: Likewise.
11688         * math/w_sqrtf.c: Likewise.
11689         * math/w_sqrtl.c: Likewise.
11690         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11691         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11692         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11693         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11694         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11695
11696 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11697
11698         [BZ #9739]
11699         * manual/string.texi (strnlen): Use correct parameter name in
11700         equivalent expression.
11701
11702 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11703
11704         [BZ #11174]
11705         * manual/users.texi (seteuid): Consistently use neweuid for
11706         argument name.
11707
11708 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11709
11710         [BZ #13704]
11711         * manual/nss.texi (Services in the NSS configuration): Correct
11712         list of services in example configuration file.
11713
11714 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11715
11716         [BZ #11322]
11717         * manual/arith.texi: Remove statements about negative zero
11718         behaving identically to zero.
11719
11720 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11721
11722         [BZ #5993]
11723         * manual/install.texi: Do not document upgrading from libc5.
11724
11725 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11726
11727         [BZ #4596]
11728         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11729
11730 2012-02-18  David S. Miller  <davem@davemloft.net>
11731
11732         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11733         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11734         %o7 across the call.
11735         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11736         instead.
11737         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11738         SETUP_PIC_REG_LEAF.
11739         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11740         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11741         * sysdeps/sparc/crtn.S: Likewise.
11742
11743 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11744
11745         * aout/Makefile: Remove.
11746
11747 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11748
11749         [BZ #13058]
11750         * manual/examples/argp-ex1.c (main): Format definition in GNU
11751         style.
11752         * manual/examples/argp-ex2.c (main): Likewise.
11753         * manual/examples/argp-ex3.c (main): Likewise.
11754         * manual/examples/argp-ex4.c (main): Likewise.
11755         * manual/examples/longopt.c (main): Use new-style prototype
11756         definition.
11757         * manual/examples/strncat.c (main): Specify return type and use
11758         (void) for arguments.
11759         * manual/examples/subopt.c (main): Use char **argv argument.
11760
11761 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11762
11763         [BZ #5077]
11764         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11765         rounding modes.
11766
11767 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11768
11769         [BZ #6907]
11770         * manual/string.texi (strchr): Change when strchrnul is
11771         recommended.
11772
11773 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11774
11775         [BZ #174]
11776         * manual/locale.texi (setlocale): Document LOCPATH.
11777
11778 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11779
11780         [BZ #10210]
11781         * manual/process.texi (execle): Move @dots{} before last argument.
11782
11783 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11784
11785         [BZ #12047]
11786         * manual/charset.texi (Generic Charset Conversion): Fix typo
11787         (LC_TYPE -> LC_CTYPE).
11788
11789 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11790
11791         [BZ #5805]
11792         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11793         (scalbnf): Likewise.
11794         (scalbnl): Likewise.
11795         (scalbln): Likewise.
11796         (scalblnf): Likewise.
11797         (scalblnl): Likewise.
11798         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11799         (vwarnx): Likewise.
11800         (verr): Likewise.
11801         (verrx): Likewise.
11802         * manual/filesys.texi (telldir): Use braces around return type.
11803         * manual/llio.texi (mmap): Add space after comma.
11804         (mmap64): Likewise.
11805         * manual/math.texi (jn): Use @var{} on parameter names.
11806         (jnf): Likewise.
11807         (jnl): Likewise.
11808         (yn): Likewise.
11809         (ynf): Likewise.
11810         (ynl): Likewise.
11811         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11812         line.
11813         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11814         "...".
11815         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11816         (sched_get_priority_max): Likewise.
11817         * manual/signal.texi (sigvec): Add space after comma.
11818         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11819         names.
11820         (if_indextoname): Likewise.
11821         (if_freenameindex): Likewise.
11822         (sendto): Use ',' instead of '.' in prototype.
11823         * manual/startup.texi (syscall): Use @dots{} instead of literal
11824         "...".
11825         * manual/stdio.texi (__fpending): Separate initial words of
11826         paragraph from @deftypefun line.
11827         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11828         "...".
11829         (vsyslog): Use @var{} on parameter names.
11830         * manual/terminal.texi (stty): Use @var{} on parameter names.
11831         * manual/users.texi (getutmp): Use @var{} on parameter names.
11832         (getutmpx): Likewise.
11833
11834 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11835
11836         [BZ #6884]
11837         * manual/stdio.texi (fopen): Fix typos in description of
11838         ",ccs=STRING".
11839
11840 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11841
11842         [BZ #4026]
11843         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11844         get clock_id definition.
11845
11846 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11847
11848         [BZ #4822]
11849         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11850         (madvise): Cast every argument to void on its own.
11851
11852 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11853
11854         [BZ #9902]
11855         * manual/startup.texi (Exit Status): Fix typo.
11856
11857 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11858
11859         [BZ #10140]
11860         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11861         * manual/examples/argp-ex2.c: Likewise.
11862         * manual/examples/argp-ex3.c: Likewise.
11863
11864 2012-02-16  Richard Henderson  <rth@redhat.com>
11865
11866         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11867         * sysdeps/s390/s390-32/initfini.c: Remove.
11868         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11869         * sysdeps/s390/s390-64/initfini.c: Remove.
11870
11871 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11872
11873         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11874         compiler output for sysdeps/generic/initfini.c.
11875         * sysdeps/sh/elf/initfini.c: Remove file.
11876
11877 2012-02-16  David S. Miller  <davem@davemloft.net>
11878
11879         [BZ #11494]
11880         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11881
11882         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11883         * sysdeps/sparc/crti.S: New file.
11884         * sysdeps/sparc/crtn.S: New file.
11885         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11886         * sysdeps/sparc/sparc64/Makefile: Likewise.
11887
11888 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11889
11890         [BZ #3335]
11891         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11892
11893 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11894
11895         [BZ #4822]
11896         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11897
11898         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11899         (write, read, close): Likewise.
11900         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11901
11902 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11903
11904         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11905         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11906         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11907         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11908         <bits/signalfd.h>.
11909         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11910         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11911         bits/signalfd.h.
11912
11913 2012-02-14  Marek Polacek  <polacek@redhat.com>
11914
11915         * sysdeps/x86_64/crti.S: New file.
11916         * sysdeps/x86_64/crtn.S: New file.
11917         * sysdeps/x86_64/elf/initfini.c: Remove file.
11918
11919 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11920
11921         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11922         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11923         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11924         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11925         <bits/inotify.h>.
11926         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11927         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11928         bits/inotify.h.
11929
11930 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11931
11932         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11933         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11934         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11935         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11936         <bits/eventfd.h>.
11937         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11938         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11939         bits/eventfd.h.
11940
11941 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11942
11943         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11944         __feraiseexcept instead of feraiseexcept.
11945
11946         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11947         nanosleep invocations.
11948         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11949         strings, and add error checking for a nanosleep invocations.
11950
11951 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11952
11953         Replace FSF snail mail address with URLs, as per GNU coding standards.
11954         Most of the snail mail addresses were wrong anyway, and omitting
11955         them makes the source code easier to maintain.  Almost all of the
11956         changes are to license notices and to locale LC_IDENTIFICATION
11957         addresses, except for this one:
11958         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11959         not its snail mail address.
11960
11961 2012-02-09  Richard Henderson  <rth@twiddle.net>
11962
11963         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11964         of kernel-features.h.
11965
11966         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11967
11968 2012-02-08  Marek Polacek  <polacek@redhat.com>
11969
11970         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11971         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11972         * sysdeps/gnu/_G_config.h: Likewise.
11973         * sysdeps/generic/_G_config.h: Likewise.
11974
11975 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11976
11977         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11978         tests.
11979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11980
11981         * sysdeps/powerpc/powerpc32/crti.S: New file.
11982         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11983         * sysdeps/powerpc/powerpc64/crti.S: New file.
11984         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11985
11986         * Makeconfig (have-initfini): Don't set.
11987         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11988         * configure.in (nopic_initfini): Don't substitute.
11989         * config.h.in (HAVE_INITFINI): Don't #undef.
11990         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11991         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11992
11993 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11994
11995         Support crti.S and crtn.S provided directly by architectures.
11996         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11997         [crti.S in sysdirs] (omit-deps): Likewise.
11998         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11999         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12000         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12001         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12002         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12003         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12004         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12005         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12006         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12007         compiler output for sysdeps/generic/initfini.c.
12008         * sysdeps/i386/elf/Makefile: Remove file.
12009         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12010
12011 2012-02-07  Marek Polacek  <polacek@redhat.com>
12012
12013         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12014         * sysdeps/gnu/_G_config.h: Likewise.
12015         * sysdeps/mach/hurd/_G_config.h: Likewise.
12016
12017 2012-02-07  Marek Polacek  <polacek@redhat.com>
12018
12019         * math/Makefile (tests): Add tst-CMPLX2.
12020         * math/tst-CMPLX2.c: New file.
12021
12022 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12023
12024         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12025
12026         * math/libm-test.inc (jn_test): Add missing L suffix.
12027
12028 2012-02-06  Marek Polacek  <polacek@redhat.com>
12029
12030         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12031         * sysdeps/i386/fpu/e_powf.S: Likewise.
12032         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12033         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12034         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12035         * sysdeps/i386/fpu/e_pow.S: Likewise.
12036         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12037         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12038         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12039         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12040         * sysdeps/i386/fpu/e_log2.S: Likewise.
12041         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12042         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12043         * sysdeps/i386/fpu/e_powl.S: Likewise.
12044         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12045         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12046         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12047         * sysdeps/i386/fpu/e_logl.S: Likewise.
12048         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12049         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12050         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12051         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12052         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12053         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12054         * sysdeps/i386/fpu/e_log.S: Likewise.
12055         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12056         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12057         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12058         * sysdeps/i386/fpu/e_logf.S: Likewise.
12059         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12060         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12061         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12062         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12063         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12064         * sysdeps/i386/fpu/e_log10.S: Likewise.
12065         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12066         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12067         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12068         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12069         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12070         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12071         * sysdeps/i386/asm-syntax.h: Likewise.
12072         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12073         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12074         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12075         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12076         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12077         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12078         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12079         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12080         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12081         * sysdeps/powerpc/sysdep.h: Likewise.
12082         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12083         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12084
12085 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12086
12087         [BZ #411]
12088         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12089
12090 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12091
12092         * sysdeps/i386/sysdep.h: Include <features.h>.
12093         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12094         version.
12095
12096 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12097
12098         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12099         Define.
12100         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12101         LOAD_PIC_REG_STR.
12102
12103 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12104
12105         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12106         (SETUP_PIC_REG): Use GET_PC_THUNK.
12107         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12108         macro.
12109
12110 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12111
12112         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12113         for non-PIC compilation.
12114         (SETUP_PIC_REG): Add .p2align directive.
12115         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12116         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12117         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12118         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12119         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12120         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12121         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12122         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12123         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12124         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12125         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12126         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12127         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12128         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12129         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12130         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12131         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12132         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12133         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12134         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12135         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12136         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12137         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12138         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12139         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12140         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12141         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12142         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12143         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12144         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12145         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12146         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12147         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12148         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12149         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12150         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12151         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12152         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12153         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12154         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12155         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12156
12157 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12158
12159         * math/tst-CMPLX.c: Include <stdio.h>.
12160
12161 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12162
12163         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12164         float.
12165         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12166         * sysdeps/sparc/bits/mathdef.h: Likewise.
12167
12168 2012-01-31  Marek Polacek  <polacek@redhat.com>
12169
12170         * libio/libio.h: Don't define _PARAMS.
12171         * locale/programs/config.h: Don't define PARAMS.
12172         * stdlib/strtol_l.c: Likewise.
12173         (__strtol_l): Remove PARAMS from the prototype.
12174
12175 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12176
12177         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12178         names.  Just use the correct names.  Remove unnecessary wrapper
12179         functions.
12180         * malloc/arena.c: Likewise.
12181         * malloc/hooks.c: Likewise.
12182
12183         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12184         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12185         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12186
12187 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12188
12189         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12190         into tail calls.
12191         (update_get_addr): New function.
12192         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12193         GET_ADDR_MODULE parameter.
12194
12195 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12196
12197         * crypt/cert.c: Remove __STDC__ conditionals.
12198         * crypt/crypt-entry.c: Likewise.
12199         * crypt/crypt_util.c: Likewise.
12200         * libio/filedoalloc.c: Likewise.
12201         * libio/fileops.c: Likewise.
12202         * libio/genops.c: Likewise.
12203         * libio/iofclose.c: Likewise.
12204         * libio/iofdopen.c: Likewise.
12205         * libio/iofopen.c: Likewise.
12206         * libio/iofopen64.c: Likewise.
12207         * libio/iogetdelim.c: Likewise.
12208         * libio/iopopen.c: Likewise.
12209         * libio/obprintf.c: Likewise.
12210         * libio/oldfileops.c: Likewise.
12211         * libio/oldiofclose.c: Likewise.
12212         * libio/oldiofdopen.c: Likewise.
12213         * libio/oldiofopen.c: Likewise.
12214         * libio/oldiopopen.c: Likewise.
12215         * libio/wfiledoalloc.c: Likewise.
12216         * libio/wgenops.c: Likewise.
12217         * locale/programs/xmalloc.c: Likewise.
12218         * misc/syslog.c: Likewise.
12219         * stdio-common/xbug.c: Likewise.
12220         * string/memchr.c: Likewise.
12221         * string/memcmp.c: Likewise.
12222         * string/memrchr.c: Likewise.
12223         * string/rawmemchr.c: Likewise.
12224         * sysdeps/posix/getcwd.c: Likewise.
12225         * time/strftime_l.c: Likewise.
12226
12227 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12228
12229         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12230         * config.make.in (config-cflags-sse2avx): Define.
12231         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12232         Fix typo.
12233
12234 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12235
12236         * scripts/config.guess: Update from upstream config git repository.
12237         * scripts/config.sub: Likewise.
12238
12239 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12240
12241         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12242         (EM_NUM): Update.
12243         (R_TILEPRO_*, R_TILEGX_*): New macros.
12244
12245         * scripts/firstversions.awk: Fix bug in version range handling.
12246
12247         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12248
12249         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12250
12251         * include/sys/epoll.h: New file.
12252         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12253         libc_hidden_def.
12254
12255 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12256
12257         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12258         Avoid unnecessary __WORDSIZE == 64 test.
12259         (fmaxf): Use VEX format if possible.
12260         (fmax): Likewise.
12261         (fminf): Likewise.
12262         (fmin): Likewise.
12263
12264         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12265         * math/math_private.h: Remove libc_fegetround* and
12266         libc_fesetround*.
12267         * sysdeps/i386/configure.in: Check for -msse2avx.
12268         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12269         also if SSE2AVX is defined.
12270         Remove libc_fegetround* and libc_fesetround*.
12271         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12272         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12273         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12274         of HAS_YMM_USABLE.
12275         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12276         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12277         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12278         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12279         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12280
12281         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12282
12283 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12284
12285         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12286         size is not set.
12287         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12288
12289 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12290
12291         [BZ #13618]
12292         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12293         relocation.
12294         * Makeconfig (libm): Define.
12295         * elf/Makefile: Add rules to build and run tst-relsort1.
12296         * elf/tst-relsort1.c: New file.
12297         * elf/tst-relsort1mod1.c: New file.
12298         * elf/tst-relsort1mod2.c: New file.
12299
12300 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12301
12302         * math/s_ldexp.c: Remove __STDC__ conditionals.
12303         * math/s_ldexpf.c: Likewise.
12304         * math/s_ldexpl.c: Likewise.
12305         * math/s_nextafter.c: Likewise.
12306         * math/s_nexttowardf.c: Likewise.
12307         * math/s_significand.c: Likewise.
12308         * math/s_significandf.c: Likewise.
12309         * math/s_significandl.c: Likewise.
12310         * math/w_jnl.c: Likewise.
12311         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12312         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12313         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12314         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12315         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12316         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12317         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12318         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12319         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12320         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12321         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12322         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12323         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12324         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12325         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12326         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12327         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12328         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12329         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12330         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12331         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12332         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12333         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12334         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12335         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12336         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12337         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12338         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12339         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12340         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12341         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12342         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12343         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12344         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12345         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12346         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12347         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12348         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12349         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12350         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12351         * sysdeps/ieee754/k_standard.c: Likewise.
12352         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12353         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12354         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12355         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12356         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12357         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12358         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12359         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12360         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12361         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12362         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12363         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12364         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12365         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12366         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12367         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12368         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12369         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12370         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12371         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12372         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12373         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12374         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12375         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12376         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12377         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12378         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12379         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12380         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12381         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12382         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12383         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12384         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12385         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12386         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12387         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12388         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12389         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12390         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12391         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12392         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12393         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12394         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12395         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12396         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12397         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12398         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12399         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12400         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12401         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12402         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12403         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12404         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12405         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12406         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12407         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12408         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12409         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12410         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12411         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12412         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12413         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12414         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12415         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12416         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12417         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12418         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12419         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12420         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12421         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12422         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12423         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12424         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12425         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12426         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12427         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12428         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12429         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12430         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12431         * sysdeps/ieee754/s_matherr.c: Likewise.
12432         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12433         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12434         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12435         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12436
12437 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12438
12439         * crypt/md5.h: Remove __STDC__ conditionals.
12440         * libio/libioP.h: Likewise.
12441         * locale/programs/config.h: Likewise.
12442         * sysdeps/generic/sysdep.h: Likewise.
12443         * sysdeps/i386/asm-syntax.h: Likewise.
12444         * sysdeps/s390/asm-syntax.h: Likewise.
12445         * sysdeps/unix/sysdep.h: Likewise.
12446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12448
12449 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12450
12451         * libio/libio.h: Remove __STDC__ conditionals.
12452         * malloc/obstack.h: Likewise.
12453         * math/complex.h: Likewise.
12454         * math/math.h: Likewise.
12455         * sysdeps/generic/_G_config.h: Likewise.
12456         * sysdeps/gnu/_G_config.h: Likewise.
12457         * sysdeps/mach/hurd/_G_config.h: Likewise.
12458         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12459         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12460         * sysdeps/sparc/bits/mathdef.h: Likewise.
12461
12462 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12463
12464         [BZ #13583]
12465         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12466         Clean up HAS_* macros.
12467         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12468         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12469         possible.
12470         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12471         HAS_AVX.
12472         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12473         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12474         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12475         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12476         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12477
12478 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12479
12480         * elf/tst-unique3.cc (gets): Remove declaration.
12481         * elf/tst-unique3lib.cc (gets): Likewise.
12482         * elf/tst-unique3lib2.cc (gets): Likewise.
12483         * elf/tst-unique4.cc (gets): Likewise.
12484
12485 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12486
12487         * include/stdio.h: Add C++ protection.  Add gets declarations and
12488         definitions.
12489         * debug/tst-chk1.c: Don't declare gets here.
12490         * stdio-common/tst-gets.c: Likewise.
12491
12492 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12493
12494         * posix/glob: Remove directory.
12495
12496 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12497
12498         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12499
12500 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12501
12502         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12503         of the non-standard EPFNOSUPPORT.
12504
12505 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12506
12507         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12508         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12509         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12510
12511 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12512
12513         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12514
12515 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12516
12517         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12518         transient errors.
12519         * nscd/grpcache.c (cache_addgr): Likewise.
12520         * nscd/hstcache.c (cache_addhst): Likewise.
12521         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12522         * nscd/pwdcache.c (cache_addpw): Likewise.
12523         * nscd/servicescache.c (cache_addserv): Likewise.
12524
12525 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12526
12527         * malloc/malloc.c: Various cleanups.
12528         * malloc/hooks.c: Likewise.
12529
12530         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12531         * stdlib/bug-fmtmsg1.c: New file.
12532
12533         * stdlib/fmtmsg.c (init): Add missing unlock.
12534         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12535
12536 2012-01-12  Marek Polacek  <polacek@redhat.com>
12537
12538         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12539         and _GNU_SOURCE.
12540
12541 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12542
12543         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12544         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12545         macro to ensure uniqueness of label name.
12546         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12547         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12548
12549 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12550
12551         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12552
12553         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12554         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12555         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12556         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12557
12558 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12559
12560         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12561
12562         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12563         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12564         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12565
12566         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12567
12568         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12569         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12570         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12571         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12572
12573         * math/bits/math-finite.h: Add ldexp support.
12574
12575 2012-01-10  Marek Polacek  <polacek@redhat.com>
12576
12577         * locale/programs/localedef.h (show_archive_content): Add noreturn
12578         attribute.
12579
12580 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12581
12582         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12583
12584 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12585
12586         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12587
12588         * io/Makefile (headers): Add bits/poll2.h.
12589
12590 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12591
12592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12593         typo #include statement.
12594
12595 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12596
12597         * include/sys/cdefs.h: Define __attribute_alloc_size.
12598         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12599         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12600         * elf/pldd.c: Likewise.
12601         * iconv/iconv_charmap.c: Likewise.
12602         * iconv/iconvconfig.c: Likewise.
12603         * iconv/strtab.c: Likewise.
12604         * locale/programs/locale.c: Likewise.
12605         * locale/programs/localedef.h: Likewise.
12606         * locale/programs/simple-hash.c: Likewise.
12607         * nscd/nscd.h: Likewise.
12608         * nss/makedb.c: Likewise.
12609         * sysdeps/generic/ldconfig.h: Likewise.
12610         * locale/programs/localedef.c: Remove xmalloc prototype.
12611         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12612
12613 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12614
12615         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12616         appropriate.
12617
12618 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12619
12620         * math/Makefile (tests): Add tst-CMPLX.
12621         * math/tst-CMPLX.c: New file.
12622
12623         * math/complex.h (CMPLXL): Fix typo.
12624
12625         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12626         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12627         GLIBC_2.16.
12628         * debug/tst-chk1.c: Add poll and ppoll tests.
12629         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12630         * include/sys/poll.h: Add hidden proto for ppoll.
12631         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12632         * sysdeps/mach/hurd/ppoll.c: Likewise.
12633         * io/ppoll.c: Likewise.
12634         * debug/poll_chk.c: New file.
12635         * debug/ppoll_chk.c: New file.
12636         * include/bits/poll2.h: New file.
12637         * io/bits/poll2.h: New file.
12638
12639         [BZ #1350]
12640         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12641
12642         * configure.in: static is always set to yes.  Remove.
12643         * config.make.in: Don't set build-static.
12644         * Makeconfig: Remove use of build-static.
12645         * dlfcn/Makefile: Likewise.
12646         * elf/Makefile: Likewise.
12647         * math/Makefile: Likewise.
12648         * misc/Makefile: Likewise.
12649         * nptl/Makefile: Likewise.
12650         * sysdeps/mach/hurd/Makefile: Likewise.
12651
12652         * configure.in: PWD_P is not used anymore.
12653         * config.make.in: Remove PWD_P entry.
12654
12655         * configure.in: Remove last remnants of RANLIB.
12656         No need to check for signed size_t anymore.
12657         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12658         and IA-64.
12659         Remove __builtin_expect test because we require at least gcc 3.4.
12660         * aclocal.m4: Likewise.
12661
12662         * wcsmbs/mbrtoc16.c: Implement using towc function.
12663         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12664         * wcsmbs/wcsmbsload.c: Likewise.
12665         * iconv/gconv_simple.c: Likewise.
12666         * iconv/gconv_int.h: Likewise.
12667         * iconv/gconv_builtin.h: Likewise.
12668         * iconv/iconv_prog.c: Remove CHAR16 handling.
12669
12670         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12671
12672         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12673
12674         * configure.in: Remove --with-elf and --enable-bounded options.
12675         Dont set base_machine for ia64.  More non-ELF conditions removed.
12676         Remove testing and setting of leading underscore information.
12677         * config.make.in (build-bounded): Set to no.
12678         * config.h.in: Remove NO_UNDERSCORES entry.
12679         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12680         them.
12681         * csu/start.c: Remove !NO_UNDERSCORE code.
12682         * locale/localeinfo.h: Likewise.
12683         * sysdeps/generic/machine-gmon.h: Likewise.
12684         * sysdeps/generic/sysdep.h: Likewise.
12685         * sysdeps/i386/sysdep.h: Likewise.
12686         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12687         * sysdeps/mach/sysdep.h: Likewise.
12688         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12689         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12690         * sysdeps/sh/sysdep.h: Likewise.
12691         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12692         * sysdeps/unix/i386/sysdep.S: Likewise.
12693         * sysdeps/unix/sparc/start.c: Likewise.
12694         * sysdeps/unix/sparc/sysdep.S: Likewise.
12695         * sysdeps/unix/sparc/sysdep.h: Likewise.
12696         * sysdeps/unix/start.c: Likewise.
12697         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12698         * sysdeps/x86_64/sysdep.h: Likewise.
12699
12700 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12701
12702         [BZ #13553]
12703         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12704         for non-gcc.
12705         * argp/argp-fmtstream.h: Use const instead __const.
12706         * argp/argp.h: Likewise.
12707         * assert/assert.h: Likewise.
12708         * bits/fenv.h: Likewise.
12709         * bits/sched.h: Likewise.
12710         * bits/sigset.h: Likewise.
12711         * bits/sigthread.h: Likewise.
12712         * catgets/nl_types.h: Likewise.
12713         * conform/data/pthread.h-data: Likewise.
12714         * crypt/crypt-private.h: Likewise.
12715         * crypt/crypt.h: Likewise.
12716         * crypt/crypt_util.c: Likewise.
12717         * ctype/ctype.h: Likewise.
12718         * debug/execinfo.h: Likewise.
12719         * debug/mbsnrtowcs_chk.c: Likewise.
12720         * debug/mbsrtowcs_chk.c: Likewise.
12721         * debug/wcsnrtombs_chk.c: Likewise.
12722         * debug/wcsrtombs_chk.c: Likewise.
12723         * debug/wcstombs_chk.c: Likewise.
12724         * dirent/dirent.h: Likewise.
12725         * dlfcn/dlfcn.h: Likewise.
12726         * elf/neededtest4.c: Likewise.
12727         * grp/grp.h: Likewise.
12728         * gshadow/gshadow.h: Likewise.
12729         * iconv/gconv.h: Likewise.
12730         * iconv/gconv_int.h: Likewise.
12731         * iconv/gconv_simple.c: Likewise.
12732         * iconv/iconv.h: Likewise.
12733         * iconv/loop.c: Likewise.
12734         * iconv/skeleton.c: Likewise.
12735         * include/aio.h: Likewise.
12736         * include/aliases.h: Likewise.
12737         * include/argz.h: Likewise.
12738         * include/arpa/inet.h: Likewise.
12739         * include/assert.h: Likewise.
12740         * include/dirent.h: Likewise.
12741         * include/dlfcn.h: Likewise.
12742         * include/execinfo.h: Likewise.
12743         * include/fcntl.h: Likewise.
12744         * include/fenv.h: Likewise.
12745         * include/glob.h: Likewise.
12746         * include/grp.h: Likewise.
12747         * include/libintl.h: Likewise.
12748         * include/mntent.h: Likewise.
12749         * include/netdb.h: Likewise.
12750         * include/pwd.h: Likewise.
12751         * include/rpc/netdb.h: Likewise.
12752         * include/sched.h: Likewise.
12753         * include/search.h: Likewise.
12754         * include/shadow.h: Likewise.
12755         * include/signal.h: Likewise.
12756         * include/stdio.h: Likewise.
12757         * include/stdlib.h: Likewise.
12758         * include/string.h: Likewise.
12759         * include/sys/socket.h: Likewise.
12760         * include/sys/stat.h: Likewise.
12761         * include/sys/statfs.h: Likewise.
12762         * include/sys/statvfs.h: Likewise.
12763         * include/sys/syslog.h: Likewise.
12764         * include/sys/time.h: Likewise.
12765         * include/sys/uio.h: Likewise.
12766         * include/time.h: Likewise.
12767         * include/unistd.h: Likewise.
12768         * include/utmp.h: Likewise.
12769         * include/wchar.h: Likewise.
12770         * include/wctype.h: Likewise.
12771         * inet/aliases.h: Likewise.
12772         * inet/arpa/inet.h: Likewise.
12773         * inet/netinet/ether.h: Likewise.
12774         * inet/netinet/in.h: Likewise.
12775         * intl/libintl.h: Likewise.
12776         * io/bits/fcntl2.h: Likewise.
12777         * io/fcntl.h: Likewise.
12778         * io/ftw.h: Likewise.
12779         * io/sys/poll.h: Likewise.
12780         * io/sys/stat.h: Likewise.
12781         * io/sys/statfs.h: Likewise.
12782         * io/sys/statvfs.h: Likewise.
12783         * io/utime.h: Likewise.
12784         * libio/bits/stdio.h: Likewise.
12785         * libio/bits/stdio2.h: Likewise.
12786         * libio/libio.h: Likewise.
12787         * libio/libioP.h: Likewise.
12788         * libio/stdio.h: Likewise.
12789         * locale/lc-ctype.c: Likewise.
12790         * locale/locale.h: Likewise.
12791         * login/utmp.h: Likewise.
12792         * malloc/arena.c: Likewise.
12793         * malloc/malloc.c: Likewise.
12794         * malloc/malloc.h: Likewise.
12795         * malloc/mcheck.c: Likewise.
12796         * malloc/mtrace.c: Likewise.
12797         * math/bits/mathcalls.h: Likewise.
12798         * math/fenv.h: Likewise.
12799         * math/math_private.h: Likewise.
12800         * misc/bits/error.h: Likewise.
12801         * misc/bits/syslog.h: Likewise.
12802         * misc/err.h: Likewise.
12803         * misc/error.h: Likewise.
12804         * misc/fstab.h: Likewise.
12805         * misc/mntent.h: Likewise.
12806         * misc/regexp.h: Likewise.
12807         * misc/search.h: Likewise.
12808         * misc/sgtty.h: Likewise.
12809         * misc/sys/mman.h: Likewise.
12810         * misc/sys/syslog.h: Likewise.
12811         * misc/sys/uio.h: Likewise.
12812         * misc/sys/xattr.h: Likewise.
12813         * misc/ttyent.h: Likewise.
12814         * nis/rpcsvc/ypclnt.h: Likewise.
12815         * nss/nss.h: Likewise.
12816         * posix/bits/unistd.h: Likewise.
12817         * posix/fnmatch.h: Likewise.
12818         * posix/glob.h: Likewise.
12819         * posix/sched.h: Likewise.
12820         * posix/spawn.h: Likewise.
12821         * posix/sys/wait.h: Likewise.
12822         * posix/unistd.h: Likewise.
12823         * posix/wordexp.h: Likewise.
12824         * pwd/pwd.h: Likewise.
12825         * resolv/netdb.h: Likewise.
12826         * resource/sys/resource.h: Likewise.
12827         * rt/aio.h: Likewise.
12828         * rt/bits/mqueue2.h: Likewise.
12829         * rt/mqueue.h: Likewise.
12830         * shadow/shadow.h: Likewise.
12831         * signal/signal.h: Likewise.
12832         * socket/send.c: Likewise.
12833         * socket/sendto.c: Likewise.
12834         * socket/sys/socket.h: Likewise.
12835         * stdio-common/printf.h: Likewise.
12836         * stdlib/bits/stdlib.h: Likewise.
12837         * stdlib/fmtmsg.h: Likewise.
12838         * stdlib/monetary.h: Likewise.
12839         * stdlib/stdlib.h: Likewise.
12840         * stdlib/ucontext.h: Likewise.
12841         * streams/stropts.h: Likewise.
12842         * string/argz.h: Likewise.
12843         * string/bits/string2.h: Likewise.
12844         * string/string.h: Likewise.
12845         * string/strings.h: Likewise.
12846         * sunrpc/rpc/auth.h: Likewise.
12847         * sunrpc/rpc/auth_des.h: Likewise.
12848         * sunrpc/rpc/clnt.h: Likewise.
12849         * sunrpc/rpc/netdb.h: Likewise.
12850         * sunrpc/rpc/pmap_clnt.h: Likewise.
12851         * sunrpc/rpc/xdr.h: Likewise.
12852         * sysdeps/generic/inttypes.h: Likewise.
12853         * sysdeps/generic/net/if.h: Likewise.
12854         * sysdeps/generic/sys/swap.h: Likewise.
12855         * sysdeps/gnu/net/if.h: Likewise.
12856         * sysdeps/gnu/utmpx.h: Likewise.
12857         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12858         * sysdeps/i386/i486/bits/string.h: Likewise.
12859         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12860         * sysdeps/s390/bits/string.h: Likewise.
12861         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12862         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12863         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12864         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12865         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12866         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12867         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12868         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12869         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12870         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12871         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12872         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12873         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12874         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12875         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12876         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12877         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12878         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12879         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12880         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12881         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12882         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12883         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12884         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12885         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12886         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12887         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12888         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12889         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12890         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12891         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12892         * sysvipc/sys/ipc.h: Likewise.
12893         * sysvipc/sys/msg.h: Likewise.
12894         * sysvipc/sys/sem.h: Likewise.
12895         * sysvipc/sys/shm.h: Likewise.
12896         * termios/termios.h: Likewise.
12897         * time/sys/time.h: Likewise.
12898         * time/time.h: Likewise.
12899         * wcsmbs/bits/wchar2.h: Likewise.
12900         * wcsmbs/uchar.h: Likewise.
12901         * wcsmbs/wchar.h: Likewise.
12902         * wctype/wctype.h: Likewise.
12903
12904         [BZ #13551]
12905         * Makeconfig: Remove all but ELF support including AIX support.
12906         * Makerules: Likewise.
12907         * config.h.in: Likewise.
12908         * config.make.in: Likewise.
12909         * configure: Likewise.
12910         * configure.in: Likewise.
12911         * csu/Makefile: Likewise.
12912         * csu/version.c: Likewise.
12913         * debug/Makefile: Likewise.
12914         * dlfcn/Makefile: Likewise.
12915         * elf/Makefile: Likewise.
12916         * extra-lib.mk: Likewise.
12917         * iconv/Makefile: Likewise.
12918         * include/libc-symbols.h: Likewise.
12919         * include/shlib-compat.h: Likewise.
12920         * resolv/Makefile: Likewise.
12921         * resolv/res_libc.c: Likewise.
12922         * rt/Makefile: Likewise.
12923         * sysdeps/i386/asm-syntax.h: Likewise.
12924         * sysdeps/i386/sysdep.h: Likewise.
12925         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12926         * sysdeps/mach/sysdep.h: Likewise.
12927         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12928         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12929         * sysdeps/s390/asm-syntax.h: Likewise.
12930         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12931         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12932         * sysdeps/sh/sysdep.h: Likewise.
12933         * sysdeps/unix/sparc/sysdep.h: Likewise.
12934         * sysdeps/wordsize-32/divdi3.c: Likewise.
12935         * sysdeps/x86_64/sysdep.h: Likewise.
12936
12937         * argp/Versions: Remove _argp_unlock_xxx.
12938
12939         [BZ #13559]
12940         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12941         * abilist/libBrokenLocale.abilist: Likewise.
12942         * abilist/libanl.abilist: Likewise.
12943         * abilist/libc.abilist: Likewise.
12944         * abilist/libcrypt.abilist: Likewise.
12945         * abilist/libdl.abilist: Likewise.
12946         * abilist/libm.abilist: Likewise.
12947         * abilist/libnsl.abilist: Likewise.
12948         * abilist/libpthread.abilist: Likewise.
12949         * abilist/libresolv.abilist: Likewise.
12950         * abilist/librt.abilist: Likewise.
12951         * abilist/libthread_db.abilist: Likewise.
12952         * abilist/libutil.abilist: Likewise.
12953         * abilist/libnss_db.abilist: New file.
12954
12955         * scripts/abilist.awk: Add support for indirect functions.
12956
12957         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12958
12959         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12960
12961         * shlib-versions: Remove entries for ports architectures.
12962
12963         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12964         files in ports.
12965         * elf/stackguard-macros.h: Remove support for IA-64.
12966         * elf/tst-auditmod1.c: Likewise.
12967         * sysdeps/generic/ldsodefs.h: Likewise.
12968
12969         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12970         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12971         configure files.
12972
12973         [BZ #13552]
12974         * configure.in: Remove --enable-omitfp support.
12975         * FAQ.in: Adjust.
12976         * config.make.in: Likewise.
12977         * Makeconfig: Likewise.
12978         * manual/install.texi: Likewise.
12979
12980         In case anyone cares, the IA-64 architecture could move to ports.
12981         * sysdeps/ia64/*: Removed.
12982         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12983         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12984
12985         [BZ #13555]
12986         * configure.in: Remove entries for unsupported architectures.
12987
12988         [BZ #13533]
12989         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12990         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12991         routines.
12992         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12993         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12994         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12995         fall back to using wcrtomb.
12996         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12997         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12998         renaming.
12999         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13000         * wcsmbs/tst-c16c32-1.c: New file.
13001
13002         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13003         local variable.
13004
13005         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13006
13007         * elf/tst-unique3.cc: Add explicit declaration of gets.
13008         * elf/tst-unique3lib.cc: Likewise.
13009         * elf/tst-unique3lib2.cc: Likewise.
13010         * elf/tst-unique4.cc: Likewise.
13011
13012         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13013
13014 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13015
13016         [BZ #13566]
13017         * assert/assert.h (static_assert): Don't define for C++.
13018         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13019         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13020
13021 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13022
13023         * iconv/loop.c (single loop): Fix assertion in storing of
13024         remaining bytes.
13025
13026         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13027
13028 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13029
13030         * posix/getconf.c: Update copyright year.
13031         * nss/getent.c: Likewise.
13032         * nss/makedb.c: Likewise.
13033         * iconv/iconvconfig.c: Likewise.
13034         * iconv/iconv_prog.c: Likewise.
13035         * elf/ldconfig.c: Likewise.
13036         * elf/pldd.c: Likewise.
13037         * elf/sotruss.ksh: Likewise.
13038         * catgets/gencat.c: Likewise.
13039         * csu/version.c: Likewise.
13040         * elf/ldd.bash.in: Likewise.
13041         * elf/sprof.c (print_version): Likewise.
13042         * locale/programs/locale.c: Likewise.
13043         * locale/programs/localedef.c: Likewise.
13044         * login/programs/pt_chown.c: Likewise.
13045         * nscd/nscd.c (print_version): Likewise.
13046         * debug/xtrace.sh: Likewise.
13047         * malloc/memusage.sh: Likewise.
13048         * malloc/mtrace.pl: Likewise.
13049         * debug/catchsegv.sh: Likewise.
13050
13051 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13052
13053         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13054         pure attribute.
13055
13056 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13057
13058         [BZ #13533]
13059         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13060         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13061         transformations.
13062         * iconv/gconv_int.h: Likewise.
13063         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13064         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13065         from libc for GLIBC_2.16.
13066         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13067         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13068         * wcsmbs/uchar.h: Really define mbstate_t.
13069         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13070         * wcsmbs/c16rtomb.c: New file.
13071         * wcsmbs/mbrtoc16.c: New file.
13072         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13073         for C/POSIX locale.
13074         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13075         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13076
13077         * wcsmbs/wchar.h: Add missing __restrict.
13078
13079 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13080
13081         [BZ #13532]
13082         * time/Makefile (routines): Add timespec_get.
13083         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13084         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13085         timespec for ISO C11.
13086         * time/timespec_get.c: New file.
13087         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13088         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13089
13090         [BZ #13531]
13091         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13092         * stdlib/stdlib.h: Declare aligned_alloc.
13093         * Versions.def: Add GLIBC_2.16 for libc.
13094         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13095
13096         [BZ 13527]
13097         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13098         ISO C11.
13099
13100         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13101         code.
13102
13103         [BZ #13528]
13104         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13105
13106         [BZ #13529]
13107         * assert/assert.h (static_assert): Define.
13108
13109         * version.h: Update for 2.16 development version.
13110
13111         [BZ #13526]
13112         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13113         _ISOC11_SOURCE.
13114
13115         * version.h (RELEASE): Bump for 2.15 release.
13116         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13117
13118         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13119         Patch by Marek Polacek <mpolacek@redhat.com>.
13120
13121         * bits/byteswap.h: Protect long long constants with __extension__.
13122         * sysdeps/i386/bits/byteswap.h: Likewise.
13123         * sysdeps/ia64/bits/byteswap.h: Likewise.
13124         * sysdeps/s390/bits/byteswap.h: Likewise.
13125         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13126
13127 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13128
13129         [BZ #13540]
13130         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13131         destination buffer.
13132         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13133
13134 2011-12-23  Marek Polacek  <polacek@redhat.com>
13135
13136         * elf/dl-addr.c (determine_info): Add inline keyword.
13137         * elf/tst-auditmod4b.c (check_avx): Likewise.
13138         * elf/tst-auditmod6b.c (check_avx): Likewise.
13139         * elf/tst-auditmod6c.c (check_avx): Likewise.
13140         * elf/tst-auditmod7b.c (check_avx): Likewise.
13141
13142 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13143
13144         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13145         !__SSE_MATH__.
13146
13147 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13148
13149         [BZ #13540]
13150         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13151         processing for last bytes.
13152
13153 2011-08-06  Bruno Haible  <bruno@clisp.org>
13154
13155         [BZ #13061]
13156         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13157         U+0385, not to U+1FEE.
13158
13159         [BZ #13062]
13160         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13161         entry for U+00A5 U+0301.
13162
13163 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13164
13165         [BZ #13166]
13166         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13167         buffer for the output is too small.
13168
13169         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13170         optimization.
13171
13172         [BZ #13185]
13173         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13174         SSE flags if possible.
13175
13176 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13177
13178         [BZ #13540]
13179         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13180         processing for last bytes.
13181
13182 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13183
13184         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13185         (syscall-list-default-options, syscall-list-default-condition)
13186         (syscall-list-includes): Define.
13187         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13188         list of ABIs and options and #if conditions for each ABI.  Do not
13189         handle common syscalls between ABIs specially.
13190         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13191         Remove.
13192         (syscall-list-variants, syscall-list-32bit-options)
13193         (syscall-list-32bit-condition, syscall-list-64bit-options)
13194         (syscall-list-64bit-condition): Define.
13195         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13196         (syscall-list-variants, syscall-list-32bit-options)
13197         (syscall-list-32bit-condition, syscall-list-64bit-options)
13198         (syscall-list-64bit-condition): Define.
13199         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13200         Remove.
13201         (syscall-list-variants, syscall-list-32bit-options)
13202         (syscall-list-32bit-condition, syscall-list-64bit-options)
13203         (syscall-list-64bit-condition): Define.
13204         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13205         Remove.
13206         (syscall-list-variants, syscall-list-32bit-options)
13207         (syscall-list-32bit-condition, syscall-list-64bit-options)
13208         (syscall-list-64bit-condition): Define.
13209
13210 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13211
13212         * locale/iso-639.def: Add brx entry.
13213
13214         [BZ #13328]
13215         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13216         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13217
13218         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13219         __feraiseexcept_renamed.
13220
13221 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13222
13223         [BZ #13538]
13224         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13225         EPOLLET with unsigned values.
13226         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13227         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13228
13229         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13230         to large cancellation.
13231         * math/s_cacoshf.c: Likewise.
13232         * math/s_cacoshl.c: Likewise.
13233
13234 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13235
13236         [BZ #13305]
13237         [BZ #12786]
13238         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13239         * math/s_cacoshf.c: Likewise.
13240         * math/s_cacoshl.c: Likewise.
13241
13242 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13243
13244         [BZ #13439]
13245         * iconv/gconv.h: Define __GCONV_SWAP.
13246         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13247         * iconvdata/utf-16.c: Likewise.
13248         * iconvdata/utf-32.c: Likewise.
13249
13250 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13251
13252         [BZ #13524]
13253         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13254         numerator after shifting it by one limb.
13255
13256 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13257
13258         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13259         under [__USE_EXTERN_INLINES].
13260
13261 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13262
13263         [BZ #13446]
13264         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13265
13266 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13267
13268         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13269         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13270         optimized code.
13271         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13272         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13273         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13274         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13275         for strncasecmp/strncasecmp_l compilation.
13276         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13277         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13278
13279 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13280
13281         [BZ #13484]
13282         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13283         of __asm__.
13284
13285 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13286
13287         [BZ #13506]
13288         * time/tzfile.c (__tzfile_read): Check values from file header.
13289
13290 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13291
13292         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13293         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13294         * powerpc/powerpc32/dl-start.S: Likewise.
13295         * powerpc/powerpc32/elf/start.S: Likewise.
13296         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13297         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13298         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13299         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13300         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13301         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13302         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13303         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13304         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13305         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13306         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13307         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13308         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13309         * powerpc/powerpc32/memset.S: Likewise.
13310         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13311         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13312         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13313         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13314         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13315         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13316         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13317         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13318         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13319         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13320         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13321         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13322         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13323
13324 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13325
13326         * math/libm-test.inc: Added more nearbyint tests.
13327         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13328         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13329         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13330         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13331
13332 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13333
13334         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13335         FD_CLOEXEC.
13336
13337 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13338
13339         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13340         Add wcscpy-ssse3 wcscpy-c.
13341         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13342         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13343         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13344         * sysdeps/x86_64/wcschr.S: New file.
13345         * sysdeps/x86_64/wcsrchr.S: New file.
13346         * string/test-strcmp.c: Remove checking of wcscmp function for
13347         wrong alignments.
13348         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13349         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13350         wcsrchr-sse2 wcsrchr-c.
13351         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13352         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13353         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13354         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13355         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13356         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13357         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13358         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13359         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13360         * wcsmbc/wcschr.c (WCSCHR): New macro.
13361
13362 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13363
13364         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13365         * wcsmbs/test-wcsrchr.c: New file.
13366         * string/test-strrchr.c: Add wcsrchr support.
13367         (WIDE): New macro.
13368         * wcsmbs/test-wcscpy.c: New file.
13369         * string/test-strcpy.c: Add wcscpy support.
13370         (WIDE): New macro.
13371
13372 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13373
13374         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13375         the inner loop.
13376
13377 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13378
13379         [BZ #13472]
13380         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13381
13382 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13383
13384         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13385         Minor optimizations.
13386
13387         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13388         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13389         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13390
13391 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13392
13393         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13394         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13395         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13396         for gcc to avoid warnings.
13397         * inet/Makefile (tests): Add tst-checks.
13398         * inet/tst-checks.c: New file.
13399
13400         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13401         warning.
13402
13403         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13404         __wmemcmp_sse2.
13405
13406         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13407         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13408
13409         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13410
13411 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13412
13413         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13414         problem.
13415
13416         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13417
13418 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13419
13420         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13421         conditional on GCC version.
13422         (__arch_compare_and_exchange_val_8_acq)
13423         (__arch_compare_and_exchange_val_16_acq)
13424         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13425         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13426         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13427
13428 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13429
13430         * sysdeps/sh/backtrace.c: New file.
13431
13432 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13433
13434         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13435         parenthesis.
13436
13437 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13438
13439         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13440         falling back to utime.
13441
13442 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13443
13444         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13445         expectations for float.
13446
13447 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13448
13449         * locale/weight.h (findidx): Add parameter len.
13450         * locale/weightwc.h (findidx): Likewise.
13451         * posix/fnmatch_loop.c (FCT): Adjust caller.
13452         * posix/regcomp.c (build_equiv_class): Likewise.
13453         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13454         * posix/regexec.c (check_node_accept_bytes): Likewise.
13455         * string/strcoll_l.c (STRCOLL): Likewise.
13456         * string/strxfrm_l.c (STRXFRM): Likewise.
13457
13458 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13459
13460         * Makefile.in: Remove CVSOPT handling.
13461         * configure.in: Remove use of AC_REVISION.
13462         * iconvdata/Makefile (distribute): No need to filter out CVS.
13463         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13464         handling.
13465
13466 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13467
13468         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13469         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13470         [USE_AS_STRNCASECMP_L]: Likewise.
13471         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13472         NO_TLS_DIRECT_SEG_REFS.
13473         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13474         Fix argument offsets for non-PIC.
13475         [USE_AS_STRNCASECMP_L]: Likewise.
13476         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13477         NO_TLS_DIRECT_SEG_REFS.
13478
13479 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13480
13481         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13482         O_CLOEXEC.
13483         * locale/loadlocale.c (_nl_load_locale): Likewise.
13484
13485 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13486
13487         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13488         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13489         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13490         (SYSCALL_GETTIME): Set errno on error.
13491
13492         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13493         count references to noai6ai_cached.
13494
13495 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13496
13497         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13498
13499         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13500         FD_CLOEXEC for /proc/self/maps.
13501
13502         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13503         FD_CLOEXEC for /proc/meminfo.
13504
13505         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13506         gai.conf.
13507
13508         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13509         FD_CLOEXEC for given file.
13510
13511         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13512
13513         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13514         FD_CLOEXEC for /etc/hosts.
13515         (_gethtent): Likewise.
13516
13517         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13518
13519         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13520         cancellation and set FD_CLOEXEC for /etc/netgroup.
13521
13522         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13523         reading /etc/publickey.
13524
13525         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13526         allow cancellation when reading /etc/group.
13527
13528         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13529         cancellation.
13530         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13531
13532         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13533         when using data file.
13534
13535         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13536
13537         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13538         (write_nis_obj): Use "c" and "e" in fopen.
13539
13540         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13541
13542         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13543
13544         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13545
13546         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13547
13548         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13549         locale.alias.
13550
13551         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13552
13553         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13554
13555         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13556
13557         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13558         file parsing and set FD_CLOEXEC.
13559
13560 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13561
13562         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13563
13564 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13565
13566         * malloc/arena.c (arena_get2): Don't call reused_arena when
13567         _int_new_arena failed.
13568
13569 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13570
13571         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13572         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13573         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13574         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13575         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13576         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13577         to compile strcasecmp and strncasecmp.
13578         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13579         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13580
13581         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13582
13583 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13584
13585         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13586         locale-defines.sym to gen-as-const-headers.
13587         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13588         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13589         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13590         to compile strcasecmp and strncasecmp.
13591         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13592         strcasecmp_l and strncasecmp_l.
13593         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13594         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13595         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13596         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13597         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13598         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13599         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13600         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13601         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13602         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13603         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13604
13605 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13606
13607         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13608         result of SYSDEP_GETTIME_CPU to retval.
13609         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13610         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13611
13612         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13613         variable.
13614
13615         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13616         mantissa words.
13617         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13618
13619         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13620         from unused variable.
13621
13622         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13623         DWARF definitions.
13624         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13625         for assembling.
13626
13627         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13628         over namespaces.
13629
13630         * sunrpc/rpc_prot.c (rejected): Fix case value.
13631
13632         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13633         unsigned long long int to avoid warnings in shift.
13634
13635         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13636         of use of trans.
13637         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13638         variable tmp.
13639
13640         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13641         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13642         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13643
13644         * nis/nis_table.c (nis_list): Use variable of correct type for
13645         result of __follow_path call.
13646
13647 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13648
13649         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13650         of math functions ceil, trunc, floor, round, and sqrt, when
13651         avaliable on the platform.
13652         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13653         name clash.
13654         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13655         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13656         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13657
13658 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13659
13660         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13661         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13662
13663 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13664
13665         * include/unistd.h: Fix __readlink return type.
13666         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13667
13668 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13669
13670         * stdlib/ucontext.h: Undo last change for makecontext.
13671
13672 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13673
13674         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13675
13676         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13677         * setjmp/setjmp.h: Mark functions as non-leaf.
13678         * setjmp/bits/setjmp2.h: Likewise.
13679         * stdlib/ucontext.h: Likewise.
13680
13681 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13682
13683         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13684         (reused_arena): Don't check arena limit.
13685         (arena_get2): Atomically check arena limit.
13686
13687 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13688
13689         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13690         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13691
13692         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13693         instructions.
13694
13695 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13696
13697         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13698         handler when locking.
13699
13700         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13701         Fix size of allocated buffer.
13702
13703 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13704
13705         [BZ #10103]
13706         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13707         declarations for long double functions.
13708         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13709
13710         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13711
13712 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13713
13714         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13715         installed.
13716
13717         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13718         is disabled.
13719
13720 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13721
13722         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13723
13724 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13725
13726         * include/alloca.h (stackinfo_alloca_round): Define.
13727         (extend_alloca): Use it.
13728         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13729         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13730         here.
13731
13732         * scripts/check-local-headers.sh: Ignore libaudit.h.
13733
13734         * nscd/Makefile (extra-objs): Make recursively expanded.
13735
13736 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13737
13738         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13739         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13740
13741         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13742         * posix/tst-rfc3484-2.c: Likewise.
13743         * posix/tst-rfc3484-3.c: Likewise.
13744
13745         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13746         process_vm_writev.
13747         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13748         process_vm_writev.
13749         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13750         process_vm_writev from libc using GLIBC_2.15 version.
13751
13752         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13753
13754 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13755
13756         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13757         stack usage.
13758
13759 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13760
13761         [BZ #13367]
13762         * nss/getent.c (initgroups_keys): Show error message in case no group
13763         names are given.
13764
13765         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13766         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13767         __bump_nl_timestamp.
13768         * nscd/connections (nscd_init): When host database is served open
13769         netlink socket and request notification about configuration changes.
13770         (main_loop_poll): Track netlink file descriptor and bump timestamp
13771         in case data becomes available.
13772         (main_loop_epoll): Likewise.
13773         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13774         (database_pers_head): Add extra_data fileds.
13775         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13776         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13777         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13778         Adjust caller.
13779         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13780         in6ai data, call __free_in6ai.
13781         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13782         Add -DHAVE_NETLINK.
13783         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13784         interface information.  Reuse previous data if netlink timestamp
13785         is not changed.
13786         (__bump_nl_timestamp): New function.
13787         (__free_in6ai): New function.
13788
13789 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13790
13791         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13792         close_not_cancel_no_status here.
13793         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13794
13795 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13796
13797         [BZ #13276]
13798         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13799         return value.
13800
13801         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13802         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13803         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13804
13805 2011-07-03  Andreas Jaeger  <aj@suse.de>
13806
13807         [BZ #10709]
13808         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13809         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13810         * math/libm-test.inc (sin_test): Add test case.
13811
13812 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13813
13814         [BZ #13337]
13815         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13816         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13817
13818         * elf/chroot_canon.c (chroot_canon): Cleanups.
13819
13820         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13821
13822         [BZ #13335]
13823         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13824         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13825
13826         * string/test-strchr.c: Make usable for strchrnul testing.
13827         * string/test-strchrnul.c: New file.
13828         * string/Makefile (strop-tests): Add strchrnul.
13829
13830         * po/it.po: Update from translation team.
13831         * po/es.po: Likewise.
13832
13833 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13834
13835         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13836         the three constants needed as parameters.  Drop the others.
13837         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13838         __m128i_strloadu_tolower.
13839         Create and initialize variable zero and use it in all the places
13840         where _mm_setzero_si128 was used.
13841
13842         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13843         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13844         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13845         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13846         anymore.
13847         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13848         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13849         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13850         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13851         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13852         __mpranred, __mptan.
13853         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13854         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13855         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13856         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13857         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13858         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13859         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13860         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13861         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13862
13863 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13864
13865         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13866         redefine if SHARED.
13867         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13868
13869         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13870         wide char related routines to wcsmbs subdir.
13871
13872 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13873
13874         [BZ #13344]
13875         * misc/sys/cdefs.h (__THROWNL): Define.
13876         * posix/unistd.h: Use __THREADNL instead of __THREAD
13877         for memory synchronization functions.
13878
13879 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13880
13881         [BZ #13349]
13882         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13883         doesn't exist.
13884         * manual/stdio.texi (Obstack Streams): Node removed.
13885
13886 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13887
13888         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13889         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13890         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13891
13892         * math/math_private.h (math_force_eval): Allow non-addressable
13893         arguments.
13894         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13895
13896 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13897
13898         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13899         file is not needed.
13900
13901         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13902         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13903         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13904         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13905         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13906         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13907         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13908         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13909         Add AVX variants.
13910         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13911         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13912         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13913         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13914         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13915         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13916         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13917         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13918         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13919         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13920         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13921         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13922         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13923         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13924         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13925         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13926         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13927         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13928         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13929
13930         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13931         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13932
13933         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13934         place.  Use VEX encoding when compiling for AVX.
13935
13936 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13937
13938         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13939         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13940
13941         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13942
13943 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13944
13945         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13946         useless if() expression.
13947         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13948         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13949         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13950         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13951         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13952         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13953         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13954         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13955         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13956         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13957         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13958         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13959         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13960         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13961         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13962         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13963         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13964         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13965         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13966
13967         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13968
13969 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13970
13971         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13972         condition.
13973         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13974
13975 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13976
13977         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13978         .text section.  Avoid duplicate constants.
13979         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13980         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13981         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13982         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13983         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13984         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13985         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13986         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13987         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13988         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13989         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13990         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13991         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13992         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13993         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13994         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13995         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13996         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13997         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13998         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13999         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14000         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14001         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14002         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14003         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14004         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14005         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14006         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14007         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14008         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14009         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14010         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14011         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14012         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14013         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14014         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14015         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14016         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14017         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14018         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14019         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14020         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14021         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14022         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14023         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14024
14025 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14026
14027         * sysdeps/x86_64/dla.h: Move to ...
14028         * sysdeps/x86_64/fpu/dla.h: ...here.
14029         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14030         situations.  Use __builtin_fma only for gcc 4.6 and up.
14031
14032         * config.make.in: Add have-mfma4 entry.
14033         * configure.in: Substitute libc_cv_cc_fma4.
14034         * math/Makefile (dbl-only-routines): Add sincostab.
14035         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14036         Use __sincostab not sincos.
14037         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14038         name is a macro.
14039         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14040         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14041         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14042         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14043         using __copysign.
14044         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14045         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14046         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14047         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14048         and __inv.
14049         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14050         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14051         __copysign.
14052         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14053         define aliases when function name is a macro.
14054         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14055         sysdeps/ieee754/dbl-64/sincos.tbl.
14056         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14057         fma4-enabled routines.
14058         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14059         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14060         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14061         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14062         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14063         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14064         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14065         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14066         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14067         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14068         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14069         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14070         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14071         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14072         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14073         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14074         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14075         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14076         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14077         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14078         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14079         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14080         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14081         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14082         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14083         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14084         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14085         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14086         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14087         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14088
14089         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14090         rename.
14091         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14092         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14093         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14094         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14095         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14096         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14097         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14098         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14099
14100 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14101
14102         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14103
14104 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14105
14106         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14107
14108         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14109         prediction.
14110         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14111
14112         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14113         Remove unused variable magic_bits.
14114         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14115
14116         * string/strnlen.c: Define and use STRNLEN macro.
14117         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14118         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14119         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14120         * wcsmbs/wcslen.c: Define and use WCSLEN.
14121         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14122         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14123         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14124         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14125         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14126         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14127         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14128
14129 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14130
14131         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14132         strnlen-sse2-no-bsf.
14133         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14134         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14135         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14136         Add strnlen support.
14137         (USE_AS_STRNLEN): New macro.
14138         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14139         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14140         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14141         * sysdeps/x86_64/wcslen.S: New file.
14142
14143 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14144
14145         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14146         XMM-moves are used for copying on small sizes.
14147
14148 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14149
14150         * wcsmbs/Makefile (strop-tests): Add wcschr.
14151         * wcsmbs/test-wcschr.c: New file.
14152         * string/test-strchr.c: Update.
14153         Add wcschr support.
14154         (WIDE): New macro.
14155
14156 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14157
14158         * wcsmbs/Makefile (strop-tests): Add wcslen.
14159         * wcsmbs/test-wcslen.c: New file.
14160         * string/test-strlen.c: Update.
14161         Add wcslen support.
14162         (WIDE): New macro.
14163
14164 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14165
14166         * po/it.po: Update from translation team.
14167
14168 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14169
14170         * sysdeps/x86_64/wcscmp.S: Update.
14171         Fix wrong comparison semantics.
14172         wcscmp shall use signed comparison not unsigned.
14173         Don't use substraction to avoid overflow bug.
14174         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14175         * wcsmbc/wcscmp.c: Likewise.
14176         * string/test-strcmp.c: Likewise.
14177         Add new tests to check cases with negative values.
14178
14179 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14180
14181         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14182         * sysdeps/x86_64/dla.h: ...here.  New file.
14183         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14184         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14185         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14186         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14187         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14188         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14189         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14190         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14191         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14192
14193 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14194
14195         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14196         __ynl_finite aliases.
14197
14198 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14199
14200         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14201
14202         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14203         define DLA_FMA.
14204         [DLA_FMA] (EMULV): Use DLA_FMA.
14205         [DLA_FMA] (MUL12): Use EMULV.
14206         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14207         that are not needed.
14208         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14209         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14210         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14211         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14212         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14213         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14214         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14215
14216 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14217
14218         * math/s_nan.c: Undef __nan.
14219         * math/s_nanf.c: Undef __nanf.
14220         * math/s_nanl.c: Undef __nanl.
14221         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14222         "math_private.h".
14223
14224 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14225
14226         * math/s_catan.c: Add branch predictions.
14227         * math/s_catanf.c: Likewise.
14228         * math/s_catanh.c: Likewise.
14229         * math/s_catanhf.c: Likewise.
14230         * math/s_catanhl.c: Likewise.
14231         * math/s_catanl.c: Likewise.
14232         * math/s_cexp.c: Likewise.
14233         * math/s_cexpf.c: Likewise.
14234         * math/s_cexpl.c: Likewise.
14235         * math/s_clog.c: Likewise.
14236         * math/s_clog10.c: Likewise.
14237         * math/s_clog10f.c: Likewise.
14238         * math/s_clog10l.c: Likewise.
14239         * math/s_clogf.c: Likewise.
14240         * math/s_clogl.c: Likewise.
14241         * math/s_csqrt.c: Likewise.
14242         * math/s_csqrtf.c: Likewise.
14243         * math/s_csqrtl.c: Likewise.
14244         * math/s_ctanf.c: Likewise.
14245         * math/s_ctanh.c: Likewise.
14246         * math/s_ctanhf.c: Likewise.
14247         * math/s_ctanhl.c: Likewise.
14248         * math/s_ctanl.c: Likewise.
14249
14250         * math/math_private.h: Define __nan, __nanf, __nanl.
14251         * math/s_cacosh.c: Include <math_private.h>.
14252         * math/s_cacoshl.c: Likewise.
14253         * math/s_casinh.c: Likewise.
14254         * math/s_casinhf.c: Likewise.
14255         * math/s_casinhl.c: Likewise.
14256         * math/s_ccos.c: Rely entire on ccosh.
14257         * math/s_ccosf.c: Rely entire on ccoshf.
14258         * math/s_ccosl.c: Rely entirely on ccoshl.
14259         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14260         Remove tests for FE_INVALID.
14261         * math/s_ccoshf.c: Likewise.
14262         * math/s_ccoshl.c: Likewise.
14263         * math/s_csin.c: Likewise.
14264         * math/s_csinf.c: Likewise.
14265         * math/s_csinh.c Likewise.
14266         * math/s_csinhf.c: Likewise.
14267         * math/s_csinhl.c: Likewise.
14268         * math/s_csinl.c: Likewise.
14269         * math/s_ctan.c: Likewise.
14270         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14271         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14272         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14273
14274 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14275
14276         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14277         compilation problems.
14278
14279         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14280         __builtin_expect.
14281
14282 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14283
14284         * sysdeps/i386/configure.in: Test for -mfma4 option.
14285         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14286         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14287         COMMON_CPUID_INDEX_80000001.
14288         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14289         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14290         use it if FMA3 is not supported.
14291         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14292
14293         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14294         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14295
14296 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14297
14298         [BZ #12892]
14299         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14300         it would create a cycle with a link time dependency.
14301
14302 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14303
14304         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14305         instruction.
14306         * string/Makefile (strop-tests): Add rawmemchr.
14307         * string/test-rawmemchr.c: New file.
14308
14309         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14310         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14311         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14312         when compiling str{,n}casecmp and when AVX is available.  Hook up
14313         new optimized code in initializers.
14314
14315 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14316
14317         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14318         __feraiseexcept instead of feraiseexcept.
14319
14320 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14321
14322         * math/math_private.h: Define defaults for libc_fetestexcept and
14323         libc_feupdateenv.
14324         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14325         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14326         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14327         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14328         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14329         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14330         libc_fetestexcept and libc_feupdateenv.
14331
14332         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14333         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14334         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14335         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14336         libc_feholdexcept_setround.
14337
14338         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14339         Add s_nearbyint-c and s_nearbyintf-c.
14340         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14341         nearbyintf inlines.
14342         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14343         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14344         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14345         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14346
14347         * math/math_private.h: Define defaults for libc_fegetround,
14348         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14349         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14350         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14351         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14352         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14353         standard functions.
14354         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14355         Remove comments and hacks for old compiler versions.
14356         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14357         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14358         libc_feholdexceptl.
14359
14360 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14361
14362         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14363         (__feraiseexcept_renamed): Add __NTH.
14364         (feraiseexcept): Add __NTH.  Rename local variables to fix
14365         namespace violations.
14366
14367 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14368
14369         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14370
14371         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14372
14373         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14374         recently added interfaces.
14375         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14376
14377         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14378         about macro parameter expansion.
14379
14380         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14381         __NO_MATH_INLINES is defined.  Cleanups.
14382
14383         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14384         and __floorf is target has SSE4.1.
14385         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14386         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14387         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14388         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14389
14390         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14391         name.
14392         (floorf): Likewise.
14393
14394         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14395
14396 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14397
14398         * misc/sys/cdefs.h: Fix last change.
14399
14400         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14401         database lookup.
14402
14403 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14404
14405         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14406
14407         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14408         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14409         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14410         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14411         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14412         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14413         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14414         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14415         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14416         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14417         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14418         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14419         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14420         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14421         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14422         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14423         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14424         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14425         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14426         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14427         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14428         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14429
14430         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14431         ceil, ceilf, floor, floorf.
14432
14433         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14434         Perform IRELATIVE relocations last.
14435
14436         * elf/do-rel.h: Add another parameter nrelative, replacing the
14437         local variable with the same name.  Change name of the function
14438         to end in Rel or Rela (uppercase).
14439         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14440         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14441         elf_dynamic_do_##reloc function.
14442
14443 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14444
14445         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14446         is sufficient, at least on modern CPUs.
14447
14448         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14449
14450         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14451         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14452
14453         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14454         __expl_finite.
14455         * math/bits/math-finite.h: Add entries for exp.
14456         * math/e_expl.c: Add __*_finite alias.
14457         * sysdeps/i386/fpu/e_exp.S: Likewise.
14458         * sysdeps/i386/fpu/e_expf.S: Likewise.
14459         * sysdeps/i386/fpu/e_expl.c: Likewise.
14460         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14461         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14462         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14463         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14464         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14465         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14466         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14467
14468         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14469         is sufficient, at least on modern CPUs.
14470
14471         * ctype/ctype-info.c (__ctype_init): Define.
14472         * include/ctype.h (__ctype_init): Declare.
14473         (__ctype_b_loc): The variable is always initialized.
14474         (__ctype_toupper_loc): Likewise.
14475         (__ctype_tolower_loc): Likewise.
14476         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14477         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14478
14479 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14480
14481         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14482
14483         * configure.in: Also look in $cxxmachine/include for C++ system
14484         headers.
14485
14486 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14487
14488         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14489         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14490         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14491         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14492         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14493         (USE_AS_WMEMCMP): New macro.
14494         Fixing indents.
14495         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14496         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14497         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14498         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14499         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14500         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14501         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14502         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14503         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14504         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14505         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14506         (USE_AS_WMEMCMP): New macro.
14507         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14508         * sysdeps/string/test-memcmp.c: Update.
14509         Fix simple_wmemcmp.
14510         Add new tests.
14511         * wcsmbs/wmemcmp.c: Update.
14512         (WMEMCMP): New macro.
14513         Fix overflow bug.
14514
14515 2011-10-12  Andreas Jaeger  <aj@suse.de>
14516
14517         [BZ #13268]
14518         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14519
14520 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14521
14522         * libio/iofwide.c (do_length): Avoid warning.
14523
14524         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14525
14526 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14527
14528         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14529
14530         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14531         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14532         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14533         * sysdeps/i386/i686/fpu/e_log.S: New file.
14534         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14535         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14536
14537         * ctype/ctype.h: Add support for inlined isXXX functions when
14538         compiling C++ code.
14539
14540 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14541
14542         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14543
14544         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14545
14546 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14547
14548         [BZ #13291]
14549         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14550
14551 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14552
14553         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14554         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14555         feraiseexcept.
14556
14557         * sysdeps/x86_64/memrchr.S: Check for zero size.
14558
14559         * string/stratcliff.c: Add memrchr tests.
14560
14561 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14562
14563         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14564         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14565         rawmemchr-sse2 rawmemchr-sse2-bsf.
14566         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14567         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14568         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14569         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14570         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14571         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14572         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14573         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14574         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14575         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14576         * string/memrchr.c (MEMRCHR): New macro.
14577
14578 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14579
14580         Add integration with gcc's -ffinite-math-only and optimize wrapper
14581         functions in libm.
14582         * Versions.def: Define GLIBC_2.15 version for libm.
14583         * math/Makefile (headers): Add bits/math-finite.h.
14584         * math/bits/math-finite.h: New file.
14585         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14586         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14587         * math/e_acoshl.c: Add __*_finite alias.
14588         * math/e_acosl.c: Likewise.
14589         * math/e_asinl.c: Likewise.
14590         * math/e_atan2l.c: Likewise.
14591         * math/e_atanhl.c: Likewise.
14592         * math/e_coshl.c: Likewise.
14593         * math/e_exp10.c: Likewise.
14594         * math/e_exp10f.c: Likewise.
14595         * math/e_exp10l.c: Likewise.
14596         * math/e_exp2l.c: Likewise.
14597         * math/e_fmodl.c: Likewise.
14598         * math/e_gammal_r.c: Likewise.
14599         * math/e_hypotl.c: Likewise.
14600         * math/e_j0l.c: Likewise.
14601         * math/e_j1l.c: Likewise.
14602         * math/e_jnl.c: Likewise.
14603         * math/e_lgammal_r.c: Likewise.
14604         * math/e_log10l.c: Likewise.
14605         * math/e_log2l.c: Likewise.
14606         * math/e_logl.c: Likewise.
14607         * math/e_powl.c: Likewise.
14608         * math/e_sinhl.c: Likewise.
14609         * math/e_sqrtl.c: Likewise.
14610         * math/e_scalb.c: Completely rewritten and optimized.
14611         * math/e_scalbf.c: Likewise.
14612         * math/e_scalbl.c: Likewise.
14613         * math/w_acos.c: Likewise.
14614         * math/w_acosf.c: Likewise.
14615         * math/w_acosl.c: Likewise.
14616         * math/w_acosh.c: Likewise.
14617         * math/w_acoshf.c: Likewise.
14618         * math/w_acoshl.c: Likewise.
14619         * math/w_asin.c: Likewise.
14620         * math/w_asinf.c: Likewise.
14621         * math/w_asinl.c: Likewise.
14622         * math/w_atan2.c: Likewise.
14623         * math/w_atan2f.c: Likewise.
14624         * math/w_atan2l.c: Likewise.
14625         * math/w_atanh.c: Likewise.
14626         * math/w_atanhf.c: Likewise.
14627         * math/w_atanhl.c: Likewise.
14628         * math/w_exp10.c: Likewise.
14629         * math/w_exp10f.c: Likewise.
14630         * math/w_exp10l.c: Likewise.
14631         * math/w_fmod.c: Likewise.
14632         * math/w_fmodf.c: Likewise.
14633         * math/w_fmodl.c: Likewise.
14634         * math/w_j0.c: Likewise.
14635         * math/w_j0f.c: Likewise.
14636         * math/w_j0l.c: Likewise.
14637         * math/w_j1.c: Likewise.
14638         * math/w_j1f.c: Likewise.
14639         * math/w_j1l.c: Likewise.
14640         * math/w_jn.c: Likewise.
14641         * math/w_jnf.c: Likewise.
14642         * math/w_log.c: Likewise.
14643         * math/w_logf.c: Likewise.
14644         * math/w_logl.c: Likewise.
14645         * math/w_log10.c: Likewise.
14646         * math/w_log10f.c: Likewise.
14647         * math/w_log10l.c: Likewise.
14648         * math/w_log2.c: Likewise.
14649         * math/w_log2f.c: Likewise.
14650         * math/w_log2l.c: Likewise.
14651         * math/w_pow.c: Likewise.
14652         * math/w_powf.c: Likewise.
14653         * math/w_powl.c: Likewise.
14654         * math/w_remainder.c: Likewise.
14655         * math/w_remainderf.c: Likewise.
14656         * math/w_remainderl.c: Likewise.
14657         * math/w_scalb.c: Likewise.
14658         * math/w_scalbf.c: Likewise.
14659         * math/w_scalbl.c: Likewise.
14660         * math/w_sqrt.c: Likewise.
14661         * math/w_sqrtf.c: Likewise.
14662         * math/w_sqrtl.c: Likewise.
14663         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14664         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14665         used.
14666         * math/math_private.h: Declare __kernel_standard_f.
14667         * math/w_cosh.c: Remove cruft and optimize a bit.
14668         * math/w_coshf.c: Likewise.
14669         * math/w_coshl.c: Likewise.
14670         * math/w_exp2.c: Likewise.
14671         * math/w_exp2f.c: Likewise.
14672         * math/w_exp2l.c: Likewise.
14673         * math/w_hypot.c: Likewise.
14674         * math/w_hypotf.c: Likewise.
14675         * math/w_hypotl.c: Likewise.
14676         * math/w_lgamma.c: Likewise.
14677         * math/w_lgamma_r.c: Likewise.
14678         * math/w_lgammaf.c: Likewise.
14679         * math/w_lgammaf_r.c: Likewise.
14680         * math/w_lgammal.c: Likewise.
14681         * math/w_lgammal_r.c: Likewise.
14682         * math/w_sinh.c: Likewise.
14683         * math/w_sinhf.c: Likewise.
14684         * math/w_sinhl.c: Likewise.
14685         * math/w_tgamma.c: Likewise.
14686         * math/w_tgammaf.c: Likewise.
14687         * math/w_tgammal.c: Likewise.
14688         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14689         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14690         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14691         Minor optimizations.  Pretty printing.  Remove cruft.
14692         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14693         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14694         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14695         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14696         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14697         * sysdeps/i386/fpu/e_asin.S: Likewise.
14698         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14699         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14700         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14701         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14702         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14703         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14704         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14705         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14706         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14707         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14708         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14709         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14710         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14711         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14712         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14713         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14714         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14715         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14716         * sysdeps/i386/fpu/e_log.S: Likewise.
14717         * sysdeps/i386/fpu/e_log10.S: Likewise.
14718         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14719         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14720         * sysdeps/i386/fpu/e_log2.S: Likewise.
14721         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14722         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14723         * sysdeps/i386/fpu/e_logf.S: Likewise.
14724         * sysdeps/i386/fpu/e_logl.S: Likewise.
14725         * sysdeps/i386/fpu/e_pow.S: Likewise.
14726         * sysdeps/i386/fpu/e_powf.S: Likewise.
14727         * sysdeps/i386/fpu/e_powl.S: Likewise.
14728         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14729         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14730         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14731         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14732         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14733         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14734         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14735         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14736         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14737         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14738         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14739         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14740         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14741         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14742         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14743         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14744         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14745         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14746         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14747         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14748         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14749         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14750         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14751         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14752         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14753         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14754         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14755         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14756         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14757         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14758         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14759         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14760         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14761         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14762         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14763         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14764         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14765         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14766         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14767         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14768         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14769         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14770         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14771         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14772         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14773         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14774         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14775         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14776         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14777         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14778         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14779         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14780         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14781         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14782         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14783         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14784         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14785         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14786         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14787         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14788         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14789         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14790         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14791         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14792         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14793         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14794         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14795         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14796         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14797         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14798         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14799         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14800         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14801         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14802         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14803         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14804         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14805         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14806         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14807         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14808         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14809         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14810         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14811         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14812         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14813         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14814         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14815         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14816         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14817         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14818         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14819         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14820         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14821         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14822         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14823         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14824         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14825         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14826         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14827         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14828         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14829         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14830         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14831         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14832         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14833         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14834         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14835         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14836         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14837         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14838         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14839         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14840         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14841         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14842         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14843         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14844         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14845         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14846         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14847         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14848         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14849         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14850         (__isnanf): Likewise.
14851         (__isinf_ns): Likewise.
14852         (__isinf_nsf): Likewise.
14853         (__finite): Likewise.
14854         (__finitef): Likewise.
14855         (__ieee754_sqrt): Define as macro.
14856         (__ieee754_sqrtf): Define as macro.
14857         (__ieee754_sqrtl): Define as macro.
14858         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14859         inlined copy.
14860         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14861         __FINITE_MATH_ONLY__ consistent.
14862         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14863
14864 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14865
14866         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14867         of rawmemchr.
14868
14869         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14870
14871 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14872
14873         * po/ja.po: Update from translation team.
14874
14875 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14876
14877         * locale/programs/locarchive.c (prepare_address_space): New function.
14878         (create_archive, enlarge_archive, open_archive): Use it.
14879
14880         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14881         inside [SHARED], where it is used.
14882
14883         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14884
14885         * nss/getent.c (netgroup_keys): Remove unused variable.
14886         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14887
14888 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14889
14890         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14891         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14892         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14893         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14894         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14895         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14896         * math/Makefile (libm-calls): Add s_isinf_ns.
14897         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14898         * math/multc3.c: Likewise.
14899         * math/s_casin.c: Likewise.
14900         * math/s_casinf.c: Likewise.
14901         * math/s_casinl.c: Likewise.
14902         * math/s_ccos.c: Likewise.
14903         * math/s_ccosf.c: Likewise.
14904         * math/s_ccosl.c: Likewise.
14905         * math/s_ctan.c: Likewise.
14906         * math/s_ctanf.c: Likewise.
14907         * math/s_ctanh.c: Likewise.
14908         * math/s_ctanhf.c: Likewise.
14909         * math/s_ctanhl.c: Likewise.
14910         * math/s_ctanl.c: Likewise.
14911         * math/w_fmod.c: Likewise.
14912         * math/w_fmodf.c: Likewise.
14913         * math/w_fmodl.c: Likewise.
14914         * math/w_remainder.c: Likewise.
14915         * math/w_remainderf.c: Likewise.
14916         * math/w_remainderl.c: Likewise.
14917         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14918         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14919         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14920         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14921         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14922         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14923         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14924         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14925
14926         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14927         of the number.
14928         * stdio-common/printf_fphex.c: Likewise.
14929         * stdio-common/printf_size.c: Likewise.
14930
14931         * math/e_exp10.c: Include math_private.h using <...> not "...".
14932         * math/e_exp10f.c: Likewise.
14933         * math/e_exp10l.c: Likewise.
14934         * math/e_exp2l.c: Likewise.
14935         * math/e_j0l.c: Likewise.
14936         * math/e_j1l.c: Likewise.
14937         * math/e_jnl.c: Likewise.
14938         * math/e_lgammal_r.c: Likewise.
14939         * math/e_rem_pio2l.c: Likewise.
14940         * math/e_scalb.c: Likewise.
14941         * math/e_scalbf.c: Likewise.
14942         * math/e_scalbl.c: Likewise.
14943         * math/k_cosl.c: Likewise.
14944         * math/k_sinl.c: Likewise.
14945         * math/k_tanl.c: Likewise.
14946         * math/s_cacoshf.c: Likewise.
14947         * math/s_catan.c: Likewise.
14948         * math/s_catanf.c: Likewise.
14949         * math/s_catanh.c: Likewise.
14950         * math/s_catanhf.c: Likewise.
14951         * math/s_catanhl.c: Likewise.
14952         * math/s_catanl.c: Likewise.
14953         * math/s_ccosh.c: Likewise.
14954         * math/s_ccoshf.c: Likewise.
14955         * math/s_ccoshl.c: Likewise.
14956         * math/s_cexp.c: Likewise.
14957         * math/s_cexpf.c: Likewise.
14958         * math/s_cexpl.c: Likewise.
14959         * math/s_clog.c: Likewise.
14960         * math/s_clog10.c: Likewise.
14961         * math/s_clog10f.c: Likewise.
14962         * math/s_clog10l.c: Likewise.
14963         * math/s_clogf.c: Likewise.
14964         * math/s_clogl.c: Likewise.
14965         * math/s_csin.c: Likewise.
14966         * math/s_csinf.c: Likewise.
14967         * math/s_csinh.c: Likewise.
14968         * math/s_csinhf.c: Likewise.
14969         * math/s_csinhl.c: Likewise.
14970         * math/s_csinl.c: Likewise.
14971         * math/s_csqrt.c: Likewise.
14972         * math/s_csqrtf.c: Likewise.
14973         * math/s_csqrtl.c: Likewise.
14974         * math/s_ctan.c: Likewise.
14975         * math/s_ctanf.c: Likewise.
14976         * math/s_ctanh.c: Likewise.
14977         * math/s_ctanhf.c: Likewise.
14978         * math/s_ctanhl.c: Likewise.
14979         * math/s_ctanl.c: Likewise.
14980         * math/s_ldexp.c: Likewise.
14981         * math/s_ldexpf.c: Likewise.
14982         * math/s_ldexpl.c: Likewise.
14983         * math/s_significand.c: Likewise.
14984         * math/s_significandf.c: Likewise.
14985         * math/s_significandl.c: Likewise.
14986         * math/w_acos.c: Likewise.
14987         * math/w_acosf.c: Likewise.
14988         * math/w_acosh.c: Likewise.
14989         * math/w_acoshf.c: Likewise.
14990         * math/w_acoshl.c: Likewise.
14991         * math/w_acosl.c: Likewise.
14992         * math/w_asin.c: Likewise.
14993         * math/w_asinf.c: Likewise.
14994         * math/w_asinl.c: Likewise.
14995         * math/w_atan2.c: Likewise.
14996         * math/w_atan2f.c: Likewise.
14997         * math/w_atan2l.c: Likewise.
14998         * math/w_atanh.c: Likewise.
14999         * math/w_atanhf.c: Likewise.
15000         * math/w_atanhl.c: Likewise.
15001         * math/w_cosh.c: Likewise.
15002         * math/w_coshf.c: Likewise.
15003         * math/w_coshl.c: Likewise.
15004         * math/w_dremf.c: Likewise.
15005         * math/w_exp10.c: Likewise.
15006         * math/w_exp10f.c: Likewise.
15007         * math/w_exp10l.c: Likewise.
15008         * math/w_exp2.c: Likewise.
15009         * math/w_exp2f.c: Likewise.
15010         * math/w_fmod.c: Likewise.
15011         * math/w_fmodf.c: Likewise.
15012         * math/w_fmodl.c: Likewise.
15013         * math/w_hypot.c: Likewise.
15014         * math/w_hypotf.c: Likewise.
15015         * math/w_hypotl.c: Likewise.
15016         * math/w_j0.c: Likewise.
15017         * math/w_j0f.c: Likewise.
15018         * math/w_j0l.c: Likewise.
15019         * math/w_j1.c: Likewise.
15020         * math/w_j1f.c: Likewise.
15021         * math/w_j1l.c: Likewise.
15022         * math/w_jn.c: Likewise.
15023         * math/w_jnf.c: Likewise.
15024         * math/w_jnl.c: Likewise.
15025         * math/w_lgamma.c: Likewise.
15026         * math/w_lgamma_r.c: Likewise.
15027         * math/w_lgammaf.c: Likewise.
15028         * math/w_lgammaf_r.c: Likewise.
15029         * math/w_lgammal.c: Likewise.
15030         * math/w_lgammal_r.c: Likewise.
15031         * math/w_log.c: Likewise.
15032         * math/w_log10.c: Likewise.
15033         * math/w_log10f.c: Likewise.
15034         * math/w_log10l.c: Likewise.
15035         * math/w_log2.c: Likewise.
15036         * math/w_log2f.c: Likewise.
15037         * math/w_log2l.c: Likewise.
15038         * math/w_logf.c: Likewise.
15039         * math/w_logl.c: Likewise.
15040         * math/w_pow.c: Likewise.
15041         * math/w_powf.c: Likewise.
15042         * math/w_powl.c: Likewise.
15043         * math/w_remainder.c: Likewise.
15044         * math/w_remainderf.c: Likewise.
15045         * math/w_remainderl.c: Likewise.
15046         * math/w_scalb.c: Likewise.
15047         * math/w_scalbf.c: Likewise.
15048         * math/w_scalbl.c: Likewise.
15049         * math/w_sinh.c: Likewise.
15050         * math/w_sinhf.c: Likewise.
15051         * math/w_sinhl.c: Likewise.
15052         * math/w_sqrt.c: Likewise.
15053         * math/w_sqrtf.c: Likewise.
15054         * math/w_sqrtl.c: Likewise.
15055         * math/w_tgamma.c: Likewise.
15056         * math/w_tgammaf.c: Likewise.
15057         * math/w_tgammal.c: Likewise.
15058
15059         * po/ja.po: Update from translation team.
15060
15061 2011-09-29  Andreas Jaeger  <aj@suse.de>
15062
15063         [BZ #13179]
15064         * sunrpc/netname.c (netname2host): Fix logic.
15065
15066         [BZ #6779]
15067         [BZ #6783]
15068         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15069         correctly.
15070         * math/w_remainder.c (__remainder): Likewise.
15071         * math/w_remainderf.c (__remainderf): Likewise.
15072         * math/libm-test.inc (remainder_test): Add test cases.
15073
15074 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15075
15076         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15077         sdiv_qrnnd.
15078
15079 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15080
15081         * string/test-memcmp.c: Avoid unncessary #defines.
15082         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15083
15084 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15085
15086         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15087         Use new sse2 version for core i3 - i7 as it's faster
15088         than sse42 version.
15089         (bit_Prefer_PMINUB_for_stringop): New.
15090         * sysdeps/x86_64/rawmemchr.S: Update.
15091         Replace with faster SSE2 version.
15092         * sysdeps/x86_64/memrchr.S: New file.
15093         * sysdeps/x86_64/memchr.S: Update.
15094         Replace with faster SSE2 version.
15095
15096 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15097
15098         * elf/dl-load.c (lose): Add cast to avoid warning.
15099
15100 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15101
15102         * po/ca.po: Update from translation team.
15103
15104         * inet/getnetgrent_r.c: Hook up nscd.
15105         * nscd/Makefile (routines): Add nscd_netgroup.
15106         (nscd-modules): Add netgroupcache.
15107         (CFLAGS-netgroupcache.c): Define.
15108         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15109         (cache_search): Add const to second parameter.
15110         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15111         INNETGR.
15112         (dbs): Add netgrdb entry.
15113         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15114         (verify_persistent_db): Handle netgrdb.
15115         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15116         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15117         GETFDNETGR.
15118         (netgroup_response_header): Define.
15119         (innetgroup_response_header): Define.
15120         (datahead): Add netgroup_response_header and innetgroup_response_header
15121         elements.
15122         * nscd/nscd.conf: Add entries for netgroup cache.
15123         * nscd/nscd.h (dbtype): Add netgrdb.
15124         (_PATH_NSCD_NETGROUP_DB): Define.
15125         (netgroup_iov_disabled): Declare.
15126         (xmalloc, xcalloc, xrealloc): Move declarations here.
15127         (cache_search): Adjust prototype.
15128         Add netgroup-related prototypes.
15129         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15130         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15131         (__nscd_innetgr): Declare.
15132         * nscd/selinux.c (perms): Use access_vector_t as element type and
15133         add netgroup-related initializers.
15134         * nscd/netgroupcache.c: New file.
15135         * nscd/nscd_netgroup.c: New file.
15136         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15137         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15138         For four parameters use innetgr.
15139         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15140         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15141         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15142         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15143
15144         * nscd/connections.c (register_traced_file): Don't register file
15145         for disabled databases.
15146
15147 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15148
15149         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15150
15151         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15152         from tree and freeing node.
15153
15154 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15155
15156         * nss/nsswitch.c (__nss_database_lookup): Handle
15157         nss_parse_service_list out of memory case.
15158
15159 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15160
15161         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15162         out of memory case.
15163
15164 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15165
15166         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15167         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15168         pass it down.
15169         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15170         elf_machine_rela, elf_machine_lazy_rel.
15171         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15172         (ELF_DYNAMIC_DO_REL): Likewise.
15173         (ELF_DYNAMIC_DO_RELA): Likewise.
15174         (ELF_DYNAMIC_RELOCATE): Likewise.
15175         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15176         to ELF_DYNAMIC_DO_REL.
15177         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15178         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15179         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15180         elf_machine_rela.
15181         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15182         skip_ifunc, don't call ifunc function if non-zero.
15183         (elf_machine_rela): Likewise.
15184         (elf_machine_lazy_rel): Likewise.
15185         (elf_machine_lazy_rela): Likewise.
15186         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15187         (elf_machine_lazy_rel): Likewise.
15188         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15189         Likewise.
15190         (elf_machine_lazy_rel): Likewise.
15191         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15192         Likewise.
15193         (elf_machine_lazy_rel): Likewise.
15194         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15195         (elf_machine_lazy_rel): Likewise.
15196         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15197         (elf_machine_lazy_rel): Likewise.
15198         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15199         (elf_machine_lazy_rel): Likewise.
15200         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15201         (elf_machine_lazy_rel): Likewise.
15202         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15203         (elf_machine_lazy_rel): Likewise.
15204         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15205         (elf_machine_lazy_rel): Likewise.
15206
15207 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15208
15209         * nss/nss_files/files-init.c (_nss_files_init): Use static
15210         initialization for all the *_traced_file variables.
15211
15212 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15213
15214         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15215
15216 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15217
15218         [BZ #13226]
15219         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15220
15221 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15222
15223         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15224         Reread the line before reparsing it.
15225
15226 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15227
15228         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15229
15230 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15231             Maxim Kuvyrkov  <maxim@codesourcery.com>
15232             Joseph Myers  <joseph@codesourcery.com>
15233
15234         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15235         if needed for __stack_chk_guard.
15236
15237 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15238
15239         * sysdeps/posix/spawni.c (script_execute): Always define it.
15240         It will be optimized away if unused.
15241         (maybe_script_execute): New function.
15242         (__spawni): Call it.
15243
15244         * Makerules: Don't include tls.make.
15245         (config-tls): Always set to thread.
15246         * tls.make.c: File removed.
15247
15248 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15249
15250         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15251         * config.make.in (CPPFLAGS-config): New substituted variable.
15252
15253 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15254
15255         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15256
15257         [BZ #13192]
15258         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15259         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15260
15261 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15262
15263         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15264         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15265         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15266         (CALL_FAIL): Likewise.
15267         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15268         (CALL_FAIL): Macro removed.
15269         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15270
15271 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15272
15273         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15274         for __FINITE_MATH_ONLY__ == 1.
15275
15276 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15277
15278         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15279         __ieee754_sqrt instead of sqrt.
15280         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15281         __ieee754_sqrtf instead of sqrtf.
15282         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15283         __floorf instead of floorf.
15284         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15285         __floorf, __truncf instead of floorf, truncf.
15286
15287 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15288
15289         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15290
15291         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15292         __extern_always_inline.
15293         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15294         32-bit.
15295
15296 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15297
15298         * elf/rtld.c (dl_main): Also relocate in dependency order when
15299         doing symbol dependency testing.
15300
15301 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15302
15303         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15304         Always define `refsym'.
15305
15306 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15307
15308         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15309         (__FD_ELT): Renamed from __FDELT.
15310         * misc/bits/select2.h (__FD_ELT): Likewise.
15311         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15312         __FD_MASK instead of __FDELT, __FDMASK.
15313         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15314         Likewise.
15315         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15316         Likewise.
15317
15318         * elf/Makefile (gen-ldd): Fix pattern.
15319
15320         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15321         (init_tls): Likewise.
15322
15323 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15324
15325         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15326
15327 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15328
15329         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15330         `struct cmsghdr *' instead of `void *'.
15331         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15332         Likewise.
15333
15334 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15335
15336         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15337         if non-absolute.
15338         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15339         ldd_rewrite_script.
15340
15341 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15342
15343         * configure.in: Remove --with-tls option.
15344         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15345         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15346         out in case it is missing.
15347         * sysdeps/ia64/elf/configure.in: Likewise.
15348         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15349         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15350         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15351         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15352         * sysdeps/sh/elf/configure.in: Likewise.
15353         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15354         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15355         * sysdeps/x86_64/elf/configure.in: Likewise.
15356         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15357         * sysdeps/mach/hurd/tls.h: Likewise.
15358
15359         [BZ #13067]
15360         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15361
15362         [BZ #13090]
15363         * configure.in: Fix use of AC_INIT.
15364
15365         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15366
15367 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15368
15369         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15370         __set_errno.
15371         * malloc/hooks.c: Likewise.
15372
15373         [BZ #11929]
15374         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15375         variables statically.
15376         (narenas): Initialize.
15377         (list_lock): Initialize.
15378         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15379         initializtion of main_arena and list_lock.  Small cleanups.
15380         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15381         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15382         Add initializers to main_arena and mp_.
15383         (malloc_state): Remove pagesize member.  Change all users to use
15384         GLRO(dl_pagesize).
15385
15386         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15387         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15388         is always initialized.
15389
15390         * malloc/malloc.c: Removed unused configurations and dead code.
15391         * malloc/arena.c: Likewise.
15392         * malloc/hooks.c: Likewise.
15393         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15394
15395         * include/tls.h: Removed.  USE___THREAD must always be defined.
15396         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15397         * elf/dl-libc.c: Likewise.
15398         * elf/dl-tsd.c: Likewise.
15399         * include/errno.h: Likewise.
15400         * include/netdb.h: Likewise.
15401         * include/resolv.h: Likewise.
15402         * inet/herrno-loc.c: Likewise.
15403         * inet/herrno.c: Likewise.
15404         * malloc/arena.c: Likewise.
15405         * malloc/hooks.c: Likewise.
15406         * malloc/malloc.c: Likewise.
15407         * resolv/res-state.c: Likewise.
15408         * resolv/res_libc.c: Likewise.
15409         * sysdeps/i386/dl-machine.h: Likewise.
15410         * sysdeps/ia64/dl-machine.h: Likewise.
15411         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15412         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15413         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15414         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15415         * sysdeps/sh/dl-machine.h: Likewise.
15416         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15417         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15418         * sysdeps/unix/i386/sysdep.S: Likewise.
15419         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15420         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15421         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15422         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15423         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15424         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15425         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15426         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15427         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15428         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15429         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15430         * sysdeps/x86_64/dl-machine.h: Likewise.
15431         * tls.make.c: Likewise.
15432
15433         * configure.in: Remove --with-__thread option.  Make tests for
15434         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15435         tls_model attribute fail if no support is available.  Remove
15436         USE_IN_LIBIO.
15437         * Makeconfig: Adjust for dropped configure option.  All features are
15438         now mandatory.
15439         * Makerules: Likewise.
15440         * Versions.def: Likewise.
15441         * argp/argp-fmtstream.c: Likewise.
15442         * argp/argp-fmtstream.h: Likewise.
15443         * argp/argp-help.c: Likewise.
15444         * assert/assert.c: Likewise.
15445         * config.h.in: Likewise.
15446         * config.make.in: Likewise.
15447         * configure: Likewise.
15448         * configure.in: Likewise.
15449         * csu/Versions: Likewise.
15450         * csu/init.c: Likewise.
15451         * elf/tst-audit2.c: Likewise.
15452         * elf/tst-tls10.c: Likewise.
15453         * elf/tst-tls10.h: Likewise.
15454         * elf/tst-tls11.c: Likewise.
15455         * elf/tst-tls12.c: Likewise.
15456         * elf/tst-tls14.c: Likewise.
15457         * elf/tst-tlsmod11.c: Likewise.
15458         * elf/tst-tlsmod12.c: Likewise.
15459         * elf/tst-tlsmod13.c: Likewise.
15460         * elf/tst-tlsmod13a.c: Likewise.
15461         * elf/tst-tlsmod14a.c: Likewise.
15462         * elf/tst-tlsmod15b.c: Likewise.
15463         * elf/tst-tlsmod16a.c: Likewise.
15464         * elf/tst-tlsmod16b.c: Likewise.
15465         * elf/tst-tlsmod7.c: Likewise.
15466         * elf/tst-tlsmod8.c: Likewise.
15467         * elf/tst-tlsmod9.c: Likewise.
15468         * gmon/gmon.c: Likewise.
15469         * grp/fgetgrent_r.c: Likewise.
15470         * grp/putgrent.c: Likewise.
15471         * hurd/fopenport.c: Likewise.
15472         * include/libc-symbols.h: Likewise.
15473         * include/tls.h: Likewise.
15474         * intl/gettextP.h: Likewise.
15475         * intl/loadinfo.h: Likewise.
15476         * locale/global-locale.c: Likewise.
15477         * locale/localeinfo.h: Likewise.
15478         * mach/devstream.c: Likewise.
15479         * malloc/arena.c: Likewise.
15480         * malloc/set-freeres.c: Likewise.
15481         * misc/err.c: Likewise.
15482         * misc/getttyent.c: Likewise.
15483         * misc/mntent_r.c: Likewise.
15484         * posix/getopt.c: Likewise.
15485         * posix/wordexp.c: Likewise.
15486         * pwd/fgetpwent_r.c: Likewise.
15487         * resolv/Versions: Likewise.
15488         * resolv/res_hconf.c: Likewise.
15489         * shadow/fgetspent_r.c: Likewise.
15490         * shadow/putspent.c: Likewise.
15491         * stdio-common/printf_fphex.c: Likewise.
15492         * stdio-common/tmpfile.c: Likewise.
15493         * stdlib/abort.c: Likewise.
15494         * stdlib/fmtmsg.c: Likewise.
15495         * sunrpc/auth_unix.c: Likewise.
15496         * sunrpc/clnt_perr.c: Likewise.
15497         * sunrpc/clnt_tcp.c: Likewise.
15498         * sunrpc/clnt_udp.c: Likewise.
15499         * sunrpc/clnt_unix.c: Likewise.
15500         * sunrpc/openchild.c: Likewise.
15501         * sunrpc/svc_simple.c: Likewise.
15502         * sunrpc/svc_tcp.c: Likewise.
15503         * sunrpc/svc_udp.c: Likewise.
15504         * sunrpc/svc_unix.c: Likewise.
15505         * sunrpc/xdr.c: Likewise.
15506         * sunrpc/xdr_array.c: Likewise.
15507         * sunrpc/xdr_rec.c: Likewise.
15508         * sunrpc/xdr_ref.c: Likewise.
15509         * sunrpc/xdr_stdio.c: Likewise.
15510
15511 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15512
15513         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15514
15515 2011-07-03  Andreas Jaeger  <aj@suse.de>
15516
15517         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15518         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15519         regenerate with gen-libm-tests.pl.
15520
15521 2010-05-12  Petr Baudis  <pasky@suse.cz>
15522
15523         [BZ #11589]
15524         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15525         around j0() zero points by switching to j1().
15526         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15527         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15528         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15529         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15530
15531 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15532
15533         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15534         instead of 0.
15535         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15536         instead of 0.                              .
15537         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15538         Patch in part by Pavel Roskin <proski@gnu.org>.
15539
15540         [BZ #13138]
15541         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15542         realloc.
15543         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15544         Free memory block if necessary.
15545
15546         [BZ #12847]
15547         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15548         be NULL.  Don't lock in this case.
15549
15550 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15551
15552         * elf/elf.h (ELFOSABI_GNU): New macro.
15553         (ELFOSABI_LINUX): Define to that.
15554
15555 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15556
15557         * string/strncat.c (strncat): Undef the symbol in case it has been
15558         defined in bits/string.h.
15559
15560 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15561
15562         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15563
15564         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15565         link map.
15566
15567 2011-08-17  Andreas Jaeger  <aj@suse.de>
15568
15569         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15570
15571 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15572             Ian Lance Taylor  <iant@google.com>
15573
15574         * math/libm-test.inc (lround_test): New testcase.
15575         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15576
15577 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15578
15579         * Makefile: Remove support for automatic cvs check-ins.
15580         * Makerules: Likewise.
15581         * config.make.in: Likewise.
15582         * configure.in: Likewise.
15583         * intl/Makefile: Likewise.
15584         * locale/Makefile: Likewise.
15585         * po/Makefile: Likewise.
15586         * posix/Makefile: Likewise.
15587         * sysdeps/gnu/Makefile: Likewise.
15588         * sysdeps/mach/hurd/Makefile: Likewise.
15589         * sysdeps/sparc/sparc32/Makefile: Likewise.
15590
15591         [BZ #13118]
15592         * posix/Makefile (bug-regex32-ENV): Define.
15593         Patch by John Stanley <jpsinthemix@verizon.net>.
15594
15595         * misc/Makefile (headers): Add bits/select2.h.
15596         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15597         * misc/bits/select2.h: New file.
15598         * include/bits/select2.h: New file.
15599         * debug/Makefile (routines): Add fdelt_chk.
15600         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15601         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15602         FD_ISSET.
15603         * debug/fdelt_chk.c: New file.
15604
15605         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15606         * wcsmbs/test-wmemcmp.c: Likewise.
15607         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15608         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15609
15610 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15611
15612         * string/Makefile (strop-tests): Add memcmp.
15613         * string/test-wmemcmp.c: New file.
15614         * string/test-memcmp.c: Add wmemcmp support.
15615
15616 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15617
15618         [BZ #13153]
15619         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15620         2011-07-19 change.
15621
15622         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15623         garbage value in a __mach_port_mod_refs call in the cases of the
15624         task-self and thread-self ports.
15625
15626 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15627
15628         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15629
15630 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15631
15632         * elf/dl-load.c (lose): Check for non-null L.
15633
15634 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15635
15636         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15637
15638         * elf/dl-libc.c (dlerror_run): Pass back error code from
15639         dl_catch_error.
15640
15641         [BZ #13123]
15642         * elf/dl-load.c (lose): Free l_origin if it is valid.
15643
15644         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15645         names.
15646         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15647         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15648         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15649         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15650         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15651         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15652
15653 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15654
15655         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15656         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15657         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15658         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15659         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15660         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15661         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15662         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15663         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15664         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15665
15666 2011-08-15  Alan Modra  <amodra@gmail.com>
15667
15668         [BZ #13092]
15669         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15670         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15671         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15672         ppc_mcount to static-only-routines.
15673         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15674         __mcount_internal.
15675         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15676         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15677
15678 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15679
15680         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15681         for finite and infinity parameters.
15682
15683 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15684
15685         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15686         and add nop instructions for throughput optimization.
15687         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15688
15689 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15690
15691         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15692         aligned copy for power7 with vector-scalar instructions.
15693         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15694
15695 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15696
15697         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15698         AVX check.
15699
15700 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15701
15702         [BZ #13144]
15703         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15704         last change.
15705
15706 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15707
15708         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15709         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15710         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15711         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15712         clock_gettime.
15713
15714 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15715
15716         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15717         Forgot to demangle the pointer.
15718
15719         * sysdeps/i386/sysdep.h: Define atom_text_section.
15720         * sysdeps/x86_64/sysdep.h: Likewise.
15721         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15722         section with atom_text_section.
15723         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15724         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15725         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15726         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15727         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15728
15729         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15730         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15731         already be defined.  Change to take two parameters and don't assign
15732         result to variable.  Adjust all users.
15733         Define INTERNAL_GETTIME if not already defined.
15734         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15735         call.
15736         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15737         HAVE_CLOCK_GETTIME_VSYSCALL.
15738         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15739
15740         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15741         gettimeofday vsyscall, just use time.
15742
15743 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15744
15745         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15746         <errno.h>.
15747
15748 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15749
15750         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15751         syscall on x86-64.
15752         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15753         syscall.
15754         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15755         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15756         syscall if possible.
15757
15758 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15759
15760         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15761         e_ident.  Don't pass to find_mapsXX.
15762         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15763
15764 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15765
15766         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15767         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15768         * sysdeps/x86_64/multiarch/strchr.S: Update.
15769         Check bit_slow_BSF bit.
15770         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15771         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15772         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15773
15774 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15775
15776         [BZ #13134]
15777         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15778         before glibc 2.15.
15779         (tryshell): Define.
15780         (__spawni): Change last parameter to be flag.  Test
15781         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15782         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15783         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15784         * posix/spawni.c: Likewise.
15785         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15786         * posix/spawnp.c: Likewise.  Change normal version to use
15787         SPAWN_XFLAGS_USE_PATH.
15788         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15789         SPAWN_XFLAGS_TRY_SHELL.
15790
15791         [BZ #13150]
15792         * posix/glob.h: Remove gcc 1.x support.
15793
15794         [BZ #13068]
15795         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15796
15797 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15798
15799         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15800         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15801         strrchr-sse2-bsf
15802         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15803         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15804         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15805         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15806         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15807         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15808
15809 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15810
15811         * sysdeps/x86_64/wcscmp.S: New file.
15812
15813         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15814         wcscmp-c wcscmp-sse2
15815         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15816         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15817         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15818         * wcsmbs/wcscmp.c: Allow renaming.
15819
15820 2011-09-05  David S. Miller  <davem@davemloft.net>
15821
15822         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15823         stack slot, rather than the struct return pointer slot.
15824         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15825         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15826         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15827         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15828
15829 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15830
15831         * po/ja.po: Update from translation team.
15832
15833         [BZ #13144]
15834         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15835         kernel in 64-bit binaries.
15836
15837 2011-09-01  David S. Miller  <davem@davemloft.net>
15838
15839         * elf/elf.h (HWCAP_SPARC_*): Move to..
15840         * sysdeps/sparc/sysdep.h: this new file and add new values.
15841         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15842         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15843         _DL_HWCAP_COUNT to 24.
15844         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15845         entries.
15846         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15847         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15848         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15849         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15850         instead of magic constants.
15851         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15852
15853 2011-08-31  David S. Miller  <davem@davemloft.net>
15854
15855         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15856         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15857         Reimplement to do errno handling inline.
15858         (SYSCALL_ERROR_HANDLER): New macro.
15859         (__SYSCALL_STRING): Do not do errno handling in asm.
15860         (__CLONE_SYSCALL_STRING): Delete.
15861         (__INTERNAL_SYSCALL_STRING): Delete.
15862         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15863         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15864         (PSEUDO): Reimplement to do errno handling inline.
15865         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15866         (SYSCALL_ERROR_HANDLER): New macro.
15867         (__SYSCALL_STRING): Do not do errno handling in asm.
15868         (__CLONE_SYSCALL_STRING): Delete.
15869         (__INTERNAL_SYSCALL_STRING): Delete.
15870         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15871         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15872         i386.
15873         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15874         (inline_syscall*): Add 'err' argument.
15875         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15876         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15877         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15878         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15879
15880         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15881         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15882
15883 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15884
15885         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15886
15887 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15888
15889         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15890         directive.
15891
15892 2011-08-24  David S. Miller  <davem@davemloft.net>
15893
15894         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15895
15896 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15897
15898         * elf/Makefile: Add rules to build and run unload8 test.
15899         * elf/unload8.c: New file.
15900         * elf/unload8mod1.c: New file.
15901         * elf/unload8mod1x.c: New file.
15902         * elf/unload8mod2.c: New file.
15903         * elf/unload8mod3.c: New file.
15904
15905         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15906         it wasn't used.
15907
15908 2011-08-23  David S. Miller  <davem@davemloft.net>
15909
15910         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15911         subtract stack bias.
15912         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15913         %sp not %fp in calculations.
15914         (_JMPBUF_UNWINDS_ADJ): Likewise.
15915
15916         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15917         (aio_suspend): Call it to force an exception region around the
15918         AIO_MISC_WAIT() invocation.
15919
15920 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15921
15922         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15923         backslash.
15924
15925 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15926
15927         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15928         protection macro.
15929         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15930         and <dl-machine.h>.
15931         (Elf64_FuncDesc): Remove.
15932
15933 2011-08-22  David S. Miller  <davem@davemloft.net>
15934
15935         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15936         sigaltstack check, add missing cfi directives.
15937         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15938         missing cfi directives, and sigaltstack handling.
15939
15940 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15941
15942         [BZ #11724]
15943         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15944         object is seen twice.
15945         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15946
15947         * elf/Makefile (distribute): Add tst-initorder2.c.
15948         (tests): Add tst-initorder2.
15949         (modules-names): Add tst-initorder2a tst-initorder2b
15950         tst-initorder2c tst-initorder2d.  Add rules to build them.
15951         ($(objpfx)tst-initorder2.out): New rule.
15952         * elf/tst-initorder2.c: New file.
15953         * elf/tst-initorder2.exp: New file.
15954
15955 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15956
15957         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15958
15959         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15960         dependencies back to end of function.
15961
15962         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15963         $(elfobjdir)/ld.so.
15964
15965 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15966
15967         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15968         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15969         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15970         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15971         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15972         of __vdso_gettimeofday.
15973         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15974         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15975         attribute_hidden.
15976         (_libc_vdso_platform_setup): Remove initialization of
15977         __vdso_gettimeofday and __vdso_time.
15978
15979 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15980
15981         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15982         and fgetc_unlocked.
15983         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15984         getc_unlocked.
15985
15986         * elf/dl-open.c (add_to_global): Report additions to the global scope
15987         for LD_DEBUG=scopes.
15988         (dl_open_worker): Also print scope of newly loaded dependencies.
15989         (_dl_show_scope): Indicate if there is no scope.
15990
15991         [BZ #13114]
15992         * stdio-common/Makefile (tests): Add bug24.
15993         * stdio-common/bug24.c: New file.
15994
15995 2011-08-19  Andreas Jaeger  <aj@suse.de>
15996
15997         [BZ #13114]
15998         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15999         non-existant file when using close-on-exec mode.
16000
16001 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16002
16003         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16004         the very first instruction.
16005
16006         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16007         the CFI state in the end.
16008         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16009         inclusion of dl-trampoline.h.
16010         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16011
16012 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16013
16014         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16015         expectations for long double.
16016
16017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16018         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16019
16020 2011-08-14  David S. Miller  <davem@davemloft.net>
16021
16022         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16023         artificual limit depends upon the system page size.
16024
16025 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16026
16027         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16028         * resolv/Makefile: Define CFLAGS-libresolv.
16029
16030 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16031
16032         * nss/makedb.c (compute_tables): Make variables used in nested
16033         function static.
16034
16035 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16036
16037         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16038         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16039         if buffer was too small.
16040
16041         * elf/pldd.c (main): Attach to all threads in the process.
16042         Rewrite /proc handling to use *at functions.
16043
16044 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16045
16046         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16047         specifies first scope to show.
16048         (dl_open_worker): Update callers.  Move printing scope of new
16049         object to before the relocation.
16050         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16051         * sysdeps/generic/ldsodefs.h: Update declaration.
16052
16053         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16054         string for the scope number.
16055
16056 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16057
16058         * nscd/servicescache.c (cache_addserv): Make sure written is always
16059         initialized.
16060
16061 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16062
16063         * sysdeps/i386/i486/bits/atomic.h
16064         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16065         statement expression, so as to suppress "set but not used" warning.
16066         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16067
16068         * string/strncat.c (STRNCAT): Use prototype definition.
16069
16070         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16071         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16072         -Iprograms here.
16073         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16074         (localedef-modules): Add localedef.
16075         (locale-modules): Add locale.
16076
16077         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16078         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16079         to avoid a warning.
16080
16081 2011-08-14  David S. Miller  <davem@davemloft.net>
16082
16083         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16084         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16085
16086 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16087
16088         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16089         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16090         * elf/rtld.c (dl_main): Set l_name of vDSO.
16091         Call _dl_show_scope when DL_DEBUG_SCOPES.
16092         (process_dl_debug): Recognize scopes flag and also set it for all.
16093         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16094         Declare _dl_show_scope.
16095
16096         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16097         (do_dlopen): Pass caller_dlopen to dl_open.
16098         (__libc_dlopen_mode): Initialize caller_dlopen.
16099
16100         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16101         of libc.  Make tolower call locale-independent.  Optimize a bit by
16102         using isdigit instead of isalnum.
16103         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16104
16105 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16106
16107         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16108         was a dependency or dynamically loaded.
16109
16110 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16111
16112         * intl/l10nflist.c: Allow architecture-specific pop function.
16113         * sysdeps/x86_64/l10nflist.c: New file.
16114
16115         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16116         classification.
16117
16118 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16119
16120         * include/dirent.h: Add libc_hidden_proto for scandirat and
16121         scandirat64.  Don't declare __scandirat64.
16122         * dirent/scandirat.c: Add libc_hidden_def.
16123         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16124         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16125
16126 2011-08-10  David S. Miller  <davem@davemloft.net>
16127
16128         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16129         enum.
16130         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16131         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16132         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16133
16134 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16135
16136         * Versions.def [libc]: Add GLIBC_2.15.
16137         * dirent/Makefile (routines): Add scandirat and scandirat64.
16138         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16139         GLIBC_2.15.
16140         * dirent/dirent.h: Declare scandirat and scandirat64.
16141         * dirent/scandirat.c: New file.
16142         * dirent/scandirat64.c: New file.
16143         * sysdeps/wordsize-64/scandirat.c: New file.
16144         * sysdeps/wordsize-64/scandirat64.c: New file.
16145         * dirent/opendir.c: Define opendirat.
16146         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16147         using scandirat.
16148         * dirent/scandir64.c: Adjust for scandir.c change.
16149         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16150         __scandirat64, and __scandir_cancel_handler.
16151         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16152         additional parameter and use openat instead of open (outside of ld.so).
16153         Add new __opendir as wrapper around __opendirat.
16154         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16155         here without requiring old scandirat implementation.
16156
16157 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16158
16159         * dirent/scandir.c (cancel_handler): Renamed to
16160         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16161         defined.  Adjust users.
16162         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16163         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16164
16165 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16166
16167         * string/test-string.h (IMPL): Use __STRING to expand name and then
16168         stringify it.
16169
16170         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16171         of cleanups.
16172
16173 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16174
16175         * string/Makefile: Update.
16176         (strop-tests): Append strncat.
16177         * string/test-wcscmp.c: New file.
16178         New comprehensive test for wcscmp.
16179         * string/test-strcmp.c: Update.
16180         (WIDE): New define.
16181
16182 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16183
16184         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16185         line.
16186
16187 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16188
16189         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16190         encoding to ACE if AI_IDN.
16191
16192 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16193
16194         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16195         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16196
16197 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16198
16199         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16200         Fix overflow bug in strncat.
16201         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16202
16203         * string/test-strncat.c: Update.
16204         Add new tests for checking overflow bugs.
16205
16206 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16207
16208         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16209         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16210         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16211         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16212         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16213         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16214         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16215         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16216         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16217
16218         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16219         (USE_AS_STRCAT): Define.
16220         Add strcat and strncat support.
16221         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16222
16223 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16224
16225         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16226         __n bigger than INT_MAX+1.
16227         (__strncmp_g): Likewise.
16228
16229 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16230
16231         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16232         * libio/stido.h: Likewise.
16233
16234         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16235         (AF_NFC): Define.
16236         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16237         (AF_NFC): Define.
16238
16239         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16240         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16241         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16242         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16243         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16244
16245         [BZ #13021]
16246         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16247         installed.
16248
16249         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16250         typo.
16251         (_dl_x86_64_save_sse): Likewise.
16252
16253 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16254
16255         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16256         OSXSAVE.
16257         (_dl_x86_64_save_sse): Likewise.
16258
16259         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16260
16261         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16262
16263 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16264
16265         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16266         change.
16267         (_dl_x86_64_save_sse): Use correct AVX check.
16268
16269 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16270
16271         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16272         bug in strncpy/strncat.
16273         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16274
16275 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16276
16277         * string/tester.c (test_strcat): Add tests for different alignments
16278         of source and destination.
16279         (test_strncat): Likewise.
16280
16281 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16282
16283         [BZ #12852]
16284         * posix/glob.c (glob): Check passed in values before using them in
16285         expressions to avoid some overflows.
16286         (glob_in_dir): Likewise.
16287
16288         [BZ #13007]
16289         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16290         check for AVX enablement so that we don't crash with old kernels and
16291         new hardware.
16292         * elf/tst-audit4.c: Add same checks here.
16293         * elf/tst-audit6.c: Likewise.
16294
16295         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16296
16297 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16298
16299         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16300
16301 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16302
16303         * po/cs.po: Update from translation team.
16304         * po/bg.po: Likewise.
16305
16306 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16307
16308         * misc/sys/cdefs.h: Add support for const attribute.
16309         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16310         to gnu_dev_{major,minor,makedev} functions.
16311
16312 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16313
16314         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16315
16316 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16317
16318         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16319         strlen results.
16320
16321 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16322
16323         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16324         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16325         register in order to avoid conflicts with the soft frame pointer
16326         being held in r11 when necessary.
16327         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16328         (INTERNAL_VSYSCALL_NCS): Likewise.
16329
16330 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16331
16332         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16333         * elf/dl-fini.c (_dl_fini): Adjust caller.
16334         * elf/dl-close.c (_dl_close_worker): Likewise.
16335         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16336
16337 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16338
16339         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16340         "aux_cache->nlibs < 0".
16341
16342         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16343         in the reload-count case.
16344
16345 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16346
16347         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16348         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16349         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16350         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16351         * sysdeps/x86_64/multiarch/strcat.S: New file.
16352         * sysdeps/x86_64/multiarch/strncat.S: New file.
16353         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16354         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16355         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16356         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16357         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16358         (USE_AS_STRCAT): Define.
16359         Add strcat and strncat support.
16360         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16361         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16362         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16363         * string/strncat.c: Update.
16364         (USE_AS_STRNCAT): Define.
16365         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16366         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16367         and i7.
16368         * sysdeps/x86_64/multiarch/init-arch.h
16369         (bit_Prefer_PMINUB_for_stringop): New.
16370         (index_Prefer_PMINUB_for_stringop): Likewise.
16371         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16372         bit_Prefer_PMINUB_for_stringop.
16373
16374 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16375
16376         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16377         buffer64.
16378         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16379         of casting of buffer.
16380         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16381         buffer32 and buffer64.
16382         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16383         writes instead of casting of buffer.
16384         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16385         buffer32.
16386         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16387         casting of buffer.
16388
16389 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16390
16391         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16392
16393 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16394
16395         * nscd/nscd.c (termination_handler): Don't do anything for a database
16396         if it has not yet been initialized.
16397
16398 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16399
16400         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16401
16402 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16403
16404         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16405
16406 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16407
16408         * po/nl.po: Update from translation team.
16409         * po/sv.po: Likewise.
16410
16411 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16412
16413         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16414         now disallowed by GCC.
16415
16416         * configure.in (use-default-link): Default to yes if a test -shared
16417         link meets our qualifications.
16418         * configure: Regenerated.
16419
16420         * config.make.in (output-format): New variable.
16421         * configure.in: Check for ld --print-output-format support.
16422         * configure: Regenerated.
16423         * Makerules ($(common-objpfx)format.lds)
16424         [$(output-format) != unknown]: Just use $(output-format),
16425         instead of the linker-script munging.
16426
16427 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16428
16429         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16430         of $(common-objpfx)shlib.lds.
16431         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16432
16433         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16434         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16435
16436         * configure.in (-z relro check): Adjust test code to add a large
16437         writable data section after it.
16438         * configure: Regenerated.
16439
16440 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16441
16442         * configure.in (-z relro check): Fix test code to make the variable
16443         truly const.
16444         * configure: Regenerated.
16445
16446 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16447
16448         * nscd/nscd.h (struct traced_file): Define.
16449         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16450         elements.  Add traced_files.
16451         (inotify_fd): Declare.
16452         (register_traced_file): Declare.
16453         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16454         (inotify_fd): Export.
16455         (resolv_conf_descr): Remove.
16456         (nscd_init): Move inotify descriptor creation to main.
16457         Don't register files for notification here.
16458         (register_traced_file): New function.
16459         (invalidate_cache): Don't use reset_res to determine whether to call
16460         res_init, go through the list of registered files.
16461         (main_loop_poll): The inotify descriptors are now stored in the
16462         structures for the traced files.
16463         (main_loop_epoll): Likewise
16464         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16465         to __nss_disable_nscd.
16466         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16467         for a database anymore.  Check the records for all the registered
16468         files instead.
16469         * nss/Makefile (libnss_files-routines): Add files-init.
16470         (libnss_db-routines): Add db-init.
16471         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16472         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16473         * nss/nss_db/db-init.c: New file.
16474         * nss/nss_files/files-init.c: New file.
16475         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16476         __nss_lookup_function.
16477         (__nss_lookup_function): Call nss_load_library.
16478         (nss_load_all_libraries): New function.
16479         (__nss_disable_nscd): Take parameter with callback function for files
16480         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16481         used for the cached services.
16482         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16483         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16484         options for features to all the files in nscd.
16485
16486         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16487
16488 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16489
16490         * csu/elf-init.c (__libc_csu_init): Comment typo.
16491
16492 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16493
16494         * po/pl.po: Update from translation team.
16495         * po/ja.po: Likewise.
16496         * po/ru.po: Likewise.
16497         * po/ko.po: Likewise.
16498         * po/fr.po: Likewise.
16499
16500 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16501
16502         * configure.in (.ctors/.dtors header and trailer check):
16503         Use an empirical test on a built program.
16504         * configure: Regenerated.
16505
16506         * configure.in (-z relro check): Use an empirical test on a built DSO.
16507         Detect, but do not require, on ia64.
16508         * configure: Regenerated.
16509
16510         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16511         Update tests that use readelf to use $READELF instead.
16512         * configure: Regenerated.
16513
16514 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16515
16516         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16517         if the result is not used.
16518
16519 2011-07-05  Andreas Jaeger  <aj@suse.de>
16520
16521         [BZ#9696]
16522         * stdlib/tst-strtod.c: Add testcase.
16523
16524 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16525
16526         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16527         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16528         The latter has a higher limit.  Take additional parameter to pass to
16529         the new function.
16530         (__pathconf): Pass file to __statfs_link_max.
16531         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16532         __statfs_link_max.
16533         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16534         __statfs_link_max.
16535
16536         [BZ #12868]
16537         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16538         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16539         Handle Lustre.
16540         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16541         (__statfs_filesize_max): Likewise.
16542         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16543
16544 2011-07-05  Andreas Jaeger  <aj@suse.de>
16545
16546         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16547
16548 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16549
16550         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16551         `status' variable.
16552         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16553         Likewise.
16554
16555 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16556
16557         * Makefile (strop-tests): Add strncat.
16558         * string/test-strncat.c: New file.
16559
16560 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16561
16562         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16563
16564 2011-06-21  Andreas Jaeger  <aj@suse.de>
16565
16566         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16567         Copy rule from iconvdata/Makefile.
16568
16569 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16570
16571         [BZ #12922]
16572         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16573         but no long options are defined, just return 'W'.
16574
16575 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16576
16577         [BZ #9696]
16578         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16579
16580 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16581
16582         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16583         netgroups to read.
16584         (innetgr): Likewise.
16585
16586 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16587
16588         * config.make.in (install_root): Default to $(DESTDIR).
16589
16590 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16591
16592         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16593
16594 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16595
16596         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16597
16598         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16599         containing directory rather than embedding absolute directory names.
16600
16601         * scripts/check-local-headers.sh: Rewritten using awk.
16602         Match by word, not by line.  Print error messages for matches.
16603         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16604
16605         * Makerules [shlib-lds-flags empty]:
16606         ($(common-objpfx)libc_pic.opts): New target.
16607         ($(common-objpfx)libc_pic.os.clean): New target.
16608         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16609
16610         * config.make.in (OBJCOPY): New variable.
16611         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16612         * configure: Regenerated.
16613
16614         * config.make.in (use-default-link): New variable.
16615         * configure.in (use_default_link): Grok --with-default-link to set it.
16616         * configure: Regenerated.
16617         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16618         (shlib-lds, shlib-lds-flags): Define to empty.
16619
16620         * Makerules (shlib-lds): New variable.
16621         (shlib-lds-flags): New variable.
16622         (build-shlib, build-moduile, build-module-asneeded): Use it.
16623         ($(common-objpfx)libc.so): Use $(shlib-lds).
16624         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16625         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16626
16627         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16628         DT_FLAGS/DT_FLAGS_1 with zero flags.
16629
16630         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16631         linker script munging.
16632
16633 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16634
16635         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16636         as 128-bit value.
16637         * crypt/sha512.c (sha512_process_block): Perform total addition using
16638         128-bit if possible.
16639         (__sha512_finish_ctx): Likewise.
16640         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16641         as 64-bit value.
16642         * crypt/sha256.c (SWAP64): Define.
16643         (sha256_process_block): Perform total addition using 64-bit if
16644         possible.
16645         (__sha256_finish_ctx): Likewise.
16646
16647 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16648
16649         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16650         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16651         * nscd/hstcache.c (cache_addhst): Likewise.
16652         * nscd/grpcache.c (cache_addgr): Likewise.
16653         * nscd/aicache.c (addhstaiX): Likewise
16654         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16655
16656 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16657
16658         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16659         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16660         * nscd/hstcache.c (cache_addhst): Likewise.
16661         * nscd/grpcache.c (cache_addgr): Likewise.
16662         * nscd/aicache.c (addhstaiX): Likewise
16663
16664 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16665
16666         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16667         domain only when needed.
16668
16669 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16670
16671         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16672         is always restored.
16673
16674 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16675
16676         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16677         are re-adding the entry.
16678         * nscd/servicescache.c (cache_addserv): Likewise.
16679
16680 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16681
16682         * sysdeps/generic/dl-irel.h: fix protection against multiple
16683         inclusions.
16684         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16685
16686 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16687
16688         [BZ #12935]
16689         * malloc/memusage.sh: Fix quoting in message.
16690         * debug/xtrace.sh: Likewise.
16691
16692         * configure.in: Remove support for --experimental-malloc option, make
16693         it the default.
16694         * config.make.in: Likewise.
16695         * malloc/Makefile: Likewise.
16696
16697 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16698
16699         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16700         two-byte characters.
16701
16702 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16703
16704         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16705         AC_CACHE_CHECK invocation.
16706         * configure: Regenerated.
16707
16708         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16709
16710 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16711
16712         [BZ #12350]
16713         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16714         bit from old_res_options.
16715
16716         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16717
16718         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16719         value type for setfct.
16720
16721 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16722
16723         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16724         __gettimeofday instead of gettimeofday.
16725
16726 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16727
16728         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16729
16730 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16731
16732         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16733
16734         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16735         info.
16736
16737 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16738
16739         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16740         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16741         strcpy-sse2-unaligned strncpy-sse2-unaligned
16742         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16743         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16744         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16745         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16746         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16747         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16748         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16749         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16750         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16751         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16752         (STRCPY): Support SSE2 and SSSE3 versions.
16753
16754 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16755
16756         [BZ #12874]
16757         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16758         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16759         kernels which artificially limit size of requests.
16760
16761 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16762
16763         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16764         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16765         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16766         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16767         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16768         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16769         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16770         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16771         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16772         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16773         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16774         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16775         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16776         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16777         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16778         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16779         Enable unaligned load optimization for Intel Core i3, i5 and i7
16780         processors.
16781         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16782         Define.
16783         (index_Fast_Unaligned_Load): Define.
16784         (HAS_FAST_UNALIGNED_LOAD): Define.
16785
16786 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16787
16788         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16789
16790 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16791
16792         [BZ #12907]
16793         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16794         until it is clear that the information is realy needed.
16795         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16796
16797 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16798
16799         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16800
16801 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16802
16803         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16804         /sys/devices/system/cpu/online if it is usable.
16805
16806         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16807         reading the information from the /proc filesystem to once a second.
16808
16809 2011-06-21  Andreas Jaeger  <aj@suse.de>
16810
16811         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16812         NULL after inclusion of kernel headers.
16813
16814 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16815
16816         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16817         calls to internal_setent.
16818
16819         [BZ #12885]
16820         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16821         addresses using gethostbyname4_r ignore IPv4 addresses.
16822
16823         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16824         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16825
16826         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16827
16828 2011-06-20  David S. Miller  <davem@davemloft.net>
16829
16830         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16831         inclusions.
16832         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16833
16834         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16835         (elf_irel): Use it.
16836         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16837         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16838         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16839         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16840         * sysdeps/x86_64/dl-irel.h: Likewise.
16841
16842         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16843         * elf/dl-sym.c: Likewise.
16844
16845 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16846
16847         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16848         need to dereference resplen2.
16849
16850 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16851
16852         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16853
16854 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16855
16856         * Makeconfig: Define vardbdir and inst_vardbdir.
16857         * nss/Makefile: Add rules to install db-Makefile.
16858
16859         * nss/nss_db/db-XXX.c: Cleanup.
16860
16861         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16862         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16863         GLIBC_PRIVATE.
16864         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16865         * nss/makedb.c: Implement -g option to specify that value strings
16866         are generated and should not be added to table iterated over for
16867         get*ent calls.
16868         * nss/nss_db/db-initgroups.c: New file.
16869
16870         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16871         interface.
16872
16873         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16874         (internal_getgrouplist): Adjust to name change.
16875         Update use_initgroups_entry if this is not the first call.
16876         * nss/databases.def: Add initgroups entry.
16877
16878         * nss/makedb.c (compute_tables): Check result of multiple hash table
16879         sizes to minimize maximum chain length.
16880
16881 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16882
16883         * Versions.def: Add entry for libnss_db.
16884         * shlib-versions: Likewise.
16885         * nss/Makefile: Add rules to build libnss_db.
16886         * nss/Versions: Add libnss_db information.  Organize libnss_files
16887         entries better.
16888         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16889         makedb progra.  Some minor improvements to generate smaller files.
16890         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16891         here from...
16892         * nss/makedb.c: ...here.
16893         Improve database format to be smaller and require less memory at
16894         runtime.
16895         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16896         db anymore.
16897         * nss/nss_db/db-netgrp.c: Likewise.
16898         * nss/nss_db/db-open.c: Likewise.
16899         * nss/nss_files/flies-XXX.x: Adjust comments.
16900         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16901         * nss/nss_files/files-grp.c: Likewise.
16902         * nss/nss_files/files-hosts.c: Likewise.
16903         * nss/nss_files/files-network.c: Likewise.
16904         * nss/nss_files/files-proto.c: Likewise.
16905         * nss/nss_files/files-pwd.c: Likewise.
16906         * nss/nss_files/files-rpc.c: Likewise.
16907         * nss/nss_files/files-service.c: Likewise.
16908         * nss/nss_files/files-sgrp.c: Likewise.
16909         * nss/nss_files/files-spwd.c: Likewise.
16910         * nss/nss_db/db-alias.c: Removed.
16911         * nss/nss_db/dummy-db.h: Removed.
16912
16913 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16914
16915         * nss/makedb.c: Rewritten to not use database library.
16916         * nss/Makefile: Update to build new makedb program.
16917
16918 2011-06-14  Andreas Jaeger  <aj@suse.de>
16919
16920         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16921         memset declaration.
16922
16923 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16924
16925         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16926         tmpbuf.
16927
16928 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16929
16930         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16931         * elf/Makefile ($(objpfx)ld.so): Likewise.
16932
16933         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16934         Don't list ld.so twice in dependencies.
16935
16936         * posix/bug-regex31.c: Include <stdlib.h>.
16937
16938         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16939
16940         * nis/nss_compat/compat-spwd.c
16941         (getspent_next_nss_netgr): Remove unused variable.
16942         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16943
16944         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16945         nonmembers" output to use the right array.
16946
16947         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16948
16949         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16950
16951         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16952         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16953         * catgets/gencat.c (read_input_file): Likewise.
16954         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16955
16956         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16957         variable definition inside #if's controlling its use.
16958
16959         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16960
16961         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16962
16963         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16964
16965         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16966         unreachable code.
16967
16968         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16969
16970         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16971         * configure: Regenerated.
16972
16973         * Makerules: Revert last change.
16974         * elf/Makefile: Likewise.
16975
16976 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16977
16978         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16979         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16980         (reloc-link): Likewise.
16981
16982 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16983
16984         * elf/Makefile: Add rules to build pldd.
16985         * elf/pldd.c: New file.
16986         * elf/pldd-xx.c: New file.
16987
16988 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16989
16990         * version.h: Update for 2.15 development version.
16991
16992 2011-06-07  David S. Miller  <davem@davemloft.net>
16993
16994         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16995         ifuncs.
16996         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16997         elf_machine_lazy_rel): Likewise.
16998         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16999         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17000         elf_machine_lazy_rel): Likewise.
17001         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17002         dl_hwcap via passed in argument.
17003         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17004         Likewise.
17005
17006 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17007
17008         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17009
17010 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17011
17012         [BZ #12849]
17013         * manual/fdl-1.1.texi: New file, verbatim from:
17014         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17015         * manual/lgpl-2.1.texi: New file, verbatim from:
17016         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17017         * manual/Makefile (licenses): New variable, list those new file names.
17018         (texis): Use it.
17019         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17020
17021         * manual/fdl.texi: File removed.
17022         * manual/lesser.texi: File removed.
17023         * manual/libc.texinfo (Copying, Documentation License):
17024         Use new @include file names, put @appendix directive before @include.
17025
17026 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17027
17028         [BZ #12841]
17029         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17030         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17031         (mq_open): Add __NTH.
17032
17033 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17034
17035         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17036         Assume Intel Core i3/i5/i7 processor if AVX is available.
17037
17038 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17039
17040         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17041         typo.
17042
17043 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17044
17045         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17046         memory.  Use alloca_account.  Fix memory leak when retrying.
17047
17048 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17049
17050         * version.h (RELEASE): Bump for 2.14 release.
17051         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17052
17053         * config.make.in (RANLIB): Remove entry.
17054
17055 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17056
17057         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17058         (libc.pot): Work around missing support for .ksh extension in xgettext.
17059
17060         [BZ #12684]
17061         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17062         if both request failed.
17063         (send_dg): In case of server errors clear resplen or *resplen2.
17064
17065         [BZ #12454]
17066         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17067         when there are multiple maps.
17068         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17069         (_dl_fini): Remove test here.
17070
17071         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17072
17073 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17074
17075         [BZ #12350]
17076         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17077         bit from old_res_options.
17078         (gaih_inet): Likewise.
17079
17080         [BZ #11099]
17081         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17082         as signed.
17083
17084         * resolv/res_init.c (res_setoptions): Make the code more compact.
17085
17086         [BZ #11558]
17087         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17088         set RES_USEVC.
17089
17090         [BZ #11634]
17091         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17092
17093         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17094
17095         [BZ #11781]
17096         * malloc/malloc.h: Declare malloc hook variables as volatile.
17097
17098         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17099         in last patch.
17100
17101         [BZ #11799]
17102         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17103         raise in the comment.
17104         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17105         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17106         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17107
17108 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17109
17110         [BZ #12811]
17111         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17112         grow the buffers more if it already has to be sufficient.
17113         (build_wcs_upper_buffer): Likewise.
17114         * posix/regexec.c (check_matching): Likewise.
17115         (clean_state_log_if_needed): Likewise.
17116         (extend_buffers): Don't enlarge buffers beyond size of the input
17117         buffer.
17118         Patches mostly by Emil Wojak <emil@wojak.eu>.
17119         * posix/bug-regex32.c: New file.
17120         * posix/Makefile (tests): Add bug-regex32.
17121
17122         * locale/findlocale.c (_nl_find_locale): Return right away if
17123         _nl_explode_name failed.
17124         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17125
17126         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17127
17128         * debug/xtrace.sh: Unify messages.
17129         * malloc/memusage.sh: Likewise.
17130
17131         [BZ #12813]
17132         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17133         time symbol from vDSO.  Substitute with vsyscall if not available.
17134         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17135         __vdso_time.
17136
17137         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17138         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17139         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17140         Add sendmmsg and internal_sendmmsg.
17141         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17142         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17143         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17144
17145         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17146         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17147         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17148
17149 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17150
17151         [BZ #12813]
17152         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17153         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17154         available.
17155         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17156         __vdso_getcpu.
17157
17158         [BZ #12814]
17159         * iconvdata/Makefile (tests): Add bug-iconv9.
17160         * iconvdata/bug-iconv9.c: New file.
17161
17162 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17163
17164         [BZ #12814]
17165         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17166
17167 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17168
17169         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17170         (struct user_regs_struct): Change intcs field back to cs.
17171
17172 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17173
17174         * po/ja.po: Update from translation team.
17175
17176 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17177
17178         [BZ #12795]
17179         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17180         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17181
17182 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17183
17184         * stdlib/longlong.h: Update from GCC.
17185
17186 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17187
17188         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17189         parameter name.
17190         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17191         Add parameter name.
17192         (__sysconf): Pass it down.
17193
17194 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17195
17196         [BZ #12671]
17197         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17198         some situations.
17199         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17200         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17201         add in in __libc_use_alloca calls.  Adjust callers.
17202         (glob): Use malloc in some situations.
17203
17204         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17205         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17206         pltexit.
17207
17208 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17209
17210         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17211         and CLOCK_BOOTTIME_ALARM.
17212
17213         [BZ #12782]
17214         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17215         is returned.
17216
17217         * string/_strerror.c (__strerror_r): Print negative errors as signed
17218         numbers.
17219
17220         [BZ #12777]
17221         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17222         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17223         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17224
17225         * configure.in: Fix typo in redirection and correct removal of test
17226         files in two cases.
17227
17228         [BZ #12788]
17229         * locale/setlocale.c (new_composite_name): Fix test to check for
17230         identical name of all categories.
17231
17232         [BZ #12792]
17233         * libio/filedoalloc.c (local_isatty): New function.
17234         (_IO_file_doallocate): Use local_isatty.
17235         * stdio-common/perror.c (perror): In case a new stream is used
17236         forward the stream error.
17237         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17238         error flag.
17239
17240 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17241
17242         [BZ #11869]
17243         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17244         alloca.
17245         * include/alloca.h (extend_alloca_account): Define.
17246
17247         [BZ #11857]
17248         * posix/regex.h: Fix comments with documentation of user-accessible
17249         fields after compilation and describe correct free'ing of pattern
17250         after re_compile_pattern.
17251         Patch by Reuben Thomas <rrt@sc3d.org>.
17252
17253 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17254
17255         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17256         and -mno-altivec to prevent the compiler from using Altivec and/or
17257         VSX instructions when the corresponding registers are not available.
17258
17259 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17260
17261         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17262
17263 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17264
17265         * libio/freopen.c (freopen): Use __dup2, not dup2.
17266         * libio/freopen64.c (freopen64): Likewise.
17267
17268 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17269
17270         [BZ #12775]
17271         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17272         * math/Makefile (tests): Add test-powl.
17273         (CFLAGS-test-powl.c): Define.
17274         * math/test-powl.c: New file.
17275
17276 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17277
17278         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17279
17280 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17281
17282         [BZ #11837]
17283         * iconvdata/gb18030.c: Update to GB18020-2005.
17284
17285 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17286
17287         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17288         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17289         Patch by Aharon Robbins <arnold@skeeve.com>.
17290
17291         [BZ #11892]
17292         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17293         on the stack.
17294
17295         [BZ #11895]
17296         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17297         through underflows.
17298
17299         [BZ #12766]
17300         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17301         point to strings before performing equality test for error_one_per_line
17302         mode.
17303
17304         [BZ #11697]
17305         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17306
17307         [BZ #11820]
17308         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17309         (struct user_fpregs_struct): Avoid __uint*_t types.
17310
17311         [BZ #6420]
17312         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17313         symbol info.  Use it instead of calling _dl_addr locally.
17314         (lock_and_info): New function.
17315         (tr_freehook): Call lock_and_info and pass symbol info as additional
17316         parameter to tr_where.
17317         (tr_mallochook): Likewise.
17318         (tr_reallochook): Likewise.
17319         (tr_memalignhook): Likewise.
17320
17321         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17322         used and couldn't be at all thread-safe.
17323
17324 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17325
17326         * libio/freopen.c (freopen): Don't close old file descriptor
17327         before the new one is opened.  Instead dup the new file descriptor
17328         to the old one after the new stream is created.
17329         * libio/freopen64.c (freopen64): Likewise.
17330         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17331         * libio/fileops.c (_IO_new_file_close_it): Handle new
17332         _IO_FLAGS2_NOCLOSE flag.
17333         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17334         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17335         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17336         _IO_FLAGS2_NOCLOSE flag.
17337         * include/unistd.h: Add hidden_proto for dup3.
17338         Define __have_dup3.
17339         * io/dup3.c: Define hidden symbol.
17340         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17341
17342         [BZ #7101]
17343         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17344         when an incomplete long option is used.
17345         * posix/tst-getopt_long1.c: New file.
17346         * posix/Makefile (tests): Add tst-getopt_long1.
17347
17348         [BZ #10138]
17349         * scripts/config.guess: Update from autoconf-2.68.
17350         * scripts/config.sub: Likewise.
17351
17352         [BZ #10157]
17353         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17354         tests into ...
17355         (has_cpuclock): ...this.  New function.
17356         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17357         macro here based on has_cpuclock code.
17358
17359         [BZ #10149]
17360         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17361         First byte (not low byte) is now always NUL.
17362         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17363
17364         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17365         Use non-cancelable interfaces.
17366
17367         [BZ #9809]
17368         * locale/iso-639.def: Add entry for Sorani.
17369
17370         [BZ #11901]
17371         * include/stdlib.h: Move include protection to the right place.
17372         Define abort_msg_s.  Declare __abort_msg with it.
17373         * stdlib/abort.c (__abort_msg): Adjust type.
17374         * assert/assert.c (__assert_fail_base): New function.  Majority
17375         of code from __assert_fail.  Allocate memory for __abort_msg with
17376         mmap.
17377         (__assert_fail): Now call __assert_fail_base.
17378         * assert/assert-perr.c: Remove bulk of implementation.  Use
17379         __assert_fail_base.
17380         * include/assert.hL Declare __assert_fail_base.
17381         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17382         mmap.
17383         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17384
17385 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17386
17387         [BZ #11952]
17388         [BZ #12453]
17389         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17390         until all modules are registered in the DTV.
17391         * elf/Makefile: Add rules to build and run tst-tls19.
17392         * elf/tst-tls19.c: New file.
17393         * elf/tst-tls19mod1.c: New file.
17394         * elf/tst-tls19mod2.c: New file.
17395         * elf/tst-tls19mod3.c: New file.
17396         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17397
17398         [BZ #12083]
17399         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17400         correctly.
17401
17402         [BZ #12601]
17403         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17404         two-byte sequence errors.
17405         * iconvdata/Makefile (tests): Add bug-iconv8.
17406         * iconvdata/bug-iconv8.c: New file.
17407
17408         [BZ #12626]
17409         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17410         buf2 definition.
17411
17412         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17413
17414         [BZ #12432]
17415         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17416         (dummy_getcfa): New function.
17417         (init): Get _Unwind_GetCFA address, use dummy if not found.
17418         (backtrace_helper): In recursion check, also check whether CFA changes.
17419         (__backtrace): Completely initialize arg.
17420
17421         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17422         storing incomplete byte sequence in state object.  Avoid testing for
17423         guaranteed too small input if we know there is enough data available.
17424
17425 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17426
17427         * Makeconfig (+link-pie): Indent.
17428         * Rules (binaries-pie): Define if $(have-fpie) and
17429         $(build-shared).
17430         (binaries-shared): Also filter out $(binaries-pie).
17431         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17432         * nscd/Makefile (others-pie): Add nscd.
17433         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17434         ($(objpfx)nscd): Remove command override.
17435         * login/Makefile (others-pie): Add pt_chown.
17436         ($(objpfx)pt_chown): Remove command override.
17437         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17438         remove command overrides.
17439
17440 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17441
17442         * libio/tst_putwc.c: Fix error messages.
17443
17444         [BZ #12724]
17445         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17446         currently writing and seek to current position when not.
17447         * libio/Makefile (tests): Add bug-fclose1.
17448         * libio/bug-fclose1.c: New file.
17449
17450 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17451
17452         [BZ #12511]
17453         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17454         don't set DF_1_NODELETE here.
17455         (do_lookup_x): When entering new entry test for copy relocation
17456         and if necessary set DF_1_NODELETE flag.
17457         * elf/tst-unique4.cc: New file.
17458         * elf/tst-unique4.h: New file.
17459         * elf/tst-unique4lib.cc: New file.
17460         * elf/Makefile: Add rules to build and run tst-unique4.
17461         Patch by Piotr Bury <pbury@goahead.com>.
17462
17463 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17464
17465         [BZ #12052]
17466         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17467
17468         [BZ #12625]
17469         * misc/mntent_r.c (addmntent): Flush the stream after the output
17470
17471         [BZ #12393]
17472         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17473         (is_trusted_path_normalize): Skip initial colon.  Append slash
17474         to empty buffer.  Duplicate is_trusted_path code but allow
17475         constructed patch to be prefix.
17476         (is_dst): Allow $ORIGIN followed by /.
17477         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17478         Correct testing of result of is_trusted_path_normalize
17479         (decompose_rpath): Fix warning.
17480
17481 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17482
17483         [BZ #11257]
17484         * grp/initgroups.c (internal_getgrouplist): When we found the service
17485         list through the initgroups entry in nsswitch.conf do not always
17486         continue on a successful lookup.  Don't always use the
17487         __nss_group_database value if it is set.
17488         * nss/nsswitch.conf (initgroups): Change action for successful db
17489         lookup to continue for compatibility.
17490
17491 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17492
17493         [BZ #11532]
17494         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17495         and CP774 modules.
17496         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17497         and CP774 modules.
17498         * iconvdata/tst-tables.sh: Likewise.
17499         * iconvdata/cp770.c: New file.
17500         * iconvdata/cp771.c: New file.
17501         * iconvdata/cp772.c: New file.
17502         * iconvdata/cp773.c: New file.
17503         * iconvdata/cp774.c: New file.
17504         * iconvdata/testdata/CP770: New file.
17505         * iconvdata/testdata/CP770..UTF8: New file.
17506         * iconvdata/testdata/CP771: New file.
17507         * iconvdata/testdata/CP771..UTF8: New file.
17508         * iconvdata/testdata/CP772: New file.
17509         * iconvdata/testdata/CP772..UTF8: New file.
17510         * iconvdata/testdata/CP773: New file.
17511         * iconvdata/testdata/CP773..UTF8: New file.
17512         * iconvdata/testdata/CP774: New file.
17513         * iconvdata/testdata/CP774..UTF8: New file.
17514
17515         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17516         END CHARMAP line.
17517         * iconvdata/gen-8bit-gap.sh: Likewise.
17518         * iconvdata/gen-8bit.sh: Likewise.
17519
17520         * locale/iso-639.def: Add ary entry.
17521
17522         [BZ #11258]
17523         * locale/C-translit.h.in: Add U20A1 transliteration.
17524
17525         [BZ #12178]
17526         * locale/iso-639.def: Add wae entry.
17527         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17528
17529         [BZ #12545]
17530         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17531         for n.
17532
17533         [BZ #12711]
17534         * locale/C-translit.h.in: Add entry for U20B9.
17535         Patch by pravin.d.s@gmail.com.
17536
17537 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17538
17539         [BZ #12713]
17540         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17541         ENAMETOOLONG use generic getcwd.
17542         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17543         in rtld.  Use *stat64.
17544         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17545         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17546         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17547         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17548         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17549         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17550         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17551         __fstatat64 macros.
17552         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17553         * dirent/rewinddir.c: Add libc_hidden_def.
17554         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17555         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17556
17557         * include/dirent.h (__alloc_dir): Add flags parameter.
17558         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17559         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17560         __alloc_dir.
17561         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17562         from fdopendir if O_CLOEXEC is already set.
17563
17564 2011-03-15  Alan Modra  <amodra@gmail.com>
17565
17566         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17567         l_tls_firstbyte_offset non-zero.  Save padding offset in
17568         l_tls_firstbyte_offset for later use.
17569         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17570         freeing static tls block.
17571
17572 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17573
17574         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17575         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17576         being defined by the kernel headers.
17577
17578 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17579
17580         [BZ #12734]
17581         * resolv/resolv.h: Define RES_NOTLDQUERY.
17582         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17583         no-tld-query and set RES_NOTLDQUERY.
17584         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17585         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17586         modern BIND to search name as TLD unless forbidden.
17587
17588 2011-05-07  Petr Baudis  <pasky@suse.cz>
17589             Ulrich Drepper  <drepper@gmail.com>
17590
17591         [BZ #12393]
17592         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17593         (is_trusted_path): ...to here.
17594         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17595         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17596         using is_trusted_path_normalize() in setuid scripts.
17597
17598 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17599
17600         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17601         __BEGIN/__END_DECLS.
17602
17603 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17604
17605         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17606         NSS_STATUS_NOTFOUND if no record was found.
17607
17608 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17609
17610         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17611         (headers-not-in-tirpc): Remove rpc/netdb.h
17612         * resolv/netdb.h: Revert last change.
17613
17614 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17615
17616         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17617         circular dependency between libgcc.a and libc.a.
17618
17619 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17620
17621         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17622         * nis/Makefile: Don't install rpcsvc/*.
17623         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17624         instead of <rpc/types.h>.
17625         (MAXHOSTNAMELEN): Define.
17626
17627 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17628
17629         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17630
17631 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17632
17633         [BZ #12714]
17634         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17635         gethostbyname4_r when IPv6 results are possible.
17636
17637 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17638
17639         [BZ #12723]
17640         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17641         _PC_PIPE_BUF handling.
17642
17643 2011-04-30  Bruno Haible  <bruno@clisp.org>
17644
17645         [BZ #12717]
17646         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17647         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17648         to 'int'.
17649         * inet/getnameinfo.c (getnameinfo): Likewise.
17650
17651 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17652
17653         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17654         to groups setting in database lookup.
17655         * nss/nsswitch.conf: Add initgroups entry.
17656
17657 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17658
17659         [BZ #12685]
17660         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17661         mode string.
17662         Patch by Eric Blake <eblake@redhat.com>.
17663
17664 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17665
17666         * sunrpc/Makefile (need-export-routines): Add svc_run.
17667         (routines): Remove svc_run.
17668         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17669         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17670         * sunrpc/svc_run.c (svc_run): Likewise.
17671         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17672
17673 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17674
17675         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17676         problem in reallocation in last patch.
17677
17678 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17679
17680         * sunrpc/Makefile: Move inclusion of Rules.
17681
17682 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17683
17684         * nss/nss_files/files-initgroups.c: New file.
17685         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17686         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17687         _nss_files_initgroups_dyn.
17688
17689 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17690
17691         * elf/elf.h (R_ARM_IRELATIVE): Define.
17692
17693 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17694
17695         * po/ru.po: Update from translation team.
17696
17697 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17698
17699         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17700         dependencies.
17701
17702 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17703
17704         [BZ #12653]
17705         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17706         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17707         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17708         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17709         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17710
17711 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17712
17713         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17714         differing bytes.
17715         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17716         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17717         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17718
17719 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17720
17721         [BZ #12420]
17722         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17723         storing it.
17724         * stdlib/bug-getcontext.c: New file.
17725         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17726
17727 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17728
17729         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17730         instructions into .machine "z9-109".
17731         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17732         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17733
17734 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17735
17736         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17737         between environment variables and auxiliary vector.
17738
17739 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17740
17741         * Makefile: Add rules to build linkobj/libc.so.
17742         * include/libc-symbols.h: Define libc_hidden_nolink.
17743         * include/rpc/auth.h: Mark functions which are to be hidden.
17744         * include/rpc/auth_des.h: Likewise.
17745         * include/rpc/auth_unix.h: Likewise.
17746         * include/rpc/clnt.h: Likewise.
17747         * include/rpc/des_crypt.h: Likewise.
17748         * include/rpc/key_prot.h: Likewise.
17749         * include/rpc/pmap_clnt.h: Likewise.
17750         * include/rpc/pmap_prot.h: Likewise.
17751         * include/rpc/pmap_rmt.h: Likewise.
17752         * include/rpc/rpc_msg.h: Likewise.
17753         * include/rpc/svc.h: Likewise.
17754         * include/rpc/svc_auth.h: Likewise.
17755         * include/rpc/xdr.h: Likewise.
17756         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17757         * nss/Makefile: Likewise.
17758         * sunrpc/Makefile: Don't install headers.  Build library with normal
17759         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17760         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17761         for the compat linking library.  Remove use of INTDEF/INTUSE.
17762         * sunrpc/auth_none.c: Likewise.
17763         * sunrpc/auth_unix.c: Likewise.
17764         * sunrpc/authdes_prot.c: Likewise.
17765         * sunrpc/authuxprot.c: Likewise.
17766         * sunrpc/clnt_gen.c: Likewise.
17767         * sunrpc/clnt_perr.c: Likewise.
17768         * sunrpc/clnt_raw.c: Likewise.
17769         * sunrpc/clnt_simp.c: Likewise.
17770         * sunrpc/clnt_tcp.c: Likewise.
17771         * sunrpc/clnt_udp.c: Likewise.
17772         * sunrpc/clnt_unix.c: Likewise.
17773         * sunrpc/des_crypt.c: Likewise.
17774         * sunrpc/des_soft.c: Likewise.
17775         * sunrpc/get_myaddr.c: Likewise.
17776         * sunrpc/key_call.c: Likewise.
17777         * sunrpc/key_prot.c: Likewise.
17778         * sunrpc/netname.c: Likewise.
17779         * sunrpc/pm_getmaps.c: Likewise.
17780         * sunrpc/pm_getport.c: Likewise.
17781         * sunrpc/pmap_clnt.c: Likewise.
17782         * sunrpc/pmap_prot.c: Likewise.
17783         * sunrpc/pmap_prot2.c: Likewise.
17784         * sunrpc/pmap_rmt.c: Likewise.
17785         * sunrpc/publickey.c: Likewise.
17786         * sunrpc/rpc_cmsg.c: Likewise.
17787         * sunrpc/rpc_common.c: Likewise.
17788         * sunrpc/rpc_dtable.c: Likewise.
17789         * sunrpc/rpc_prot.c: Likewise.
17790         * sunrpc/rpc_thread.c: Likewise.
17791         * sunrpc/rtime.c: Likewise.
17792         * sunrpc/svc.c: Likewise.
17793         * sunrpc/svc_auth.c: Likewise.
17794         * sunrpc/svc_authux.c: Likewise.
17795         * sunrpc/svc_raw.c: Likewise.
17796         * sunrpc/svc_run.c: Likewise.
17797         * sunrpc/svc_simple.c: Likewise.
17798         * sunrpc/svc_tcp.c: Likewise.
17799         * sunrpc/svc_udp.c: Likewise.
17800         * sunrpc/svc_unix.c: Likewise.
17801         * sunrpc/svcauth_des.c: Likewise.
17802         * sunrpc/xcrypt.c: Likewise.
17803         * sunrpc/xdr.c: Likewise.
17804         * sunrpc/xdr_array.c: Likewise.
17805         * sunrpc/xdr_float.c: Likewise.
17806         * sunrpc/xdr_intXX_t.c: Likewise.
17807         * sunrpc/xdr_mem.c: Likewise.
17808         * sunrpc/xdr_rec.c: Likewise.
17809         * sunrpc/xdr_ref.c: Likewise.
17810         * sunrpc/xdr_sizeof.c: Likewise.
17811         * sunrpc/xdr_stdio.c: Likewise.
17812
17813 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17814
17815         [BZ #12650]
17816         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17817         * sysdeps/ia64/dl-tls.h: Likewise.
17818         * sysdeps/powerpc/dl-tls.h: Likewise.
17819         * sysdeps/s390/dl-tls.h: Likewise.
17820         * sysdeps/sh/dl-tls.h: Likewise.
17821         * sysdeps/sparc/dl-tls.h: Likewise.
17822         * sysdeps/x86_64/dl-tls.h: Likewise.
17823         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17824
17825 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17826
17827         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17828         rpath element also skip the following colon.
17829         (expand_dynamic_string_token): Add is_path parameter and pass
17830         down to DL_DST_REQUIRED and _dl_dst_substitute.
17831         (decompose_rpath): Call expand_dynamic_string_token with
17832         non-zero is_path.  Ignore empty rpaths.
17833         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17834         with zero is_path.
17835
17836 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17837
17838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17839         Make cancelable.
17840
17841 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17842
17843         [BZ #12655]
17844         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17845         Patch by Filipe David Manana <fdmanana@apache.org>.
17846
17847 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17848
17849         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17850         Maintain aligned stack.
17851         (CHECK_RSP): Remove unused macro.
17852
17853 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17854
17855         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17856         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17857
17858 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17859
17860         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17861
17862         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17863
17864 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17865
17866         [BZ #12518]
17867         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17868         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17869         * sysdeps/x86_64/memmove.c: New file.
17870         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17871         (memcpy): Renamed to ...
17872         (__new_memcpy): This.
17873         (memcpy): Provide GLIBC_2_14 memcpy.
17874         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17875         (memcpy): Provide GLIBC_2_2_5 memcpy.
17876
17877 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17878
17879         [BZ #12631]
17880         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17881
17882 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17883
17884         * misc/syncfs.c: New file.
17885         * misc/Makefile (routines): Add syncfs.
17886         * posix/unistd.h: Declare syncfs.
17887         * sysdeps/unix/syscalls.list: Add syncfs.
17888
17889 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17890
17891         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17892         open_by_handle_at.
17893         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17894         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17895         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17896         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17897         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17898         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17899         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17900
17901 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17902
17903         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17904         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17905         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17906         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17907         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17908         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17909         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17910
17911         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17912         sync_file_range.c with -fexceptions.
17913         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17914         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17915         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17916         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17917         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17918         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17919         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17920         sync_file_range as cancellation point
17921         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17922         now a wrapper around __call_sync_file_range with cancellation handling.
17923         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17924         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17925         function name to __call_sync_file_range.
17926         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17927         Add call_sync_file_range.
17928
17929 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17930
17931         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17932         bits/timex.h.
17933
17934 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17935
17936         * iconv/iconv.h: Fix typo in comment.
17937         * io/fcntl.h: Likewise.
17938         * libio/stdio.h: Likewise.
17939         * posix/spawn.h: Likewise.
17940         * posix/unistd.h: Likewise.
17941         * stdlib/stdlib.h: Likewise.
17942         * time/time.h: Likewise.
17943         * wcsmbs/wchar.h: Likewise.
17944
17945         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17946         open_by_handle): Add.
17947         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17948         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17949         Augment a few comments.
17950         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17951         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17952         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17953         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17955         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17956         open_by_handle.
17957
17958         * io/fcntl.h (AT_EMPTY_PATH): Define.
17959
17960 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17961
17962         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17963         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17964         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17965         to...
17966         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17967         * Versions.def: Add GLIBC_2.14.
17968         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17969         Export.
17970
17971 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17972
17973         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17974         round counter.
17975         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17976
17977 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17978
17979         [BZ #12597]
17980         * string/test-strncmp.c (do_page_test): New function.
17981         (check2): Likewise.
17982         (test_main): Call check2.
17983         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17984
17985 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17986
17987         [BZ #12587]
17988         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17989         Handle cache information in CPU leaf 4.
17990         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17991
17992 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17993
17994         [BZ #12583]
17995         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17996         character representation.
17997         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17998
17999 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18000
18001         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18002         END(__isnan) to END(__isnanf) to match function entry point/label
18003         EALIGN(__isnanf,...).
18004
18005 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18006
18007         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18008
18009 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18010
18011         [BZ #12510]
18012         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18013         copy from the symbol referenced in the relocation to initialize the
18014         used variable.
18015         Patch by Piotr Bury <pbury@goahead.com>.
18016         * elf/Makefile: Add rules to build and tst-unique3.
18017         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18018         * elf/tst-unique3.cc: New file.
18019         * elf/tst-unique3.h: New file.
18020         * elf/tst-unique3lib.cc: New file.
18021         * elf/tst-unique3lib2.cc: New file.
18022
18023         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18024
18025 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18026
18027         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18028         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18029         to _start.
18030
18031 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18032
18033         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18034         to-be-loaded object along a path to loader is ld.so.
18035
18036 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18037             Ulrich Drepper  <drepper@gmail.com>
18038
18039         * sysdeps/x86_64/memset.S: After aligning destination, code
18040         branches to different locations depending on the value of
18041         misalignment, when multiarch is enabled. Fix this.
18042
18043 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18044
18045         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18046         Set _x86_64_preferred_memory_instruction for AMD processsors.
18047         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18048         Set bit_Prefer_SSE_for_memop for AMD processors.
18049
18050 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18051
18052         * libio/fmemopen.c (fmemopen): Optimize a bit.
18053
18054 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18055
18056         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18057
18058 2011-03-03  Roland McGrath  <roland@redhat.com>
18059
18060         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18061
18062 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18063
18064         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18065         __bzero_ultra1 instead of __memset_ultra1.
18066
18067 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18068             Ulrich Drepper  <drepper@gmail.com>
18069
18070         [BZ #12509]
18071         * include/link.h (struct link_map): Add l_orig_initfini.
18072         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18073         returning unsuccessfully.
18074         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18075         close of a file loaded at startup, restore the original l_initfini
18076         list.
18077         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18078         list, store the pointer.
18079         * elf/Makefile ($(objpfx)noload-mem): New rule.
18080         (noload-ENV): Define.
18081         (tests): Add $(objpfx)noload-mem.
18082         * elf/noload.c: Include <memcheck.h>.
18083         (main): Call mtrace.  Close all opened handles.
18084
18085 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18086
18087         [BZ #12454]
18088         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18089         dependencies are missing.
18090
18091 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18092
18093         Fix __if_freereq crash: Unlike the generic version which uses free,
18094         Hurd needs munmap.
18095         * sysdeps/mach/hurd/ifreq.h: New file.
18096
18097 2011-01-27  Petr Baudis  <pasky@suse.cz>
18098             Ulrich Drepper  <drepper@gmail.com>
18099
18100         [BZ 12445]#
18101         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18102         to extend_alloca().
18103         * stdio-common/bug23.c: New file.
18104         * stdio-common/Makefile (tests): Add bug23.
18105
18106 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18107             Ulrich Drepper  <drepper@gmail.com>
18108
18109         [BZ #12489]
18110         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18111         before performing relro protection.  At old place add assertion
18112         to make sure nothing changed.
18113
18114 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18115             Glauber de Oliveira Costa  <glommer@gmail.com>
18116
18117         * elf/elf.h: Add new ARM TLS relocs.
18118
18119 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18120
18121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18122         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18123         cast from r3.
18124         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18125         'tests' variable.
18126         * sysdeps/wordsize-64/tst-writev.c: New file.
18127
18128 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18129
18130         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18131         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18132         insns in _dl_start to prevent a TOC reference before relocs are
18133         resolved.
18134
18135 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18136
18137         [BZ #12469]
18138         * Makeconfig: Remove RANLIB definition.
18139         * Makerules: Don't use RANLIB.
18140         * aclocal.m4: Remove ranlib test.
18141         * configure.in: No need to check for ranlib.
18142         * elf/rtld-Rules: Don't use RANLIB.
18143
18144 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18145
18146         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18147         protection macro.
18148         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18149         inclusion protection macro.
18150
18151         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18152         SIGRTMIN and SIGRTMAX and print information in that case only when
18153         SIGRTMIN is defined.
18154
18155 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18156
18157         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18158         arginfo fn returning -1.
18159
18160         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18161         and thousands string is zero terminated.
18162
18163 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18164
18165         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18166         sysdeps/unix/sysv/linux/bits/socket.h.
18167
18168 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18169
18170         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18171         (__CPU_COUNT): Remove old macros.
18172         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18173         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18174         (__CPU_ALLOC, __CPU_FREE): Add macros.
18175         (__sched_cpualloc, __sched_cpufree): Add declarations.
18176
18177 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18178
18179         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18180         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18181         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18182         (readdhstai): Return value of addhstaiX call.
18183         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18184         (addgrbyX): Return value returned by cache_addgr.
18185         (readdgrbyname): Return value returned by addgrbyX.
18186         (readdgrbygid): Likewise.
18187         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18188         (addpwbyX): Return value returned by cache_addpw.
18189         (readdpwbyname): Return value returned by addhstbyX.
18190         (readdpwbyuid): Likewise.
18191         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18192         (addservbyX): Return value returned by cache_addserv.
18193         (readdservbyname): Return value returned by addservbyX:
18194         (readdservbyport): Likewise.
18195         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18196         (addhstbyX): Return value returned by cache_addhst.
18197         (readdhstbyname): Return value returned by addhstbyX.
18198         (readdhstbyaddr): Likewise.
18199         (readdhstbynamev6): Likewise.
18200         (readdhstbyaddrv6): Likewise.
18201         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18202         (readdinitgroups): Return value returned by addinitgroupsX.
18203         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18204         (prune_cache): Keep track of timeout value of re-added entries.
18205         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18206         * nscd/nscd.h: Adjust prototypes of readd* functions.
18207
18208 2011-02-04  Roland McGrath  <roland@redhat.com>
18209
18210         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18211         (nis_stats): Likewise.
18212         * nis/nis_modify.c (nis_modify): Likewise.
18213         * nis/nis_remove.c (nis_remove): Likewise.
18214         * nis/nis_add.c (nis_add): Likewise.
18215
18216         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18217
18218         * posix/fnmatch_loop.c: Add some consts.
18219
18220         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18221
18222 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18223
18224         [BZ #12460]
18225         * config.make.in (config-cflags-novzeroupper): Define.
18226         * configure.in: Substitute libc_cv_cc_novzeroupper.
18227         * elf/Makefile (AVX-CFLAGS): Define.
18228         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18229         (CFLAGS-tst-auditmod4a.c): Likewise.
18230         (CFLAGS-tst-auditmod4b.c): Likewise.
18231         (CFLAGS-tst-auditmod6b.c): Likewise.
18232         (CFLAGS-tst-auditmod6c.c): Likewise.
18233         (CFLAGS-tst-auditmod7b.c): Likewise.
18234         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18235
18236 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18237
18238         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18239         function to the callback.
18240         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18241
18242 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18243
18244         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18245         of errno.
18246
18247 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18248
18249         [BZ #11724]
18250         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18251         of constructors.
18252         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18253         of destructors.
18254         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18255
18256         [BZ #11724]
18257         * elf/Makefile: Add rules to build and run new test.
18258         * elf/tst-initorder.c: New file.
18259         * elf/tst-initorder.exp: New file.
18260         * elf/tst-initordera1.c: New file.
18261         * elf/tst-initordera2.c: New file.
18262         * elf/tst-initordera3.c: New file.
18263         * elf/tst-initordera4.c: New file.
18264         * elf/tst-initorderb1.c: New file.
18265         * elf/tst-initorderb2.c: New file.
18266         * elf/tst-order-a1.c: New file.
18267         * elf/tst-order-a2.c: New file.
18268         * elf/tst-order-a3.c: New file.
18269         * elf/tst-order-a4.c: New file.
18270         * elf/tst-order-b1.c: New file.
18271         * elf/tst-order-b2.c: New file.
18272         * elf/tst-order-main.c: New file.
18273         New test case by George Gensure <werkt0@gmail.com>.
18274
18275 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18276
18277         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18278         decoding ACE if AI_CANONIDN.
18279
18280 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18281
18282         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18283
18284 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18285
18286         * version.h (RELEASE): Bump for 2.13 release.
18287         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18288
18289         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18290
18291         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18292         MADV_NOHUGEPAGE.
18293         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18294         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18295         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18296         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18297         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18298         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18299
18300         * posix/getconf.c: Update copyright year.
18301         * catgets/gencat.c: Likewise.
18302         * csu/version.c: Likewise.
18303         * debug/catchsegv.sh: Likewise.
18304         * debug/xtrace.sh: Likewise.
18305         * elf/ldconfig.c: Likewise.
18306         * elf/ldd.bash.in: Likewise.
18307         * elf/sprof.c (print_version): Likewise.
18308         * iconv/iconv_prog.c: Likewise.
18309         * iconv/iconvconfig.c: Likewise.
18310         * locale/programs/locale.c: Likewise.
18311         * locale/programs/localedef.c: Likewise.
18312         * malloc/memusage.sh: Likewise.
18313         * malloc/mtrace.pl: Likewise.
18314         * nscd/nscd.c (print_version): Likewise.
18315         * nss/getent.c: Likewise.
18316
18317         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18318         PF_CAIF, and PF_ALG.
18319         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18320
18321 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18322
18323         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18324         (modules-names): Use them.
18325         (ifunc-test-modules, ifunc-pie-tests): Define.
18326         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18327         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18328         (test-extras): Likewise.
18329         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18330         $(compile-command.c).
18331         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18332         (all-built-dso): Define.
18333         (check-textrel.out, check-execstack.out): Depend on it.
18334
18335         * configure.in: Don't override --enable-multi-arch.
18336
18337 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18338
18339         [BZ #6812]
18340         * nscd/hstcache.c (tryagain): Define.
18341         (cache_addhst): Return tryagain not notfound for temporary errors.
18342         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18343         failed.
18344
18345 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18346
18347         [BZ #10563]
18348         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18349         to make the syscall.
18350         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18351
18352         [BZ #12378]
18353         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18354         and fall back to matching as normal character if the string ends before
18355         the matching ']' is found.  This is what POSIX requires.
18356         * posix/testfnm.c: Adjust test result.
18357         * posix/globtest.sh: Adjust test result.  Add new test.
18358         * posix/tst-fnmatch.input: Likewise.
18359         * posix/tst-fnmatch2.c: Add new test.
18360
18361 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18362
18363         * elf/Makefile (check-execstack): Revert last change.  Depend on
18364         check-execstack.h.
18365         (check-execstack.h): New target.
18366         (generated): Add check-execstack.h.
18367         * elf/check-execstack.c: Include "check-execstack.h".
18368         (main): Revert last change.
18369         (handle_file): Return zero if GNU_STACK is absent and
18370         DEFAULT_STACK_PERMS doesn't include PF_X.
18371
18372 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18373
18374         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18375         in child fails because the descriptor is already closed.
18376         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18377         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18378         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18379
18380         [BZ #12397]
18381         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18382         syscall.
18383
18384         [BZ #10484]
18385         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18386         temporary buffer used to handle multi lookups locally.
18387         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18388
18389 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18390
18391         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18392         loader is ld.so.
18393
18394 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18395
18396         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18397         alignment for SSE2.
18398
18399 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18400
18401         [BZ #12394]
18402         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18403         characters.  When rounding increased number of integer digits recompute
18404         number of groups.
18405         * stdio-common/tst-grouping.c: New file.
18406         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18407
18408 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18409
18410         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18411         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18412
18413         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18414         void.
18415         * bits/select.h: Likewise.
18416
18417 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18418
18419         * po/ja.po: Update from translation team.
18420
18421 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18422
18423         [BZ #11155]
18424         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18425         implementation just like for lxstat, fxstatat, et al.
18426
18427 2010-12-27  Jim Meyering  <meyering@redhat.com>
18428
18429         [BZ #12348]
18430         * posix/regexec.c (build_trtable): Return failure indication upon
18431         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18432
18433 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18434
18435         [BZ #12201]
18436         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18437         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18438         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18439         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18440
18441         [BZ #12207]
18442         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18443
18444         [BZ #12204]
18445         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18446         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18447
18448 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18449
18450         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18451         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18452         script has SORT_BY_INIT_PRIORITY.
18453         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18454         NO_CTORS_DTORS_SECTIONS is defined.
18455         * elf/soinit.c: Likewise.
18456         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18457         NO_CTORS_DTORS_SECTIONS is defined.
18458         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18459         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18460         * sysdeps/sh/init-first.c: Likewise.
18461         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18462
18463 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18464
18465         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18466         always use the slow path.
18467
18468 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18469
18470         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18471         similar rule which adds the sysdep directories to the header search in
18472         order to pick up the correct platform stackinfo.h.
18473         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18474         perform test if it is, otherwise return successfully without testing.
18475         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18476         DEFAULT_STACK_PERMS define in stackinfo.h.
18477         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18478         defined in stackinfo.h.
18479         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18480         DEFAULT_STACK_PERMS defined in stackinfo.h.
18481         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18482         * sysdeps/ia64/stackinfo.h: Likewise.
18483         * sysdeps/s390/stackinfo.h: Likewise.
18484         * sysdeps/sh/stackinfo.h: Likewise.
18485         * sysdeps/sparc/stackinfo.h: Likewise.
18486         * sysdeps/x86_64/stackinfo.h: Likewise.
18487         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18488         PF_X for powerpc64.  Retain PF_X for powerpc32.
18489
18490 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18491
18492         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18493         accurately.
18494         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18495         GETDENTS_64BIT_ALIGNED.
18496
18497 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18498
18499         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18500
18501 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18502
18503         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18504         _GNU_SOURCE.
18505
18506         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18507         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18508         Remove __restrict.
18509         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18510         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18511
18512 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18513
18514         [BZ #11655]
18515         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18516         are initialized.
18517
18518 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18519
18520         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18521
18522 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18523
18524         * po/it.po: Update from translation team.
18525
18526 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18527
18528         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18529         unused codes.
18530
18531 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18532
18533         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18534
18535 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18536
18537         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18538         specially.
18539         (gaih_getanswer_slice): Likewise.
18540
18541 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18542
18543         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18544
18545 2010-05-31  Petr Baudis  <pasky@suse.cz>
18546
18547         [BZ #11149]
18548         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18549         silently even in the chroot mode.
18550
18551 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18552
18553         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18554         last patch a bit.  Pretty printing
18555
18556 2010-05-31  Petr Baudis <pasky@suse.cz>
18557
18558         [BZ #10085]
18559         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18560         initialization of skip_initgroups_dyn.
18561
18562 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18563
18564         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18565         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18566
18567 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18568
18569         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18570
18571 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18572
18573         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18574         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18575         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18576         ($(objpfx)tst-fnmatch-mem): New rule.
18577         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18578         * posix/tst-fnmatch.c (main): Call mtrace.
18579
18580 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18581
18582         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18583         Support Intel processor model 6 and model 0x2c.
18584
18585 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18586
18587         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18588           signed comparison.
18589
18590 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18591
18592         [BZ #12205]
18593         * string/test-strncasecmp.c (check_result): New function.
18594         (do_one_test): Use it.
18595         (check1): New function.
18596         (test_main): Use it.
18597         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18598         Support strcasecmp and strncasecmp.
18599
18600 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18601
18602         [BZ #12194]
18603         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18604         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18605
18606 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18607
18608         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18609         IFUNC support.
18610         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18611         memset-x86-64.
18612         * sysdeps/x86_64/multiarch/bzero.S: New file.
18613         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18614         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18615         * sysdeps/x86_64/multiarch/memset.S: New file.
18616         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18617         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18618         Set bit_Prefer_SSE_for_memop for Intel processors.
18619         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18620         Define.
18621         (index_Prefer_SSE_for_memop): Define.
18622         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18623
18624 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18625
18626         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18627         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18628
18629 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18630
18631         [BZ #12191]
18632         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18633         (__x86_64_raw_data_cache_size_half): Likewise.
18634         (__x86_64_raw_shared_cache_size): Likewise.
18635         (__x86_64_raw_shared_cache_size_half): Likewise.
18636
18637         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18638         (__x86_64_raw_data_cache_size_half): Likewise.
18639         (__x86_64_raw_shared_cache_size): Likewise.
18640         (__x86_64_raw_shared_cache_size_half): Likewise.
18641         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18642         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18643         and __x86_64_raw_shared_cache_size_half.  Round
18644         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18645         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18646         to multiple of 256 bytes.
18647
18648 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18649
18650         [BZ #12167]
18651         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18652         of inacessible symlinks.  Verify result of symlink before returning it.
18653         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18654         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18655
18656 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18657
18658         * math/math.h (isinf): Fix typo in comment.
18659
18660 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18661
18662         * po/da.po: Update from translation team.
18663
18664 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18665
18666         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18667         is added to the list.
18668
18669 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18670             Ulrich Drepper  <drepper@gmail.com>
18671
18672         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18673         the global list here.  Move code to...
18674         (_dl_add_to_namespace_list): ...here.  New function.
18675         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18676         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18677         * elf/dl-load.c (lose): Don't remove the element from the list.
18678         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18679         (_dl_map_object): Likewise.
18680
18681 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18682
18683         [BZ #12159]
18684         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18685         into all bytes of SSE register.
18686         Patch by Richard Li <richardpku@gmail.com>.
18687
18688 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18689
18690         [BZ #12140]
18691         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18692         perturbing.
18693
18694 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18695
18696         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18697         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18698         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18699         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18701         submachine.
18702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18703
18704 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18705
18706         * include/dlfcn.h (__RTLD_SECURE): Define.
18707         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18708         mode & __RTLD_SECURE instead.
18709         (open_path): Rename preloaded parameter to secure.
18710         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18711         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18712         * elf/dl-deps.c (openaux): Likewise.
18713         * elf/rtld.c (struct map_args): Remove is_preloaded.
18714         (map_doit): Don't use it.
18715         (dl_main): Likewise.
18716         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18717         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18718
18719 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18720
18721         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18722         (sysd-rules-targets): Remove duplicates.
18723         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18724         rtld-%.$o dependency.
18725
18726 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18727
18728         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18729         _dl_map_object do it.
18730
18731 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18732
18733         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18734         fast fma builtins, define the macros in the C99 standard.
18735         (FP_FAST_FMAF): Likewise.
18736         (FP_FAST_FMAL): Likewise.
18737         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18738
18739         * bits/mathdef.h: Update copyright year.
18740         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18741
18742 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18743
18744         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18745         builtins, define the macros in the C99 standard.
18746         (FP_FAST_FMAF): Likewise.
18747         (FP_FAST_FMAL): Likewise.
18748         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18749         multiply/add.
18750         (FP_FAST_FMAF): Likewise.
18751
18752 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18753
18754         [BZ #3268]
18755         * math/libm-test.inc (fma_test): Some new testcases.
18756         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18757         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18758         y and infinite z.  Do multiplication by C already in long double.
18759         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18760         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18761         y and infinite z.  Do bitwise or of inexact bit into u.d.
18762         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18763         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18764         * sysdeps/i386/fpu/s_fma.S: Removed.
18765         * sysdeps/i386/fpu/s_fmal.S: Removed.
18766
18767 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18768
18769         [BZ #3268]
18770         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18771         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18772         computation is not scheduled after fetestexcept.  Fix value
18773         of minimum denormal long double.
18774
18775 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18776
18777         [BZ #3268]
18778         * math/libm-test.inc (fma_test): Add some more tests.
18779         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18780         correctly.
18781
18782 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18783
18784         * scripts/data/localplt-s390-linux-gnu.data: New file.
18785         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18786
18787 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18788
18789         [BZ #3268]
18790         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18791         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18792         instead of dbl-64.
18793         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18794         inlines.
18795         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18796         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18797         if one of x and y is very large and the other is subnormal.
18798         * sysdeps/s390/fpu/s_fmaf.c: New file.
18799         * sysdeps/s390/fpu/s_fma.c: New file.
18800         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18801         * sysdeps/powerpc/fpu/s_fma.S: New file.
18802         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18803         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18804         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18805
18806 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18807
18808         [BZ #3268]
18809         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18810         fma tests.
18811         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18812         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18813         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18814         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18815         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18816         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18817         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18818
18819 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18820
18821         [BZ #12078]
18822         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18823         * posix/bug-regex31.input: Add test case.
18824
18825 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18826
18827         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18828         * posix/bug-regex31.input: New file.
18829
18830         [BZ #12078]
18831         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18832         (parse_sub_exp): Fix last change, use postorder.
18833
18834         * posix/bug-regex31.c: New file.
18835         * posix/Makefile: Add rules to build and run bug-regex31.
18836
18837         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18838
18839         [BZ #12078]
18840         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18841
18842         [BZ #12108]
18843         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18844         to have entries in sys_siglist.
18845
18846         [BZ #12093]
18847         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18848         be NULL.
18849
18850 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18851
18852         [BZ #3268]
18853         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18854         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18855         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18856         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18857         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18858         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18859         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18860         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18861         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18862         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18863         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18864         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18865         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18866         * math/ftestexcept.c (fetestexcept): Likewise.
18867         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18868         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18869         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18870         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18871         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18872         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18873         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18874
18875 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18876
18877         [BZ #12107]
18878         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18879         newline.
18880
18881 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18882
18883         * string/bug-strstr1.c: New file.
18884         * string/Makefile: Add rules to build and run bug-strstr1.
18885
18886 2010-10-05  Eric Blake  <eblake@redhat.com>
18887
18888         [BZ #12092]
18889         * string/str-two-way.h (two_way_long_needle): Always clear memory
18890         when skipping input due to the shift table.
18891
18892 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18893
18894         [BZ #12005]
18895         * malloc/mcheck.c: Handle large requests.
18896
18897         [BZ #12077]
18898         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18899         for strncmp and strncasecmp.
18900         * string/stratcliff.c: Add tests for strcmp and strncmp.
18901         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18902
18903 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18904
18905         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18906         __set_fpscr.
18907
18908 2010-09-30  Andreas Jaeger  <aj@suse.de>
18909
18910         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18911         (CGROUP_SUPER_MAGIC): Define.
18912         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18913         Handle btrfs and cgroup file systems.
18914         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18915         Likewise.
18916
18917 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18918
18919         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18920         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18921
18922 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18923
18924         [BZ #12067]
18925         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18926         trying to locate the ELF header.
18927
18928 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18929
18930         [BZ #11611]
18931         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18932         Mask out sign-bit copies when constructing f_fsid.
18933
18934 2010-09-24  Petr Baudis <pasky@suse.cz>
18935
18936         * debug/stack_chk_fail_local.c: Add missing licence exception.
18937         * debug/warning-nop.c: Likewise.
18938
18939 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18940
18941         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18942         implementing getdents64 using getdents syscall, set d_type if
18943         __ASSUME_GETDENTS32_D_TYPE.
18944
18945 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18946
18947         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18948         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18949
18950 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18951
18952         [BZ #12037]
18953         * posix/unistd.h: Undo change of feature selection for ftruncate from
18954         2010-01-11.
18955
18956 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18957
18958         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18959         detection.
18960
18961 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18962
18963         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18964         fanotify_mark.
18965         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18966
18967 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18968
18969         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18970         variables after CHECK_SP call.
18971         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18972
18973 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18974             Ulrich Drepper  <drepper@redhat.com>
18975
18976         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18977         re-relocationg ld.so.
18978         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18979         _dl_init_paths call.
18980         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18981         here anymore.
18982
18983 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18984
18985         * resolv/res_init.c (__res_vinit): Count the default server we added.
18986
18987 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18988             Ulrich Drepper  <drepper@redhat.com>
18989
18990         [BZ #11968]
18991         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18992         (____longjmp_chk): Use %ebx for saving value across system call.
18993         Add unwind info.
18994
18995 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18996
18997         * manual/Makefile: Don't mix pattern rules with normal rules.
18998
18999 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19000
19001         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19002         operation.
19003         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19004         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19005         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19006         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19007         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19008         Likewise.
19009
19010 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19011
19012         [BZ #11979]
19013         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19014         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19015
19016 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19017
19018         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19019         * sysdeps/x86_64/addmul_1.S: Likewise.
19020         * sysdeps/x86_64/lshift.S: Likewise.
19021         * sysdeps/x86_64/mul_1.S: Likewise.
19022         * sysdeps/x86_64/rshift.S: Likewise.
19023         * sysdeps/x86_64/sub_n.S: Likewise.
19024         * sysdeps/x86_64/submul_1.S: Likewise.
19025
19026 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19027
19028         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19029         Define __sched_param instead of SCHED_* and sched_param when
19030         <bits/sched.h> is included with __need_schedparam defined.
19031         * bits/sched.h [__need_schedparam]
19032         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19033         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19034         (__defined_schedparam): Define to 1.
19035         (__sched_param): New structure, identical to sched_param.
19036         (__need_schedparam): Undefine.
19037
19038 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19039
19040         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19041         (epoll_create1): Declare.
19042
19043         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19044
19045 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19046
19047         [BZ #7066]
19048         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19049         shifting retval into place.
19050
19051 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19052
19053         * nis/rpcsvc/nis.h: Update copyright notice.
19054         * nis/rpcsvc/nis.x: Likewise.
19055         * nis/rpcsvc/nis_callback.h: Likewise.
19056         * nis/rpcsvc/nis_callback.x: Likewise.
19057         * nis/rpcsvc/nis_object.x: Likewise.
19058         * nis/rpcsvc/nis_tags.h: Likewise.
19059         * nis/rpcsvc/yp.h: Likewise.
19060         * nis/rpcsvc/yp.x: Likewise.
19061         * nis/rpcsvc/ypupd.h: Likewise.
19062         * nis/yp_xdr.c: Likewise.
19063         * nis/ypupdate_xdr.c: Likewise.
19064
19065         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19066         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19067         (pmap_getport): Use __libc_rpc_getport.
19068         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19069         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19070         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19071
19072 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19073
19074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19075         fanotify_mark.
19076
19077 2010-08-27  Roland McGrath  <roland@redhat.com>
19078
19079         * sysdeps/i386/i686/multiarch/Makefile
19080         (CFLAGS-varshift.c): New variable.
19081
19082 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19083
19084         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19085         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19086
19087         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19088
19089         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19090
19091 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19092
19093         * sysdeps/x86_64/strlen.S: Unroll the loop.
19094         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19095         strlen-sse2 strlen-sse2-bsf.
19096         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19097         __strlen_no_bsf if bit_Slow_BSF is set.
19098         (__strlen_sse42): Removed.
19099         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19100         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19101
19102 2010-08-25  Roland McGrath  <roland@redhat.com>
19103
19104         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19105         * sysdeps/x86_64/multiarch/varshift.c: New file.
19106         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19107         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19108         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19109         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19110
19111 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19112
19113         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19114         strlen-sse2 strlen-sse2-bsf.
19115         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19116         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19117         (__strlen_sse2): Removed.
19118         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19119         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19120         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19121         bit_Slow_BSF for Atom.
19122         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19123         (index_Slow_BSF): Define.
19124         (HAS_SLOW_BSF): Define.
19125
19126 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19127
19128         [BZ #10851]
19129         * resolv/res_init.c (__res_vinit): When no server address at all
19130         is given default to loopback.
19131
19132 2010-08-24  Roland McGrath  <roland@redhat.com>
19133
19134         * configure.in: Remove config-name.h generation.
19135         * configure: Regenerated.
19136         * config-name.in: File removed.
19137         * scripts/config-uname.sh: New file.
19138         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19139         ($(objdir)config-name.h): New target.
19140
19141         * sunrpc/rpc_parse.h: Avoid nested comment.
19142
19143 2010-08-24  Richard Henderson  <rth@redhat.com>
19144             Ulrich Drepper  <drepper@redhat.com>
19145             H.J. Lu  <hongjiu.lu@intel.com>
19146
19147         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19148         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19149         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19150         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19151         _mm_alignr_epi8 with _mm_loadu_si128.
19152         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19153         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19154         (__m128i_shift_right): Removed.
19155         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19156         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19157         * sysdeps/x86_64/multiarch/varshift.h: New file.
19158         * sysdeps/x86_64/multiarch/varshift.S: New file.
19159
19160 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19161
19162         * configure.in: Move assembler checks to before sysdep dir checking.
19163
19164 2010-08-20  Petr Baudis  <pasky@suse.cz>
19165
19166         * LICENSES: Sync the sunrpc license.
19167
19168 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19169
19170         * sunrpc/auth_des.c: Update copyright notice once again.
19171         * sunrpc/auth_none.c: Likewise.
19172         * sunrpc/auth_unix.c: Likewise.
19173         * sunrpc/authdes_prot.c: Likewise.
19174         * sunrpc/authuxprot.c: Likewise.
19175         * sunrpc/bindrsvprt.c: Likewise.
19176         * sunrpc/clnt_gen.c: Likewise.
19177         * sunrpc/clnt_perr.c: Likewise.
19178         * sunrpc/clnt_raw.c: Likewise.
19179         * sunrpc/clnt_simp.c: Likewise.
19180         * sunrpc/clnt_tcp.c: Likewise.
19181         * sunrpc/clnt_udp.c: Likewise.
19182         * sunrpc/clnt_unix.c: Likewise.
19183         * sunrpc/des_crypt.c: Likewise.
19184         * sunrpc/des_soft.c: Likewise.
19185         * sunrpc/get_myaddr.c: Likewise.
19186         * sunrpc/getrpcport.c: Likewise.
19187         * sunrpc/key_call.c: Likewise.
19188         * sunrpc/key_prot.c: Likewise.
19189         * sunrpc/openchild.c: Likewise.
19190         * sunrpc/pm_getmaps.c: Likewise.
19191         * sunrpc/pm_getport.c: Likewise.
19192         * sunrpc/pmap_clnt.c: Likewise.
19193         * sunrpc/pmap_prot.c: Likewise.
19194         * sunrpc/pmap_prot2.c: Likewise.
19195         * sunrpc/pmap_rmt.c: Likewise.
19196         * sunrpc/rpc/auth.h: Likewise.
19197         * sunrpc/rpc/auth_unix.h: Likewise.
19198         * sunrpc/rpc/clnt.h: Likewise.
19199         * sunrpc/rpc/des_crypt.h: Likewise.
19200         * sunrpc/rpc/key_prot.h: Likewise.
19201         * sunrpc/rpc/netdb.h: Likewise.
19202         * sunrpc/rpc/pmap_clnt.h: Likewise.
19203         * sunrpc/rpc/pmap_prot.h: Likewise.
19204         * sunrpc/rpc/pmap_rmt.h: Likewise.
19205         * sunrpc/rpc/rpc.h: Likewise.
19206         * sunrpc/rpc/rpc_des.h: Likewise.
19207         * sunrpc/rpc/rpc_msg.h: Likewise.
19208         * sunrpc/rpc/svc.h: Likewise.
19209         * sunrpc/rpc/svc_auth.h: Likewise.
19210         * sunrpc/rpc/types.h: Likewise.
19211         * sunrpc/rpc/xdr.h: Likewise.
19212         * sunrpc/rpc_clntout.c: Likewise.
19213         * sunrpc/rpc_cmsg.c: Likewise.
19214         * sunrpc/rpc_common.c: Likewise.
19215         * sunrpc/rpc_cout.c: Likewise.
19216         * sunrpc/rpc_dtable.c: Likewise.
19217         * sunrpc/rpc_hout.c: Likewise.
19218         * sunrpc/rpc_main.c: Likewise.
19219         * sunrpc/rpc_parse.c: Likewise.
19220         * sunrpc/rpc_parse.h: Likewise.
19221         * sunrpc/rpc_prot.c: Likewise.
19222         * sunrpc/rpc_sample.c: Likewise.
19223         * sunrpc/rpc_scan.c: Likewise.
19224         * sunrpc/rpc_scan.h: Likewise.
19225         * sunrpc/rpc_svcout.c: Likewise.
19226         * sunrpc/rpc_tblout.c: Likewise.
19227         * sunrpc/rpc_util.c: Likewise.
19228         * sunrpc/rpc_util.h: Likewise.
19229         * sunrpc/rpcinfo.c: Likewise.
19230         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19231         * sunrpc/rpcsvc/key_prot.x: Likewise.
19232         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19233         * sunrpc/rpcsvc/mount.x: Likewise.
19234         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19235         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19236         * sunrpc/rpcsvc/rex.x: Likewise.
19237         * sunrpc/rpcsvc/rstat.x: Likewise.
19238         * sunrpc/rpcsvc/rusers.x: Likewise.
19239         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19240         * sunrpc/rpcsvc/spray.x: Likewise.
19241         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19242         * sunrpc/rtime.c: Likewise.
19243         * sunrpc/svc.c: Likewise.
19244         * sunrpc/svc_auth.c: Likewise.
19245         * sunrpc/svc_authux.c: Likewise.
19246         * sunrpc/svc_raw.c: Likewise.
19247         * sunrpc/svc_run.c: Likewise.
19248         * sunrpc/svc_simple.c: Likewise.
19249         * sunrpc/svc_tcp.c: Likewise.
19250         * sunrpc/svc_udp.c: Likewise.
19251         * sunrpc/svc_unix.c: Likewise.
19252         * sunrpc/svcauth_des.c: Likewise.
19253         * sunrpc/xcrypt.c: Likewise.
19254         * sunrpc/xdr.c: Likewise.
19255         * sunrpc/xdr_array.c: Likewise.
19256         * sunrpc/xdr_float.c: Likewise.
19257         * sunrpc/xdr_mem.c: Likewise.
19258         * sunrpc/xdr_rec.c: Likewise.
19259         * sunrpc/xdr_ref.c: Likewise.
19260         * sunrpc/xdr_sizeof.c: Likewise.
19261         * sunrpc/xdr_stdio.c: Likewise.
19262
19263         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19264         handling.
19265
19266 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19267
19268         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19269
19270 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19271
19272         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19273         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19274         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19275         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19276         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19277         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19278         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19279         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19280         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19281         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19282         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19283         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19284         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19285         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19286
19287 2010-07-26  Anton Blanchard  <anton@samba.org>
19288
19289         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19290         * malloc/arena.c (heap_trim): Likewise.
19291
19292 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19293
19294         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19295         here.  Not...
19296         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19297         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19298
19299 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19300
19301         * sysdeps/i386/elf/Makefile: New file.
19302
19303 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19304
19305         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19306         from fanotify_init.
19307         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19308         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19309
19310 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19311
19312         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19313         of strncasecmp_l.
19314         * sysdeps/multiarch/strcmp.S: Likewise.
19315
19316 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19317
19318         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19319         strncase_l-nonascii.
19320         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19321         Add strncase_l-ssse3.
19322         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19323         * sysdeps/x86_64/strcmp.S: Likewise.
19324         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19325         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19326         * sysdeps/x86_64/strncase.S: New file.
19327         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19328         * sysdeps/x86_64/strncase_l.S: New file.
19329         * string/Makefile (strop-tests): Add strncasecmp.
19330         * string/test-strncasecmp.c: New file.
19331
19332         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19333         warning.
19334
19335         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19336         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19337
19338 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19339
19340         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19341
19342 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19343
19344         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19345         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19346         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19347
19348 2010-05-01  Alan Modra  <amodra@gmail.com>
19349
19350         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19351         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19352         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19353         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19354         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19355         tidying.  Don't tail-call __sigjmp_save for static lib.
19356         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19357         save location.
19358         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19359         (CALL_MCOUNT): Add eh info, and nop after bl.
19360         (TAIL_CALL_SYSCALL_ERROR): New macro.
19361         (PSEUDO_RET): Use it.
19362         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19363         Correct save location of integer regs and cr.
19364         (_dl_profile_resolve): Correct cr save location.  Delete nops
19365         after bl when SHARED.  Reduce cfi size a little by better
19366         placement of cfi directives.
19367         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19368         make a stack frame.  Instead use parm save area as a temp.
19369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19370         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19372         Don't make a stack frame for parent, use parm save area.
19373         Increase child stack frame to 112 bytes.  Don't save unused reg,
19374         and adjust reg usage.  Set up cfi on error recovery and
19375         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19377         (__makecontext): Add dummy nop after jump to exit.
19378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19379         Use correct parm save area and cr save, reduce stack frame.
19380         Correct cfi for possible PSEUDO_RET frame setup.
19381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19382         Branch to local label emitted by PSEUDO_RET rather than
19383         __syscall_error.
19384
19385 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19386
19387         [BZ #11904]
19388         * locale/programs/locale.c (print_assignment): New function.
19389         (show_locale_vars): Use it.
19390
19391 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19392
19393         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19394         field.
19395         (struct statfs64): Likewise.
19396         (_STATFS_F_FLAGS): Define.
19397         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19398         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19399         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19400         (ST_VALID): Define locally.
19401         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19402         __statvfs_getflags, use the provided value.
19403         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19404         __ASSUME_STATFS_F_FLAGS.
19405
19406         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19407
19408         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19409         Add sys/fanotify.h.
19410         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19411         fanotify_mask for GLIBC_2.13.
19412         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19413         fanotify_init and fanotify_mark.
19414         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19415         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19416
19417         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19418         Add prlimit.
19419         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19420         prlimit64 for GLIBC_2.13.
19421         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19422         prlimit64.
19423         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19424         syscall.
19425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19426         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19427         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19428         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19429         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19430         add prlimit alias.
19431         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19432
19433         [BZ #11903]
19434         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19435         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19436
19437         * nss/Makefile: Add rules to build and run tst-nss-test1.
19438         * shlib-versions: Add entry for libnss_test1.
19439         * nss/nss_test1.c: New file.
19440         * nss/tst-nss-test1.c: New file.
19441
19442         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19443         (__nss_configure_lookup): Set appropriate entry in
19444         __nss_configure_lookup to true.
19445         * nss/nsswitch.h: Define enum with indeces of databases in
19446         databases and __nss_database_custom arrays.  Declare
19447         __nss_database_custom.
19448         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19449         to avoid using nscd when custom rules are installed.
19450         * nss/getXXbyYY_r.c: Likewise.
19451         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19452
19453         * nss/nss_files/files-parse.c: Whitespace fixes.
19454
19455 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19456
19457         [BZ #11883]
19458         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19459         * posix/fnmatch_loop.c: Likewise.
19460
19461 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19462
19463         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19464         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19465         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19466         * Versions.def [GLIBC_2.13]: Add.
19467
19468 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19469
19470         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19471         Also fail if tpwd after pwuid call is NULL.
19472
19473 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19474
19475         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19476         when converting to ms.
19477
19478 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19479
19480         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19481         EOPNOTSUPP errors with ENOTTY.
19482         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19483         EOPNOTSUPP errors with ENOTTY.
19484
19485 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19486
19487         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19488         Add strcasecmp_l-ssse3.
19489         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19490         strcasecmp.
19491         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19492         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19493         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19494
19495 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19496
19497         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19498
19499         * string/Makefile (strop-tests): Add strcasecmp.
19500         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19501         strcasecmp_l-nonascii.
19502         (gen-as-const-headers): Add locale-defines.sym.
19503         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19504         * sysdeps/x86_64/strcasecmp.S: New file.
19505         * sysdeps/x86_64/strcasecmp_l.S: New file.
19506         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19507         * sysdeps/x86_64/locale-defines.sym: New file.
19508         * string/test-strcasecmp.c: New file.
19509
19510         * string/test-strcasestr.c: Test both ends of the range of characters.
19511         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19512
19513 2010-07-29  Roland McGrath  <roland@redhat.com>
19514
19515         [BZ #11856]
19516         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19517
19518 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19519
19520         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19521         for ld.so.
19522
19523 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19524
19525         * manual/memory.texi (Malloc Tunable Parameters): Document
19526         M_PERTURB.
19527
19528 2010-07-26  Roland McGrath  <roland@redhat.com>
19529
19530         [BZ #11840]
19531         * configure.in (-fgnu89-inline check): Set and substitute
19532         gnu89_inline, not libc_cv_gnu89_inline.
19533         * configure: Regenerated.
19534         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19535
19536 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19537
19538         * string/test-strnlen.c: New file.
19539         * string/Makefile (strop-tests): Add strnlen.
19540         * string/tester.c (test_strnlen): Add a few more test cases.
19541         * string/tst-strlen.c: Better error reporting.
19542
19543         * sysdeps/x86_64/strnlen.S: New file.
19544
19545 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19546
19547         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19548         lower-latency instructions.
19549
19550 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19551
19552         * string/test-strcasestr.c: New file.
19553         * string/test-strstr.c: New file.
19554         * string/Makefile (strop-tests): Add strstr and strcasestr.
19555         * string/str-two-way.h: Don't undefine MAX.
19556         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19557
19558 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19559
19560         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19561         strcasestr-nonascii.
19562         (CFLAGS-strcasestr-nonascii.c): Define.
19563         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19564         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19565         Remove unused attribute.
19566
19567 2010-07-20  Roland McGrath  <roland@redhat.com>
19568
19569         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19570         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19571         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19572         like LD_HWCAP_MASK can disable hwcaps.
19573
19574 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19575
19576         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19577
19578 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19579
19580         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19581         call in strcasestr.
19582         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19583         __strcasestr_sse42_nonascii.
19584         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19585         strcasestr-nonascii.c.
19586         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19587
19588 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19589
19590         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19591         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19592         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19593         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19594
19595 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19596
19597         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19598         fcntl.
19599
19600 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19601
19602         [BZ #11577]
19603         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19604         dl_signal_cerror.
19605
19606 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19607
19608         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19609         _PC_PIPE_BUF using F_GETPIPE_SZ.
19610
19611 2010-07-05  Roland McGrath  <roland@redhat.com>
19612
19613         * manual/arith.texi (Rounding Functions): Fix rint description
19614         implicit in round description.
19615
19616 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19617
19618         * elf/Makefile: Fix linking for a few tests to make recent linker
19619         happy.
19620
19621 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19622
19623         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19624         $(common-objpfx)libc_nonshared.a.
19625
19626 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19627
19628         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19629         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19630         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19631         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19632         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19633         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19634         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19635         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19650         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19651         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19652         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19653         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19654         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19655         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19656         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19657         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19658         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19659         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19660         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19661         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19676
19677 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19678
19679         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19680         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19681         * string/memmove.c (memmove): Renamed to ...
19682         (MEMMOVE): ...this.  Default to memmove.
19683         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19684         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19685         (END_CHK): Define.
19686         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19687         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19688         mempcpy-ssse3-back memmove-ssse3-back.
19689         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19690         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19691         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19692         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19693         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19694         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19695         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19696         * sysdeps/x86_64/multiarch/memmove.c: New file.
19697         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19698         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19699         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19700         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19701         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19702         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19703         Define.
19704         (index_Fast_Copy_Backward): Define.
19705         (HAS_ARCH_FEATURE): Define.
19706         (HAS_FAST_REP_STRING): Define.
19707         (HAS_FAST_COPY_BACKWARD): Define.
19708
19709 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19710
19711         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19712         Restore proper fallback handling.
19713
19714 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19715
19716         [BZ #11701]
19717         * posix/group_member.c (__group_member): Correct checking loop.
19718
19719         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19720         OOM in getpwuid_r correctly.  Return error number when the caller
19721         should return, otherwise -1.
19722         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19723         call returning > 0 value.
19724         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19725
19726 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19727
19728         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19729         libc_nonshared.a from targets in modules-names.
19730
19731 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19732
19733         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19734         requires it.
19735
19736 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19737
19738         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19739         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19740         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19741         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19742
19743 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19744
19745         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19746
19747 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19748
19749         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19750         and F_GETPIPE_SZ.
19751         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19752         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19753         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19754         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19755         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19756         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19757
19758 2010-06-14  Roland McGrath  <roland@redhat.com>
19759
19760         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19761
19762 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19763
19764         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19765         __REDIRECT followed by __THROW.
19766         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19767         * posix/getopt.h (getopt): Likewise.
19768
19769 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19770
19771         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19772         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19773         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19774         in AT_FLAGS.
19775         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19776         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19777
19778 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19779
19780         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19781
19782 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19783
19784         [BZ #11640]
19785         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19786         Properly check family and model.
19787
19788 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19789
19790         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19791
19792 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19793
19794         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19795
19796 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19797
19798         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19799         symbol reference.
19800
19801 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19802
19803         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19804         symbol reference.
19805
19806 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19807
19808         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19809         and internal_recvmmsg.
19810         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19811         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19812         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19813         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19814
19815         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19816         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19817         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19818
19819 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19820
19821         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19822
19823 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19824
19825         POWER7 optimizations.
19826         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19827         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19828
19829 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19830
19831         * version.h: Update for 2.13 development version.
19832
19833 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19834
19835         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19836         exceptions.  Return 0.
19837
19838 2010-05-07  Roland McGrath  <roland@redhat.com>
19839
19840         * elf/ldconfig.c (main): Add a const.
19841
19842 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19843
19844         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19845         (args_options): Add no-idn option.
19846         (ahosts_keys_int): Add idn_flags to ai_flags.
19847         (parse_option): Handle 'i' option to clear idn_flags.
19848
19849         * malloc/malloc.c (_int_free): Possible race in the most recently
19850         added check.  Only act on the data if no current modification
19851         happened.
19852
19853 See ChangeLog.17 for earlier changes.