Add a missing $(make-target-directory).
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2
3         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
4
5         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
6         Conditionalize target on [libnss_test1.so-version].
7
8         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
9
10         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
11         (elfobjdir): Move out of conditionals.
12
13         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
14         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
15         (__nss_lookup_function): Conditionalize label remove_from_tree on
16         [!DO_STATIC_NSS || SHARED], matching its only use.
17
18 2012-09-28  David S. Miller  <davem@davemloft.net>
19
20         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
21         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
22         file.
23         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
24         sysdep_routines.
25         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27         when HWCAP_SPARC_CRYPTO is present.
28
29 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
30
31         * io/tst-mknodat.c: Create a FIFO instead of a socket.
32
33 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
34
35         [BZ #6530]
36         * stdio-common/vfprintf.c (process_string_arg): Revert
37         2000-07-22 change.
38
39 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
40
41         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
42         for testcase.
43         * stdio-common/tst-sprintf.c: Include <locale.h>
44         (main): Test sprintf's handling of incomplete multibyte
45         characters.
46
47 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
48
49         * elf/dl-runtime.c (VERSYMIDX): Removed.
50         * elf/dl-version.c (VERSYMIDX): Likewise.
51         * elf/do-rel.h (VERSYMIDX): Likewise.
52         (VALIDX): Likewise.
53         * elf/dynamic-link.h (VERSYMIDX): Likewise.
54         * elf/rtld.c (VALIDX): Likewise.
55         (ADDRIDX): Likewise.
56         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
58         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
59         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
60         (VALIDX): Likewise.
61         (ADDRIDX): Likewise.
62
63 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
64
65         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
66
67 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
68
69         [BZ #11438]
70         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
71         to global scope.
72         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
73         addresses are in the same scope as 192.0.2/24.
74         * posix/gai.conf: Document new scope table defaults.
75
76 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
77
78         [BZ #5298]
79         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
80         for ftell.  Compute offsets from write pointers instead.
81         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
82
83 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
84
85         [BZ #14543]
86         * libio/Makefile (tests): New test case tst-fseek.
87         * libio/tst-fseek.c: New test case to verify that fseek/ftell
88         combination works in wide mode.
89         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
90         state when the external buffer state changes.
91
92 2012-09-27  David S. Miller  <davem@davemloft.net>
93
94         [BZ #14376]
95         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
96         pass reloc->r_addend in as the 'high' argument to
97         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
98
99         * sysdeps/sparc/fpu/libm-test-ulps: Update.
100
101 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
102
103         * rt/tst-aio2.c: Include <pthread.h>.
104         * rt/tst-aio3.c: Likewise.
105
106 2012-09-27  Steve Ellcey  <sellcey@mips.com>
107
108         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
109
110 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
111
112         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
113         contents on [SHARED].
114
115 2012-09-26  Marek Polacek  <polacek@redhat.com>
116
117         [BZ #14530]
118         [BZ #13741]
119         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
120         for C++ and GCC <4.3 as well as for non GCC compilers.
121
122 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
123
124         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
125
126 2012-09-25  Roland McGrath  <roland@hack.frob.com>
127
128         * Makefile.in (all, install): Declare with .PHONY.
129         Reported by Michael Hope <michael.hope@linaro.org>.
130
131 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
132
133         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
134         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
135         system header.
136         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
137         Likewise.
138         (sydep_routines): Add the new and the internal functions.
139         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
140         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
142         (GLIBC_2.17): Add the new function.
143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
144         (GLIBC_2.17): Likewise.
145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
146         (GLIBC_2.17): Likewise.
147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
148         (GLIBC_2.17): Likewise.
149         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
150
151 2012-09-25  Alan Modra  <amodra@gmail.com>
152
153         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
154         Add release barrier before setting once_control to say
155         initialisation is done.  Add hints on lwarx.  Use macro in
156         place of isync.
157         (clear_once_control): Add release barrier.
158
159 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
160
161         [BZ #13629]
162         * math/s_clog.c (__clog): Handle more values close to |z| = 1
163         specially.
164         * math/s_clog10.c (__clog10): Likewise.
165         * math/s_clog10f.c (__clog10f): Likewise.
166         * math/s_clog10l.c (__clog10l): Likewise.
167         * math/s_clogf.c (__clogf): Likewise.
168         * math/s_clogl.c (__clogl): Likewise.
169         * math/Makefile (libm-calls): Add x2y2m1.
170         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
171         (__x2y2m1): Likewise.
172         (__x2y2m1l): Likewise.
173         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
174         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
175         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
176         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
177         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
178         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
179         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
180         * sysdeps/i386/fpu/libm-test-ulps: Update.
181         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
182
183         [BZ #14621]
184         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
185         int as type of variable DEPTH.
186         (glob): Use size_t instead of int as type of variables NEWCOUNT
187         and OLD_PATHC.
188
189 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
190
191         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
192         Add s_sincosf-sse2.
193         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
194         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
195         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
196         macros for using routine as __sincosf_ia32.
197         Use macro for function declaration and weak_alias.
198         * sysdeps/i386/fpu/libm-test-ulps: Update.
199
200         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
201         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
202
203         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
204         subnormal argument.
205         * math/s_cexpf.c (__cexpf): Likewise.
206         * math/s_csinf.c (__csinf): Likewise.
207         * math/s_csinhf.c (__csinhf): Likewise.
208         * math/s_ctanf.c (__ctanf): Likewise.
209         * math/s_ctanhf.c (__ctanhf): Likewise.
210         * math/s_ccosh.c (__ccoshf): Likewise.
211         * math/s_cexp.c (__cexpl): Likewise.
212         * math/s_csin.c (__csin): Likewise.
213         * math/s_csinh.c (__csinh): Likewise.
214         * math/s_ctan.c (__ctan): Likewise.
215         * math/s_ctanh.c (ctanh): Likewise.
216         * math/s_ccoshl.c (__ccoshl): Likewise.
217         * math/s_cexpl.c (__cexpl): Likewise.
218         * math/s_csinl.c (__csinl): Likewise.
219         * math/s_csinhl.c (__csinhl): Likewise.
220         * math/s_ctanl.c (__ctanl): Likewise.
221         * math/s_ctanhl.c (__ctanhl): Likewise.
222
223 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
224
225         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
226         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
227         (_IO_off_t): Define to __off_t, not _G_off_t.
228         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
229         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
230         (_IO_wint_t): Define to wint_t, not _G_wint_t.
231         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
232         type of __dummy and __dummy2 fields.
233         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
234         (_G_ssize_t): Likewise.
235         (_G_off_t): Likewise.
236         (_G_pid_t): Likewise.
237         (_G_uid_t): Likewise.
238         (_G_wchar_t): Likewise.
239         (_G_wint_t): Likewise.
240         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
241         (_G_ssize_t): Likewise.
242         (_G_off_t): Likewise.
243         (_G_pid_t): Likewise.
244         (_G_uid_t): Likewise.
245         (_G_wchar_t): Likewise.
246         (_G_wint_t): Likewise.
247         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
248         (_G_ssize_t): Likewise.
249         (_G_off_t): Likewise.
250         (_G_pid_t): Likewise.
251         (_G_uid_t): Likewise.
252         (_G_wchar_t): Likewise.
253         (_G_wint_t): Likewise.
254
255 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
256
257         * malloc/arena.c: Include malloc-sysdep.h.
258         (shrink_heap): Use check_may_shrink_heap to decide if madvise
259         is sufficient to shrink the heap or an unmap is needed.
260         * sysdeps/generic/malloc-sysdep.h: New file.  Define
261         new function check_may_shrink_heap.
262         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
263         new function check_may_shrink_heap.
264
265 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
266
267         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
268         comments.
269
270 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
271
272         * catgets/test-gencat.sh: Add "set -e".
273         * elf/tst-pathopt.sh: Likewise.
274         * grp/tst_fgetgrent.sh: Likewise.
275         * iconvdata/run-iconv-test.sh: Likewise.
276         * intl/tst-gettext.sh: Likewise.
277         * intl/tst-gettext2.sh: Likewise.
278         * intl/tst-gettext4.sh: Likewise.
279         * intl/tst-gettext6.sh: Likewise.
280         * intl/tst-translit.sh: Likewise.
281         * io/ftwtest-sh: Likewise.
282         * libio/test-freopen.sh: Likewise.
283         * malloc/tst-mtrace.sh: Likewise.
284         * posix/globtest.sh: Likewise.
285         * posix/tst-getconf.sh: Likewise.
286         * posix/wordexp-tst.sh: Likewise.
287         * stdio-common/tst-printf.sh: Likewise.
288         * stdio-common/tst-unbputc.sh: Likewise.
289         * stdlib/tst-fmtmsg.sh: Likewise.
290         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
291         * catgets/Makefile: Do not specify -e option when running
292         testsuite shell scripts.
293         * elf/Makefile: Likewise.
294         * grp/Makefile: Likewise.
295         * iconvdata/Makefile: Likewise.
296         * intl/Makefile: Likewise.
297         * io/Makefile: Likewise.
298         * libio/Makefile: Likewise.
299         * malloc/Makefile: Likewise.
300         * posix/Makefile: Likewise.
301         * stdio-common/Makefile: Likewise.
302         * stdlib/Makefile: Likewise.
303         * sysdeps/x86_64/Makefile: Likewise.
304
305         * io/ftwtest-sh: Add copyright header.
306         * posix/globtest.sh: Likewise.
307         * posix/tst-getconf.sh: Likewise.
308         * posix/wordexp-tst.sh: Likewise.
309         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
310
311 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
312
313         [BZ #13679]
314         * Makeconfig (+link): Defined as $(+link-static) if
315         $(build-shared) isn't yes.
316         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
317         isn't yes.
318         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
319
320         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
321
322         [BZ #14562]
323         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
324         new chunk size with MALLOC_ALIGN_MASK.
325
326 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
327
328         [BZ #5044]
329         * stdio-common/printf_fphex.c: Include <stdbool.h> and
330         <rounding-mode.h>.
331         (__printf_fphex): Determine rounding using get_rounding_mode and
332         round_away.
333         * stdio-common/tst-printf-round.c (struct hex_test): New
334         structure.
335         (hex_tests): New variable.
336         (test_hex_in_one_mode): New function.
337         (do_test): Also run tests for hex float output.
338
339 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
340
341         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
342         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
343         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
344         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
345         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
346         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
347         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
348         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
349
350 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
351
352         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
353         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
354         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
355         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
356
357 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
358
359         [BZ #14579]
360         * elf/rtld.c (dl_main): Limit the check for self loading to normal
361         mode only.
362         * elf/tst-rtld-load-self.sh: New test.
363         * elf/Makefile: Run it.
364
365 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
366
367         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
368         (tst-writev-ENV): Remove.
369         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
370
371 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
372
373         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
374
375 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
376
377         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
378         unconditional.
379         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
380         Likewise.
381         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
382         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
383         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
384         Likewise.
385
386 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
387
388         [BZ #14587]
389         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
390         * config.make.in (have-cpp-asm-debuginfo): Removed.
391         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
392         * configure: Regenerated.
393
394 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
395
396         [BZ #5044]
397         * stdio-common/printf_fp.c: Include <stdbool.h> and
398         <rounding-mode.h>.
399         (___printf_fp): Determine rounding using get_rounding_mode and
400         round_away.
401         * stdio-common/tst-printf-round.c: New file.
402         * stdio-common/Makefile (tests): Add tst-printf-round.
403         (link-libm): New variable.
404         ($(objpfx)tst-printf-round): Depend in $(link-libm).
405
406 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
407
408         [BZ #14576]
409         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
410         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
411         Likewise.
412         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
413         Likewise.
414
415 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
416
417         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
418         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
419         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
420         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
421
422 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
423
424         [BZ #14518]
425         * include/rounding-mode.h: New file.
426         * sysdeps/generic/get-rounding-mode.h: Likewise.
427         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
428         * stdlib/strtod_l.c: Include <rounding-mode.h>.
429         (MAX_VALUE): New macro.
430         (MIN_VALUE): Likewise.
431         (overflow_value): New function.
432         (underflow_value): Likewise.
433         (round_and_return): Use overflow_value and underflow_value to
434         determine return values in overflow and underflow cases.  Use
435         round_away to determine rounding depending on rounding mode.
436         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
437         determine return values in overflow and underflow cases.
438         * stdlib/tst-strtod-round.c: Include <fenv.h>.
439         (struct test_results): New structure.
440         (struct test): Use struct test_results to store expected results
441         for all rounding modes.
442         (TEST): Include expected results for all rounding modes.
443         (test_in_one_mode): New function.
444         (do_test): Use test_in_one_mode to compute and check results.
445         Check results for all rounding modes.
446         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
447         $(link-libm).
448
449 2012-12-09  Allan McRae  <allan@archlinux.org>
450
451         * sysdeps/i386/fpu/libm-test-ulps: Update
452
453 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
454
455         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
456         (_G_int32_t): Likewise.
457         (_G_uint16_t): Likewise.
458         (_G_uint32_t): Likewise.
459         (_G_HAVE_BOOL): Likewise.
460         (_G_HAVE_ATEXIT): Likewise.
461         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
462         (_G_HAVE_IO_FILE_OPEN): Likewise.
463         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
464         (_G_int32_t): Likewise.
465         (_G_uint16_t): Likewise.
466         (_G_uint32_t): Likewise.
467         (_G_HAVE_BOOL): Likewise.
468         (_G_HAVE_ATEXIT): Likewise.
469         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
470         (_G_HAVE_IO_FILE_OPEN): Likewise.
471         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
472         (_G_int32_t): Likewise.
473         (_G_uint16_t): Likewise.
474         (_G_uint32_t): Likewise.
475         (_G_HAVE_BOOL): Likewise.
476         (_G_HAVE_ATEXIT): Likewise.
477         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
478         (_G_HAVE_IO_FILE_OPEN): Likewise.
479
480 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
481
482         * csu/libc-tls.c: Update copyright years.
483
484 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
485
486         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
487         [!_G_USING_THUNKS]: Remove conditional code.
488         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
489         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
490
491         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
492         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
493         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
494         (_G_VTABLE_LABEL_PREFIX): Likewise.
495         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
496         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
497         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
498         (_G_VTABLE_LABEL_PREFIX): Likewise.
499         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
500         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
501         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
502         (_G_VTABLE_LABEL_PREFIX): Likewise.
503         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
504
505 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
506
507         * libio/Makefile: Include ../Makeconfig before tests.
508         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
509         only if $(build-shared) is yes.
510
511         * iconv/gconv_db.c: Update copyright years.
512
513 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
514
515         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
516         unwind info if defined PIC. Fix special cases description.
517         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
518
519         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
520         DP_HI_MASK entry.
521         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
522
523 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
524
525         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
526
527         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
528         is NULL.
529
530         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
531         (LDLIBS-tst-chk4): This.
532         (LDFLAGS-tst-chk5): Renamed to ...
533         (LDLIBS-tst-chk5): This.
534         (LDFLAGS-tst-chk6): Renamed to ...
535         (LDLIBS-tst-chk6): This.
536         (LDFLAGS-tst-lfschk4): Renamed to ...
537         (LDLIBS-tst-lfschk4): This.
538         (LDFLAGS-tst-lfschk5): Renamed to ...
539         (LDLIBS-tst-lfschk5): This.
540         (LDFLAGS-tst-lfschk6): Renamed to ...
541         (LDLIBS-tst-lfschk6): This.
542
543         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
544         on $(common-objpfx)soversions.mk.
545
546 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
547
548         [BZ #10014]
549         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
550         example host name.
551
552 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
553
554         * malloc/arena.c (arena_get_retry): New function that gets
555         another arena for the caller to try its request on.
556         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
557         current arena cannot fulfill the request.
558         (__libc_memalign): Likewise.
559         (__libc_memalign): Likewise.
560         (__libc_pvalloc): Likewise.
561         (__libc_calloc): Likewise.
562
563 2012-09-05  John Tobey  <john.tobey@gmail.com>
564
565         [BZ #13542]
566         * manual/arith.texi (Operations on Complex): Fix description
567         of carg branch cut.
568
569 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
570
571         [BZ #10014]
572         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
573         host name.
574
575         [BZ #10038]
576         * manual/memory.texi (Memory): Make order of menu items match
577         order of sections.
578
579 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
580
581         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
582         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
583         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
584
585 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
586
587         * csu/libc-tls.c (static_dtv): Renamed to ...
588         (_dl_static_dtv): This.  Make it global.
589         (_dl_initial_dtv): Removed.
590         (__libc_setup_tls): Updated.
591         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
592         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
593         DL_INITIAL_DTV.
594
595 2012-09-06  Petr Machata  <pmachata@redhat.com>
596
597         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
598         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
599         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
600         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
601
602 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
603
604         [BZ #14545]
605         * csu/libc-tls.c (_dl_initial_dtv): New variable.
606         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
607         freeing dtv[-1].
608
609 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
610
611         [BZ #14544]
612         * Makeconfig (link-static-before-libc): Replace $(+prector)
613         with $(+prectorT).
614         (link-static-after-libc): Replace $(+postctor) with
615         $(+postctorT).
616         (link-bounded): Replace $(+prector)/$(+postctor) with
617         $(+prectorT)/$(+postctorT).
618         (+prectorT): New macro.
619         (+postctorT): Likewise.
620
621 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
622
623         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
624         (round_str): Handle values above the maximum for IBM long double
625         as inexact.
626         * stdlib/tst-strtod-round.c (tests): Regenerated.
627
628 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
629
630         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
631         assembler flag.
632         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
633         zarch_nohighgprs around the zarch optimized routines.
634         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
635         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
636         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
637         for zarch.
638
639 2012-09-05  David S. Miller  <davem@davemloft.net>
640
641         * sysdeps/sparc/fpu/libm-test-ulps: Update.
642
643         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
644         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
645         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
646         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
647         entries.
648
649 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
650
651         * malloc/arena.c: Fold copyright years.
652         * malloc/mcheck.c, malloc/memusage.c: Likewise.
653
654 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
655
656         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
657
658 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
659
660         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
661
662 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
663
664         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
665         change internal state upon failure.
666
667 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
668
669         * malloc/mcheck.c (mcheck_check_all): Fix typo.
670         * malloc/memusage.c (mmap): Likewise.
671         (mmap64, mremap): Likewise.  Adjust name in comment.
672
673 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
674
675         * libio/fileops.c: Fix typos in comments.
676         * libio/oldfileops.c: Likewise.
677         * libio/wfileops.c: Likewise.
678
679 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
680
681         [BZ #1349]
682         * malloc/Makefile (tests): Add tst-malloc-usable test case.
683         (tst-malloc-usable-ENV): Set environment for test case.
684         * malloc/hooks.c (malloc_check_get_size): New function to get
685         requested size.
686         * malloc/malloc.c (musable): Use malloc_check_get_size.
687         * malloc/tst-malloc-usable.c: New test case.
688
689 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
690
691         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
692
693 2012-09-05  Allan McRae  <allan@archlinux.org>
694
695         [BZ #13966]
696         * configure.in (CXX_SYSINCLUDES): Use compiler output to
697         determine header location.
698         * configure: Regenerated.
699
700 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
701
702         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
703         float format.
704         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
705         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
706         format.
707         (test): Regenerate.
708
709 2012-09-04  David S. Miller  <davem@davemloft.net>
710
711         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
712         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
713         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
714
715 2012-09-04  Florian Weimer  <fweimer@redhat.com>
716
717         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
718         failures.
719
720         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
721
722 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
723
724         [BZ #9914]
725         * libio/iogetdelim.c: Include <limits.h>.
726         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
727         + len + 1 would overflow.
728
729 2012-09-03  Andreas Jaeger  <aj@suse.de>
730
731         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
732         * sysdeps/i386/fpu/libm-test-ulps: Update.
733
734 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
735
736         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
737         Add s_sinf-sse2, s_conf-sse2.
738
739         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
740         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
741         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
742         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
743
744         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
745         for using routine as __sinf_ia32.
746         Use macro for function declaration and weak_alias.
747         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
748         for using routine as __cosf_ia32.
749         Use macro for function declaration and weak_alias.
750
751         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
752         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
753
754         * sysdeps/x86_64/fpu/s_sinf.S: New file.
755         * sysdeps/x86_64/fpu/s_cosf.S: New file.
756         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
757
758         * math/libm-test.inc (cos_test): Add more test cases.
759         (sin_test): Likewise.
760         (sincos_test): Likewise.
761
762 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
763
764         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
765         (IFUNC_RESOLVE): Make pointers to the specialized implementations
766         hidden.
767         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
768
769 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
770
771         [BZ #14538]
772         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
773         first element of the GOT.
774         (elf_machine_load_address): Return the difference between
775         the runtime address of _DYNAMIC and elf_machine_dynamic ().
776
777 2012-09-01  Allan McRae  <allan@archlinux.org>
778
779         [BZ #13412]
780         * configure.in (AWK): Require gawk version 3.0 or later.
781         * configure: Regenerated.
782
783 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
784
785         * sysdeps/unix/sysv/linux/kernel-features.h
786         (__ASSUME_POSIX_CPU_TIMERS): Remove.
787         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
788         [__NR_clock_getres]: Make code unconditional.
789         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
790         (clock_getcpuclockid): Remove code left unreachable by removal of
791         conditionals.
792         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
793         code unconditional.
794         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
795         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
796         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
797         Make code unconditional.
798         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
799         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
800         * sysdeps/unix/sysv/linux/clock_settime.c
801         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
802         conditional code.
803         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
804         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
805
806 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
807
808         [BZ #14476]
809         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
810         scripts/test-installation.pl.
811
812         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
813         and $ld_so_version if it is set.
814
815 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
816
817         [BZ #14516]
818         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
819         failure if reading from procfs failed.
820         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
821
822 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
823
824         * sysdeps/unix/sysv/linux/kernel-features.h
825         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
826         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
827         Remove conditional code.
828         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
829         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
830         Remove conditional code.
831         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
832         * sysdeps/unix/sysv/linux/i386/fxstat.c
833         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
834         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
835         * sysdeps/unix/sysv/linux/i386/fxstatat.c
836         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
837         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
838         * sysdeps/unix/sysv/linux/i386/lxstat.c
839         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
840         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
841         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
842         Remove conditional code.
843         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
844         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
845         Remove conditional code.
846         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
847         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
848         <kernel-features.h>.
849         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
850         Remove.
851         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
852         Remove conditional code.
853         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
854         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
855         Remove conditional.
856
857 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
858
859         [BZ #5400]
860         * NEWS: Add fixed bug number.
861
862 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
863
864         [BZ #14519]
865         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
866         underflowing exponent in case of negative sign.
867         * stdlib/tst-strtod-round-data: Add more tests.
868         * stdlib/tst-strtod-round.c (tests): Regenerated.
869
870         [BZ #3479]
871         * stdlib/strtod_l.c (NDIG): Remove.
872         (HEXNDIG): Likewise.
873         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
874         smallest representable value.
875         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
876         lie within an exact representation of 1/2 ulp of the result.
877         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
878         unconditionally.
879         (TENS_P9_IDX): Define unconditionally.
880         (TENS_P9_SIZE): Likewise.
881         (TENS_P10_IDX): Likewise.
882         (TENS_P10_SIZE): Likewise.
883         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
884         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
885         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
886         entries for 10^2^13 and 10^2^14.
887         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
888         (TENS_P13_IDX): Define.
889         (TENS_P13_SIZE): Likewise.
890         (TENS_P14_IDX): Likewise.
891         (TENS_P14_SIZE): Likewise.
892         (_fpioconst_pow10): Change array size to
893         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
894         unconditional.
895         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
896         1024]: Add entries for 10^2^13 and 10^2^14.
897         [LAST_POW10 > _LAST_POW10]: Remove #error.
898         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
899         (_fpioconst_pow10): Change array size to
900         FPIOCONST_POW10_ARRAY_SIZE.
901         * stdlib/gen-fpioconst.c: New file.
902         * stdlib/gen-tst-strtod-round.c: Likewise.
903         * stdlib/tst-strtod-round-data: Likewise.
904         * stdlib/tst-strtod-round.c: Likewise.
905         * stdlib/Makefile (tests): Add tst-strtod-round.
906
907         [BZ #14459]
908         * stdlib/strtod_l.c: Include <stdint.h>.
909         (NDEBUG): Do not define.
910         (round_and_return): Change EXPONENT parameter to type intmax_t.
911         Rearrange calculations to avoid internal overflow possibilities.
912         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
913         Rearrange calculations to avoid internal overflow possibilities.
914         Assert that number fits inside MPNSIZE limbs.
915         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
916         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
917         calculations and add assertions to avoid internal overflow
918         possibilities.  Add casts to avoid signed/unsigned operations.
919         * stdlib/tst-strtod-overflow.c: New file.
920         * stdlib/Makefile (tests): Add tst-strtod-overflow.
921
922 2012-08-25  Marek Polacek  <polacek@redhat.com>
923
924         * time/time.h: Fix some typos in comments.
925
926 2012-08-23  Roland McGrath  <roland@hack.frob.com>
927
928         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
929         * posix/tst-rfc3484-2.c: Likewise.
930         * posix/tst-rfc3484-3.c: Likewise.
931
932 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
933
934         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
935         (EF_ARM_ABI_FLOAT_HARD): Likewise.
936
937 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
938
939         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
940         #include of fxstatat64.c.
941
942 2012-08-22  Roland McGrath  <roland@hack.frob.com>
943
944         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
945         * shadow/getspent_r.c: Likewise.
946         * shadow/getspnam.c: Likewise.
947         * shadow/getspnam_r.c: Likewise.
948         * gshadow/getsgent.c: Likewise.
949         * gshadow/getsgent_r.c: Likewise.
950         * gshadow/getsgnam.c: Likewise.
951         * gshadow/getsgnam_r.c: Likewise.
952         * inet/getnetbyad.c: Likewise.
953         * inet/getnetbyad_r.c: Likewise.
954         * inet/getnetbynm.c: Likewise.
955         * inet/getnetbynm_r.c: Likewise.
956         * inet/getnetent.c: Likewise.
957         * inet/getnetent_r.c: Likewise.
958         * inet/getproto.c: Likewise.
959         * inet/getproto_r.c: Likewise.
960         * inet/getprtent.c: Likewise.
961         * inet/getprtent_r.c: Likewise.
962         * inet/getprtname.c: Likewise.
963         * inet/getprtname_r.c: Likewise.
964         * inet/getrpcbyname.c: Likewise.
965         * inet/getrpcbyname_r.c: Likewise.
966         * inet/getrpcbynumber.c: Likewise.
967         * inet/getrpcbynumber_r.c: Likewise.
968         * inet/getrpcent.c: Likewise.
969         * inet/getrpcent_r.c: Likewise.
970         * inet/getaliasent.c: Likewise.
971         * inet/getaliasent_r.c: Likewise.
972         * inet/getaliasname.c: Likewise.
973         * inet/getaliasname_r.c: Likewise.
974         * nscd/getgrgid_r.c: Likewise.
975         * nscd/getgrnam_r.c: Likewise.
976         * nscd/gethstbyad_r.c: Likewise.
977         * nscd/gethstbynm3_r.c: Likewise.
978         * nscd/getpwnam_r.c: Likewise.
979         * nscd/getpwuid_r.c: Likewise.
980         * nscd/getsrvbynm_r.c: Likewise.
981         * nscd/getsrvbypt_r.c: Likewise.
982         * nscd/gai.c: Likewise.
983
984         * configure.in (build_nscd): New substituted variable, set
985         by --disable-build-nscd and defaults to $use_nscd.
986         * configure: Regenerated.
987         * config.make.in (build-nscd): New substituted variable.
988         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
989         Change conditional to require [$(build-nscd) = yes] as well.
990         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
991
992         [BZ# 13696]
993         * configure.in (use_nscd): New substituted variable, set by
994         --disable-nscd.  If enabled, define USE_NSCD.
995         * configure: Regenerated.
996         * config.h.in: Add USE_NSCD.
997         * config.make.in (use-nscd): New substituted variable.
998         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
999         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1000         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1001         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1002         (CFLAGS-getgrnam_r.c): Likewise.
1003         (CFLAGS-initgroups.c): Likewise.
1004         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1005         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1006         Variables removed.
1007         * inet/getnetgrent_r.c
1008         (nscd_setnetgrent): New function, broken out of ...
1009         (setnetgrent): ... here.  Call it.
1010         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1011         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1012         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1013         * nscd/Makefile (routines, aux): Move definitions after include of
1014         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1015         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1016         Conditionalize on [USE_NSCD].
1017         (is_nscd, nscd_init_cb): Likewise.
1018         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1019         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1020         * nss/nss_db/db-init.c: Likewise.
1021         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1022         [USE_NSCD].
1023         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1024         (make_request): Use it.
1025         (cache_valid_p): New function.
1026         (__check_pf): Use it.
1027         * NEWS: Add item for --disable-nscd.
1028
1029 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1030
1031         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1032         to support sed >= 4.2.1-20-ga9bf076.
1033         * configure: Regenerated.
1034
1035 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1036
1037         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1038         Conditionalize whole body on [IREL].
1039
1040 2012-08-22  Jeff Law <law@redhat.com>
1041
1042         [BZ #14505]
1043         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1044         if the family is PF_UNSPEC.
1045
1046 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1047
1048         * Makerules (lib-version): Rename from V.
1049         (install-lib-nosubdir): Change V to lib-version.
1050
1051 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1052
1053         [BZ #14252]
1054         * powerpc32/power6/wcschr.c: New file.
1055         * powerpc32/power6/wcscpy.c: New file.
1056         * powerpc32/power6/wcsrchr.c: New file.
1057         * powerpc64/power6/wcschr.c: New file.
1058         * powerpc64/power6/wcscpy.c: New file.
1059         * powerpc64/power6/wcsrchr.c: New file.
1060
1061 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1062
1063         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1064         (two_way_short_needle): Use it.
1065         * string/strstr.c (AVAILABLE1_USES_J): Define.
1066         * string/strcasestr.c: Likewise.
1067
1068         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1069         array references.
1070         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1071
1072         [BZ #11607]
1073         * NEWS: Add an entry.
1074         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1075         define their defaults.
1076         (two_way_short_needle): Detect end-of-string on-the-fly.
1077         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1078         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1079         * string/bug-strcasestr1.c: New test.
1080         * string/Makefile: Run it.
1081
1082 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1083
1084         [BZ #11607]
1085         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1086         the first character.
1087
1088 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1089
1090         * csu/elf-init.c (__libc_csu_irel): Function removed.
1091         * csu/libc-start.c (apply_irel): New function.
1092         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1093
1094 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1095
1096         * sysdeps/unix/sysv/linux/kernel-features.h
1097         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1098         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1099         <kernel-features.h>.
1100         [__NR_fadvise64_64]: Make code unconditional.
1101         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1102         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1103         !__NR_fadvise64_64)]: Likewise.
1104         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1105         !__NR_fadvise64_64))]: Likewise.
1106         [__NR_fadvise64]: Make code unconditional.
1107         [!__NR_fadvise64]: Remove conditional code.
1108         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1109         <kernel-features.h>.
1110         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1111         unconditional.
1112         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1113         conditional code.
1114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1115         not include <kernel-features.h>.
1116         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1117         unconditional.
1118         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1119         conditional code.
1120         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1121         include <kernel-features.h>.
1122         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1123         unconditional.
1124         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1125         conditional code.
1126
1127 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1128
1129         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1130         slight instruction rearrangements per scrollpipe analysis.
1131         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1132
1133 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1134
1135         * manual/syslog.texi (syslog; vsyslog, closelog):
1136         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1137         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1138
1139         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1140         DSOCAPS to match condition on defining it.
1141
1142 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1143
1144         * sysdeps/unix/sysv/linux/kernel-features.h
1145         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1147         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1148         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1150         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1151         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1153         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1154         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1155
1156         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1157         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1158
1159         * sysdeps/unix/sysv/linux/kernel-features.h
1160         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1161         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1162         unconditional.
1163         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1164         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1165         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1166         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1167         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1168         Make code unconditional.
1169         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1170         (__mmap64) [!__NR_mmap2]: Likewise.
1171         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1172         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1173         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1174         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1175         [__NR_mmap2]: Make code unconditional.
1176         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1177         (__mmap64) [!__NR_mmap2]: Likewise.
1178
1179 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1180
1181         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1182
1183 2012-08-18  Andreas Jaeger  <aj@suse.de>
1184
1185         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1186
1187 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1188
1189         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1190         * include/unistd.h (__have_sock_cloexec): Likewise.
1191         (__have_pipe2): Likewise.
1192         (__have_dup3): Likewise.
1193
1194 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1195
1196         [BZ #9685]
1197         * include/unistd.h (__have_pipe2): Change define into an extern int.
1198         (__have_dup3): Likewise.
1199         * socket/have_sock_cloexec.c: Include fcntl.h.
1200         (__have_pipe2): New variable.
1201         (__have_dup3): Likewise.
1202
1203 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1204
1205         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1206
1207 2012-08-17  Marek Polacek  <polacek@redhat.com>
1208
1209         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1210         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1211
1212 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1213
1214         * configure.in: Add AC_SUBST for sysheaders.
1215         * configure: Regenerated.
1216         * config.make.in (sysheaders): New substituted variable.
1217
1218         * sysdeps/unix/mkfifo.c: Moved ...
1219         * sysdeps/posix/mkfifo.c: ... here.
1220         * sysdeps/unix/mkfifoat.c: Moved ...
1221         * sysdeps/posix/mkfifoat.c: ... here.
1222
1223         * sysdeps/unix/utime.c: Moved ...
1224         * sysdeps/posix/utime.c: ... here.
1225
1226         * sysdeps/unix/time.c: Moved ...
1227         * sysdeps/posix/time.c: ... here.
1228         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1229         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1230
1231         * sysdeps/unix/nice.c: Moved ...
1232         * sysdeps/posix/nice.c: ... here.
1233
1234         * sysdeps/unix/alarm.c: Moved ...
1235         * sysdeps/posix/alarm.c: ... here.
1236
1237         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1238
1239 2012-08-17  Jeff Law <law@redhat.com>
1240
1241         * intl/Makefile (codeset_mo): New variable.
1242         ($(codeset_mo)): New target.
1243         (tst-codeset.out): Depend on that.  Remove explicit rule.
1244         (tst-gettext3.out, tst-gettext5.out): Likewise.
1245         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1246         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1247         * intl/tst-codeset.sh: Remove.
1248         * intl/tst-gettext3.sh: Likewise.
1249         * intl/tst-gettext5.sh: Likewise.
1250
1251 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1252
1253         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1254         * sysdeps/unix/syscalls.list: ... here.
1255
1256         * sysdeps/posix/getaddrinfo.c
1257         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1258         (gaiconf_init, gaiconf_reload): Use them.
1259         [!_STATBUF_ST_NSEC]
1260         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1261         Define using time_t rather than struct timespec.
1262
1263         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1264         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1265         Macros removed.
1266         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1267         [!NO_THREADS].
1268         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1269         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1270         Likewise.
1271
1272         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1273         __libc_cleanup_push argument.
1274
1275         * bits/param.h: New file.
1276         * misc/sys/param.h: New file.
1277         * include/sys/param.h: New file.
1278         * misc/Makefile (headers): Add bits/param.h.
1279         * sysdeps/generic/sys/param.h: File removed.
1280         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1281         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1282         * sysdeps/mach/hurd/bits/param.h: New file.
1283         * sysdeps/mach/hurd/sys/param.h: New file.
1284
1285         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1286         last change.
1287
1288         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1289         [_IO_MTSAFE_IO].
1290         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1291         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1292         New macros.
1293
1294         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1295         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1296         rather than -D_IO_MTSAFE_IO conditionally.
1297         * stdio-common/Makefile (CPPFLAGS): Likewise.
1298         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1299         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1300         Use $(libio-mtsafe).
1301         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1302         of -D_IO_MTSAFE_IO.
1303         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1304         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1305         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1306         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1307         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1308         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1309         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1310         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1311         (CFLAGS-fread_u_chk.c): Likewise.
1312         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1313         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1314         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1315         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1316         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1317         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1318         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1319         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1320         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1321
1322         * libio/Makefile: Test [$(libc-reentrant) = yes]
1323         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1324
1325         * Makeconfig
1326         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1327         * sysdeps/pthread/configure: File removed.
1328         * sysdeps/pthread/Makeconfig: New file.
1329         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1330         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1331
1332 2012-08-16  Gary Benson  <gbenson@redhat.com>
1333
1334         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1335         unmapping the first object in a namespace.
1336
1337 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1338
1339         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1340         (__internal_setnetgrent): ... this.  Add internal_function to
1341         definition.  Add libc_hidden_def.
1342         (setnetgrent): Update caller.
1343         (internal_endnetgrent): Renamed to ...
1344         (__internal_endnetgrent): ... this.  Add internal_function to
1345         definition.  Add libc_hidden_def.
1346         (endnetgrent): Update caller.
1347         (internal_getnetgrent_r): Renamed to ...
1348         (__internal_getnetgrent_r): ... this.  Add internal_function to
1349         definition.  Add libc_hidden_def.
1350         (__getnetgrent_r): Update caller.
1351         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1352
1353 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1354
1355         * stdlib/longlong.h: Update from GCC.
1356
1357 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1358
1359         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1360         on _QL, which is set by umul_ppmm but never used.
1361         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1362         variables, which are set by GMP macros but never used.
1363         * stdio-common/_itowa.c (_itowa): Likewise.
1364         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1365         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1366
1367 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1368
1369         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1370         struct La_sh_regs is not constant.
1371         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1372         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1373         and struct La_sparc64_regs are not constant.
1374
1375 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1376
1377         * sysdeps/unix/sysv/linux/kernel-features.h
1378         (__ASSUME_POSIX_TIMERS): Remove.
1379         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1380         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1381         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1382         Make code unconditional.
1383         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1384         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1385         Make code unconditional.
1386         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1387         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1388         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1389         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1390         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1391         Make code unconditional.
1392         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1393         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1394         (__libc_missing_posix_timers): Remove.
1395
1396 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1397
1398         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1399         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1400
1401         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1402
1403         * elf/dl-sym.c: Include <stdlib.h>.
1404
1405         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1406         constants, which avoids warnings in 32-bit builds.
1407
1408         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1409         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1410
1411         * misc/lseek.c: File moved to ...
1412         * io/lseek.c: ... here.
1413
1414         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1415
1416         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1417         shifting LEN more than 31 bits at once.
1418
1419 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1420
1421         [BZ #14195]
1422         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1423         segmentation fault for a case of two empty input strings.
1424         * string/test-strncasecmp.c (check1): Renamed to...
1425         (bz12205): ...this.
1426         (bz14195): Add new testcase for two empty input strings and N > 0.
1427         (test_main): Call new testcase, adapt for renamed function.
1428
1429 2012-08-15  Andreas Jaeger  <aj@suse.de>
1430
1431         [BZ #14090]
1432         * crypt/md5test2.c: New test, based on test supplied by Serge
1433         Belyshev <belyshev@depni.sinp.msu.ru>.
1434         * crypt/Makefile (xtests): Add md5test-giant..
1435         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1436
1437 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1438
1439         [BZ #14090]
1440         * crypt/md5.c (md5_process_block): Don't assume the buffer
1441         length is less than 2**32.
1442         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1443         length is less than 2**64.
1444
1445 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1446
1447         * string/str-two-way.h: Include <sys/param.h>.
1448         (MAX): Macro removed.
1449
1450         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1451         Move #define and #undef of memmove to just before and after
1452         including <string.h>.
1453
1454         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1455         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1456         and after including <string.h>.  Move declarations of
1457         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1458         to before #include "string/memmove.c".
1459
1460         * include/dirent.h: Declare __getdirentries.
1461
1462         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1463         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1464
1465 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1466
1467         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1468         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1469         * sysdeps/i386/configure: Regenerated.
1470         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1471         STABS_CURRENT_FILE, and STABS_FUN.
1472         (END): Remove call to STABS_FUN_END.
1473         (STABS_CURRENT_FILE1): Delete.
1474         (STABS_CURRENT_FILE): Likewise.
1475         (STABS_FUN): Likewise.
1476         (STABS_FUN_END): Likewise.
1477         (STABS_FUN2): Likewise.
1478         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1479         * sysdeps/x86_64/configure: Regenerated.
1480
1481 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1482
1483         * elf/dl-open.c: Include <atomic.h>.
1484         * elf/dl-lookup.c: Likewise.
1485
1486 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
1487
1488         * sysdeps/unix/sysv/linux/kernel-features.h
1489         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1490         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1491         unconditionally.
1492         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1493         unconditionally.
1494         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1495         condition on __ASSUME_CLONE_THREAD_FLAGS.
1496
1497 2012-08-14  Andreas Jaeger  <aj@suse.de>
1498
1499         * sysdeps/i386/fpu/libm-test-ulps: Update.
1500
1501 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
1502
1503         * include/atomic.h (atomic_exchange_and_add): Split into ...
1504         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1505         New atomic macros.
1506
1507 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1508
1509         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1510
1511 2012-08-13  Jeff Law <law@redhat.com>
1512
1513         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1514         null byte in the output string.
1515
1516 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1517
1518         * sysdeps/unix/sysv/linux/kernel-features.h
1519         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1520         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1521         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1522         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1523         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1524         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1525         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1526
1527 2012-08-09  Jeff Law <law@redhat.com>
1528
1529         [BZ #13939]
1530         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1531         When avoid_arena is set, don't retry in the that arena.  Pick the
1532         next one, whatever it might be.
1533         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1534         (arena_lock): Pass in new parameter to arena_get2.
1535         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1536         arena_get2.
1537         (__libc_malloc): Unify retrying after main arena failure with
1538         __libc_memalign version.
1539         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1540
1541 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1542
1543         [BZ #14166]
1544         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1545         to __redirect_strstr.
1546         (__strstr_sse42): Use typeof __redirect_strstr.
1547         (__strstr_ia32): Likewise.
1548         (__libc_strstr): New prototype.
1549         (strstr): Renamed to ...
1550         (__libc_strstr): This.
1551         (strstr): New strong alias of __libc_strstr.
1552         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1553         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1554         __redirect_time.
1555         Include <time.h>.
1556         (__libc_time): New prototype.
1557         (time_ifunc): Replace time with __libc_time.
1558         (time): New strong alias and hidden definition of __libc_time.
1559         (__GI_time): Remove strong alias.
1560         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1561         Include <stddef.h>.
1562         (memmove): Redefined to __redirect_memmove.
1563         (__memmove_sse2): Use typeof __redirect_memmove.
1564         (__memmove_ssse3): Likewise.
1565         (__memmove_ssse3_back): Likewise.
1566         (__libc_memmove): New prototype.
1567         (memmove): Renamed to ...
1568         (__libc_memmove): This.
1569         (memmove): New strong alias of __libc_memmove.
1570
1571 2012-08-08  Mark Salter  <msalter@redhat.com>
1572
1573         * elf/elf.h
1574         (R_MN10300_TLS_GD): Define.
1575         (R_MN10300_TLS_LD): Likewise.
1576         (R_MN10300_TLS_LDO): Likewise.
1577         (R_MN10300_TLS_GOTIE): Likewise.
1578         (R_MN10300_TLS_IE): Likewise.
1579         (R_MN10300_TLS_LE): Likewise.
1580         (R_MN10300_TLS_DTPMOD): Likewise.
1581         (R_MN10300_TLS_DTPOFF): Likewise.
1582         (R_MN10300_TLS_TPOFF): Likewise.
1583         (R_MN10300_SYM_DIFF): Likewise.
1584         (R_MN10300_ALIGN): Likewise.
1585         (R_MN10300_NUM): Update.
1586
1587 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1588
1589         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1590         Remove.
1591
1592 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1593
1594         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1595
1596         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1597         sysdeps/unix -> sysdeps/posix move.
1598         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1599
1600 2012-08-07      Allan McRae     <allan@archlinux.org>
1601
1602         [BZ #14303]
1603         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1604         (SUNOS_CPP): Likewise.
1605         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1606         not found.
1607         (open_input): Call CPP using execvp.
1608
1609 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1610
1611         * sysdeps/unix/sysv/linux/kernel-features.h
1612         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1613         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1614         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1615         (__ASSUME_WAITID_SYSCALL): Likewise.
1616         * sysdeps/unix/sysv/linux/dl-execstack.c
1617         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1618         code unconditional.
1619         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1620         conditional code.
1621         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1622         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1623         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1624         code.
1625         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1626         unconditional.
1627         [__ASSUME_WAITID_SYSCALL]: Likewise.
1628         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1629
1630 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1631
1632         * sysdeps/unix/closedir.c: Renamed to ...
1633         * sysdeps/posix/closedir.c: ... here.
1634         * sysdeps/unix/dirfd.c: Renamed to ...
1635         * sysdeps/posix/dirfd.c: ... here.
1636         * sysdeps/unix/dirstream.h: Renamed to ...
1637         * sysdeps/posix/dirstream.h: ... here.
1638         * sysdeps/unix/fdopendir.c: Renamed to ...
1639         * sysdeps/posix/fdopendir.c: ... here.
1640         * sysdeps/unix/opendir.c: Renamed to ...
1641         * sysdeps/posix/opendir.c: ... here.
1642         * sysdeps/unix/readdir.c: Renamed to ...
1643         * sysdeps/posix/readdir.c: ... here.
1644         * sysdeps/unix/readdir_r.c: Renamed to ...
1645         * sysdeps/posix/readdir_r.c: ... here.
1646         * sysdeps/unix/rewinddir.c: Renamed to ...
1647         * sysdeps/posix/rewinddir.c: ... here.
1648         * sysdeps/unix/seekdir.c: Renamed to ...
1649         * sysdeps/posix/seekdir.c: ... here.
1650         * sysdeps/unix/telldir.c: Renamed to ...
1651         * sysdeps/posix/telldir.c: ... here.
1652         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1653         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1654         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1655         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1656
1657         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1658         * bits/fcntl.h: ... here.
1659
1660         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1661         not 0.
1662         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1663         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1664         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1665         (struct flock): Move l_start, l_len to the beginning.
1666         Use __pid_t for l_pid.
1667         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1668         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1669         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1670         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1671         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1672         [__USE_LARGEFILE64] (struct flock64): New type.
1673         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1674
1675         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1676         * bits/dirent.h: ... here.
1677
1678         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1679         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1680
1681 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1682
1683         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1684         Change from 2.6.0 to 2.6.16.
1685         * sysdeps/unix/sysv/linux/configure: Regenerated.
1686         * sysdeps/unix/sysv/linux/kernel-features.h
1687         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1688         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1689         version.
1690         (__ASSUME_UTIMES): Likewise.
1691         (__ASSUME_CLONE_STOPPED): Remove.
1692         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1693         architectures, not kernel version.
1694         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1695         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1696         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1697         (__ASSUME_WAITID_SYSCALL): Likewise.
1698         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1699         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1700         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1701         refer to older versions.
1702
1703 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1704
1705         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1706         Define alphasort64 as an alias.
1707         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1708         Define versionsort64 as an alias.
1709         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1710         Define scandir64 as an alias.
1711         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1712         Define scandirat64 as an alias.
1713         * dirent/alphasort64.c (alphasort64):
1714         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1715         * dirent/versionsort64.c: Likewise.
1716         * dirent/scandir64.c: Likewise.
1717         * dirent/scandirat64.c: Likewise.
1718         * sysdeps/wordsize-64/alphasort.c: File removed.
1719         * sysdeps/wordsize-64/alphasort64.c: File removed.
1720         * sysdeps/wordsize-64/scandir.c: File removed.
1721         * sysdeps/wordsize-64/scandir64.c: File removed.
1722         * sysdeps/wordsize-64/scandirat.c: File removed.
1723         * sysdeps/wordsize-64/scandirat64.c: File removed.
1724         * sysdeps/wordsize-64/versionsort.c: File removed.
1725         * sysdeps/wordsize-64/versionsort64.c: File removed.
1726         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1727         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1728         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1729         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1730         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1731         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1732         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1733         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1734
1735         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1736         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1737         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1738         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1739         [defined __arch64__ || defined __sparcv9]
1740         (__INO_T_MATCHES_INO64_T): New macro.
1741         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1742         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1743         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1744         * sysdeps/unix/sysv/linux/bits/dirent.h
1745         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1746         (_DIRENT_MATCHES_DIRENT64): New macro.
1747
1748         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1749         Define lockf64 as an alias.
1750         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1751         Define fseeko64 as an alias.
1752         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1753         Define ftello64 as an alias.
1754         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1755         Define _IO_fgetpos64 and fgetpos64 as aliases.
1756         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1757         Define _IO_fsetpos64 and fsetpos64 as aliases.
1758         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1759         Conditionalize body on this.
1760         * libio/fseeko64.c: Likewise.
1761         * libio/ftello64.c: Likewise.
1762         * libio/iofgetpos64.c: Likewise.
1763         * libio/iofsetpos64.c: Likewise.
1764         * sysdeps/wordsize-64/lockf.c: File removed.
1765         * sysdeps/wordsize-64/lockf64.c: File removed.
1766         * sysdeps/wordsize-64/fseeko.c: File removed.
1767         * sysdeps/wordsize-64/fseeko64.c: File removed.
1768         * sysdeps/wordsize-64/ftello.c: File removed.
1769         * sysdeps/wordsize-64/ftello64.c: File removed.
1770         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1771         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1772         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1773         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1774         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1775         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1776         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1777         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1778         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1779         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1780         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1781         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1782         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1783         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1784
1785         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1786         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1787         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1788         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1789         [defined __arch64__ || defined __sparcv9]
1790         (__OFF_T_MATCHES_OFF64_T): New macro.
1791         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1792         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1793         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1794         (__OFF_T_MATCHES_OFF64_T): New macro.
1795
1796 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1797
1798         * stdlib/secure-getenv.c (__secure_getenv): Replace
1799         GLIBC_2_16 with GLIBC_2_17.
1800
1801 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1802
1803         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1804         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1805
1806 2012-08-03  David S. Miller  <davem@davemloft.net>
1807
1808         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1809
1810 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1811
1812         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1813         Remove.
1814         (__ASSUME_CORRECT_SI_PID): Likewise.
1815         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1816         (__ASSUME_TMPFS_NAME): Likewise.
1817         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1818         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1819         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1820         (HAVE_AUX_SECURE): Make definition unconditional.
1821         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1822         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1823
1824 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1825
1826         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1827         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1828         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1829         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1830         __eloop_threshold instead of SYMLOOP_MAX.
1831
1832         * sysdeps/generic/eloop-threshold.h: New file.
1833         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1834         of MAXSYMLINKS.
1835         * elf/chroot_canon.c (chroot_canon): Likewise.
1836
1837 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1838
1839         [BZ #13717]
1840         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1841         Change to 2.6.0 everywhere.
1842         * sysdeps/unix/sysv/linux/configure: Regenerated.
1843         * sysdeps/unix/sysv/linux/kernel-features.h
1844         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1845         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1846         kernel versions.
1847         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1848         (__ASSUME_FUTEX_REQUEUE): Remove.
1849         (__ASSUME_STATFS64): Define unconditionally.
1850         (__ASSUME_AT_SECURE): Likewise.
1851         (__ASSUME_CORRECT_SI_PID): Likewise.
1852         (__ASSUME_TGKILL): Define without depending on kernel version for
1853         i386.
1854         (__ASSUME_UTIMES): Likewise.
1855         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1856         kernel version.
1857         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1858         (__ASSUME_TMPFS_NAME): Likewise.
1859         * README: Update reference to Linux kernel versions.
1860
1861 2012-08-02  Marek Polacek  <polacek@redhat.com>
1862
1863         [BZ# 14150]
1864         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1865         libc_cv_asm_type_prefix with %.
1866         * configure: Regenerated.
1867         * include/libc-symbols.h: Remove comment about
1868         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1869         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1870         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1871         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1872         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1873         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1874         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1875         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1876         * elf/tst-unique2mod1.c: Likewise.
1877         * elf/tst-unique1mod2.c: Likewise.
1878         * elf/tst-unique1mod1.c: Likewise.
1879         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1880         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1881         Replace ASM_TYPE_DIRECTIVE with .type.
1882         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1883         * sysdeps/i386/sysdep.h: Likewise.
1884         * sysdeps/x86_64/sysdep.h: Likewise.
1885         * sysdeps/sh/sysdep.h: Likewise.
1886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1887         Do not define ASM_TYPE_DIRECTIVE.
1888         * sysdeps/powerpc/sysdep.h: Likewise.
1889         * sysdeps/powerpc/powerpc32/sysdep.h:
1890         Replace ASM_TYPE_DIRECTIVE with .type.
1891         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1892         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1893         * sysdeps/i386/fpu/e_powf.S: Likewise.
1894         * sysdeps/i386/fpu/e_expl.S: Likewise.
1895         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1896         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1897         * sysdeps/i386/fpu/e_pow.S: Likewise.
1898         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1899         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1900         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1901         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1902         * sysdeps/i386/fpu/e_log2.S: Likewise.
1903         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1904         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1905         * sysdeps/i386/fpu/e_powl.S: Likewise.
1906         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1907         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1908         * sysdeps/i386/fpu/e_logl.S: Likewise.
1909         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1910         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1911         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1912         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1913         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1914         * sysdeps/i386/fpu/e_log.S: Likewise.
1915         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1916         * sysdeps/i386/fpu/e_logf.S: Likewise.
1917         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1918         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1919         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1920         * sysdeps/i386/fpu/e_log10.S: Likewise.
1921         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1922         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1923         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1924         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1925         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1926         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1927         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1928         * sysdeps/i386/i686/strtok.S: Likewise.
1929         * sysdeps/i386/i386-mcount.S: Likewise.
1930         * sysdeps/i386/strtok.S: Likewise.
1931         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1932         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1933         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1934         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1935         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1936         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1937         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1938         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1939         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1940         * sysdeps/x86_64/_mcount.S: Likewise.
1941         * sysdeps/x86_64/strtok.S: Likewise.
1942         * sysdeps/sh/_mcount.S: Likewise.
1943
1944 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1945
1946         * libio/iofopen.c: Include <fcntl.h>.
1947         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1948         (_IO_fopen64, fopen64): Define as aliases.
1949         * libio/iofopen64.c: Include <fcntl.h>.
1950         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1951         Conditionalize body on this.
1952         * sysdeps/wordsize-64/iofopen.c: File removed.
1953         * sysdeps/wordsize-64/iofopen64.c: File removed.
1954
1955 2012-08-01  Marek Polacek  <polacek@redhat.com>
1956
1957         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1958         Use dlfcn directly instead of a variable.
1959         (binfmt-subdir): Do not define.
1960         (dlfcn): Likewise.
1961
1962 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1963
1964         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1965         Remove all definitions.
1966         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1967         <kernel-features.h>.
1968         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1969         (miss_F_GETOWN_EX): Remove all definitions.
1970         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1971         macro definition.
1972         [!__ASSUME_FCNTL64]: Remove conditional code.
1973         [__ASSUME_FCNTL64]: Make code unconditional.
1974         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1975         <kernel-features.h>.
1976         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1977         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1978         (lockf64) [__NR_fcntl64]: Make code unconditional.
1979         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1980
1981         * sysdeps/unix/sysv/linux/kernel-features.h
1982         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1983         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1984         Make code unconditional.
1985         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1986         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1988         [__NR_vfork]: Make code unconditional.
1989         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1990         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1992         [__NR_vfork]: Make code unconditional.
1993         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1994         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1995
1996 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1997
1998         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1999         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2000
2001         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2002         Define mkstemp64 as an alias.
2003         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2004         Define mkstemps64 as an alias.
2005         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2006         Define mkostemp64 as an alias.
2007         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2008         Define mkostemps64 as an alias.
2009         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2010         Conditionalize body on this.
2011         * misc/mkostemp64.c: Likewise.
2012         * misc/mkostemps64.c: Likewise.
2013         * misc/mkstemps64.c: Likewise.
2014         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2015         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2016         * sysdeps/wordsize-64/mkostemp.c: File removed.
2017         * sysdeps/wordsize-64/mkstemp.c: File removed.
2018         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2019         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2020         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2021         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2022
2023         [BZ #14138]
2024         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2025         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2026         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2027         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2028
2029         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2030         compat_symbol macros from <shlib-compat.h> rather than the underlying
2031         default_symbol_version and symbol_version macros, so that DEFAULT
2032         lines in shlib-versions are respected.
2033         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2034
2035 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2036
2037         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2038         Declare with warn_unused_result.
2039         (setgid, setregid, setegid, setresgid): Likewise.
2040         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2041         Likewise.
2042         * WUR-REPORT: Remove set*id functions.
2043
2044 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2045
2046         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2047
2048 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2049
2050         * include/sys/socket.h (__libc_accept, __libc_accept4):
2051         Add attribute_hidden.
2052         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2053
2054         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2055         use of PTR_MANGLE.
2056         * inet/getnetgrent_r.c (setup): Likewise.
2057
2058         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2059
2060 2012-07-31  David S. Miller  <davem@davemloft.net>
2061
2062         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2063
2064 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2065
2066         [BZ #13629]
2067         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2068         value between 1.0 and 2.0 and smaller part has absolute value less
2069         than 1.0.
2070         * math/s_clog10.c (__clog10): Likewise.
2071         * math/s_clog10f.c (__clog10f): Likewise.
2072         * math/s_clog10l.c (__clog10l): Likewise.
2073         * math/s_clogf.c (__clogf): Likewise.
2074         * math/s_clogl.c (__clogl): Likewise.
2075         * math/libm-test.inc (clog_test): Add more tests.
2076         (clog10_test): Likewise.
2077         * sysdeps/i386/fpu/libm-test-ulps: Update.
2078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2079
2080 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2081
2082         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2083         Exit with zero in case no suitable GID is found, and write a
2084         message to standard error.
2085
2086 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2087
2088         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2089         rather than to 1.
2090         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2091         (MAXPATHLEN): Removed.
2092         (NOGROUP, NODEV): New macros.
2093         (setbit, clrbit, isset, isclr): New macros.
2094         (howmany, roundup, powerof2): New macros.
2095         (DEV_BSIZE): New macro.
2096
2097         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2098         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2099
2100         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2101         definition on [!__NO_LONG_DOUBLE_MATH].
2102
2103         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2104         PTR_MANGLE and PTR_DEMANGLE.
2105
2106         * socket/accept4.c (accept4): Rename to __libc_accept4.
2107         Define accept4 as a weak alias.
2108
2109         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2110         on [_DIRENT_HAVE_D_TYPE].
2111         * io/ftw.c (ftw_dir): Likewise.
2112
2113         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2114
2115         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2116
2117         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2118         Use the BSD numbers rather than the arbitrary ones we had.
2119         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2120         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2121         (SIGXCPU, SIGXFSZ): New macros.
2122         (_NSIG): Now 32.
2123
2124         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2125         initializer on [_LIBC_REENTRANT].
2126
2127         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2128         definitions inside [_POSIX_MAPPED_FILES].
2129
2130         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2131
2132         * dirent/opendir.c: Include <fcntl.h>.
2133
2134         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2135         (__libc_getspecific): Likewise.
2136         (__libc_key_create): Likewise.
2137
2138         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2139         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2140         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2141         (tmpfile64): Define as alias.
2142         * sysdeps/wordsize-64/tmpfile.c: File removed.
2143         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2144         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2145         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2146
2147         * stdio-common/vfscanf.c: Include <stdbool.h>.
2148         * nss/makedb.c: Likewise.
2149         * stdio-common/_i18n_number.h: Likewise.
2150         * argp/argp-help.c: Likewise.
2151         * posix/wordexp.c: Likewise.
2152         * sysdeps/posix/spawni.c: Likewise.
2153         * nss/nss_files/files-initgroups.c: Likewise.
2154         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2155         * nss/nss_files/files-initgroups.c: Likewise.
2156         * nss/nss_db/db-netgrp.c: Likewise.
2157         * nss/nss_db/db-initgroups.c: Likewise.
2158         * io/fchmodat.c: Include <sys/stat.h>.
2159
2160         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2161         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2162
2163         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2164         [HAVE_MMAP].
2165
2166         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2167         Add multiple inclusion protection.
2168
2169 2012-07-27  David S. Miller  <davem@davemloft.net>
2170
2171         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2172
2173 2012-07-27  Gary Benson  <gbenson@redhat.com>
2174
2175         [BZ #14298]
2176         * elf/rtld.c: Include <stap-probe.h>.
2177         (dl_main): Added static probes "init_start" and "init_complete".
2178         * elf/dl-load.c: Include <stap-probe.h>.
2179         (lose): Take new parameter "nsid".
2180         Added static probe "map_failed".
2181         (_dl_map_object_from_fd): Pass namespace id to lose.
2182         Added static probe "map_start".
2183         (open_verify): Pass namespace id to lose.
2184         * elf/dl-open.c: Include <stap-probe.h>.
2185         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2186         and "reloc_complete".
2187         * elf/dl-close.c: Include <stap-probe.h>.
2188         (_dl_close_worker): Added static probes "unmap_start" and
2189         "unmap_complete".
2190         * elf/rtld-debugger-interface.txt: New file documenting the above.
2191
2192 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2193
2194         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2195         rather than a string variable.
2196         * sunrpc/rpc_main.c (h_output): Likewise.
2197         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2198
2199 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2200
2201         * inet/check_native.c: New file.
2202
2203 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2204
2205         [BZ #13629]
2206         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2207         if larger part has absolute value 1.0.
2208         * math/s_clog10.c (__clog10): Likewise.
2209         * math/s_clog10f.c (__clog10f): Likewise.
2210         * math/s_clog10l.c (__clog10l): Likewise.
2211         * math/s_clogf.c (__clogf): Likewise.
2212         * math/s_clogl.c (__clogl): Likewise.
2213         * math/libm-test.inc (clog_test): Add more tests.
2214         (clog10_test): Likewise.
2215         * sysdeps/i386/fpu/libm-test-ulps: Update.
2216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2217
2218         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2219         (pltexit): Likewise.
2220         (La_regs): Likewise.
2221         (La_retval): Likewise.
2222         (int_retval): Likewise.
2223         Update #error for removed macros to refer only to definitions in
2224         tst-audit.h.
2225         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2226         macro.
2227         (pltexit): Likewise.
2228         (La_regs): Likewise.
2229         (La_retval): Likewise.
2230         (int_retval): Likewise.
2231         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2232         macro.
2233         (pltexit): Likewise.
2234         (La_regs): Likewise.
2235         (La_retval): Likewise.
2236         (int_retval): Likewise.
2237         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2238         macro.
2239         (pltexit): Likewise.
2240         (La_regs): Likewise.
2241         (La_retval): Likewise.
2242         (int_retval): Likewise.
2243         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2244         macro.
2245         (pltexit): Likewise.
2246         (La_regs): Likewise.
2247         (La_retval): Likewise.
2248         (int_retval): Likewise.
2249         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2250         macro.
2251         (pltexit): Likewise.
2252         (La_regs): Likewise.
2253         (La_retval): Likewise.
2254         (int_retval): Likewise.
2255         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2256         macro.
2257         (pltexit): Likewise.
2258         (La_regs): Likewise.
2259         (La_retval): Likewise.
2260         (int_retval): Likewise.
2261         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2262         macro definitions in tst-audit.h.
2263         * sysdeps/i386/tst-audit.h: New file.
2264         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2265         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2266         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2267         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2268         * sysdeps/sh/tst-audit.h: Likewise.
2269         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2270         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2271         * sysdeps/x86_64/tst-audit.h: Likewise.
2272
2273 2012-07-26  Andreas Jaeger  <aj@suse.de>
2274
2275         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2276         ptrace.
2277
2278         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2279         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2280         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2281         PTRACE_O_MASK.
2282         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2283         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2284         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2285
2286         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2287         value.
2288
2289         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2290         _sigsys.
2291         (si_call_addr, si_syscall, si_arch): Define new macro.
2292         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2293         _sigsys.
2294         (si_call_addr, si_syscall, si_arch): Define new marcro.
2295         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2296         _sigsys.
2297         (si_call_addr, si_syscall, si_arch): Define new macro.
2298         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2299         _sigsys.
2300         (si_call_addr, si_syscall, si_arch): Define new macro.
2301
2302 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2303
2304         [BZ #13717]
2305         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2306         Change to 2.4.21 where previously 2.4.1.
2307         * sysdeps/unix/sysv/linux/configure: Regenerated.
2308         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2309         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2310         Linux kernel version.
2311         (__ASSUME_STD_AUXV): Remove.
2312         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2313         kernel version.
2314         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2315         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2316         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2317         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2318         (__ASSUME_NETLINK_SUPPORT): Likewise.
2319         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2320         (__no_netlink_support): Remove conditional definition.
2321         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2322         Remove.
2323         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2324         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2325         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2326         (if_nameindex_ioctl): Remove.
2327         (if_nameindex_netlink): Do not handle __no_netlink_support.
2328         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2329         code.
2330         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2331         Remove conditional code.
2332         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2333         code.
2334         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2335         unconditional.
2336         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2337         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2338         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2339         Remove.
2340         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2341         [!__ASSUME_STD_AUXV]: Remove conditional code.
2342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2343         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2344         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2346         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2347         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2348         code.
2349         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2351         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2352         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2353         conditional code.
2354         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2356         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2357         code.
2358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2359         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2360         conditional code.
2361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2362         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2363         code unconditional.
2364         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2365         conditional code.
2366         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2367         unconditional.
2368         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2369         conditional code.
2370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2371         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2372         unconditional.
2373         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2374         conditional code.
2375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2376         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2377         code unconditional.
2378         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2379         conditional code.
2380         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2381         unconditional.
2382         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2383         conditional code.
2384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2385         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2386         code unconditional.
2387         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2388         conditional code.
2389         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2390         unconditional.
2391         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2392         conditional code.
2393
2394 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2395
2396         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2397         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2398         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2399         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2400         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2401         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2402         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2403         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2404         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2405         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2406         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2407         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2408         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2409         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2410         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2411         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2412         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2413         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2414         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2415         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2416         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2417         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2418         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2419
2420 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2421
2422         * Versions.def: Add GLIBC_2.17.
2423         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2424         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2425         Introduce __libc_secure_getenv.
2426         * stdlib/Versions (2.17): Add secure_getenv
2427         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2428         * stdlib/secure-getenv.c: Rename __secure_getenv to
2429         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2430         symbol __secure_getenv for GLIBC_2.0.
2431         * stdlib/tst-secure-getenv.c: New.
2432         * stdlib/Makefile (tests): Add testcase.
2433         * manual/startup.texi (Environment Access): Document
2434         secure_getenv.
2435         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2436         __libc_secure_getenv.
2437         * inet/ruserpass.c (ruserpass): Likewise.
2438         * malloc/mtrace.c (mtrace): Likewise.
2439         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2440         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2441         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2442         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2443         HAVE_SECURE_GETENV.
2444         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2445         __secure_getenv to __libc_secure_getenv.
2446         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2448         Likewise.
2449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2450         Likewise.
2451         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2452         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2453         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2454         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2455         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2456         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2457         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2458
2459 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2460
2461         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2462         (struct La_i86_retval): Likewise.
2463         (struct La_x86_64_regs): Likewise.
2464         (struct La_x86_64_retval): Likewise.
2465         (struct La_x32_regs): Likewise.
2466         (struct La_x32_retval): Likewise.
2467         (struct La_ppc32_regs): Likewise.
2468         (struct La_ppc32_retval): Likewise.
2469         (struct La_ppc64_regs): Likewise.
2470         (struct La_ppc64_retval): Likewise.
2471         (struct La_sh_regs): Likewise.
2472         (struct La_sh_retval): Likewise.
2473         (struct La_s390_32_regs): Likewise.
2474         (struct La_s390_32_retval): Likewise.
2475         (struct La_s390_64_regs): Likewise.
2476         (struct La_s390_64_retval): Likewise.
2477         (struct La_sparc32_regs): Likewise.
2478         (struct La_sparc32_retval): Likewise.
2479         (struct La_sparc64_regs): Likewise.
2480         (struct La_sparc64_retval): Likewise.
2481         (struct audit_ifaces): Remove architecture-specific pltenter and
2482         pltexit members.
2483         * sysdeps/i386/ldsodefs.h: New file.
2484         * sysdeps/powerpc/ldsodefs.h: Likewise.
2485         * sysdeps/s390/ldsodefs.h: Likewise.
2486         * sysdeps/sh/ldsodefs.h: Likewise.
2487         * sysdeps/sparc/ldsodefs.h: Likewise.
2488         * sysdeps/x86_64/ldsodefs.h: Likewise.
2489
2490 2012-07-25  Marek Polacek  <polacek@redhat.com>
2491
2492         [BZ #6808]
2493         * math/libm-test.inc (yn_test): Add another test.
2494         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2495         to ERANGE when the result is +-Inf.
2496         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2497         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2498         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2499         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2500
2501 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
2502
2503         * conform/data/time.h-data (NULL): Use macro-constant.  Require
2504         equal to 0.
2505         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
2506         clock_t.
2507         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2508
2509 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2510
2511         * configure.in <sysdeps resolving>: Correct printing
2512         Implies_before.
2513         * configure: Regenerate.
2514
2515 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2516
2517         * math/w_ilogb.c: Include <limits.h>.
2518         * math/w_ilogbl.c: Likewise.
2519
2520 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2521
2522         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2523         va_copy.  Document allowing for unavailable va_copy only as
2524         pre-C99 compatibility.
2525         * manual/string.texi (Copying and Concatenation): Use va_copy
2526         instead of __va_copy in concat example.
2527
2528 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2529
2530         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2531         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2532         it if not null.
2533
2534         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2535         with O_NOLINK passed to __file_name_lookup.
2536
2537         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2538         with O_NOLINK passed to __file_name_lookup.
2539
2540         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2541         negative N or less than NGIDS.
2542
2543         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2544         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2545         enough.  Use memcpy instead of strncpy.
2546
2547 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2548
2549         * elf/Makefile (check-data): Remove.
2550         (localplt.data): New vpath directive.
2551         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2552         instead of $(check-data).
2553         * scripts/data/localplt-generic.data: Move to ...
2554         * sysdeps/generic/localplt.data: ... here.
2555         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2556         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2557         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2559         ... here.
2560         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2562         ... here.
2563         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2564         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2565         ... here.
2566         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2567         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2568         ... here.
2569         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2571         ... here.
2572         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2573         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2574         ... here.
2575
2576 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2577
2578         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2579         PPC32 and PPC64 files.
2580         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2581         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2582
2583 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2584
2585         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2586         __makecontext_ret to ...
2587         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2588         ... here and call exit if uc_link is NULL.  New file.
2589         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2590         __makecontext_ret.S.
2591         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2592         __makecontext_ret to ...
2593         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2594         ... here and call exit if uc_link is NULL.  New file.
2595         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2596         __makecontext_ret.S.
2597
2598 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2599
2600         * elf/elf.h (R_390_IRELATIVE): New definition.
2601         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2602         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2603         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2604         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2605         (elf_machine_lazy_rel): Likewise.
2606         * sysdeps/s390/dl-irel.h: New file.
2607         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2608         * sysdeps/s390/s390-64/memset.S: New asm code.
2609         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2610         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2611         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2612         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2613         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2614         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2615         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2616         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2617         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2618         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2619         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2620         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2621         * sysdeps/s390/s390-32/memset.S: New asm code.
2622         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2623
2624 2012-07-17  Marek Polacek  <polacek@redhat.com>
2625
2626         [BZ #14349]
2627         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2628         * sysdeps/s390/s390-64/configure.in: Likewise.
2629         * sysdeps/sparc/configure.in: Likewise.
2630         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2631         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2632         * sysdeps/i386/configure.in: Likewise.
2633         * sysdeps/x86_64/configure.in: Likewise.
2634         * sysdeps/sh/configure.in: Likewise.
2635         * sysdeps/s390/s390-32/configure: Regenerated.
2636         * sysdeps/s390/s390-64/configure: Likewise.
2637         * sysdeps/x86_64/configure: Likewise.
2638         * sysdeps/sh/configure: Likewise.
2639         * sysdeps/powerpc/powerpc64/configure: Likewise.
2640         * sysdeps/powerpc/powerpc32/configure: Likewise.
2641         * sysdeps/sparc/configure: Likwise.
2642         * sysdeps/i386/configure: Likewise.
2643
2644         * elf/dl-open.c: Comment fixes.
2645
2646 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2647
2648         * Makefile [CXX] (check-data): Remove.
2649         [CXX] (c++-types.data): New vpath directive.
2650         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2651         vpath.  Do not allow for C++ type data being missing.
2652         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2653         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2654         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2655         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2656         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2657         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2658         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2660         ... here.
2661         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2663         ... here.
2664         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2665         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2666         ... here.
2667         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2668         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2669         ... here.
2670         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2671         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2672         ... here.
2673         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2674         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2675         ... here.
2676         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2677         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2678         ... here.
2679         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2680         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2681
2682         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2683         definitions to architecture-specific files.
2684         (TLS_IE): Likewise.
2685         (TLS_LD): Likewise.
2686         (TLS_GD): Likewise.
2687         * sysdeps/i386/tls-macros.h: New file.
2688         * sysdeps/powerpc/tls-macros.h: Likewise.
2689         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2690         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2691         * sysdeps/sh/tls-macros.h: Likewise.
2692         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2693         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2694         * sysdeps/x86_64/tls-macros.h: Likewise.
2695
2696 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2697
2698         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2699         zero value for regular exit case.
2700
2701         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2702         (__start_context): Preserve zero value for regular exit case.
2703
2704 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2705             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2706
2707         * manual/setjmp.texi (setcontext): Clarify normal process
2708         termination when uc_link is the null pointer.
2709         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2710         exit call.
2711
2712 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2713
2714         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2715         preprocessor.  Test for each exception mask separately.
2716
2717 2012-07-16  Andreas Jaeger  <aj@suse.de>
2718
2719         * po/ru.po: Update from translation team.
2720
2721 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2722
2723         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2724         equal to 0.
2725         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2726         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2727         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2728         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2729         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2730
2731 2012-07-13  Andreas Jaeger  <aj@suse.de>
2732
2733         * po/fr.po: Update from translation team.
2734
2735 2012-07-12  Marek Polacek  <polacek@redhat.com>
2736
2737         [BZ #14173]
2738         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2739         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2740         loop condition.
2741
2742 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2743
2744         [BZ #13717]
2745         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2746         Change to 2.4.1 where previously 2.4.0.
2747         * sysdeps/unix/sysv/linux/configure: Regenerated.
2748         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2749         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2750         version.
2751         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2752         (__ASSUME_AT_CLKTCK): Remove.
2753         (__ASSUME_AT_PAGESIZE): Likewise.
2754         (__ASSUME_AT_XID): Likewise.
2755         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2756         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2757         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2758         unconditionally.
2759         (HAVE_AUX_PAGESIZE): Likewise.
2760         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2761         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2762         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2763
2764 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2765
2766         [BZ #14307]
2767         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2768         the temporary buffer used to invoke __gethostbyname2_r,
2769         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2770         host_data / struct gaih_addrtuple.
2771         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2772         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2773         header file nss/nsswitch.h.
2774         * nss/nsswitch.h (global scope): Add definition of implementation
2775         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2776         resolv/nss_dns/dns-host.c).
2777
2778 2012-07-11  Andreas Jaeger  <aj@suse.de>
2779
2780         * po/fr.po: Update from translation team.
2781
2782         * po/sv.po: Update from translation team
2783         * po/fr.po: Another update from translation team.
2784
2785 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2786
2787         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2788         for subnormals or multiply small sinh result by itself.
2789         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2790         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2791
2792 2012-07-11  David S. Miller  <davem@davemloft.net>
2793
2794         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2795
2796 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2797
2798         [BZ #14347]
2799         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2800         (INTERNAL_MARK): Shift it here.
2801
2802 2012-07-10  Marek Polacek  <polacek@redhat.com>
2803
2804         [BZ #14151]
2805         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2806         libc_cv_asm_global_directive with .globl.
2807         * configure: Regenerated.
2808         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2809         with .globl.
2810         * sysdeps/i386/configure: Regenerated.
2811         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2812         with .globl.
2813         * sysdeps/x86_64/configure: Regenerated.
2814         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2815         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2816         * elf/tst-unique2mod2.c: Likewise.
2817         * elf/tst-unique2mod1.c: Likewise.
2818         * elf/tst-unique1mod2.c: Likewise.
2819         * elf/tst-unique1mod1.c: Likewise.
2820         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2821         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2822         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2823         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2824         * sysdeps/mach/sysdep.h: Likewise.
2825         * sysdeps/i386/sysdep.h: Likewise.
2826         * sysdeps/i386/i386-mcount.S: Likewise.
2827         * sysdeps/x86_64/_mcount.S: Likewise.
2828         * sysdeps/x86_64/sysdep.h: Likewise.
2829         * sysdeps/sh/_mcount.S: Likewise.
2830         * sysdeps/sh/sysdep.h: Likewise.
2831         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2832         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2833         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2834         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2835         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2836         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2837         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2838         * locale/localeinfo.h: Likewise.
2839         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2840         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2841
2842 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2843
2844         [BZ #14336]
2845         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2846         system".
2847         * manual/message.texi (The Uniforum approach): Likewise.
2848         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2849         (glibc iconv Implementation): Likewise.
2850
2851 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2852
2853         [BZ #14337]
2854         * math/s_clog.c (__clog): Avoid scaling a value down where that
2855         could result in underflow.
2856         * math/s_clog10.c (__clog10): Likewise.
2857         * math/s_clog10f.c (__clog10f): Likewise.
2858         * math/s_clog10l.c (__clog10l): Likewise.
2859         * math/s_clogf.c (__clogf): Likewise.
2860         * math/s_clogl.c (__clogl): Likewise.
2861         * math/libm-test.inc (clog_test): Add more tests.
2862         (clog10_test): Likewise.
2863         * sysdeps/i386/fpu/libm-test-ulps: Update.
2864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2865
2866 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2867
2868         [BZ #14283]
2869         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2870         by 7 not 8 to examine high bit of fractional part.
2871
2872         [BZ #14042]
2873         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2874         for call to __mcount_internal.
2875         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2876         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2877         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2878
2879 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2880
2881         [BZ #14154]
2882         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2883         approximation for values within 0x1p-13f of an odd multiple of
2884         pi/4.
2885         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2886         exception.  Add more tests.
2887         * sysdeps/i386/fpu/libm-test-ulps: Update.
2888
2889         [BZ #6778]
2890         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2891         inputs and return -1 for them.  Do not check for +Inf in case not
2892         reachable for +Inf.
2893         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2894         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2895         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2896         and return -1 for them.  Do not check for +Inf in case not
2897         reachable for +Inf.
2898         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2899         define.
2900         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2901         and return -1 for them.  Do not check for +Inf in case not
2902         reachable for +Inf.
2903         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2904         spurious underflow.
2905         * sysdeps/i386/fpu/libm-test-ulps: Update.
2906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2907
2908 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2909
2910         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2911
2912 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2913
2914         [BZ #14157]
2915         [BZ #14331]
2916         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2917         could result in spurious underflow.  Scale down values above
2918         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2919         * math/s_csqrtf.c (__csqrtf): Likewise.
2920         * math/s_csqrtl.c (__csqrtl): Likewise.
2921         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2922         spurious underflow.
2923         * sysdeps/i386/fpu/libm-test-ulps: Update.
2924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2925
2926 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2927
2928         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2929         xopen-msg.sed.
2930         * catgets/xopen-msg.awk: New file.
2931         * catgets/xopen-msg.sed: Removed.
2932
2933         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2934         po2text.sed.
2935         * intl/po2test.awk: New file.
2936         * intl/po2test.sed: Removed.
2937
2938 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2939
2940         [BZ #14328]
2941         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2942         or multiply small sinh result by itself.
2943         * math/s_ctanf.c (__ctanf): Likewise.
2944         * math/s_ctanh.c (__ctanh): Likewise.
2945         * math/s_ctanhf.c (__ctanhf): Likewise.
2946         * math/s_ctanhl.c (__ctanhl): Likewise.
2947         * math/s_ctanl.c (__ctanl): Likewise.
2948         * math/libm-test.inc (ctan_test_tonearest): New function.
2949         (ctan_test_towardzero): Likewise.
2950         (ctan_test_downward): Likewise.
2951         (ctan_test_upward): Likewise.
2952         (ctanh_test_tonearest): Likewise.
2953         (ctanh_test_towardzero): Likewise.
2954         (ctanh_test_downward): Likewise.
2955         (ctanh_test_upward): Likewise.
2956         (main): Call these new functions.
2957         * sysdeps/i386/fpu/libm-test-ulps: Update.
2958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2959
2960 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2961
2962         * .gitignore: Delete /ports entry.
2963
2964 2012-07-03  Andreas Jaeger  <aj@suse.de>
2965
2966         * po/bg.po: Update from translation team.
2967         * po/cs.po: Likewise.
2968         * po/de.po: Likewise.
2969         * po/hr.po: Likewise.
2970         * po/nl.pl: Likewise.
2971         * po/pl.po: Likewise.
2972         * po/vi.po: Likewise.
2973
2974 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2975
2976         * Makeconfig [!+link] (+link-before-libc): New variable.
2977         [!+link] (+link-after-libc): Likewise.
2978         [!+link] (+link-tests): Likewise.
2979         [!+link] (+link): Define in terms of $(+link-before-libc) and
2980         $(+link-after-libc).
2981         [!+link-static] (+link-static-before-libc): New variable.
2982         [!+link-static] (+link-static-after-libc): Likewise.
2983         [!+link-static] (+link-static-tests): Likewise.
2984         [!+link-static] (+link-static): Define in terms of
2985         $(+link-static-before-libc) and $(+link-static-after-libc).
2986         [build-shared] (link-libc-before-gnulib): New variable.
2987         [build-shared] (link-libc-tests): Likewise.
2988         [build-shared] (link-libc): Define in terms of
2989         $(link-libc-before-gnulib).
2990         [!build-shared] (link-libc-tests): New variable.
2991         (link-libc-static-tests): New variable.
2992         [!gnulib] (gnulib-arch): New variable.
2993         [!gnulib] (gnulib-tests): Likewise.
2994         [!gnulib] (static-gnulib-arch): Likewise.
2995         [!gnulib] (static-gnulib-tests): Likewise.
2996         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2997         Define with "=" instead of ":=".
2998         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2999         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3000         * Rules (binaries-all-notests): New variable.
3001         (binaries-all-tests): Likewise.
3002         (binaries-static-notests): Likewise.
3003         (binaries-static-tests): Likewise.
3004         (binaries-all): Define using $(binaries-all-notests) and
3005         $(binaries-all-tests).
3006         (binaries-static): Define using $(binaries-static-notests) and
3007         $(binaries-static-tests).
3008         (binaries-shared-tests): New variable.
3009         (binaries-shared-notests): Likewise.
3010         (binaries-shared): Remove variable.
3011         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3012         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3013         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3014         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3015         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3016         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3017         * elf/Makefile (sln-modules): New variable.
3018         (extra-objs): Add $(sln-modules:=.o).
3019         (ldconfig-modules): Add static-stubs.
3020         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3021         * elf/static-stubs.c: New file.
3022
3023         [BZ #14283]
3024         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3025         by 7 not 8 to examine high bit of fractional part.  Use volatile
3026         variables when splitting into final array of floats if
3027         __FLT_EVAL_METHOD__ != 0.
3028         * math/libm-test.inc (cos_test): Add another test.
3029         (sin_test): Likewise.
3030         * sysdeps/i386/fpu/libm-test-ulps: Update.
3031
3032         [BZ #14273]
3033         * math/libm-test.inc (cosh_test): Add more tests.
3034
3035         * version.h (RELEASE): Set to "development".
3036         (VERSION): Set to "2.16.90".
3037
3038 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3039
3040         * NEWS: Update copyright. Remove last-updated date.
3041         Mention math library bug fixes and timezone data changes.
3042         * README: Mention GNU/Hurd, x32, and HPPA support status.
3043
3044 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3045
3046         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3047
3048 2012-06-27  Andreas Jaeger  <aj@suse.de>
3049
3050         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3051
3052 2012-06-25  Andreas Jaeger  <aj@suse.de>
3053
3054         * sysdeps/s390/fpu/libm-test-ulps: Update.
3055
3056 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3057             Thomas Schwinge  <thomas@codesourcery.com>
3058
3059         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3060         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3061         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3062         fanotify_mark.
3063
3064 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3065
3066         * sysdeps/mach/start.c: Remove file.
3067         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3068         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3069         * sysdeps/sh/init-first.c: Likewise.
3070
3071         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3072         registers for frame unwinding purposes, add CFI directives.
3073         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3074         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3075         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3076         Likewise.
3077
3078         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3079         __fortify_fail returning.
3080         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3081
3082         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3083         sysdeps/sh/____longjmp_chk.S.
3084         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3085         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3086         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3087         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3088
3089         * sysdeps/sh/abort-instr.h: New file.
3090         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3091         process in case exit returns.
3092
3093         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3094         initialize the GOT register before use.
3095
3096         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3097         calculation of ARGC > 4.
3098
3099         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3100         meaningful names to some local labels.
3101
3102 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3103             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3104
3105         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3106         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3107         (__arch_compare_and_exchange_val_16_acq): Likewise.
3108         (__arch_compare_and_exchange_val_32_acq): Likewise.
3109         (atomic_exchange_and_add): Fix gUSA sequence.
3110         (atomic_add): Likewise.
3111         (atomic_add_negative): Likewise.
3112         (atomic_add_zero): Likewise.
3113         (atomic_bit_test_set): Likewise.
3114
3115 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3116
3117         [BZ #13579]
3118         * include/link.h (struct link_map): Add l_free_initfini.
3119         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3120         l_initfini.
3121         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3122         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3123         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3124         set.
3125
3126 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3127
3128         * configure.in: Use AC_LANG_SOURCE.
3129         * configure: Regenerate.
3130
3131 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3132
3133         * configure.in (libc_cv_localstatedir): New substituted variable.
3134         * configure: Regenerated.
3135         * config.make.in (localstatedir): New variable, substituted from
3136         libc_cv_localstatedir.
3137         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3138         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3139         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3140         * sysdeps/gnu/configure: Regenerated.
3141
3142 2012-06-21  Jeff Law  <law@redhat.com>
3143
3144         [BZ #14277]
3145         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3146         free.  Simplify list management for _LIBC case.
3147
3148 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3149
3150         [BZ #14273]
3151         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3152         Clear sign bit of 64-bit integer value before comparing against
3153         overflow value.
3154
3155         * sysdeps/mach/configure: Regenerated.
3156
3157 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3158
3159         [BZ #14278]
3160         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3161
3162 2012-06-21  Jeff Law  <law@redhat.com>
3163
3164         [BZ #13882]
3165         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3166         uint16_t for elements in the "seen" array to avoid char overflows.
3167         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3168         * elf/dl-open.c (dl_open_worker): Likewise.
3169
3170 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3171
3172         * scripts/list-sources.sh: Scan PORTS for translations.
3173         * po/libc.pot: Regenerated.
3174
3175 2012-06-21  Andreas Jaeger  <aj@suse.de>
3176
3177         [BZ #12194]
3178         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3179         warning.
3180         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3181         * bits/byteswap-16.h (__bswap_16): Likewise.
3182         * bits/byteswap.h (__bswap_constant_16): Likewise.
3183
3184 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3185
3186         [BZ #14117]
3187         * sysdeps/i386/fpu_control.h: Removed.
3188         * sysdeps/x86_64/fpu_control.h: Moved to ...
3189         * sysdeps/x86/fpu_control.h: Here.
3190
3191         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3192         (_FPU_SETCW): Likewise.
3193
3194 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3195
3196         [BZ #14117]
3197         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3198         * sysdeps/x86/fpu/bits/mathinline.h: This.
3199         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3200
3201         [BZ #14050]
3202         [BZ #14117]
3203         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3204         functions if __x86_64__ is defined.
3205
3206 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3207
3208         * string/endian.h: Add !__ASSEMBLER__ condition for including
3209         conversion interfaces.
3210
3211 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3212
3213         [BZ #14241]
3214         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3215         of ABS(x) in calculating zero to negative powers other than odd
3216         integers.
3217         * math/libm-test.inc (pow_test): Add more tests.
3218
3219 2012-06-15  Andreas Jaeger  <aj@suse.de>
3220
3221         * manual/contrib.texi (Contributors): Update entry of Liubov
3222         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3223         Machado Filho.
3224
3225 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3226
3227         * string/string.h: Add __wur to GNU version of strerror_r.
3228
3229 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3230
3231         [BZ #14229]
3232         * string/Makefile (tests): Add tst-strtok_r.
3233         * string/tst-strtok_r.c: New file.
3234         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3235         RAX_LP/RDX_LP on SAVE_PTR.
3236
3237 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3238
3239         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3240
3241 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3242
3243         * libm_test.inc (csqrt_test): Allow more spurious underflow
3244         exceptions.
3245         (j0_test): Likewise.
3246         (j1_test): Likewise.
3247         (y0_test): Likewise.
3248         (y1_test): Likewise.
3249
3250 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3251
3252         * po/Makefile (libc.pot): Use UTF-8 charset.
3253
3254 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3255
3256         [BZ #14210]
3257         Suppress sign-conversion warning from FD_SET.
3258         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3259         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3260         not unsigned long int.
3261         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3262
3263 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3264
3265         [BZ #14050]
3266         [BZ #14117]
3267         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3268         __extern_always_inline instead of __extern_inline.
3269         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3270         (__signbit): Likewise.
3271         (__signbitl): Support C++ namespace.
3272         (lrintf): New inline function.
3273         (lrint): Likewise.
3274         (llrintf): Likewise.
3275         (llrint): Likewise.
3276         (fmaxf): Likewise.
3277         (fmax): Likewise.
3278         (fminf): Likewise.
3279         (fmin): Likewise.
3280         (rint): Likewise.
3281         (rintf): Likewise.
3282         (ceil): Likewise.
3283         (ceilf): Likewise.
3284         (floor): Likewise.
3285         (floorf): Likewise.
3286         (nearbyint): Likewise.
3287         (nearbyintf): Likewise.
3288
3289 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3290
3291         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3292         non-default versions.
3293
3294 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3295
3296         [BZ #14218]
3297         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3298
3299 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3300
3301         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3302         (FE_UPWARD, FE_DOWNWARD): Don't define.
3303         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3304         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3305
3306         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3307         reading it.
3308         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3309         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3310
3311 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3312
3313         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3314         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3315         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3316         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3317
3318 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3319
3320         [BZ #14117]
3321         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3322         * sysdeps/i386/fpu/Implies: New file.
3323         * sysdeps/x86_64/fpu/Implies: Likewise.
3324         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3325         * sysdeps/x86/fpu/bits/fenv.h: This.
3326
3327         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3328         __SSE_MATH__.
3329
3330 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3331
3332         [BZ #14134]
3333         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3334         character 0xffff that matches the last element of the
3335         conversion table.
3336
3337 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3338
3339         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3340         fmodl commit.
3341
3342 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3343
3344         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3345         values higher than 25.6283.
3346
3347 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3348
3349         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3350         subnormal exponent extraction and add some __builtin_expect.
3351         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3352         Fix for subnormal mantissa calculation.
3353
3354 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3355
3356         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3357         cpu2 is -1 and errno is not ENOSYS.
3358
3359 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3360
3361         [BZ #14117]
3362         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3363         * sysdeps/x86/bits/string.h: This.
3364         * sysdeps/x86_64/bits/string.h: Removed.
3365
3366         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3367         if not compiling for x86-64, but compiling for >= i486.
3368
3369         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3370         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3371
3372         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3373         New macro from Linux kernel 3.4.0.
3374         (FP_XSTATE_MAGIC2): Likewise.
3375         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3376         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3377         (struct _fpx_sw_bytes): New struct.
3378         (struct _xsave_hdr): Likewise.
3379         (struct _ymmh_state): Likewise.
3380         (struct _xstate): Likewise.
3381
3382         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3383         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3384         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3385         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3386         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3387         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3388
3389         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3390         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3391         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3392         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3393         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3394         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3395
3396 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3397
3398         [BZ #13743]
3399         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3400         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3401         (sysdep_headers): Include sys/platform/ppc.h.
3402         * sysdeps/powerpc/test-gettimebase.c: Test for
3403         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3404         * manual/Makefile (appendices): Include platform.texi.
3405         * manual/contrib.texi (Contributors): Update @node pointers.
3406         * manual/maint.texi (Maintenance): Likewise.
3407         (Platform): New node.
3408         * manual/platform.texi: New file.  Document the new features.
3409
3410 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3411             Jakub Jelinek  <jakub@redhat.com>
3412
3413         [BZ #14188]
3414         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3415         where __builtin_expect is unavailable.
3416
3417 2012-06-03  David S. Miller  <davem@davemloft.net>
3418
3419         * stdlib/longlong.h: Updated from GCC.
3420
3421 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3422
3423         [BZ #14042]
3424         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3425         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3426         __mcount_internal.
3427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3428         (GLIBC_2.16): Likewise.
3429
3430 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3431
3432         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3433
3434 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3435
3436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3437         (default-abi): New variable.
3438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3439         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3440         variable.
3441         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3442         Likewise.
3443         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3444         Likewise.
3445         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3446         Likewise.
3447
3448         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3449         definition.  Document in comment.
3450
3451 2012-06-01  David S. Miller  <davem@davemloft.net>
3452
3453         * stdlib/longlong.h: Updated from GCC.
3454
3455 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3456
3457         [BZ #14117]
3458         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3459         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3460         sys/debugreg.h sys/io.h here.
3461         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3462         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3463         sys/io.h.
3464         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3465         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3466         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3467         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3468         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3469         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3470
3471         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3472         Define only if __x86_64__ is defined.
3473
3474 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3475
3476         [BZ #14048]
3477         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3478         Use int64_t for variable i.
3479         * math/libm-test.inc (fmod_test): Add more tests.
3480
3481         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3482         z computation is not scheduled after fetestexcept.
3483         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3484         Use math_force_eval instead of asm to ensure calculation scheduled
3485         before exception test.
3486         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3487         Ensure a1 + u.d computation is not scheduled after fetestexcept.
3488
3489 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
3490
3491         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3492         computation is not scheduled after fetestexcept.
3493
3494 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3495
3496         [BZ #14117]
3497         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3498         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3499
3500 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3501
3502         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3503         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3504
3505 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3506
3507         [BZ #14117]
3508         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3509         <bits/wordsize.h>.
3510         (__WCHAR_MIN): Support __WORDSIZE == 64.
3511         (__WCHAR_MAX): Likewise.
3512
3513         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3514         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3515
3516         [BZ #14183]
3517         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3518         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3519
3520         [BZ #14117]
3521         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3522         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3523
3524         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3525         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3526
3527         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3528         Defined to 1 if __x86_64__ isn't defined.
3529         (_STAT_VER_LINUX_OLD): New.
3530         (st_atime): Remove duplicate.
3531         (st_mtime): Likewise.
3532         (st_ctime): Likewise.
3533
3534 2012-05-31  David S. Miller  <davem@davemloft.net>
3535
3536         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3537         entries.
3538
3539 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3540
3541         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3542         gen-libm-test.pl.
3543
3544         [BZ #14132]
3545         * elf/dl-reloc.c: Include <_itoa.h>.
3546         (_dl_reloc_bad_type): Remove use of INTUSE.
3547         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3548         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3549         * stdio-common/psiginfo.c (psiginfo): Likewise.
3550         * stdio-common/psignal.c (psignal): Likewise.
3551         * string/strsignal.c (strsignal): Likewise.
3552         * include/signal.h (_sys_siglist): Declare hidden proto.
3553         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3554         INTVARDEF with libc_hidden_data_def.
3555         * stdio-common/itoa-udigits.c: Likewise.
3556         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3557         (_itoa_lower_digits_internal): Remove declaration.
3558         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3559         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3560         (_sys_sigabbrev_internal): Remove aliases.
3561         (_sys_siglist): Define hidden alias.
3562
3563 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3564
3565         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3566         bits/sysctl.h.
3567
3568 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3569
3570         [BZ #14117]
3571         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3572         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3573
3574         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3575         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3576         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3577         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3578         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3579         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3580
3581         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3582         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3583         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3584
3585         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3586         with __addr.
3587         (insw): Likewise.
3588         (insl): Likewise.
3589         (outsb): Likewise.
3590         (outsw): Likewise.
3591         (outsl): Likewise.
3592
3593         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3594         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3595         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3596
3597         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3598         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3599         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3600         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3601         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3602         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3603
3604         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3605         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3606
3607         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3608         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3609
3610         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3611         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3612         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3613
3614         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3615         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3616         to ...
3617         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3618
3619         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3620         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3621         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3622
3623         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3624         for x86-64.
3625         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3626
3627 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3628
3629         * math/math.h (M_El): Use two more decimal places.
3630         (M_LOG2El): Likewise.
3631         (M_LOG10El): Likewise.
3632         (M_LN2l): Likewise.
3633         (M_LN10l): Likewise.
3634         (M_PIl): Likewise.
3635         (M_PI_2l): Likewise.
3636         (M_PI_4l): Likewise.
3637         (M_1_PIl): Likewise.
3638         (M_2_PIl): Likewise.
3639         (M_2_SQRTPIl): Likewise.
3640         (M_SQRT2l): Likewise.
3641         (M_SQRT1_2l): Likewise.
3642
3643 2012-05-31  David S. Miller  <davem@davemloft.net>
3644
3645         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3646         values between float registers.
3647         * sysdeps/sparc/sparc64/memset.S: Likewise.
3648         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3649
3650 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3651
3652         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3653         -D_FORTIFY_SOURCE=1.
3654         (CPPFLAGS-tst-longjmp_chk.c): Define.
3655         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3656         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3657         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3658         CFLAGS-tst-wchar-h.c.
3659
3660 2012-05-31  Marek Polacek  <polacek@redhat.com>
3661
3662         [BZ #14132]
3663         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3664         __endmntent_internal): Remove declaration.
3665         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3666         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3667         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3668
3669 2012-05-30  David S. Miller  <davem@davemloft.net>
3670
3671         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3672         (___Q_simulate_exceptions): Use real FP ops rather than writing
3673         into the %fsr.
3674         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3675         Likewise.
3676
3677 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3678
3679         [BZ #14117]
3680         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3681         * sysdeps/x86/bits/xtitypes.h: This.
3682
3683         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3684         * sysdeps/x86/bits/wordsize.h: This.
3685
3686         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3687         * sysdeps/x86/bits/huge_vall.h: This.
3688
3689         * sysdeps/i386/bits/select.h: Removed.
3690         * sysdeps/x86_64/bits/select.h: Renamed to ...
3691         * sysdeps/x86/bits/select.h: This.
3692
3693         * sysdeps/i386/bits/setjmp.h: Removed.
3694         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3695         * sysdeps/x86/bits/setjmp.h: This.
3696
3697         * sysdeps/i386/bits/mathdef.h: Removed.
3698         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3699         * sysdeps/x86/bits/mathdef.h: This.
3700
3701 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3702
3703         [BZ #14132]
3704         * include/sys/socket.h (__connect_internal)
3705         (__libc_sa_len_internal): Remove declaration.
3706         (__connect, __libc_sa_len): Declare hidden_proto.
3707         (SA_LEN): Remove use of INTUSE.
3708         * socket/connect.c: Add libc_hidden_def.
3709         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3710         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3711         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3712         alias.
3713         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3714         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3715         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3716         of adding _internal alias.
3717
3718 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3719
3720         [BZ #14117]
3721         * sysdeps/i386/bits/link.h: Removed.
3722         * sysdeps/i386/bits/linkmap.h: Likewise.
3723         * sysdeps/x86_64/bits/link.h: Renamed to ...
3724         * sysdeps/x86/bits/link.h: This.
3725         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3726         * sysdeps/x86/bits/linkmap.h: This.
3727
3728         * sysdeps/i386/bits/endian.h: Removed.
3729         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3730         * sysdeps/x86/bits/endian.h: This.
3731
3732         * sysdeps/i386/bits/byteswap.h: Removed.
3733         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3734         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3735         * sysdeps/x86/bits/byteswap.h: This.
3736         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3737         * sysdeps/x86/bits/byteswap-16.h: This.
3738         * sysdeps/i386/Implies: Add x86.
3739         * sysdeps/x86_64/Implies: Likewise.
3740
3741 2012-05-30  David S. Miller  <davem@davemloft.net>
3742
3743         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3744         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3745         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3746         (FP_TRAPPING_EXCEPTIONS): Define.
3747         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3748         (FP_TRAPPING_EXCEPTIONS): Define.
3749         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3750         subnormals only when inexact has been signalled or underflow
3751         exceptions are enabled.
3752         (_FP_PACK_CANONICAL): Likewise.
3753
3754 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3755
3756         [BZ #14183]
3757         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3758         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3759
3760 2012-05-30  Richard Henderson  <rth@twiddle.net>
3761
3762         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3763         with #ifndef NOT_IN_libc.
3764
3765         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3766         marked to avoid plt entry.
3767
3768 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3769
3770         [BZ #14112]
3771         * Makeconfig (default-abi): New macro.
3772         (abi-includes): Likewise.
3773         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3774         $(abi-$(default-abi)-lib-soname) for soname if defined.
3775         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3776         abi-variants.
3777         * Makefile (installed-stubs): Likewise.
3778         * include/stubs-biarch.h: Removed.
3779         * scripts/lib-names.awk: Only handle one library at a time.
3780         * scripts/soversions.awk: Remove WORDSIZE support.
3781         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3782         entries.
3783         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3784         Removed.
3785         (syscall-list-default-condition): Likewise.
3786         (syscall-list-default-condition): Likewise.
3787         (syscall-list-includes): Likewise.
3788         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3789         syscall-list-* with abi-*.  Handle undefined abi-variants.
3790         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3791         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3792         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3793         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3794         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3795         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3796         Removed.
3797         (syscall-list-32-options): Likewise.
3798         (syscall-list-32-condition): Likewise.
3799         (syscall-list-64-options): Likewise.
3800         (syscall-list-64-condition): Likewise.
3801         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3802         macro.
3803         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3804         Renamed to ...
3805         (abi-*): This.
3806         (abi-64-ld-soname): New macro.
3807         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3808         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3809         Renamed to ...
3810         (abi-*): This.
3811         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3812         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3813
3814 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3815
3816         * sysdeps/unix/sysv/linux/kernel-features.h
3817         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3818         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3819         include <kernel-features.h>.
3820         [!__NR_ftruncate64]: Remove conditional code.
3821         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3822         [__NR_ftruncate64]: Make code unconditional.
3823         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3824         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3825         include <kernel-features.h>.
3826         [!__NR_ftruncate64]: Remove conditional code.
3827         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3828         [__NR_ftruncate64]: Make code unconditional.
3829         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3831         include <kernel-features.h>.
3832         [!__NR_ftruncate64]: Remove conditional code.
3833         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3834         [__NR_ftruncate64]: Make code unconditional.
3835         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3837         include <kernel-features.h>.
3838         [!__NR_ftruncate64]: Remove conditional code.
3839         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3840         [__NR_ftruncate64]: Make code unconditional.
3841         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3842
3843         * configure.in (libc_cv_fpie): Weaken to a compile test using
3844         LIBC_TRY_CC_OPTION.
3845         * configure: Regenerated.
3846
3847 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3848
3849         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3851         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3853         Refreshed.
3854         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3855         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3856         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3858         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3859         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3860         Refreshed.
3861
3862 2012-05-27  David S. Miller  <davem@davemloft.net>
3863
3864         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3865         (___Q_zero): New.
3866         (__Q_simulate_exceptions): Return void.  Change to simulate
3867         exceptions by writing into the %fsr.
3868         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3869         (__Qp_handle_exceptions): Likewise.
3870         (numbers): Delete.
3871         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3872         __Qp_handle_exceptions.
3873         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3874         __Qp_handle_exceptions.
3875         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3876         as unused and give dummy FP_RND_NEAREST initializer.
3877         (FP_INHIBIT_RESULTS): Define.
3878         (___Q_simulate_exceptions): Update declaration.
3879         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3880         formatting.
3881         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3882         as unused and give dummy FP_RND_NEAREST initializer.
3883         (__Qp_handle_exceptions): Update declaration.
3884         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3885         formatting.
3886
3887 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3888
3889         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3890         the temporary FPU control word.
3891         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3892         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3893         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3894         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3895         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3896         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3897         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3898         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3899         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3900         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3901         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3902
3903 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3904
3905         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3906         fields.
3907
3908 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3909
3910         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3911         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3912         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3913         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3914         Likewise.
3915         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3916         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3917         Likewise.
3918
3919 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3920
3921         * po/h.po: Update from translation team.
3922
3923 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3924
3925         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3926
3927         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3928         handling of denormals.
3929         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3930         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3931         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3932         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3933         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3934         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3935         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3936         Likewise.
3937
3938 2012-05-26  Marek Polacek  <polacek@redhat.com>
3939
3940         [BZ #14152]
3941         * math/libm-test.inc (fma_test): Don't always expect underflow
3942         exception.
3943
3944 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3945
3946         [BZ #12416]
3947         * elf/tst-execstack.c: Include stackinfo.h.
3948         (do_test): Adjust test case to ensure that pthread_getattr_np
3949         behaviour remains the same after marking stack executable.
3950
3951 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3952
3953         * sysdeps/unix/sysv/linux/kernel-features.h
3954         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3955         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3956         kernel-features.h.
3957         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3958         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3959         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3960         kernel-features.h.
3961         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3962         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3963
3964 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3965
3966         * configure.in: Define the default includes to being none.
3967         * configure: Regenerated.
3968
3969 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3970
3971         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3972         * sysdeps/x86_64/setjmp.S: Likewise.
3973         * sysdeps/i386/bsd-setjmp.S: Likewise.
3974         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3975         * sysdeps/i386/setjmp.S: Likewise.
3976         * sysdeps/i386/__longjmp.S: Likewise.
3977         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3978         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3979
3980         * include/stap-probe.h: New file.
3981         * configure.in: Handle --enable-systemtap.
3982         * configure: Regenerated.
3983         * config.h.in (USE_STAP_PROBE): New #undef.
3984         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3985         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3986         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3987
3988 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3989
3990         [BZ #13717]
3991         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3992         to 2.4.0 where earlier.
3993         * sysdeps/unix/sysv/linux/configure: Regenerated.
3994         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3995         <kernel-features.h>.
3996         [__ASSUME_32BITUIDS]: Make code unconditional.
3997         [!__ASSUME_32BITUIDS]: Remove conditional code.
3998         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3999         <kernel-features.h>.
4000         [__ASSUME_32BITUIDS]: Make code unconditional.
4001         [!__ASSUME_32BITUIDS]: Remove conditional code.
4002         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4003         [__ASSUME_32BITUIDS]: Make code unconditional.
4004         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4005         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4006         <kernel-features.h>.
4007         [__ASSUME_32BITUIDS]: Make code unconditional.
4008         [!__ASSUME_32BITUIDS]: Remove conditional code.
4009         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4010         <kernel-features.h>.
4011         [__ASSUME_32BITUIDS]: Make code unconditional.
4012         [!__ASSUME_32BITUIDS]: Remove conditional code.
4013         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4014         <kernel-features.h>.
4015         [__ASSUME_32BITUIDS]: Make code unconditional.
4016         [!__ASSUME_32BITUIDS]: Remove conditional code.
4017         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4018         <kernel-features.h>.
4019         [__ASSUME_32BITUIDS]: Make code unconditional.
4020         [!__ASSUME_32BITUIDS]: Remove conditional code.
4021         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4022         <kernel-features.h>.
4023         [__ASSUME_32BITUIDS]: Make code unconditional.
4024         [!__ASSUME_32BITUIDS]: Remove conditional code.
4025         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4026         <kernel-features.h>.
4027         [__ASSUME_32BITUIDS]: Make code unconditional.
4028         [!__ASSUME_32BITUIDS]: Remove conditional code.
4029         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4030         <kernel-features.h>.
4031         [__ASSUME_32BITUIDS]: Make code unconditional.
4032         [!__ASSUME_32BITUIDS]: Remove conditional code.
4033         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4034         <kernel-features.h>.
4035         [__ASSUME_32BITUIDS]: Make code unconditional.
4036         [!__ASSUME_32BITUIDS]: Remove conditional code.
4037         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4038         <kernel-features.h>.
4039         [__ASSUME_32BITUIDS]: Make code unconditional.
4040         [!__ASSUME_32BITUIDS]: Remove conditional code.
4041         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4042         <kernel-features.h>.
4043         [__ASSUME_32BITUIDS]: Make code unconditional.
4044         [!__ASSUME_32BITUIDS]: Remove conditional code.
4045         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4046         <kernel-features.h>.
4047         [__NR_setresgid] (__setresgid): Do not declare.
4048         [__ASSUME_32BITUIDS]: Make code unconditional.
4049         [!__ASSUME_32BITUIDS]: Remove conditional code.
4050         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4051         <kernel-features.h>.
4052         [__NR_setresuid] (__setresuid): Do not declare.
4053         [__ASSUME_32BITUIDS]: Make code unconditional.
4054         [!__ASSUME_32BITUIDS]: Remove conditional code.
4055         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4056         <kernel-features.h>.
4057         [__ASSUME_32BITUIDS]: Make code unconditional.
4058         [!__ASSUME_32BITUIDS]: Remove conditional code.
4059         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4060         <kernel-features.h>.
4061         [__ASSUME_32BITUIDS]: Make code unconditional.
4062         [!__ASSUME_32BITUIDS]: Remove conditional code.
4063         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4064         <kernel-features.h>.
4065         [__ASSUME_32BITUIDS]: Make code unconditional.
4066         [!__ASSUME_32BITUIDS]: Remove conditional code.
4067         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4068         <kernel-features.h>.
4069         [__ASSUME_32BITUIDS]: Make code unconditional.
4070         [!__ASSUME_32BITUIDS]: Remove conditional code.
4071         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4072         <kernel-features.h>.
4073         [__ASSUME_32BITUIDS]: Make code unconditional.
4074         [!__ASSUME_32BITUIDS]: Remove conditional code.
4075         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4076         <kernel-features.h>.
4077         [__ASSUME_32BITUIDS]: Make code unconditional.
4078         [!__ASSUME_32BITUIDS]: Remove conditional code.
4079         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4080         <kernel-features.h>.
4081         [__ASSUME_32BITUIDS]: Make code unconditional.
4082         [!__ASSUME_32BITUIDS]: Remove conditional code.
4083         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4084         <kernel-features.h>.
4085         [__ASSUME_32BITUIDS]: Make code unconditional.
4086         [!__ASSUME_32BITUIDS]: Remove conditional code.
4087         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4088         <kernel-features.h>.
4089         [__ASSUME_32BITUIDS]: Make code unconditional.
4090         [!__ASSUME_32BITUIDS]: Remove conditional code.
4091         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4092         <kernel-features.h>.
4093         [__ASSUME_32BITUIDS]: Make code unconditional.
4094         [!__ASSUME_32BITUIDS]: Remove conditional code.
4095         * sysdeps/unix/sysv/linux/kernel-features.h
4096         (__ASSUME_SETRESUID_SYSCALL): Remove.
4097         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4098         (__ASSUME_32BITUIDS): Likewise.
4099         (__ASSUME_LDT_WORKS): Likewise.
4100         (__ASSUME_O_DIRECTORY): Likewise.
4101         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4102         architecture but not kernel version.
4103         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4104         (__ASSUME_MMAP2_SYSCALL): Likewise.
4105         (__ASSUME_STAT64_SYSCALL): Likewise.
4106         (__ASSUME_IPC64): Likewise.
4107         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4108         <kernel-features.h>.
4109         [__ASSUME_32BITUIDS]: Make code unconditional.
4110         [!__ASSUME_32BITUIDS]: Remove conditional code.
4111         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4112         <kernel-features.h>.
4113         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4114         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4115         132096]: Remove conditional code.
4116         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4117         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.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/setegid.c: Do not include
4126         <kernel-features.h>.
4127         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4128         unconditional.
4129         (__setresgid): Do not declare.
4130         [__ASSUME_32BITUIDS]: Make code unconditional.
4131         [!__ASSUME_32BITUIDS]: Remove conditional code.
4132         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4133         <kernel-features.h>.
4134         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4135         unconditional.
4136         (__setresuid): Do not declare.
4137         [__ASSUME_32BITUIDS]: Make code unconditional.
4138         [!__ASSUME_32BITUIDS]: Remove conditional code.
4139         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4140         <kernel-features.h>.
4141         [__ASSUME_32BITUIDS]: Make code unconditional.
4142         [!__ASSUME_32BITUIDS]: Remove conditional code.
4143         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4144         <kernel-features.h>.
4145         [__ASSUME_32BITUIDS]: Make code unconditional.
4146         [!__ASSUME_32BITUIDS]: Remove conditional code.
4147
4148 2012-05-25  Richard Henderson  <rth@twiddle.net>
4149
4150         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4151         dl_hwcap to ifunc resolver.
4152         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4153         elf_ifunc_invoke.
4154         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4155         dl_hwcap to ifunc resolver.
4156         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4157
4158 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4159
4160         [BZ #14153]
4161         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4162         for |x| <= 2**-26, not 2**-57.
4163         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4164         exception.
4165
4166 2012-05-24  Jeff Law  <law@redhat.com>
4167
4168         * stdio-common/Makefile (tests): Add bug25.
4169         * stdio-common/bug25.c: New test.
4170
4171 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4172
4173         [BZ #13576]
4174         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4175         multiple of MALLOC_ALIGNMENT in size.
4176         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4177
4178 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4179
4180         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4181         Require >= 256.
4182         (FILENAME_MAX): Use macro-int-constant.
4183         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4184         (_IOFBF): Use macro-int-constant.
4185         (_IOLBF): Likewise.
4186         (_IONBF): Likewise.
4187         (SEEK_CUR): Likewise.
4188         (SEEK_END): Likewise.
4189         (SEEK_SET): Likewise.
4190         (TMP_MAX): Likewise.
4191         (EOF): Use macro-int-constant.  Require < 0.
4192         (NULL): Use macro-constant.  Require == 0.
4193         (stdin): Require type to be FILE *.
4194         (stdout): Likewise.
4195         (stderr): Likewise.
4196         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4197         macro-int-constant.
4198         (EXIT_SUCCESS): Likewise.
4199         (NULL): Use macro-constant.  Require == 0.
4200         (RAND_MAX): Use macro-int-constant.
4201         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4202         [C99-based standards] (strtof): Require function.
4203         [C99-based standards] (strtold): Likewise.
4204         [C99-based standards] (strtoll): Likewise.
4205         [C99-based standards] (strtoull): Likewise.
4206         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4207         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4208         [ISO || ISO99 || ISO11] (math.h): Likewise.
4209         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4210         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4211         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4212
4213 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4214
4215         [BZ #14132]
4216         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4217         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4218         * intl/dgettext.c (DCGETTEXT): Likewise.
4219         * intl/gettext.c (DCGETTEXT): Likewise.
4220         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4221         * posix/regex_internal.h (gettext): Likewise.
4222         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4223         Remove declaration.
4224         * include/argz.h (__argz_count_internal)
4225         (__argz_stringify_internal): Remove declaration.
4226         (__argz_count, __argz_stringify): Declare hidden proto.
4227         * intl/dcgettext.c: Remove use of INTDEF.
4228         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4229         * string/argz-stringify.c: Likewise.
4230         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4231         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4232         Declare hidden proto.
4233         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4234         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4235         Declare hidden proto.
4236         * include/stdio.h (__asprintf_internal): Don't declare.
4237         (__asprintf): Don't define as macro.  Declare hidden proto.
4238         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4239         (__fsetlocking): Declare hidden proto.
4240         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4241         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4242         hidden proto.
4243         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4244         (_IO_setlinebuf): Remove use of INTUSE.
4245         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4246         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4247         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4248         Remove declaration.
4249         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4250         (_IO_do_flush): Remove use of INTUSE.
4251         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4252         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4253         (_IO_adjust_column, _IO_least_wmarker)
4254         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4255         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4256         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4257         (_IO_default_doallocate, _IO_wdefault_doallocate)
4258         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4259         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4260         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4261         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4262         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4263         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4264         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4265         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4266         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4267         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4268         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4269         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4270         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4271         proto.
4272         (_IO_flush_all_internal, _IO_adjust_column_internal)
4273         (_IO_default_uflow_internal, _IO_default_finish_internal)
4274         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4275         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4276         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4277         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4278         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4279         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4280         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4281         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4282         (_IO_file_close_internal, _IO_file_close_it_internal)
4283         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4284         (_IO_file_init_internal, _IO_file_attach_internal)
4285         (_IO_file_fopen_internal, _IO_file_read_internal)
4286         (_IO_file_sync_internal, _IO_file_seek_internal)
4287         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4288         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4289         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4290         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4291         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4292         (_IO_list_all_internal, _IO_link_in_internal)
4293         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4294         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4295         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4296         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4297         (_IO_do_write_internal, _IO_padn_internal)
4298         (_IO_getline_info_internal, _IO_getline_internal)
4299         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4300         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4301         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4302         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4303         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4304         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4305         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4306         with libc_hidden_ver, remove use of INTUSE.
4307         * libio/genops.c: Likewise.
4308         * libio/freopen.c: Likewise.
4309         * libio/freopen64.c: Likewise.
4310         * libio/iofclose.c: Likewise.
4311         * libio/iofdopen.c: Likewise.
4312         * libio/iofflush.c: Likewise.
4313         * libio/iofflush_u.c: Likewise.
4314         * libio/iofgets.c: Likewise.
4315         * libio/iofgets_u.c: Likewise.
4316         * libio/iofopen.c: Likewise.
4317         * libio/iofopncook.c: Likewise.
4318         * libio/iofread.c: Likewise.
4319         * libio/iofread_u.c: Likewise.
4320         * libio/ioftell.c: Likewise.
4321         * libio/iofwrite.c: Likewise.
4322         * libio/iogetline.c: Likewise.
4323         * libio/iogets.c: Likewise.
4324         * libio/iogetwline.c: Likewise.
4325         * libio/iopadn.c: Likewise.
4326         * libio/iopopen.c: Likewise.
4327         * libio/ioseekoff.c: Likewise.
4328         * libio/ioseekpos.c: Likewise.
4329         * libio/iosetbuffer.c: Likewise.
4330         * libio/iosetvbuf.c: Likewise.
4331         * libio/ioungetc.c: Likewise.
4332         * libio/ioungetwc.c: Likewise.
4333         * libio/iovdprintf.c: Likewise.
4334         * libio/iovsprintf.c: Likewise.
4335         * libio/iovsscanf.c: Likewise.
4336         * libio/memstream.c: Likewise.
4337         * libio/obprintf.c: Likewise.
4338         * libio/oldfileops.c: Likewise.
4339         * libio/oldiofclose.c: Likewise.
4340         * libio/oldiofdopen.c: Likewise.
4341         * libio/oldiofopen.c: Likewise.
4342         * libio/oldiopopen.c: Likewise.
4343         * libio/oldstdfiles.c: Likewise.
4344         * libio/putc.c: Likewise.
4345         * libio/setbuf.c: Likewise.
4346         * libio/setlinebuf.c: Likewise.
4347         * libio/stdfiles.c: Likewise.
4348         * libio/strops.c: Likewise.
4349         * libio/vasprintf.c: Likewise.
4350         * libio/vscanf.c: Likewise.
4351         * libio/vsnprintf.c: Likewise.
4352         * libio/vswprintf.c: Likewise.
4353         * libio/wfiledoalloc.c: Likewise.
4354         * libio/wfileops.c: Likewise.
4355         * libio/wgenops.c: Likewise.
4356         * libio/wmemstream.c: Likewise.
4357         * libio/wstrops.c: Likewise.
4358         * libio/__fpurge.c: Likewise.
4359         * libio/__fsetlocking.c: Likewise.
4360         * assert/assert.c: Likewise.
4361         * debug/fgets_chk.c: Likewise.
4362         * debug/fgets_u_chk.c: Likewise.
4363         * debug/fread_chk.c: Likewise.
4364         * debug/fread_u_chk.c: Likewise.
4365         * debug/gets_chk.c: Likewise.
4366         * debug/obprintf_chk.c: Likewise.
4367         * debug/vasprintf_chk.c: Likewise.
4368         * debug/vdprintf_chk.c: Likewise.
4369         * debug/vsnprintf_chk.c: Likewise.
4370         * debug/vsprintf_chk.c: Likewise.
4371         * malloc/mtrace.c: Likewise.
4372         * misc/error.c: Likewise.
4373         * misc/syslog.c: Likewise.
4374         * stdio-common/asprintf.c: Likewise.
4375         * stdio-common/fxprintf.c: Likewise.
4376         * stdio-common/getw.c: Likewise.
4377         * stdio-common/isoc99_fscanf.c: Likewise.
4378         * stdio-common/isoc99_scanf.c: Likewise.
4379         * stdio-common/isoc99_vfscanf.c: Likewise.
4380         * stdio-common/isoc99_vscanf.c: Likewise.
4381         * stdio-common/isoc99_vsscanf.c: Likewise.
4382         * stdio-common/printf-prs.c: Likewise.
4383         * stdio-common/printf_fp.c: Likewise.
4384         * stdio-common/printf_fphex.c: Likewise.
4385         * stdio-common/printf_size.c: Likewise.
4386         * stdio-common/putw.c: Likewise.
4387         * stdio-common/scanf.c: Likewise.
4388         * stdio-common/sprintf.c: Likewise.
4389         * stdio-common/tmpfile.c: Likewise.
4390         * stdio-common/vfprintf.c: Likewise.
4391         * stdio-common/vfscanf.c: Likewise.
4392         * stdlib/strfmon_l.c: Likewise.
4393         * sunrpc/openchild.c: Likewise.
4394         * sunrpc/xdr_stdio.c: Likewise.
4395         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4396         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4397
4398 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4399
4400         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4401
4402         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4403         in the third column, to generate for the shared library an IFUNC
4404         that uses _dl_vdso_vsym.
4405         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4406         * Makeconfig (object-suffixes-noshared): New variable.
4407
4408         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4409         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4410         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4411         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4412
4413         [BZ #14132]
4414         * include/sys/time.h (__gettimeofday): Remove macro.
4415         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4416         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4417         Remove INTDEF.
4418         (__gettimeofday): Add libc_hidden_def.
4419         (gettimeofday): Add libc_hidden_weak.
4420         * sysdeps/mach/gettimeofday.c: Likewise.
4421         * sysdeps/posix/gettimeofday.c: Likewise.
4422         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4423         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4424         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4425         (__gettimeofday_internal): Remove strong_alias.
4426         (__gettimeofday): Add libc_hidden_def.
4427         (gettimeofday): Add libc_hidden_weak.
4428         * sysdeps/unix/syscalls.list (gettimeofday):
4429         Remove __gettimeofday_internal alias.
4430
4431 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4432             H.J. Lu  <hongjiu.lu@intel.com>
4433
4434         [BZ #12495]
4435         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4436         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4437         (largebin_index_32_big): New.
4438         (largebin_index): Use it for 16-byte alignment.
4439         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4440         correction with front_misalign.
4441
4442 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4443
4444         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4446         Likewise.
4447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4448         Likewise.
4449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4450         Likewise.
4451         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4452         Likewise.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4454         Likewise.
4455         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4456         Likewise.
4457         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4458         Likewise.
4459         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4460         Likewise.
4461         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4462         Likewise.
4463         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4464         Likewise.
4465         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4466         Likewise.
4467         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4468         Likewise.
4469
4470         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4471         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4472
4473 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4474
4475         [BZ #10846]
4476         [BZ #14036]
4477         * math/libm-test.inc (exp_test): Add test from bug 14036.
4478         (pow_test): Add test from bug 10846.
4479
4480         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4481         and other flags.
4482         (special_function): Do not include flags in test name.
4483         (parse_args): Likewise.
4484         * sysdeps/i386/fpu/libm-test-ulps: Update.
4485         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4486         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4487         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4488         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4489
4490         * math/gen-libm-test.pl (%beautify): Add entries for underflow
4491         exceptions.
4492         * math/libm-test.inc ("Philosophy"): Update comment about
4493         exception testing.
4494         (UNDERFLOW_EXCEPTION): New macro.
4495         (UNDERFLOW_EXCEPTION_OK): Likewise.
4496         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4497         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4498         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4499         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4500         (INVALID_EXCEPTION_OK): Update value.
4501         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4502         (OVERFLOW_EXCEPTION_OK): Likewise.
4503         (IGNORE_ZERO_INF_SIGN): Likewise.
4504         (test_exceptions): Handle underflow exceptions.
4505         (acos_test): Update for underflow exception expectations.
4506         (cexp_test): Likewise.
4507         (clog_test): Likewise.
4508         (clog10_test): Likewise.
4509         (csqrt_test): Likewise.
4510         (ctan_test): Likewise.
4511         (ctanh_test): Likewise.
4512         (exp_test): Likewise.
4513         (exp10_test): Likewise.
4514         (exp2_test): Likewise.
4515         (expm1_test): Likewise.
4516         (fma_test): Likewise.
4517         (j0_test): Likewise.
4518         (jn_test): Likewise.
4519         (nexttoward_test): Likewise.
4520         (pow_test): Likewise.
4521         (scalbn_test): Likewise.
4522         (scalbln_test): Likewise.
4523         (tan_test): Likewise.
4524         (y1_test): Likewise.
4525         * sysdeps/i386/fpu/libm-test-ulps: Update.
4526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4527
4528 2012-05-23  David S. Miller  <davem@davemloft.net>
4529
4530         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4531         (__libc_sigaction): Remove unused local variables.
4532
4533 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4534
4535         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4536
4537 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4538
4539         mktime: avoid signed integer overflow
4540         * time/mktime.c (__mktime_internal): Do not mishandle the case
4541         where diff == INT_MIN.
4542
4543         mktime: simplify computation of average
4544         * time/mktime.c (ranged_convert): Use new time_t_avg function
4545         instead of rolling our own (probably-slower) code.
4546
4547         mktime: do not assume signed right shift propagates sign bit
4548         * time/mktime.c (isdst_differ): New static function.
4549         (__mktime_internal): No need to normalize tm_isdst now.
4550         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4551         tm_isdst values.
4552
4553         mktime: merge another wrapv change from gnulib
4554         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4555         from some compilers.
4556
4557         mktime: remove incorrect attempt at unusual arithmetics
4558         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4559         The code didn't really work on such machines anyway.
4560         (TYPE_MINIMUM): Assume two's complement.
4561         (twos_complement_arithmetic): Verify that long_int and time_t
4562         are two's complement (or unsigned, in the latter case).
4563
4564         mktime: check signed shifts on long_int and time_t, too
4565         * time/mktime.c (SHR): Check that shifts work as desired
4566         on the types long_int and time_t too, as SHR is used on
4567         such types.
4568
4569         mktime: do not assume 'long' is wide enough
4570         * time/mktime.c (verify): Move decl up.
4571         (long_int): New type.
4572         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4573         to remove assumption in the code that 'long' is wide enough to
4574         store year values.  This assumption is not true on x32 and on
4575         some non-glibc platforms.
4576
4577         mktime: merge wrapv change from gnulib
4578         * time/mktime.c (WRAPV): New macro.
4579         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4580         (guess_time_tm, __mktime_internal): Do not assume that signed
4581         integer overflow wraps around; modern compilers generate code
4582         where this assumption is no longer valid.
4583
4584 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4585
4586         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4587         Replace "jmp L(pseudo_end)" with "ret".
4588         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4589         Likewise.
4590
4591 2012-05-23  Andreas Jaeger  <aj@suse.de>
4592
4593         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4594         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4595
4596 2012-05-23  Andreas Jaeger  <aj@suse.de>
4597             Maximilian Attems  <max@stro.at>
4598
4599         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4600         New macros.
4601
4602 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4603
4604         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4605         code so that pseudo_end is just ret and the stack pointer is
4606         correct also for static library in error case.
4607
4608 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4609
4610         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4611         move to syscalls.list.
4612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4616
4617         * manual/install.texi (Running make install): Do not mention Linux
4618         kernel version for which pt_chown is not needed.
4619         (Linux): Do not mention problems with nscd with 2.0 kernels.
4620         * INSTALL: Regenerated.
4621
4622 2012-05-23  Andreas Jaeger  <aj@suse.de>
4623
4624         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4625         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4626         macro.
4627         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4628         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4629         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4630         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4631         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4632         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4633         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4634         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4635         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4636         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4637         * sysdeps/unix/sysv/linux/bits/in.h
4638         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4639
4640 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4641
4642         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4643         (PREPARE_VERSION): Just use assert instead, it will be elided
4644         under [NDEBUG] anyway.
4645
4646 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4647
4648         * sysdeps/unix/sysv/linux/Makefile: Include
4649         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4650         (sysdep_routines): Remove sysctl.
4651         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4652         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4653         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4654         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4655         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4656
4657 2012-05-22  Andreas Jaeger  <aj@suse.de>
4658
4659         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4660         that pseudo_end is just ret and the stack pointer is correct also
4661         for static library in error case.
4662
4663 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4664
4665         [BZ #14122]
4666         * nss/nsswitch.c (defconfig_entries): New variable.
4667         (__nss_database_lookup): Don't leak defconfig entries.
4668         (nss_parse_service_list): Don't leak on error paths.
4669         (free_database_entries): New function.
4670         (free_defconfig): New function.
4671         (free_mem): Move common code to free_database_entries.
4672
4673 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4674
4675         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4676         Add arch_prctl.
4677         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4678
4679         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4680         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4681         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4682         New macro.
4683         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4684         (INTERNAL_SYSCALL_TYPES): Likewise.
4685         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4686         (LOAD_REGS_TYPES_[1-6]): Likewise.
4687         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4688         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4689
4690 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4691
4692         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4693         copysignl for GLIBC_2_0.
4694         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4695         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4696         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4697         logbl for GLIBC_2_0.
4698         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4699         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4700
4701 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4702
4703         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4704         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4705
4706         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4707         Use "neg %eax".
4708
4709         * time/mktime.c: Update copyright years.
4710
4711 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4712
4713         mktime: merge comment-quoting-style change from gnulib
4714         * time/mktime.c: Quote 'like this' in comments.
4715         The GNU coding standards suggest that we no longer quote `like this',
4716         as "`" and "'" are typically rendered asymmetrically nowadays.
4717         The typical gnulib style is to quote 'like this' when quoting
4718         code, and "like this" when quoting English.
4719
4720         * time/mktime.c (compile-command): Add "-I.".
4721
4722         mktime: merge mktime-internal.h change from gnulib
4723         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4724
4725         mktime: merge time_r change from gnulib
4726         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4727
4728         mktime: merge DEBUG change from gnulib
4729         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4730         case system <time.h> has a #define.
4731
4732         mktime: merge <sys/types.h> change from gnulib
4733         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4734         since <time.t> is now guaranteed to define time_t.
4735
4736         mktime: merge HAVE_CONFIG_H change from gnulib
4737         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4738
4739 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4740
4741         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4742         Use "neg %eax".
4743
4744         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4745         __rlim_t cast.
4746         (struct rusage): Use anonymous union to pad each field to
4747         __syscall_slong_t.
4748
4749 2012-05-21  David S. Miller  <davem@davemloft.net>
4750
4751         * Makefules (o-iterator): Remove .s cases.
4752         (compile-command.s): Delete.
4753         (COMPILE.s): Delete.
4754         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4755
4756 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4757
4758         * configure.in (libc_cv_predef_stack_protector): Only consider
4759         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4760         * configure: Regenerated.
4761
4762 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4763
4764         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4765         New macro.  Use R*LP on int and pointer.
4766         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4767         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4768         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4769         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4770
4771         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4772         [__WORDSIZE_TIME64_COMPAT32] instead of
4773         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4774         (struct utmp): Likewise.
4775         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4776         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4777         Renamed to ...
4778         (__WORDSIZE_TIME64_COMPAT32): This.
4779         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4780         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4781         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4782         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4783         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4784         (__WORDSIZE_TIME64_COMPAT32): New macro.
4785
4786 2012-05-21  Andreas Jaeger  <aj@suse.de>
4787
4788         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4789         only if [SHARED]. Add prototype for __wcschr_ia32.
4790
4791 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4792
4793         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4794         of %rbp unmolested in the jmp_buf while mangling the low bits.
4795         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4796         unmolested high bits of %rbp while demangling the low bits.
4797         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4798
4799 2012-05-21  Andreas Jaeger  <aj@suse.de>
4800
4801         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4802         * sunrpc/svc_simple.c: Use it for registerrpc.
4803         * sunrpc/xcrypt.c: Use it for passwd2des.
4804
4805         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4806
4807 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4808
4809         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4810         Don't define if [__SYSCALL_WORDSIZE != 32].
4811         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4812         New macro.
4813
4814 2012-05-21  Bruno Haible  <bruno@clisp.org>
4815             Andreas Jaeger  <aj@suse.de>
4816
4817         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4818         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4819         inptr and inend for must_buffer_ch.
4820         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4821         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4822         * stdio-common/Makefile (tests): Remove bug15.
4823         (bug15-ENV): Remove macro.
4824         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4825         anymore.
4826
4827 2012-05-19  Andreas Jaeger  <aj@suse.de>
4828             Roland McGrath  <roland@hack.frob.com>
4829
4830         * manual/contrib.texi: Completely rewritten. It contains now an
4831         alphabetical list of contributors and their contributions.
4832
4833 2012-05-21  Richard Henderson  <rth@twiddle.net>
4834
4835         * misc/getauxval.c (__getauxval): Use unsigned long int.
4836         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4837         (getauxval): Use unsigned long int.
4838
4839 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4840
4841         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4842
4843 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4844
4845         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4846         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4847         __alignof__ (long double).
4848
4849 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4850
4851         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4852
4853 2012-05-20  Richard Henderson  <rth@twiddle.net>
4854
4855         * misc/getauxval.c: New file.
4856         * misc/sys/auxv.h: New file.
4857         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4858         (routines): Add getauxval.
4859         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4860         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4861         * elf/dl-sysdep.c (_dl_auxv): Remove.
4862         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4863         * elf/dl-support.c (_dl_auxv): New variable.
4864         (_dl_aux_init): Initialize it.
4865         * manual/startup.texi (Auxiliary Vector): New node.
4866         * sysdeps/generic/bits/hwcap.h: New file.
4867         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4868         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4869         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4870         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4871         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4872         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4874         Update.
4875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4877         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4878         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4879         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4880         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4881         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4882         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4883
4884 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4885
4886         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4887
4888 2012-05-19  David S. Miller  <davem@davemloft.net>
4889
4890         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4891
4892 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4893
4894         [BZ #14123]
4895         * math/s_ccosh.c: Include <float.h>
4896         (__ccosh): Avoid internal overflow calculating sinh and cosh
4897         values before multiplying by sin and cos values.
4898         * math/s_ccoshf.c: Likewise.
4899         * math/s_ccoshl.c: Likewise.
4900         * math/s_csin.c: Likewise.
4901         * math/s_csinf.c: Likewise.
4902         * math/s_csinl.c: Likewise.
4903         * math/s_csinh.c: Likewise.
4904         * math/s_csinhf.c: Likewise.
4905         * math/s_csinhl.c: Likewise.
4906         * math/libm-test.inc (ccos_test): Add more tests.
4907         (ccosh_test): Likewise.
4908         (csin_test): Likewise.
4909         (csinh_test): Likewise.
4910         * sysdeps/i386/fpu/libm-test-ulps: Update.
4911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4912
4913 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4914
4915         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4916         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4917
4918         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4919
4920 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4921
4922         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4923         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4924         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4925         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4926         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4927         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4928         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4929         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4930         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4931         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4932         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4933         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4934         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4935         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4936         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4937         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4938         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4939         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4940         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4941         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4942         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4943         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4944         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4945         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4946         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4947         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4948         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4949         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4950         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4951         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4952         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4953
4954 2012-05-18  Andreas Jaeger  <aj@suse.de>
4955
4956         * csu/.gitignore: Delete.
4957
4958 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4959
4960         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4961         (timex): Use __syscall_slong_t.
4962
4963 2012-05-18  Andreas Jaeger  <aj@suse.de>
4964             Carlos O'Donell  <carlos_odonell@mentor.com>
4965
4966         * manual/install.texi (Configuring and compiling): Update
4967         description about files modified in the source directory.
4968         * INSTALL: Regenerated.
4969
4970 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4971
4972         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4973         value.  Use "or" to set return value to -1.
4974         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4975         negate return value.
4976
4977 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4978
4979         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4980         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4981         failure if the compiler has Graphite support disabled.
4982         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4983         Likewise.
4984         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4985         CFLAGS-memmove.c): Likewise.
4986         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4987         Likewise.
4988
4989 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4990
4991         * sysdeps/x86_64/x32/_itoa.h: New file.
4992
4993         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4994         getdents system call only if kernel and user dirents have the
4995         same d_ino and d_off.
4996
4997         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4998         LLONG_MAX != LONG_MAX.
4999         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5000         (_fitoa_word): Likewise.
5001
5002         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5003         years.
5004         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5005         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5006         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5007
5008         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5009         include <bits/wordsize.h>.  Check __x86_64__ instead of
5010         __WORDSIZE.
5011         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5012         if __x86_64__ is defined.  Use anonymous union on fpstate.
5013
5014         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5015         anonymous union.
5016
5017 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5018
5019         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5020         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5021         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5022         Refer to _rtld_local_ro instead of _rtld_global_ro.
5023         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5024         Likewise.
5025         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5026         Likewise.
5027         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5028         Likewise.
5029         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5030         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5031         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5032
5033         * sysdeps/powerpc/powerpc32/dl-machine.c
5034         (__elf_machine_runtime_setup) [PROF]: Don't reference
5035         _dl_prof_resolve.
5036
5037 2012-05-18  Andreas Jaeger  <aj@suse.de>
5038
5039         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5040         function only available for GCCs before 3.4 since GCC 3.4
5041         introduced a builtin.
5042         (lrint): Likewise.
5043         (llrintf): Likewise.
5044         (llrint): Likewise.
5045         (fmaxf): Likewise.
5046         (fmax): Likewise.
5047         (fminf): Likewise.
5048         (fmin): Likewise.
5049         (rint): Likewise.
5050         (rintf): Likewise.
5051         (nearbyint): Likewise.
5052         (nearbyintf): Likewise.
5053         (ceil): Likewise.
5054         (ceilf): Likewise.
5055         (floor): Likewise.
5056         (floorf): Likewise.
5057
5058 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5059
5060         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5061         on both fields and cast pointer to __syscall_ulong_t.
5062
5063         * bits/types.h (__fsword_t): New type.
5064         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5065         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5066         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5067         (__FSWORD_T_TYPE): Likewise.
5068         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5069         (__FSWORD_T_TYPE): Likewise.
5070         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5071         (__FSWORD_T_TYPE): Likewise.
5072         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5073         (__FSWORD_T_TYPE): Likewise.
5074         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5075         __SWORD_TYPE with __fsword_t.
5076         (statfs64): Likewise.
5077
5078 2012-05-17  David S. Miller  <davem@davemloft.net>
5079
5080         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5081
5082 2012-05-17  Andreas Jaeger  <aj@suse.de>
5083
5084         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5085         warning.
5086
5087 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5088
5089         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5090
5091 2012-05-17  Andreas Jaeger  <aj@suse.de>
5092
5093         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5094         when it is used.
5095
5096 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5097
5098         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5099
5100 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5101
5102         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5103         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5104
5105 2012-05-17  Andreas Jaeger  <aj@suse.de>
5106             Carlos O'Donell  <carlos_odonell@mentor.com>
5107
5108         [BZ #14059]
5109         * sysdeps/x86_64/multiarch/init-arch.h
5110         (bit_YMM_Usable): Rename to...
5111         (bit_AVX_Usable): ... this.
5112         (bit_FMA4_Usable): New macro.
5113         (bit_XMM_state): New macro.
5114         (bit_YMM_state): New macro.
5115         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5116         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5117         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5118         (CPUID_OSXSAVE): New macro.
5119         (CPUID_AVX): New macro.
5120         (CPUID_FMA4): New macro.
5121         (index_YMM_Usable): Rename to...
5122         (index_AVX_Usable): ... this.
5123         (HAS_AVX): Use HAS_ARCH_FEATURE.
5124         (HAS_FMA4): Likewise.
5125         (HAS_YMM_USABLE): Remove.
5126         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5127         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5128         are present.
5129         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5130         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5131         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5132         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5133         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5134
5135 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5136
5137         * math/libm-test.c: Support platforms without multiple rounding modes.
5138         * math/bug-nextafter.c: Support platforms without FP exceptions.
5139         * math/bug-nexttoward.c: Likewise.
5140         * math/test-fenv.c: Likewise.
5141         * math/test-misc.c: Likewise.
5142         * stdlib/bug-getcontext.c: Likewise.
5143
5144 2012-05-17  Andreas Jaeger  <aj@suse.de>
5145
5146         * manual/examples/search.c (critter_cmp): Change signature to
5147         avoid warnings.
5148         * manual/string.texi (Collation Functions): Likewise.
5149
5150 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5151
5152         * bits/types.h: Fold copyright years.
5153         * bits/typesizes.h: Likewise.
5154         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5155         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5156         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5157         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5158         * time/time.h: Likewise.
5159
5160 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5161
5162         [BZ #208]
5163         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5164         in instead of returning them.  Return void.
5165         (__libc_mallinfo): Accumulate over all arenas.
5166         (__malloc_stats): Adjust for change in int_mallinfo interface.
5167
5168 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5169
5170         [BZ #10375]
5171         * configure.in (NM): Add AC_CHECK_TOOL for it.
5172         (libc_extra_cflags): New substituted variable.
5173         Check for -fstack-protector being used implicitly.
5174         * configure: Regenerated.
5175         * config.make.in (config-extra-cflags): New variable,
5176         gets @libc_extra_cflags@.
5177         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5178
5179         [BZ #10375]
5180         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5181         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5182         * configure: Regenerated.
5183         * config.make.in (CPPUNDEFS): New substituted variable.
5184         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5185         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5186         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5187
5188 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5189
5190         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5191         (mq_attr): Use __syscall_slong_t.
5192
5193 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5194
5195         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5196         Check __x86_64__ instead of __WORDSIZE.
5197         (_STAT_VER_LINUX): Likewise.
5198         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5199         __syscall_ulong_t and __syscall_slong_t.
5200         (stat64): Likewise.
5201
5202 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5203
5204         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5205
5206 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5207
5208         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5209
5210 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5211
5212         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5213         __syscall_ulong_t.
5214
5215         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5216         include <bits/wordsize.h>.  Check __x86_64__ instead of
5217         __WORDSIZE.
5218         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5219         defined.
5220         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5221
5222         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5223         include <bits/wordsize.h>.  Check __x86_64__ instead of
5224         __WORDSIZE.
5225         (user_regs_struct): Use "__extension__ unsigned long long"
5226         instead of "unsigned long" if __x86_64__ is defined.
5227         (user): Likewise.  Pad after pointer field if __ILP32__ is
5228         defined.
5229
5230 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5231
5232         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5233         versions 5 to 9.
5234         * configure: Regenerated.
5235         * manual/install.texi (texinfo): Increase version requirement to
5236         4.5 or later.
5237         * INSTALL: Regenerated.
5238
5239         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5240
5241 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5242
5243         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5244
5245         * sysdeps/x86_64/x32/ffs.c: New file.
5246
5247         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5248         __syscall_ulong_t.
5249         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5250         defined.  Use __syscall_ulong_t.
5251         (shminfo): Use __syscall_ulong_t.
5252         (shm_info): Likewise.
5253
5254         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5255         __syscall_ulong_t.
5256
5257         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5258         <bits/wordsize.h>.
5259         (msgqnum_t): Use __syscall_ulong_t.
5260         (msglen_t): Likewise.
5261         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5262         __syscall_ulong_t.
5263
5264         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5265         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5266
5267         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5268
5269         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5270         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5271
5272         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5273         __syscall_slong_t.
5274
5275         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5276         include <bits/wordsize.h>.  Check __x86_64__ instead of
5277         __WORDSIZE.
5278
5279         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5280         "unsigned long long int" if __x86_64__ is defined.
5281         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5282
5283         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5284         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5285         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5286
5287         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5288         <stdint.h>.
5289         (GET_PC): Cast to uintptr_t first.
5290         (GET_FRAME): Likewise.
5291         (GET_STACK): Likewise.
5292
5293         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5294         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5295         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5296         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5297         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5298         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5299         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5300         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5301         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5302         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5303         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5304         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5305         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5306         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5307         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5308         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5309         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5310         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5311         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5312         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5313         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5314         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5315         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5316         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5317         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5318         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5319         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5320         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5321         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5322
5323 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5324
5325         * Makerules (+depfiles): Also collect depfiles from .oS in
5326         $(extra-objs).
5327         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5328         .oS, $(libnldbl-routines)).
5329
5330         * Makerules (native-compile-mkdep-flags): Define.
5331         * sunrpc/Makefile (extra-objs): Add $(addprefix
5332         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5333         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5334         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5335         calling $(make-target-directory).
5336
5337 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5338
5339         * bits/types.h (__snseconds_t): Removed.
5340         * time/time.h (struct timespec): Replace __snseconds_t with
5341         __syscall_slong_t.
5342         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5343         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5344         Likewise.
5345         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5346         (__SNSECONDS_T_TYPE): Likewise.
5347         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5348         (__SNSECONDS_T_TYPE): Likewise.
5349         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5350         (__SNSECONDS_T_TYPE): Likewise.
5351
5352 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5353
5354         * sysdeps/mach/hurd/bits/typesizes.h
5355         (__SYSCALL_SLONG_TYPE): New macro.
5356         (__SYSCALL_ULONG_TYPE): Likewise.
5357
5358 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5359
5360         * bits/types.h (__syscall_slong_t): New type.
5361         (__syscall_ulong_t): Likewise.
5362
5363         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5364         (__SYSCALL_ULONG_TYPE): Likewise.
5365         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5366         (__SYSCALL_SLONG_TYPE): Likewise.
5367         (__SYSCALL_ULONG_TYPE): Likewise.
5368         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5369         (__SYSCALL_SLONG_TYPE): Likewise.
5370         (__SYSCALL_ULONG_TYPE): Likewise.
5371         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5372         (__SYSCALL_SLONG_TYPE): Likewise.
5373         (__SYSCALL_ULONG_TYPE): Likewise.
5374
5375 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5376
5377         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5378         Add sigaltstack-offsets.sym.
5379         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5380         <sigaltstack-offsets.h>.
5381         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5382         longjmp_msg pointer.
5383         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5384         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5385         signal stack.
5386         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5387
5388 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5389
5390         * elf/stackguard-macros.h: Remove file.
5391         * sysdeps/generic/stackguard-macros.h: New file.
5392         * sysdeps/i386/stackguard-macros.h: Likewise.
5393         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5394         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5395         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5396         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5397         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5398         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5399         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5400         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5401         <elf/stackguard-macros.h>.
5402
5403         [BZ #14109]
5404         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5405         __aligned__ in attribute.
5406         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5407         (gregset_t): Likewise.
5408
5409 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5410
5411         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5412         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5413         * sysdeps/x86_64/x32/Implies-after: New file.
5414
5415 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5416
5417         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5418         and access return value for _dl_profile_fixup.  Use R10_LP to
5419         load frame size.
5420
5421 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5422
5423         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5424
5425 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5426
5427         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5428         * sysdeps/x86_64/x32/sysdep.h: New file.
5429
5430 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5431
5432         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5433         * sysdeps/x86_64/setjmp.S: Likewise.
5434
5435 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5436
5437         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5438         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5439         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5440         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5441         remove unused global constant.
5442
5443 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5444
5445         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5446         include of <not-cancel.h>.
5447
5448 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5449
5450         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5451
5452 2012-05-15  Jeff Law  <law@redhat.com>
5453             Andreas Jaeger  <aj@suse.de>
5454
5455         [BZ #13594]
5456         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5457         out from...
5458         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5459         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5460         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5461         code changing __hst_map_handle.map.
5462
5463 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5464
5465         * configure.in (sysnames): Look for Implies-before and Implies-after
5466         files.
5467         * configure: Regenerated.
5468
5469 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5470
5471         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5472         8-byte data alignment with LP_SIZE alignment.
5473
5474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5475
5476         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5477         into R10_LP.
5478
5479 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5480
5481         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5482
5483 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5484
5485         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5486         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5487         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5488         Likewise.
5489         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5490
5491 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5492
5493         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5494         (stackinfo_sub_sp): Likewise.
5495
5496 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5497
5498         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5499         RAX_LP.
5500
5501 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5502
5503         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5504         into R*_LP.
5505
5506 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5507
5508         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5509         sizes into R*_LP.
5510
5511 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5512
5513         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5514
5515 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5516
5517         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5518         into R11_LP and load __x86_64_shared_cache_size_half into
5519         R8_LP.
5520
5521 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5522
5523         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5524         R8_LP.
5525
5526 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5527
5528         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5529         logb for POWER7.
5530         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5531         logbf for POWER7.
5532         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5533         logbl for POWER7.
5534         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5535         powerpc32/power7/fpu/s_logb.c via #include.
5536         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5537         powerpc32/power7/fpu/s_logbf.c via #include.
5538         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5539         powerpc32/power7/fpu/s_logbl.c via #include.
5540
5541 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5542
5543         * README.libm: Remove file.
5544
5545 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5546
5547         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5548         count for x32.  Use R*_LP and omit operand-size suffix.
5549
5550 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5551
5552         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5553         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5554         * sysdeps/x86_64/x32/shlib-versions: New file.
5555
5556 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5557
5558         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5559         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5560         Use _dl_fatal_printf instead.
5561
5562 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5563
5564         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5565         set if not set by the user.  Do not allow for being unset.
5566         * sysdeps/unix/sysv/linux/configure: Regenerated.
5567
5568 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5569
5570         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5571         the `q' suffix from lea and replace .quad with ASM_ADDR.
5572
5573 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5574
5575         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5576         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5577         instead of $17.
5578         (PTR_DEMANGLE): Likewise.
5579
5580 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5581
5582         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5583         (LP_OP): Likewise.
5584         (ASM_ADDR): Likewise.
5585         (RAX_LP): Likewise.
5586         (RBP_LP): Likewise.
5587         (RBX_LP): Likewise.
5588         (RCX_LP): Likewise.
5589         (RDI_LP): Likewise.
5590         (RSI_LP): Likewise.
5591         (RSP_LP): Likewise.
5592         (R8_LP): Likewise.
5593         (R9_LP): Likewise.
5594         (R10_LP): Likewise.
5595         (R10_LP): Likewise.
5596         (R11_LP): Likewise.
5597         (R12_LP): Likewise.
5598         (R13_LP): Likewise.
5599         (R14_LP): Likewise.
5600         (R15_LP): Likewise.
5601
5602 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5603
5604         * sysdeps/x86_64/x32/dl-machine.h: New file.
5605
5606 2012-05-14  Andreas Jaeger  <aj@suse.de>
5607
5608         * manual/Makefile (subdir): Remove export of subdir.
5609         (all): Remove target.
5610         (.PHONY): Remove all from list.
5611         (mkinstalldirs): Remove.
5612         (.PHONY): Remove installdirs from list.
5613         ($(inst_infodir)/libc.info): Use make-target-directory.
5614         (installdirs): Remove.
5615         (subdir_%): Remove.
5616         (glibc-targets): Remove.
5617         (lib): Remove.
5618         (stubs): Remove.
5619         ($(objpfx)stubs ../po/manual.pot): Remove.
5620         ($(objpfx)stamp%): Remove.
5621         (make-target-directory): Remove.
5622         (subdir_install): Remove.
5623         (routines): Remove.
5624         (aux): Remove.
5625         (sources): Remove.
5626         (objects): Remove.
5627         (headers): Remove.
5628
5629         [BZ #13750]
5630         * manual/.gitignore: Remove, it's not needed anymore.
5631         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5632         all files in it.
5633         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5634         directory.
5635         (texis): Renamed to $(objpfx)texis.
5636         (texis-path): New, contains path to generated files.
5637         (chapters.%): Use texis-path for complete path, add extra argument
5638         libc-texinfo.sh.
5639         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5640         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5641         (summary,texi, stamp-summary): Use complete path of
5642         files. Generate files in build dir.
5643         (dir-add.texi): Build in build dir.
5644         (libm-err.texi,stamp-libm-err): Likewise.
5645         (version.texi, stamp-version): Likewise.
5646         (.%c.texi): Likewise.
5647         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5648         (mostlyclean): Remove target.
5649         (realclean): Remove target.
5650         (generated): Add new variable with contents from mostlyclean and
5651         realclean, remove entries duplicated in common-mostlyclean, add
5652         stamp-libm-err and stamp-version.
5653         (generated-dirs): Add libc directory.
5654         ($(inst_infodir)/libc.info): Install files from build dir.
5655
5656         * manual/install.texi (Configuring and compiling): Adjust since
5657         the info files are not part of the tar ball anymore.
5658
5659 2012-05-14  Andreas Jaeger  <aj@suse.de>
5660
5661         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5662         variable.
5663
5664 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5665
5666         [BZ #13717]
5667         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5668         to 2.2.0 where earlier.
5669         * sysdeps/unix/sysv/linux/configure: Regenerated.
5670         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5671         Remove conditional code.
5672         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5673         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5674         Remove conditional code.
5675         [!__NR_lchown]: Likewise.
5676         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5677         [__NR_lchown]: Likewise.
5678         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5679         comment referencing __ASSUME_LCHOWN_SYSCALL.
5680         * sysdeps/unix/sysv/linux/i386/sigaction.c
5681         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5682         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5683         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5684         Remove conditional code.
5685         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5686         (__protocol_available): Remove #if 0 code.
5687         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5688         conditional code.
5689         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5690         * sysdeps/unix/sysv/linux/kernel-features.h
5691         (__ASSUME_GETCWD_SYSCALL): Don't define.
5692         (__ASSUME_REALTIME_SIGNALS): Likewise.
5693         (__ASSUME_PREAD_SYSCALL): Likewise.
5694         (__ASSUME_PWRITE_SYSCALL): Likewise.
5695         (__ASSUME_POLL_SYSCALL): Likewise.
5696         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5697         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5698         non-SPARC.
5699         (__ASSUME_SIOCGIFNAME): Don't define.
5700         (__ASSUME_MSG_NOSIGNAL): Likewise.
5701         (__ASSUME_SENDFILE): Define unconditionally.
5702         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5703         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5704         conditional code.
5705         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5706         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5707         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5708         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5709         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5710         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5711         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5713         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5714         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5716         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5717         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5719         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5720         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5722         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5723         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5725         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5726         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5728         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5729         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5731         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5732         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5734         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5735         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5736         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5737         Remove conditional code.
5738         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5739         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5740         Remove conditional code.
5741         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5742         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5743         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5744         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5745         Remove conditional code.
5746         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5747         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5748         Remove conditional code.
5749         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5750         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5751         Remove conditional code.
5752         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5753         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5754         Remove conditional code.
5755         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5756         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5757         Remove conditional code.
5758         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5759         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5760         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5761         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5762         * sysdeps/unix/sysv/linux/sigaction.c
5763         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5764         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5765         * sysdeps/unix/sysv/linux/sigpending.c
5766         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5767         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5768         * sysdeps/unix/sysv/linux/sigprocmask.c
5769         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5770         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5771         * sysdeps/unix/sysv/linux/sigsuspend.c
5772         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5773         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5774         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5775         (__libc_missing_rt_sigs): Remove.
5776         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5777         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5778         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5779         Remove conditional code.
5780         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5781         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5782         return 1.
5783         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5784         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5785         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5786         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5787
5788 2012-05-14  Andreas Jaeger  <aj@suse.de>
5789
5790         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5791         it's not used in glibc.
5792         (__coshm1): Likewise.
5793         (__acosh1p): Likewise.
5794         (__sgn): Likewise.
5795
5796         * manual/string.texi (Copying and Concatenation): Add missing
5797         variable in concat example.
5798         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5799
5800 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5801
5802         [BZ #14103]
5803         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5804         __builtin_clzl with __builtin_clzll.
5805
5806 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5807
5808         [BZ #14104]
5809         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5810         libc_freeres_ptr.
5811
5812 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5813
5814         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5815         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5816         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5817         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5818
5819 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5820
5821         * NEWS: Update ia64 info.
5822
5823 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5824
5825         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5826         used as bcopy.
5827
5828 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5829
5830         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5831         * sysdeps/unix/syscalls.list (dup3): Likewise.
5832         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5833         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5834
5835 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5836
5837         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5838         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5839
5840 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5841
5842         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5843         thread pointer.
5844         (TLS_IE): Use mov/add instead of movq/addq to load thread
5845         pointer.
5846         (TLS_GD_PREFIX): New.
5847         (TLS_GD): Use it.
5848
5849 2012-05-11  David S. Miller  <davem@davemloft.net>
5850
5851         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5852         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5853         (_FPU_SETCW): Likewise.
5854
5855 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5856
5857         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5858         is 32-byte aligned.
5859
5860 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5861
5862         [BZ #11837]
5863         * iconvdata/gb18030.c: Update tables.
5864         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5865         characters specially.
5866         (BODY for TO_LOOP): Add encoding of missing ranges.
5867
5868 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5869
5870         [BZ #13673]
5871         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5872         * sysdeps/mach/hurd/dup3.c: Likewise.
5873         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5874         * sysdeps/powerpc/memmove.c:: Likewise.
5875
5876 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5877
5878         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5879         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5880
5881 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5882
5883         * elf/elf.h (R_X86_64_RELATIVE64): New.
5884         (R_X86_64_NUM): Updated.
5885         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5886         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5887         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5888         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5889         tst-quad1pie tst-quad2pie
5890         (modules-names): Add tst-quadmod1 tst-quadmod2.
5891         ($(objpfx)tst-quad1): New dependency.
5892         ($(objpfx)tst-quad2): Likewise.
5893         ($(objpfx)tst-quad1pie): Likewise.
5894         ($(objpfx)tst-quad2pie): Likewise.
5895         * sysdeps/x86_64/tst-quad1.c: New file.
5896         * sysdeps/x86_64/tst-quad1pie.c: New file.
5897         * sysdeps/x86_64/tst-quad2.c: Likewise.
5898         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5899         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5900         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5901         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5902         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5903
5904 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5905
5906         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5907         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5908         * streams/stropts.h (t_scalar_t): Define type.
5909
5910         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5911         (_PATH_PRESERVE): Set to "/var/lib".
5912         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5913
5914         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5915         instead of int.
5916
5917         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5918         if __dir_mkfile succeeded.
5919
5920         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5921         checking for _hurd_dtablesize.  Unlock it right after having
5922         finished _hurd_dtable allocation.
5923
5924 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5925
5926         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5927         * sysdeps/mach/hurd/configure: Regenerated.
5928         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5929         special-casing to...
5930         * sysdeps/gnu/configure.in: ... this new file.
5931         * sysdeps/unix/sysv/linux/configure: Regenerated.
5932         * sysdeps/gnu/configure: New generated file.
5933
5934         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5935         for Linux: use nsec instead of usec, as well as:
5936         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5937         members of type struct timespec.
5938         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5939         New macros.
5940         (struct stat64): Likewise.
5941         (_STATBUF_ST_NSEC): New macro.
5942         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5943
5944         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5945         __strtoul_internal rather than strtoul.
5946
5947 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5948
5949         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5950         and reject them.
5951
5952 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5953
5954         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5955         which preserves existing values.
5956         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5957
5958 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5959
5960         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5961         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5962         greater than FD_SETSIZE.
5963
5964 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5965
5966         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5967         allocated, call __vm_protect to finish enabling the existing space, and
5968         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5969         allocate the remainder.
5970
5971 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5972
5973         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5974         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5975
5976 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5977
5978         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5979         sysdeps/mach/hurd/readlink.c.
5980
5981         * posix/tst-sysconf.c (posix_options): Only use
5982         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5983         _POSIX_SYNCHRONIZED_IO when they are defined
5984         * sysdeps/mach/hurd/bits/posix_opt.h:
5985         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5986         (_XOPEN_REALTIME): Undefine macro.
5987         (_XOPEN_REALTIME_THREADS): Undefine macro.
5988         (_XOPEN_SHM): Undefine macro.
5989         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5990         macro to -1.
5991         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5992         macro to -1.
5993         (_POSIX_ASYNC_IO): Undefine macro.
5994         (_POSIX_PRIORITIZED_IO): Undefine macro.
5995         (_POSIX_SPIN_LOCKS): Define macro to -1.
5996
5997         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5998         SA_NODEFER, SA_RESETHAND.
5999         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6000         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6001         F_DUPFD_CLOEXEC.
6002
6003 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6004
6005         * elf/Makefile (pldd-modules): Define unconditionally.
6006
6007 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6008
6009         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6010
6011 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6012
6013         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6014         Return ENOENT when name is empty.
6015         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6016
6017 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6018
6019         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6020
6021         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6022
6023 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6024
6025         Fix mlock in all cases except non-readable pages.
6026         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6027         instead of VM_PROT_ALL as parameter to __vm_wire function.
6028
6029         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6030         (__mkdir): When path is `/', just fail with EEXIST.
6031         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6032
6033 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6034
6035         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6036         <sys/uio.h> (for writev).
6037         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6038         and <sys/param.h> (for MIN).
6039
6040 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6041
6042         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6043         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6044         if interrupted.
6045
6046 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6047
6048         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6049         Depend on against $(link-rpcuserlibs).
6050
6051 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6052
6053         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6054         (__libc_stack_end): Do not use attribute_relro.
6055         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6056         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6057         to libthread-provided value.
6058         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6059         attribute_relro.
6060
6061 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6062
6063         [BZ #3748]
6064         * bits/libc-lock.h (__libc_once_get): New macro.
6065         * sysdeps/mach/bits/libc-lock.h: Likewise.
6066         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6067         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6068         instead of using implementation details.
6069
6070         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6071         * libio/freopen.c: Likewise.
6072         * libio/freopen64.c: Likewise.
6073         * misc/syslog.c: Likewise.
6074         * nscd/connections.c: Likewise.
6075         * nscd/netgroupcache.c: Likewise.
6076         * sysdeps/posix/getcwd.c: Likewise.
6077
6078 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6079
6080         * math/w_ilogbf.c: Add #include <limits.h>.
6081
6082 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6083
6084         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6085         path instead of returning without unlocking.
6086
6087         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6088         immediate-write ioctls.
6089         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6090
6091 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6092
6093         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6094         __builtin_frame_address instead of making assumptions about the
6095         location of the return address relative to DATA.  Force early load of
6096         the return address.
6097         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6098         __builtin_frame_address.
6099
6100         dup3 for GNU Hurd.
6101         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6102         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6103         implement dup3 and do some further code clean-ups.
6104         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6105         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6106
6107 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6108
6109         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6110
6111         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6112         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6113         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6114         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6115         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6116         d->port.lock.
6117
6118         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6119         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6120         when handler == SIG_ERR, not when handler != SIG_ERR.
6121
6122 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6123
6124         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6125         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6126         definitions.
6127
6128         accept4 for GNU Hurd.
6129         * include/sys/socket.h (__libc_accept4): New prototype.
6130         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6131         to implement __libc_accept4.
6132         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6133         __libc_accept4.
6134         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6135
6136         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6137         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6138         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6139         signal-defines.sym.
6140
6141 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6142
6143         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6144
6145 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6146
6147         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6148         assertion on O_CLOEXEC flag.
6149         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6150         * hurd/intern-fd.c: Likewise.
6151         * hurd/port2fd.c: Likewise.
6152
6153 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6154
6155         [BZ #3906]
6156         * bits/in.h (IPV6_PKTINFO): Define new macro.
6157         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6158
6159 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6160
6161         [BZ #13954]
6162         [BZ #13955]
6163         [BZ #13956]
6164         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6165         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6166         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6167         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6168         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6169         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6170         * math/libm-test.inc (logb_test) : Additional logb tests.
6171
6172 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6173             Andreas Jaeger  <aj@suse.de>
6174
6175         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6176         * configure: Regenerated.
6177         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6178         * config.make.in (link-obsolete-rpc): New substituted variable.
6179         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6180         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6181         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6182         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6183         so that libc.a contains the symbols.
6184         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6185         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6186         * sunrpc/auth_none.c: Likewise.
6187         * sunrpc/auth_unix.c: Likewise.
6188         * sunrpc/authdes_prot.c: Likewise.
6189         * sunrpc/authuxprot.c: Likewise.
6190         * sunrpc/clnt_gen.c: Likewise.
6191         * sunrpc/clnt_perr.c: Likewise.
6192         * sunrpc/clnt_raw.c: Likewise.
6193         * sunrpc/clnt_simp.c: Likewise.
6194         * sunrpc/clnt_tcp.c: Likewise.
6195         * sunrpc/clnt_udp.c: Likewise.
6196         * sunrpc/clnt_unix.c: Likewise.
6197         * sunrpc/des_crypt.c: Likewise.
6198         * sunrpc/des_soft.c: Likewise.
6199         * sunrpc/get_myaddr.c: Likewise.
6200         * sunrpc/key_call.c: Likewise.
6201         * sunrpc/key_prot.c: Likewise.
6202         * sunrpc/netname.c: Likewise.
6203         * sunrpc/pm_getmaps.c: Likewise.
6204         * sunrpc/pm_getport.c: Likewise.
6205         * sunrpc/pmap_clnt.c: Likewise.
6206         * sunrpc/pmap_prot.c: Likewise.
6207         * sunrpc/pmap_prot2.c: Likewise.
6208         * sunrpc/pmap_rmt.c: Likewise.
6209         * sunrpc/publickey.c: Likewise.
6210         * sunrpc/rpc_cmsg.c: Likewise.
6211         * sunrpc/rpc_common.c: Likewise.
6212         * sunrpc/rpc_dtable.c: Likewise.
6213         * sunrpc/rpc_prot.c: Likewise.
6214         * sunrpc/rpc_thread.c: Likewise.
6215         * sunrpc/rtime.c: Likewise.
6216         * sunrpc/svc.c: Likewise.
6217         * sunrpc/svc_auth.c: Likewise.
6218         * sunrpc/svc_raw.c: Likewise.
6219         * sunrpc/svc_run.c: Likewise.
6220         * sunrpc/svc_tcp.c: Likewise.
6221         * sunrpc/svc_udp.c: Likewise.
6222         * sunrpc/svc_unix.c: Likewise.
6223         * sunrpc/svcauth_des.c: Likewise.
6224         * sunrpc/xcrypt.c: Likewise.
6225         * sunrpc/xdr.c: Likewise.
6226         * sunrpc/xdr_array.c: Likewise.
6227         * sunrpc/xdr_float.c: Likewise.
6228         * sunrpc/xdr_intXX_t.c: Likewise.
6229         * sunrpc/xdr_mem.c: Likewise.
6230         * sunrpc/xdr_rec.c: Likewise.
6231         * sunrpc/xdr_ref.c: Likewise.
6232         * sunrpc/xdr_sizeof.c: Likewise.
6233         * sunrpc/xdr_stdio.c: Likewise.
6234
6235 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6236
6237         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6238         change.  Update copyright years.
6239
6240 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6241
6242         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6243
6244 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6245             Joseph Myers  <joseph@codesourcery.com>
6246             Paul Pluzhnikov  <ppluzhnikov@google.com>
6247
6248         [BZ #14012]
6249         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6250         requiring rpcgen.
6251         [cross-compiling] (extra-libs): Likewise.
6252         [cross-compiling] (extra-libs-others): Likewise.
6253         [cross-compiling] (librpcsvc-routines): Likewise.
6254         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6255         [cross-compiling] (omit-deps): Likewise.
6256         (sunrpc-CPPFLAGS): New variable.
6257         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6258         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6259         (cross-rpcgen-objs): New variable.
6260         (extra-objs): Append $(cross-rpcgen-objs).
6261         ($(cross-rpcgen-objs)): New rule.
6262         ($(objpfx)cross-rpcgen): Likewise.
6263         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6264         comment.
6265         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6266         ($(objpfx)x%.stmp): Likewise.
6267         * sunrpc/proto.h [IS_IN_build] (_): Define.
6268         [IS_IN_build] (_libc_intl_domainname): Likewise.
6269
6270 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6271
6272         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6273         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6274         and R_X86_64_TPOFF64.
6275
6276 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6277
6278         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6279         sysdeps/unix/sysv/syscalls.list.
6280         (stime): Likewise.
6281         (utime): Likewise.
6282         * sysdeps/unix/sysv/syscalls.list: Remove file.
6283
6284 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6285
6286         [BZ #3440]
6287         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6288         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6289         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6290         (__LC_IDENTIFICATION): Make these macros useful in #if
6291         expressions, as required by C99.
6292
6293 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6294
6295         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6296         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6297         after this.
6298
6299 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6300
6301         * stdlib/longlong.h: Updated from GCC.
6302
6303 2012-05-09  Andreas Jaeger  <aj@suse.de>
6304
6305         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6306         default is first entry.
6307         (run_mode): Set type.
6308         (main): Remove informal message about syslog.
6309         (options): Fix typo.
6310
6311         [BZ #14053]
6312         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6313         to asm.
6314         (lrint): Likewise.
6315         (llrintf): Likewise.
6316         (llrint): Likewise.
6317         (rint): Likewise.
6318         (rintf): Likewise.
6319         (nearbyint): Likewise.
6320         (nearbyintf): Likewise.
6321
6322 2012-05-09  Andreas Jaeger  <aj@suse.de>
6323             Pedro Alves  <palves@redhat.com>
6324
6325         * nscd/nscd.c (run_mode): Use enum.
6326         (main): Cleanup coding style issue.
6327
6328 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6329             Andreas Jaeger  <aj@suse.de>
6330
6331         * nscd/nscd.c (go_background): Replaced with...
6332         (run_mode): ... this.
6333         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6334         (options): Add -F --foreground.
6335         (main): Implement it.
6336         (parse_opt): Parse it.
6337
6338 2012-05-09  Andreas Jaeger  <aj@suse.de>
6339
6340         [BZ #14083]
6341         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6342         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6343         -Wconversion warning.
6344         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6345         Likewise.
6346
6347 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6348
6349         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6350         == 0.
6351         (LC_ALL): Use macro-int-constant.
6352         (LC_COLLATE): Likewise.
6353         (LC_CTYPE): Likewise.
6354         (LC_MESSAGES): Likewise.
6355         (LC_MONETARY): Likewise.
6356         (LC_NUMERIC): Likewise.
6357         (LC_TIME): Likewise.
6358         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6359         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6360         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6361         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6362         Specify type.
6363         [C99-based standards] (float_t): Expect type.
6364         [C99-based standards] (double_t): Expect type.
6365         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6366         type.
6367         [C99-based standards] (HUGE_VALL): Likewise.
6368         [C99-based standards] (INFINITY): Likewise.
6369         [C99-based standards] (NAN): Likewise.
6370         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6371         [C99-based standards] (FP_NAN): Likewise.
6372         [C99-based standards] (FP_NORMAL): Likewise.
6373         [C99-based standards] (FP_SUBNORMAL): Likewise.
6374         [C99-based standards] (FP_ZERO): Likewise.
6375         [C99-based standards] (FP_FAST_FMA): Use
6376         optional-macro-int-constant.  Specify type.  Require == 1.
6377         [C99-based standards] (FP_FAST_FMAF): Likewise.
6378         [C99-based standards] (FP_FAST_FMAL): Likewise.
6379         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6380         [C99-based standards] (FP_ILOGBNAN): Likewise.
6381         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6382         Specify type.
6383         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6384         [C99-based standards] (math_errhandling): Specify type.
6385         [ISO99 || ISO11] (signgam): Do not allow.
6386         [non-C99-based standards] (copysignf): Do not allow.
6387         [non-C99-based standards] (exp2f): Likewise.
6388         [non-C99-based standards] (log2f): Likewise.
6389         [non-C99-based standards] (modff): Allow.
6390         [non-C99-based standards] (erff): Do not allow.
6391         [non-C99-based standards] (erfcf): Likewise.
6392         [non-C99-based standards] (gammaf): Likewise.
6393         [non-C99-based standards] (hypotf): Likewise.
6394         [non-C99-based standards] (j0f): Likewise.
6395         [non-C99-based standards] (j1f): Likewise.
6396         [non-C99-based standards] (jnf): Likewise.
6397         [non-C99-based standards] (lgammaf): Likewise.
6398         [non-C99-based standards] (tgammaf): Likewise.
6399         [non-C99-based standards] (y0f): Likewise.
6400         [non-C99-based standards] (y1f): Likewise.
6401         [non-C99-based standards] (ynf): Likewise.
6402         [non-C99-based standards] (isnanf): Likewise.
6403         [non-C99-based standards] (acoshf): Likewise.
6404         [non-C99-based standards] (asinhf): Likewise.
6405         [non-C99-based standards] (atanhf): Likewise.
6406         [non-C99-based standards] (cbrtf): Likewise.
6407         [non-C99-based standards] (expm1f): Likewise.
6408         [non-C99-based standards] (ilogbf): Likewise.
6409         [non-C99-based standards] (log1pf): Likewise.
6410         [non-C99-based standards] (logbf): Likewise.
6411         [non-C99-based standards] (nextafterf): Likewise.
6412         [non-C99-based standards] (remainderf): Likewise.
6413         [non-C99-based standards] (rintf): Likewise.
6414         [non-C99-based standards] (scalbf): Likewise.
6415         [non-C99-based standards] (copysignl): Likewise.
6416         [non-C99-based standards] (exp2l): Likewise.
6417         [non-C99-based standards] (log2l): Likewise.
6418         [non-C99-based standards] (modfl): Allow.
6419         [non-C99-based standards] (erfl): Do not allow.
6420         [non-C99-based standards] (erfcl): Likewise.
6421         [non-C99-based standards] (gammal): Likewise.
6422         [non-C99-based standards] (hypotl): Likewise.
6423         [non-C99-based standards] (j0l): Likewise.
6424         [non-C99-based standards] (j1l): Likewise.
6425         [non-C99-based standards] (jnl): Likewise.
6426         [non-C99-based standards] (lgammal): Likewise.
6427         [non-C99-based standards] (tgammal): Likewise.
6428         [non-C99-based standards] (y0l): Likewise.
6429         [non-C99-based standards] (y1l): Likewise.
6430         [non-C99-based standards] (ynl): Likewise.
6431         [non-C99-based standards] (isnanl): Likewise.
6432         [non-C99-based standards] (acoshl): Likewise.
6433         [non-C99-based standards] (asinhl): Likewise.
6434         [non-C99-based standards] (atanhl): Likewise.
6435         [non-C99-based standards] (cbrtl): Likewise.
6436         [non-C99-based standards] (expm1l): Likewise.
6437         [non-C99-based standards] (ilogbl): Likewise.
6438         [non-C99-based standards] (log1pl): Likewise.
6439         [non-C99-based standards] (logbl): Likewise.
6440         [non-C99-based standards] (nextafterl): Likewise.
6441         [non-C99-based standards] (remainderl): Likewise.
6442         [non-C99-based standards] (rintl): Likewise.
6443         [non-C99-based standards] (scalbl): Likewise.
6444         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6445         [non-C99-based standards] (FP_*): Do not allow.
6446         [C99-based standards] (FP_*): Change to
6447         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6448         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6449         allow.
6450         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6451         (SIG_ERR): Likewise.
6452         [X/Open-based standards] (SIG_HOLD): Likewise.
6453         (SIG_IGN): Likewise.
6454         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6455         positive value.
6456         (SIGFPE): Likewise.
6457         (SIGILL): Likewise.
6458         (SIGINT): Likewise.
6459         (SIGSEGV): Likewise.
6460         (SIGTER): Likewise.
6461         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6462         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6463         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6464         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6465         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6469         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6470         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6471         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6472         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6474         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6475         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6476         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6477         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6478         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6479         [X/Open-based standards] (SIGTRAP): Likewise.
6480         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6482         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6483         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6484         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6485         allow.
6486
6487 2012-05-08  Ian Wienand  <ianw@vmware.com>
6488
6489         [BZ #14080]
6490         * time/tzset.c (__tzset_parse_tz): Update default rules for
6491         daylight time changes in the Energy Policy Act of 2005.
6492
6493 2012-05-09  Andreas Jaeger  <aj@suse.de>
6494
6495         [BZ #13983]
6496         * elf/ldconfig.c (parse_conf): Change string to make clear that
6497         ldconfig only issued a warning if ld.so.conf does not exist.
6498
6499 2012-05-08  David S. Miller  <davem@davemloft.net>
6500
6501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6502         movxtod instead of popping the value on the stack.
6503
6504         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6505
6506 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
6507
6508         * config.h.in: Add HAVE_ARM_PCS_VFP.
6509
6510 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6511
6512         [BZ #13979]
6513         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6514         checking but the checks are disabled for any reason.
6515
6516 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6517
6518         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6519         and ELF64_R_TYPE with ELFW(R_TYPE).
6520
6521 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6522
6523         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6524         (ulimit): Likewise.
6525
6526         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6527         (settimeofday): Likewise.
6528
6529 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6530
6531         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6532         a struct th_u2 inside the union, and move tu_block/tu_code into
6533         a new th_u3 union of tu_block/tu_code inside of that.  Move
6534         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6535         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6536         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6537         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6538         (th_stuff): Change to th_u1.tu_stuff.
6539         (th_data): Define.
6540         (th_msg): Change to th_u1.th_u2.tu_data.
6541
6542 2012-05-07  David S. Miller  <davem@davemloft.net>
6543
6544         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6545
6546         [BZ #14074]
6547         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6548         (SETUP_PIC_REG): Use it.
6549         (SETUP_PIC_REG_LEAF): Use it.
6550
6551 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6552
6553         [BZ #13885]
6554         [BZ #13923]
6555         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6556         USE_AS_EXPM1L.
6557         (EXPL_FINITE): Likewise.
6558         (FLDLOG): Likewise.
6559         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6560         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6561         e_expl.S.
6562         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6563         USE_AS_EXPM1L.
6564         (EXPL_FINITE): Likewise.
6565         (FLDLOG): Likewise.
6566         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6567         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6568         e_expl.S.
6569         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6570         test of -max_value argument for long double.
6571         * sysdeps/i386/fpu/libm-test-ulps: Update.
6572         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6573
6574 2012-05-06  David S. Miller  <davem@davemloft.net>
6575
6576         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6577         quad soft-float symbols whose references which are compiler
6578         generated.
6579         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6580
6581 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6582
6583         [BZ #13884]
6584         [BZ #13914]
6585         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6586         USE_AS_EXP10L.
6587         (EXPL_FINITE): Likewise.
6588         (FLDLOG): Likewise.
6589         (c0): Likewise.
6590         (c1): Likewise.
6591         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6592         Adjust comments for base varying.
6593         (__expl_finite): Change alias to EXPL_FINITE.
6594         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6595         e_expl.S.
6596         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6597         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6598         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6599         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6600         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6601         USE_AS_EXP10L.
6602         (EXPL_FINITE): Likewise.
6603         (FLDLOG): Likewise.
6604         (c0): Likewise.
6605         (c1): Likewise.
6606         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6607         Adjust comments for base varying.
6608         (__expl_finite): Change alias to EXPL_FINITE.
6609         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6610         tests for bugs.
6611         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6612
6613         [BZ #14064]
6614         * math/libm-test.inc (check_float_internal): Correct ulp
6615         calculation for subnormal expected results.
6616
6617 2012-05-06  Andreas Jaeger  <aj@suse.de>
6618
6619         * Makeconfig (+math-flags): New, set to -frounding-math.
6620         (+cflags): Add +math-flags so that all of glibc gets compiled with
6621         it.
6622
6623         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6624
6625 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6626
6627         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6628         Disable one test.
6629
6630         [BZ #13787]
6631         [BZ #13922]
6632         [BZ #14036]
6633         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6634         (__ieee754_expl): Allow for and saturate large arguments.
6635         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6636         (u_threshold): Likewise.
6637         (__exp): Call __ieee754_exp before checking for overflow and
6638         underflow.
6639         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6640         (u_threshold): Likewise.
6641         (__expf): Call __ieee754_expf before checking for overflow and
6642         underflow.
6643         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6644         (u_threshold): Likewise.
6645         (__expl): Call __ieee754_expl before checking for overflow and
6646         underflow.
6647         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6648         (__ieee754_expl): Allow for and saturate large arguments.
6649         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6650         missing overflow exception on overflow.
6651         (expm1_test): Do not allow missing overflow exception on overflow.
6652
6653         * sysdeps/i386/fpu/e_expl.c: Move to ...
6654         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6655         rather than using inline asm.
6656         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6657         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6658         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6659
6660         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6661         (nice): Likewise.
6662         (poll): Likewise.
6663         (signal): Likewise.
6664         (time): Likewise.
6665         (times): Likewise.
6666
6667 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6668
6669         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6670         sysdeps/unix/common/syscalls.list.
6671         (fchmod): Likewise.
6672         (fchown): Likewise.
6673         (ftruncate): Likewise.
6674         (getrusage): Likewise.
6675         (gettimeofday): Likewise.
6676         (setpgid): Likewise.
6677         (setregid): Likewise.
6678         (setreuid): Likewise.
6679         (sigaction): Likewise.
6680         (truncate): Likewise.
6681         (vhangup): Likewise.
6682         * sysdeps/unix/common/syscalls.list: Remove file.
6683         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6684         * sysdeps/unix/sysv/linux/Implies: Likewise.
6685
6686 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6687
6688         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6689         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6690         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6691         Moved to ...
6692         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6693         Here.
6694         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6695         to ...
6696         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6697         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6698         to ...
6699         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6700         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6701         to ...
6702         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6703         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6704         to ...
6705         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6706         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6707         to ...
6708         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6709         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6710         to ...
6711         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6712         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6713         to ...
6714         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6715         Here.
6716         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6717         to ...
6718         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6719         Here.
6720         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6721         to ...
6722         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6723         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6724         Moved to ...
6725         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6726         Here.
6727         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6728         to ...
6729         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6730
6731 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6732
6733         * sysdeps/unix/common/bits/dirent.h: Remove file.
6734         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6735
6736         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6737         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6738         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6739         * sysdeps/unix/bsd/isatty.c: Likewise.
6740         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6741         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6742         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6743
6744 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6745
6746         [BZ #13563]
6747         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6748         long double comparison inaccuracies.
6749         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6750         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6751
6752 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6753
6754         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6755         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6756
6757 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6758
6759         [BZ #14049]
6760         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6761         nonzero digits before rounding a hex value.
6762         * stdlib/tst-strtod.c (tests): Add another test.
6763
6764 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6765
6766         * sysdeps/s390/fpu/libm-test-ulps: Update.
6767
6768 2012-05-03  Andreas Jaeger  <aj@suse.de>
6769
6770         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6771         does not get optimized out.
6772         (malloc_opt_barrier): New.
6773
6774 2012-05-03  Andreas Jaeger  <aj@suse.de>
6775             Roland McGrath  <roland@hack.frob.com>
6776
6777         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6778         intermediate file deletion.
6779         (generated): Add .symlist files.
6780
6781 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6782
6783         [BZ #13775]
6784         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6785         Redirect under this condition.
6786         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6787         [__USE_GNU] (__dprintf_chk): Not under this condition.
6788         [__USE_GNU] (__vdprintf_chk): Likewise.
6789         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6790         under this condition.
6791         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6792         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6793         [__USE_XOPEN2K8] (vdprintf): Likewise.
6794         [__USE_GNU] (__dprintf_chk): Not under this condition.
6795         [__USE_GNU] (__vdprintf_chk): Likewise.
6796         [__USE_GNU] (dprintf): Likewise.
6797         [__USE_GNU] (vdprintf): Likewise.
6798
6799 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6800
6801         * elf/Makefile (common-generated): Set this instead of generated for
6802         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6803         $(all-built-dso)-derived lists.
6804
6805 2012-05-03  Andreas Jaeger  <aj@suse.de>
6806
6807         * sysdeps/i386/fpu/libm-test-ulps: Update.
6808
6809         * FAQ: Removed.
6810         * FAQ.in: Likewise.
6811         * scripts/gen-FAQ.pl: Likewise.
6812         * manual/install.texi (Installation): Point to online location of
6813         FAQ.
6814         * Makefile (files-for-dist): Remove FAQ.
6815         (FAQ): Remove.
6816
6817 2012-05-02  Allan McRae  <allan@archlinux.org>
6818
6819         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6820         (LDFLAGS-reldepmod5.so): Likewise.
6821         (LDFLAGS-reldep6mod1.so): Likewise.
6822         (LDFLAGS-reldep6mod4.so): Likewise.
6823         (LDFLAGS-reldep8mod3.so): Likewise.
6824         (LDFLAGS-unload4mod1.so): Likewise.
6825         (LDFLAGS-unload4mod2.so): Likewise.
6826         (LDFLAGS-tst-initorder): Likewise.
6827         (LDFLAGS-tst-initordera2.so): Likewise.
6828         (LDFLAGS-tst-initordera3.so): Likewise.
6829         (LDFLAGS-tst-initordera4.so): Likewise.
6830         (LDFLAGS-tst-initorderb2.so): Likewise.
6831         (LDFLAGS-noload): Likewise.
6832         (LDFLAGS-next): Likewise.
6833         (LDFLAGS-order2mod1.so): Likewise.
6834         (LDFLAGS-order2mod2.so): Likewise.
6835         (LDFLAGS-tst-initorder2): Likewise.
6836         (LDFLAGS-tst-initorder2a.so): Likewise.
6837         (LDFLAGS-tst-initorder2b.so): Likewise.
6838         (LDFLAGS-tst-initorder2c.so): Likewise.
6839         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6840
6841 2012-05-02  David S. Miller  <davem@davemloft.net>
6842
6843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6844
6845 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6846
6847         [BZ #14055]
6848         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6849
6850 2012-05-02  Andreas Jaeger  <aj@suse.de>
6851
6852         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6853         since we manipulate rounding mode.
6854         (CPPFLAGS-test-idouble.c): Likewise.
6855         (CPPFLAGS-test-ifloat.c): Likewise.
6856         (CFLAGS-test-ldouble.c): Likewise.
6857         (CFLAGS-test-double.c): Likewise.
6858         (CFLAGS-test-float.c): Likewise.
6859         (CFLAGS-test-misc.c): Likewise.
6860         (CFLAGS-test-test-fenv.c): Likewise.
6861
6862 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6863
6864         [BZ #2550]
6865         [BZ #2570]
6866         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6867         comparisons to determine direction to adjust input.
6868
6869 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6870
6871         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6872         output to the target.
6873
6874         * scripts/localplt.awk: New file.
6875         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6876         (check-localplt-CFLAGS): Variable removed.
6877         ($(all-built-dso:=.jmprel)): New static pattern rule.
6878         (generated): Add those targets.
6879         (localplt-built-dso): New variable.
6880         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6881
6882         * elf/check-localplt.c: File removed.
6883
6884         * scripts/check-execstack.awk: New file.
6885         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6886         (check-execstack-CFLAGS): Variable removed.
6887         ($(objpfx)check-execstack.h): Target removed.
6888         ($(objpfx)execstack-default): New target.
6889         (generated): Add that instead of check-execstack.h.
6890         ($(all-built-dso:=.phdr)): New static pattern rule.
6891         (generated): Add those targets.
6892         * elf/check-execstack.c: File removed.
6893
6894         * scripts/check-textrel.awk: New file.
6895         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6896         (check-textrel-CFLAGS): Variable removed.
6897         (all-built-dso): Use := to define.o
6898         ($(all-built-dso:=.dyn)): New static pattern rule.
6899         (generated): Add those targets.
6900         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6901         * config.make.in (READELF): New substituted variable.
6902         * elf/check-textrel.c: File removed.
6903
6904 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6905
6906         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6907         allow.
6908         * conform/data/ctype.h-data [C99-based standards] (isblank):
6909         Expect function.
6910         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6911         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6912         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6913         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6914         Specify type.  Require positive value.
6915         (EILSEQ): Likewise.
6916         (ERANGE): Likewise.
6917         [ISO || POSIX] (EILSEQ): Do not expect.
6918         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6919         Specify type.  Require positive value.
6920         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6921         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6922         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6923         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6924         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6925         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6926         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6927         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6928         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6929         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6930         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6931         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6932         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6933         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6934         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6935         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6936         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6937         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6938         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6939         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6940         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6941         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6942         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6943         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6944         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6945         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6946         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6947         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6948         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6949         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6950         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6951         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6952         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6953         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6954         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6955         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6956         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6957         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6958         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6959         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6960         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6961         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6962         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6963         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6964         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6965         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6966         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6967         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6968         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6969         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6970         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6971         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6972         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6973         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6974         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6975         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6976         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6977         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6978         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6979         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6980         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6981         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6982         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6983         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6984         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6985         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6986         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6987         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6988         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6989         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6990         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6991         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6992         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6993         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6994         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6995         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6996         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6997         Require >= 2.
6998         (FLT_ROUNDS): Expect as macro, not constant.
6999         (FLT_MANT_DIG): Use macro-int-constant.
7000         (DBL_MANT_DIG): Likewise.
7001         (LDBL_MANT_DIG): Likewise.
7002         (FLT_DIG): Likewise.
7003         (DBL_DIG): Likewise.
7004         (LDBL_DIG): Likewise.
7005         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7006         (DBL_MIN_EXP): Likewise.
7007         (LDBL_MIN_EXP): Likewise.
7008         (FLT_MAX_EXP): Use macro-int-constant.
7009         (DBL_MAX_EXP): Likewise.
7010         (LDBL_MAX_EXP): Likewise.
7011         (FLT_MAX_10_EXP): Likewise.
7012         (DBL_MAX_10_EXP): Likewise.
7013         (LDBL_MAX_10_EXP): Likewise.
7014         (FLT_MAX): Use macro-constant.
7015         (DBL_MAX): Likewise.
7016         (LDBL_MAX): Likewise.
7017         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7018         (DBL_EPSILON): Likewise.
7019         (LDBL_EPSILON): Likewise.
7020         (FLT_MIN): Likewise.
7021         (DBL_MIN): Likewise.
7022         (LDBL_MIN): Likewise.
7023         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7024         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7025         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7026         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7027         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7028         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7029         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7030         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7031         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7032         [ISO11] (FLT_TRUE_MIN): Likewise.
7033         [ISO11] (LDBL_TRUE_MIN): Likewise.
7034         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7035         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7036         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7037         (SCHAR_MAX): Likewise.
7038         (UCHAR_MAX): Likewise.
7039         (CHAR_MIN): Likewise.
7040         (CHAR_MAX): Likewise.
7041         (MB_LEN_MAX): Use macro-int-constant.
7042         (SHRT_MIN): Use macro-int-constant.  Specify type.
7043         (SHRT_MAX): Likewise.
7044         (USHRT_MAX): Likewise.
7045         (INT_MAX): Likewise.
7046         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7047         bound negative.
7048         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7049         bound with "U".
7050         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7051         bound with "L".
7052         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7053         bound negative.  Suffix upper bound with "L".
7054         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7055         bound with "UL".
7056         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7057         Specify type.
7058         [C99-based standards] (LLONG_MAX): Likewise.
7059         [C99-based standards] (ULLONG_MAX): Likewise.
7060         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7061         == 0.
7062         [ISO11] (max_align_t): Require type.
7063         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7064
7065         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7066         from $CFLAGS, without defining away __attribute__ calls.
7067         (checknamespace): Use $CFLAGS_namespace.
7068
7069         * conform/conformtest.pl (@keywords): Only include C99 keywords
7070         for standards based on C99 or C11.
7071
7072         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7073         Disable tests.
7074         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7075         UNIX98]: Likewise.
7076
7077         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7078         usability of symbols in #if.
7079
7080         * conform/conformtest.pl: If macro or constant types start
7081         "promoted:", expect the symbol to be of the following type
7082         promoted by the integer promotions.
7083
7084         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7085         in one place.  Also handle "macro-constant".
7086
7087         * conform/conformtest.pl: Only accept expected macro values with
7088         "==".  Parse all "macro" lines in one place.
7089         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7090
7091         * conform/conformtest.pl: Handle braced types on "constant" lines
7092         instead of handling "typed-constant".
7093         * conform/data/signal.h-data: Use "constant" instead of
7094         "typed-constant".
7095
7096         * conform/conformtest.pl: Handle "optional-" at start of lines in
7097         one place rather than duplicating several cases.  Handle each
7098         format of "macro" line with initial "optional-".
7099
7100         * conform/conformtest.pl: Only accept expected constant or
7101         optional-constant values with "==".  Parse all "constant" lines in
7102         one place.  Parse all "optional-constant" lines in one place.
7103         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7104         * conform/data/fmtmsg.h-data: Likewise.
7105         * conform/data/netinet/in.h-data: Likewise.
7106         * conform/data/tar.h-data: Likewise.
7107         * conform/data/limits.h-data: Use "==" form on "constant" and
7108         "optional-constant" lines.
7109
7110         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7111         Use -std=c99 for XOPEN2K.
7112         (@knownproblems): Remove.
7113         (newtoken): Don't check %isknown.
7114
7115         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7116         Do not expect macro.
7117         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7118         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7119         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7120         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7121         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7122         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7123         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7124         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7125         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7126         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7127         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7128         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7129         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7130         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7131         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7132         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7133         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7134         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7135         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7136         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7137         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7138         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7139         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7140         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7141         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7142         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7143         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7144         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7145         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7146         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7147         [XPG3] (acosh): Likewise.
7148         [XPG3] (asinh): Likewise.
7149         [XPG3] (atanh): Likewise.
7150         [XPG3] (cbrt): Likewise.
7151         [XPG3] (expm1): Likewise.
7152         [XPG3] (ilogb): Likewise.
7153         [XPG3] (log1p): Likewise.
7154         [XPG3] (logb): Likewise.
7155         [XPG3] (nextafter): Likewise.
7156         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7157         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7158         [XPG3] (remainder): Likewise.
7159         [XPG3] (rint): Likewise.
7160         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7161         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7162         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7163         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7164         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7165         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7166         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7167         [UNIX98 || XOPEN2K] (scalb): Expect.
7168         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7169         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7170         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7171         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7172         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7173         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7174         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7175         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7176         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7177         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7178         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7179         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7180         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7181         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7182         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7183         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7184         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7185         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7186         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7187         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7188         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7189         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7190         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7191         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7192         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7193         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7194         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7195         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7196         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7197         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7198         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7199         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7200         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7201         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7202         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7203         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7204         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7205         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7206         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7207         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7208         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7209         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7210         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7211         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7212         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7213         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7214         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7215         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7216         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7217         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7218         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7219         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7220         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7221         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7222         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7223         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7224         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7225         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7226         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7227         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7228         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7229         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7230         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7231         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7232         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7233         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7234         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7235         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7236         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7237         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7238         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7239         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7240         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7241         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7242         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7243         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7244         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7245         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7246         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7247         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7248         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7249         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7250         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7251         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7252         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7253         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7254         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7255         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7256         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7257         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7258         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7259         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7260         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7261         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7262         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7263         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7264         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7265         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7266         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7267         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7268         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7269         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7270         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7271         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7272         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7273         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7274         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7275         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7276         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7277         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7278         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7279         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7280         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7281         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7282         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7283         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7284         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7285         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7286         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7287         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7288         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7289         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7290         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7291         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7292         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7293         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7294         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7295         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7296         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7297         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7298         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7299         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7300         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7301         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7302         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7303         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7304         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7305
7306         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7307         _XOPEN_SOURCE_EXTENDED for XPG4.
7308
7309         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7310
7311         * Makeconfig (localtime): Remove variable.
7312         (inst_localtime-file): Likewise.
7313
7314 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7315
7316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7317         Update.
7318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7319         Update.
7320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7321         Update.
7322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7323         Update.
7324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7325         Update.
7326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7327         Update.
7328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7329         Update.
7330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7331         Update.
7332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7333         Update.
7334
7335 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7336
7337         [BZ #2550]
7338         [BZ #2570]
7339         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7340         comparisons to determine direction to adjust input.
7341         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7342         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7343         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7344         Likewise.
7345         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7346         Likewise.
7347         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7348         Likewise.
7349         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7350         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7351         Likewise.
7352         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7353         Likewise.
7354         * math/libm-test.inc (nexttoward_test): Add more tests.
7355
7356 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7357
7358         [BZ #14040]
7359         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7360         in version GLIBC_2.1, not GLIBC_2.0.
7361         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7362         Likewise.
7363
7364 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7365
7366         [BZ #13942]
7367         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7368         (1 - x) * (1 + x).
7369         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7370         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7371         * math/libm-test.inc (acos_test): Add more tests.
7372         (asin_test): Likewise.
7373         * sysdeps/i386/fpu/libm-test-ulps: Update.
7374         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7375
7376         [BZ #14034]
7377         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7378         of square root.
7379         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7380         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7381         * math/libm-test.inc (acos_test_tonearest): New function.
7382         (acos_test_towardzero): Likewise.
7383         (acos_test_downward): Likewise.
7384         (acos_test_upward): Likewise.
7385         (asin_test_tonearest): Likewise.
7386         (asin_test_towardzero): Likewise.
7387         (asin_test_downward): Likewise.
7388         (asin_test_upward): Likewise.
7389         (main): Call the new functions.
7390         * sysdeps/i386/fpu/libm-test-ulps: Update.
7391         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7392
7393         [BZ #13884]
7394         [BZ #13924]
7395         * math/e_exp10.c: Include <float.h>.
7396         (__ieee754_exp10): Handle underflow here rather than multiplying
7397         large negative argument by M_LN10.
7398         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7399         of __ieee754_expf.
7400         * math/e_exp10l.c: Include <float.h>.
7401         (__ieee754_exp10l): Handle underflow here rather than multiplying
7402         large negative argument by M_LN10l.
7403         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7404         spurious overflow exception on underflow.
7405
7406 2012-04-29  Marek Polacek  <polacek@redhat.com>
7407
7408         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7409         (__fortify_function): New macro.
7410         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7411         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7412         __extern_always_inline.
7413         * libio/bits/stdio2.h: Likewise.
7414         * libio/bits/stdio.h: Likewise.
7415         * string/string.h: Likewise.
7416         * string/bits/string3.h: Likewise.
7417         * include/stdio.h: Likewise.
7418         * stdlib/bits/stdlib.h: Likewise.
7419         * stdlib/stdlib.h: Likewise.
7420         * rt/bits/mqueue2.h: Likewise.
7421         * rt/mqueue.h: Likewise.
7422         * posix/bits/unistd.h: Likewise.
7423         * posix/unistd.h: Likewise.
7424         * io/bits/poll2.h: Likewise.
7425         * io/bits/fcntl2.h: Likewise.
7426         * io/fcntl.h: Likewise.
7427         * io/sys/poll.h: Likewise.
7428         * misc/bits/syslog.h: Likewise.
7429         * misc/bits/syslog-ldbl.h: Likewise.
7430         * misc/sys/syslog.h: Likewise.
7431         * socket/bits/socket2.h: Likewise.
7432         * socket/sys/socket.h: Likewise.
7433         * debug/tst-chk1.c: Likewise.
7434         * wcsmbs/bits/wchar2.h: Likewise.
7435         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7436         * wcsmbs/wchar.h: Likewise.
7437
7438 2012-04-29  Andreas Jaeger  <aj@suse.de>
7439
7440         * Makerules (tests): Remove enable-check-abi protection.
7441         (check-abi-warn): Remove.
7442         (check-abi-%): Remove check-abi-warn usage.
7443
7444         * configure.in: Remove check-abi configure option.
7445         * configure: Regenerated.
7446         * config.make.in (enable-check-abi): Remove.
7447
7448 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7449
7450         [BZ #14033]
7451         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7452         double functions to double *_finite functions.
7453
7454         [BZ #13941]
7455         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7456         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7457         LDBL_MIN_EXP.
7458         * stdio-common/Makefile (tests): Add tst-sprintf3.
7459         * stdio-common/tst-sprintf3.c: New file.
7460
7461         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7462         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7463
7464 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7465
7466         * conform/conformtest.pl: Remove duplicate typed-constant
7467         handling.
7468
7469 2012-04-28  David S. Miller  <davem@davemloft.net>
7470
7471         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7472         (check-abi-%): Remove AWK script prerequisite and explicit
7473         abilist directory.
7474         (check-abi): Rewrite to just diff the symlist with the abilist.
7475         (config-tls, config-abi-config): Delete, no longer used.
7476         (update-abi-%): Remove AWK script and explicit abilist directory.
7477         (update-abi): Rewrite to simply compare and conditionally copy the
7478         symlist and the sysdep abilist file.  Remove update-abi-config
7479         checks.
7480         * abilist/ld.abilist: Remove.
7481         * abilist/libBrokenLocale.abilist: Remove.
7482         * abilist/libanl.abilist: Remove.
7483         * abilist/libcrypt.abilist: Remove.
7484         * abilist/libdl.abilist: Remove.
7485         * abilist/librt.abilist: Remove.
7486         * abilist/libthread_db.abilist: Remove.
7487         * abilist/libutil.abilist: Remove.
7488         * scripts/extract-abilist.awk: Remove.
7489         * scripts/merge-abilist.awk: Remove.
7490         * sysdeps/generic/libcidn.abilist: New file.
7491         * sysdeps/generic/libnss_compat.abilist: New file.
7492         * sysdeps/generic/libnss_db.abilist: New file.
7493         * sysdeps/generic/libnss_dns.abilist: New file.
7494         * sysdeps/generic/libnss_files.abilist: New file.
7495         * sysdeps/generic/libnss_hesiod.abilist: New file.
7496         * sysdeps/generic/libnss_nis.abilist: New file.
7497         * sysdeps/generic/libnss_nisplus.abilist: New file.
7498         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7499         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7500         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7501         file.
7502         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7503         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7504         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7505         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7506         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7507         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7508         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7509         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7510         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7511         file.
7512         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7513         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7514         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7515         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7516         file.
7517         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7518         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7519         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7520         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7521         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7522         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7523         file.
7524         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7525         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7526         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7527         file.
7528         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7529         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7530         New file.
7531         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7532         New file.
7533         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7534         New file.
7535         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7536         New file.
7537         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7538         New file.
7539         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7540         New file.
7541         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7542         New file.
7543         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7544         New file.
7545         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7546         New file.
7547         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7548         New file.
7549         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7550         New file.
7551         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7552         New file.
7553         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7554         New file.
7555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7556         file.
7557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7558         New file.
7559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7560         New file.
7561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7562         file.
7563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7564         New file.
7565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7566         New file.
7567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7568         file.
7569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7570         New file.
7571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7572         New file.
7573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7574         New file.
7575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7576         New file.
7577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7578         New file.
7579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7580         New file.
7581         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7583         file.
7584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7585         New file.
7586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7587         file.
7588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7589         file.
7590         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7591         file.
7592         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7593         file.
7594         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7595         file.
7596         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7597         New file.
7598         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7599         file.
7600         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7601         file.
7602         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7603         New file.
7604         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7605         file.
7606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7607         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7608         file.
7609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7610         New file.
7611         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7612         file.
7613         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7614         file.
7615         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7616         file.
7617         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7618         file.
7619         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7620         file.
7621         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7622         New file.
7623         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7624         file.
7625         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7626         file.
7627         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7628         New file.
7629         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7630         file.
7631         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7632         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7633         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7634         file.
7635         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7636         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7637         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7638         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7639         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7640         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7641         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7642         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7643         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7644         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7645         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7646         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7647         file.
7648         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7649         New file.
7650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7651         file.
7652         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7653         file.
7654         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7655         file.
7656         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7657         file.
7658         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7659         file.
7660         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7661         New file.
7662         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7663         New file.
7664         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7665         file.
7666         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7667         New file.
7668         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7669         file.
7670         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7672         file.
7673         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7674         New file.
7675         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7676         file.
7677         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7678         file.
7679         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7680         file.
7681         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7682         file.
7683         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7684         file.
7685         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7686         New file.
7687         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7688         New file.
7689         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7690         file.
7691         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7692         New file.
7693         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7694         file.
7695
7696 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7697
7698         * conform/conformtest.pl: Fix typo in handling typed-constant from
7699         allow-header.
7700
7701 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7702
7703         * README: Cut down references to pre-2.6 Linux kernels and
7704         Linuxthreads.  Update lists of configurations in libc and ports
7705         and sort alphabetically.  Say "or newer" with Linux kernel version
7706         requirements.
7707
7708         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7709
7710 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7711
7712         [BZ #887]
7713         * math/libm-test.inc (logb_test_downward): New test to expose
7714         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7715         rounding mode.
7716
7717 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7718
7719         [BZ #14027]
7720         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7721         to be done.
7722         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7723         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7724
7725 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7726
7727         * sysdeps/unix/i386/brk.S: Remove file.
7728         * sysdeps/unix/i386/dl-brk.S: Likewise.
7729         * sysdeps/unix/i386/pipe.S: Likewise.
7730         * sysdeps/unix/i386/sigreturn.S: Likewise.
7731         * sysdeps/unix/i386/syscall.S: Likewise.
7732         * sysdeps/unix/i386/vfork.S: Likewise.
7733         * sysdeps/unix/i386/wait.S: Likewise.
7734
7735         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7736         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7737
7738         * configure.in (arm*-none*): Do not allow without
7739         --enable-hacker-mode.
7740         (netbsd*): Remove case setting base_os.
7741         (386bsd*): Likewise.
7742         (freebsd*): Likewise.
7743         (bsdi*): Likewise.
7744         (osf*): Likewise.
7745         (sunos*): Likewise.
7746         (ultrix*): Likewise.
7747         (newsos*): Likewise.
7748         (dynix*): Likewise.
7749         (*bsd*): Likewise.
7750         (sysv*): Likewise.
7751         (isc*): Likewise.
7752         (esix*): Likewise.
7753         (sco*): Likewise.
7754         (minix*): Likewise.
7755         (irix4*): Likewise.
7756         (irix6*): Likewise.
7757         (solaris[2-9]*): Likewise.
7758         (none): Likewise.
7759         * configure: Regenerated.
7760
7761 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7762
7763         [BZ #11521]
7764         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7765         overflow or cancellation in calculating denominator.
7766         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7767         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7768         down expression to avoid unexpected rounding in newer GCCs.
7769         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7770
7771 2012-04-26  David S. Miller  <davem@davemloft.net>
7772
7773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7774         long-double compat symbols.
7775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7781         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7782         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7783         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7784         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7785         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7786         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7787         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7788
7789 2012-04-25  David S. Miller  <davem@davemloft.net>
7790
7791         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7792         HWCAP_* values only after the memory barriers have been defined.
7793         (atomic_full_barrier): Define.
7794         (atomic_read_barrier): Define.
7795         (atomic_write_barrier): Define.
7796
7797 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7798
7799         * shlib-versions: Add libgcc_s version information.
7800         * sysdeps/generic/libgcc_s.h: Remove.
7801         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7802         libgcc_s.h.
7803         * sysdeps/gnu/unwind-resume.c: Likewise.
7804         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7805
7806 2012-04-25  David S. Miller  <davem@davemloft.net>
7807
7808         * sysdeps/unix/sparc/brk.S: Delete.
7809         * sysdeps/unix/sparc/dl-brk.S: Delete.
7810         * sysdeps/unix/sparc/pipe.S: Delete.
7811         * sysdeps/unix/sparc/sysdep.S: Delete.
7812         * sysdeps/unix/sparc/sysdep.h: Delete.
7813         * sysdeps/unix/sparc/vfork.S: Delete.
7814         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7815         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7816         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7817         ret_ERRVAL, r0, r1, MOVE): Define.
7818         (JUMPTARGET): Remove.
7819         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7820         sysdeps/unix/sparc/sysdep.h
7821         (ENTRY, END): Remove.
7822         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7823
7824 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7825
7826         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7827         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7828         -DIS_IN_build.
7829
7830         * timezone/README: Update upstream location and email address for
7831         tzcode and tzdata.
7832         * timezone/zdump.c: Update from tzcode 2012b.
7833         * timezone/zic.c: Likewise.
7834
7835         * configure.in (libc_cv_as_needed): Remove test.
7836         * configure: Regenerated.
7837         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7838         conditional definition.
7839         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7840         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7841         * config.make.in (have-as-needed): Remove variable.
7842
7843 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7844             Paul Pluzhnikov  <ppluzhnikov@google.com>
7845
7846         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7847         strings correctly.
7848
7849 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7850
7851         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7852         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7853         * sysdeps/sh/strlen.S: Likewise.
7854
7855 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7856
7857         * sysdeps/unix/fork.S: Remove file.
7858         * sysdeps/unix/i386/fork.S: Likewise.
7859         * sysdeps/unix/sparc/fork.S: Likewise.
7860
7861         * sysdeps/unix/system.c: Remove file.
7862         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7863
7864         * sysdeps/unix/getegid.S: Remove file.
7865         * sysdeps/unix/geteuid.S: Likewise.
7866
7867 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7868
7869         * scripts/check-localplt.awk: New file.
7870         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7871         of diff.
7872         * scripts/data/localplt-generic.data: Add a comment.
7873
7874         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7875         NODE when __dir_mkfile failed.
7876         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7877         Reported by Ludovic Courtès <ludo@gnu.org>.
7878
7879 2012-04-24  Andreas Jaeger  <aj@suse.de>
7880
7881         * Makerules (common-clean): Also remove gen-as-const-headers
7882         files.
7883
7884 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7885
7886         * Makerules (native-compile): Do not change working directory for
7887         build.  Use $(OUTPUT_OPTION) in command.
7888         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7889
7890 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7891
7892         [BZ #13886]
7893         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7894         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7895         * math/libm-test.inc (floor_test): Add more tests.
7896         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7897
7898 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7899
7900         * sysdeps/unix/getdents.c: Remove file.
7901         * sysdeps/unix/sysv/getdents.c: Likewise.
7902         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7903
7904         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7905         sysdeps/unix/mman/syscalls.list.
7906         (mmap): Likewise.
7907         (mprotect): Likewise.
7908         (msync): Likewise.
7909         (munmap): Likewise.
7910         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7911         * sysdeps/unix/mman/syscalls.list: Remove.
7912         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7913
7914         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7915         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7916         * configure: Regenerated.
7917         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7918         $(libgcc_s_suffix).
7919         * config.make.in (libgcc_s_suffix): Remove variable.
7920
7921 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7922
7923         * sysdeps/unix/sysv/gethostname.c: Move to ...
7924         * sysdeps/posix/gethostname.c: ... here.
7925
7926         * sysdeps/unix/execve.S: Remove file.
7927
7928         * sysdeps/unix/_exit.S: Remove file.
7929
7930 2012-04-23  Andreas Jaeger  <aj@suse.de>
7931
7932         [BZ #13739]
7933         * manual/Makefile: Remove make dist support, there's no
7934         need for a stand-alone documentation tar ball.
7935         (TEXI2DVI): Define always, it's not in Makeconfig.
7936         (dist): Removed.
7937         (tar-it): Removed.
7938         (edition): Removed.
7939         (glibc-doc-$(edition).tar): Removed
7940         (%.Z): Removed.
7941         (%.gz): Removed.
7942         (%.uu): Removed.
7943         (ETAGS): Remove, it's in Makeconfig.
7944         (move-if-change): Remove, it's in Makeconfig.
7945
7946 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7947
7948         [BZ #13970]
7949         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7950         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7951         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7952         (strtod_l, strtof_l, strtold_l): Remove __wur.
7953         It is not necessarily an error to ignore strtol's return value.
7954         One can reliably look at the stored endptr to decide whether
7955         the number had valid syntax.
7956
7957 2012-04-21  Andreas Jaeger  <aj@suse.de>
7958
7959         [BZ #13739]
7960         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7961
7962 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7963
7964         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7965         * sysdeps/unix/sysv/Versions: Remove file.
7966
7967 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7968
7969         [BZ #13927]
7970         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7971
7972 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7973
7974         [BZ #7064]
7975         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7976         version from __vm86.
7977
7978 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7979
7980         * sysdeps/unix/common/lxstat.c: Remove file.
7981         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7982
7983         * sysdeps/unix/sysv/Makefile: Remove file.
7984
7985         * sysdeps/unix/sysv/direct.h: Remove file.
7986
7987         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7988         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7989         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7990         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7991         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7992         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7993         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7994
7995         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7996
7997         * sysdeps/unix/xmknod.c: Remove file.
7998         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7999
8000         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8001
8002         * sysdeps/unix/sysv/i386/time.S: Remove file.
8003
8004         * sysdeps/unix/fxstat.c: Remove file.
8005         * sysdeps/unix/xstat.c: Likewise.
8006         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8007
8008         * sysdeps/unix/sysv/sigaction.c: Remove file.
8009
8010         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8011         (sysdep_headers): Remove variable.
8012         [termio.h not in sysdep_headers] (generated): Likewise.
8013         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8014         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8015         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8016         * sysdeps/unix/sysv/tcflow.c: Likewise.
8017         * sysdeps/unix/sysv/tcflush.c: Likewise.
8018         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8019         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8020         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8021         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8022         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8023
8024         * sysdeps/unix/siglist.c: Remove file.
8025
8026         * sysdeps/unix/getppid.S: Remove file.
8027
8028         * sysdeps/unix/mkdir.c: Remove file.
8029         * sysdeps/unix/rmdir.c: Likewise.
8030
8031 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8032
8033         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8034         ERR_MAX value.
8035         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8036         errlist-compat value.
8037
8038 2012-04-18  David S. Miller  <davem@davemloft.net>
8039
8040         * sysdeps/generic/memcopy.h (reg_char): Delete.
8041         * debug/strcat_chk.c: Use char, not reg_char.
8042         * debug/strcpy_chk.c: Likewise.
8043         * debug/strncat_chk.c: Likewise.
8044         * debug/strncpy_chk.c: Likewise.
8045         * string/memchr.c: Likewise.
8046         * string/memrchr.c: Likewise.
8047         * string/rawmemchr.c: Likewise.
8048         * string/strcat.c: Likewise.
8049         * string/strchr.c: Likewise.
8050         * string/strchrnul.c: Likewise.
8051         * string/strcmp.c: Likewise.
8052         * string/strcpy.c: Likewise.
8053         * string/strncat.c: Likewise.
8054         * string/strncmp.c: Likewise.
8055         * string/strncpy.c: Likewise.
8056
8057 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8058
8059         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8060         __builtin_memcopy is called when src and dest ranges are known to not
8061         overlap.
8062
8063 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8064
8065         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8066         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8067         fwd_align_merge macro call.
8068         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8069         bwd_align_merge macro call.
8070         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8071
8072 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8073
8074         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8075         bwd_align_merge macros.
8076         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8077         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8078         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8079
8080 2012-04-18  David S. Miller  <davem@davemloft.net>
8081
8082         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8083
8084 2012-04-18  Andreas Jaeger  <aj@suse.de>
8085
8086         [BZ# 6794]
8087         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8088         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8089         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8090
8091         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8092         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8093         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8094
8095         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8096         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8097         Adjust for changed ldbl-128 files.
8098
8099         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8100         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8101         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8102
8103 2012-04-17  David S. Miller  <davem@davemloft.net>
8104
8105         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8106
8107 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8108
8109         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8110         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8111         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8112         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8113         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8114         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8115
8116 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8117
8118         [BZ #6794]
8119         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8120         * math/libm-test.inc: Add ilogb errno and exception tests.
8121         * math/w_ilogb.c: New file: ilogb wrapper.
8122         * math/w_ilogbf.c: New file: ilogbf wrapper.
8123         * math/w_ilogbl.c: New file: ilogbl wrapper.
8124         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8125         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8126         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8127         exception being thrown with 0.0 as argument.
8128         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8129         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8130         exception being thrown with 0.0 as argument.
8131         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8132         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8133         exception being thrown with 0.0 as argument.
8134         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8135         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8136         exception being thrown with 0.0 as argument.
8137         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8138         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8139         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8140         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8141         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8142         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8143         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8144         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8145         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8146
8147 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8148
8149         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8150         with altivec.
8151
8152 2012-04-16  Marek Polacek  <polacek@redhat.com>
8153
8154         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8155
8156 2012-04-16  Marek Polacek  <polacek@redhat.com>
8157
8158         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8159         operands of fdivp instruction.
8160
8161 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8162
8163         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8164         * elf/tst-auditmod3b.c: Likewise.
8165         * elf/tst-auditmod4b.c: Likewise.
8166         * elf/tst-auditmod5b.c: Likewise.
8167         * elf/tst-auditmod6b.c: Likewise.
8168         * elf/tst-auditmod6c.c: Likewise.
8169         * elf/tst-auditmod7b.c: Likewise.
8170         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8171         * sysdeps/x86_64/preconfigure.in: Likewise.
8172         * sysdeps/x86_64/preconfigure: Regenerated.
8173
8174 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8175
8176         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8177         __ILP32__.
8178
8179 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8180
8181         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8182         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8183
8184 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8185
8186         [BZ #13973]
8187         * locale/iso-639.def: Fix gl language name. Spotted by
8188         Yaron Shahrabani.
8189
8190 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8191
8192         [BZ #2074]
8193         * libio/libio.h (__io_write_fn): Update comment.
8194
8195 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8196
8197         [BZ #2074]
8198         * stdio.texi (Hook Functions): The user provided writer function
8199         is not allowed to return -1.
8200
8201 2012-04-11  David S. Miller  <davem@davemloft.net>
8202
8203         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8204
8205 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8206
8207         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8208         Add a leading slash to rtkaio.
8209
8210 2012-04-11  Jim Meyering  <meyering@redhat.com>
8211
8212         [BZ #11959]
8213         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8214         It is not necessarily an error to ignore fwrite's return
8215         value.  One can reliably use ferror to test for errors after
8216         the fact.
8217
8218 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8219
8220         * bits/types.h (__snseconds_t): New type.
8221         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8222
8223         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8224         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8225         (__SNSECONDS_T_TYPE): Likewise.
8226         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8227         (__SNSECONDS_T_TYPE): Likewise.
8228         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8229         (__SNSECONDS_T_TYPE): Likewise.
8230
8231 2012-04-10  Andreas Jaeger  <aj@suse.de>
8232
8233         [BZ #2636]
8234         * manual/time.texi (Processor Time): Return type of times is
8235         elapsed real time since an arbitrary point in the past.
8236         (CPU Time): Move CLK_TCK from here...
8237         (Processor Time): ...to here.  Correct description.
8238         * manual/conf.texi (Constants for Sysconf): Correct description of
8239         _SC_CLK_TCK.
8240
8241 2012-04-10  David S. Miller  <davem@davemloft.net>
8242
8243         [BZ #13967]
8244         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8245         where the is a gap between DT_REL(A) and DT_JMPREL.
8246
8247 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8248
8249         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8250         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8251         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8252
8253 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8254
8255         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8256         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8257         (dl_main): Handle --inhibit-cache.
8258         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8259         _dl_inhibit_cache.
8260         * elf/dl-load.c (_dl_map_object): Use it.
8261         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8262
8263 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8264
8265         [BZ #13872]
8266         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8267         (__ieee754_powl): Saturate large exponents rather than testing for
8268         overflow of y*log2(x).
8269         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8270         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8271         exceptions.
8272
8273         [BZ #11521]
8274         * math/s_ctan.c: Include <float.h>.
8275         (__ctan): Avoid internal overflow or cancellation in calculating
8276         denominator.
8277         * math/s_ctanf.c: Likewise.
8278         * math/s_ctanl.c: Likewise.
8279         * math/s_ctanh.c: Likewise.
8280         * math/s_ctanhf.c: Likewise.
8281         * math/s_ctanhl.c: Likewise.
8282         * math/libm-test.inc (ctan_test): Add more tests.
8283         (ctanh_test): Likewise.
8284         * sysdeps/i386/fpu/libm-test-ulps: Update.
8285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8286
8287 2012-04-09  Andreas Jaeger  <aj@suse.de>
8288
8289         [BZ #6894]
8290         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8291         is an optional BSD extension.
8292
8293         [BZ #10254]
8294         * manual/stdio.texi (Opening Streams): Document additional fopen
8295         parameters.
8296
8297 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8298
8299         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8300         %eax without telling the compiler.
8301
8302 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8303
8304         [BZ # 13963]
8305         * manual/install.texi: Use sourceware.org.
8306
8307 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8308
8309         [BZ #13873]
8310         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8311         (__ieee754_pow): Generate overflow and underflow using huge*huge
8312         and tiny*tiny rather than just returning constant infinity or zero
8313         for large exponents.
8314         * math/libm-test.inc (pow_test): Require overflow exceptions for
8315         applicable cases of large exponents.
8316
8317         [BZ #706]
8318         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8319         (__ieee754_pow): Use iterative multiplication algorithm only for
8320         integer exponents with absolute value below 1024.  Check for odd
8321         integer exponents when using algorithm for real exponents.
8322         * math/libm-test.inc (pow_test): Add more tests.
8323         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8324
8325 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8326
8327         [BZ #13705]
8328         * math/libm-test.inc (exp_test): Do not allow overflow exception
8329         on underflow test.
8330
8331 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8332
8333         [BZ #13705]
8334         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8335         instead of __kernel_standard_f.
8336
8337 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8338
8339         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8340         * sysdeps/x86_64/memset_chk.S: Likewise.
8341
8342 2012-04-08  Andreas Jaeger  <aj@suse.de>
8343
8344         [BZ #10153]
8345         * manual/startup.texi (Environment Access): Describe return value
8346         for putenv and setenv.
8347
8348         [BZ #6895]
8349         * manual/filesys.texi (Directory Entries): Add description for
8350         DT_LNK.
8351
8352         [BZ #6890]
8353         * manual/filesys.texi (Directory Entries): Clarify that it's file
8354         system not operating system in the description of DT_UNKNOWN.
8355
8356         [BZ #6578]
8357         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8358
8359 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8360
8361         [BZ #6649]
8362         * manual/llio.texi (Opening and Closing Files): Add cross
8363         reference to explain mode argument.
8364
8365 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8366
8367         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8368         * sysdeps/x86_64/memset_chk.S: Likewise.
8369
8370 2012-04-07  David S. Miller  <davem@davemloft.net>
8371
8372         * elf/elf.h (R_SPARC_WDISP10): Define.
8373         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8374         R_SPARC_SIZE32.
8375         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8376         R_SPARC_SIZE64 and R_SPARC_H34.
8377
8378 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8379
8380         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8381         conditions and remove no longer applicable assertion.
8382
8383 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8384
8385         * bits/byteswap.h: Include <features.h>.
8386         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8387         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8388
8389 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8390
8391         * bits/byteswap.h (__bswap_16): Removed.
8392         Include <bits/byteswap-16.h> to get __bswap_16.
8393         * sysdeps/i386/bits/byteswap.h: Likewise.
8394         * sysdeps/s390/bits/byteswap.h: Likewise.
8395         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8396         * bits/byteswap-16.h: New file.
8397         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8398         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8399         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8400         * string/Makefile (headers): Add bits/byteswap-16.h.
8401
8402 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8403
8404         [BZ #13895]
8405         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8406         extra indirection.
8407         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8408         * nss/tst-nss-static.c: New.
8409
8410 2012-04-06  Robert Millan  <rmh@gnu.org>
8411
8412         [BZ #6486]
8413         * manual/llio.texi (File Position Primitive): lseek
8414         refers to WHENCE when it really means OFFSET.
8415
8416 2012-04-06  Andreas Jaeger  <aj@suse.de>
8417
8418         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8419         strncmp declarations.
8420
8421         * abilist/libc.abilist: Add __poll and __ppoll.
8422
8423 2012-04-05  David S. Miller  <davem@davemloft.net>
8424
8425         * scripts/check-local-headers.sh: Accept a host triplet in the
8426         path matched by the exclude regexp.
8427
8428         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8429         definition.
8430         * sysdeps/powerpc/powerpc32/dl-machine.h
8431         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8432         * sysdeps/s390/s390-32/dl-machine.h
8433         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8434         * sysdeps/sparc/sparc32/dl-machine.h
8435         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8436         * sysdeps/sparc/sparc64/dl-machine.h
8437         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8438
8439         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8440         lazy binding.
8441         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8442         undefined symbol errors.
8443
8444         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8445         DT_NEEDED entries.
8446
8447 2012-04-05  Michael Matz  <matz@suse.de>
8448
8449         [BZ #13592]
8450         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8451
8452 2012-04-05  Andreas Jaeger  <aj@suse.de>
8453
8454         [BZ #13908]
8455         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8456         comment.
8457
8458 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8459
8460         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8461         which ROUND is no valid rounding mode.
8462
8463 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8464
8465         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8466         read again.
8467         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8468
8469 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8470
8471         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8472         an exception using FPU order intentionally.
8473
8474 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8475
8476         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8477         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8478         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8479         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8480
8481 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8482
8483         [BZ #12340]
8484         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8485         EINVAL when BUFLEN is too smal.
8486
8487 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
8488
8489         [BZ #13553]
8490         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8491         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8492
8493 2012-04-03  Andreas Jaeger  <aj@suse.de>
8494
8495         [BZ #13938]
8496         * manual/setjmp.texi (System V contexts): Fix sentence.
8497
8498         [BZ #13926]
8499         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8500         New macro for this case.
8501         [!__GNUC__] (__bswap_64): New inline function for this case.
8502         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8503         * bits/byteswap.h: Likewise.
8504         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8505         ull, guard with __GLIBC_HAVE_LONG_LONG.
8506
8507         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8508         __GLIBC_HAVE_LONG_LONG.
8509
8510         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8511         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8512
8513 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8514
8515         [BZ #13691]
8516         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8517         inptr and inend, rather than using last_ch.
8518
8519 2012-04-02  David S. Miller  <davem@davemloft.net>
8520
8521         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8522         * stdio-common/printf-parse.h (read_int): Change return type to
8523         'int', return -1 on INT_MAX overflow.
8524         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8525         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8526         overflows INT_MAX.  Check for overflow of in-format-string precision
8527         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8528         SIZE_MAX not INT_MAX for integer overflow test.
8529         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8530         skip the construct in the format string but do not record anything.
8531         * stdio-common/bug22.c: Adjust to test both width/prevision
8532         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8533         explicitly for proper errno values.
8534
8535 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8536
8537         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8538         CHAR_MAX.
8539         * string/test-strcmp.c [! WIDE]: Likewise.
8540         * time/tst-mktime2.c: Likewise for INT_MAX.
8541         * string/test-string.h: #include <sys/param.h> for MIN.
8542
8543         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8544         * sysdeps/i386/init-first.c (init): Likewise.
8545         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8546         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8547         * sysdeps/sh/init-first.c (init): Likewise.
8548
8549 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8550
8551         * po/ru.po: Update from translation team.
8552         * po/vi.po: Likewise.
8553
8554 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8555
8556         * resolv/nss_dns/dns-host.c: Merge copyright years.
8557
8558 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8559
8560         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8561         Optimize memcpy with prefetch if
8562         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8563         src, dst pointers have unequal 16 byte alignments.
8564
8565 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8566
8567         [BZ #13928]
8568         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8569         from a CNAME entry and return the minimum ttl for the query.
8570         (gaih_getanswer_slice): Likewise.
8571
8572 2012-03-30  Jeff Law  <law@redhat.com>
8573
8574         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8575         due to long keys.
8576         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8577         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8578
8579         * resolv/nss_dns/dns-host.c: Update copyright year.
8580
8581 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8582
8583         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8584         requests to save a system call.  Fix check that all bytes are sent.
8585
8586         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8587         comments for sendmmsg.
8588
8589 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8590
8591         [BZ #13691]
8592         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8593         with only 1 character between 0x0041 and 0x01b0.
8594         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8595         * wcsmbs/tst-mbsnrtowcs.c: New file.
8596
8597 2012-03-29  David S. Miller  <davem@davemloft.net>
8598
8599         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8600         small copies by hand.
8601
8602 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8603
8604         [BZ #13761]
8605         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8606         _nss_compat_initgroups_dyn): Fall back to malloc/free
8607         for large group memberships.
8608
8609 2012-03-28  David S. Miller  <davem@davemloft.net>
8610
8611         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8612         that branches into memcpy.
8613         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8614         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8615         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8616         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8617         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8618         bits.
8619         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8620         implementation too.
8621         * sysdeps/sparc/mempcpy.S: New file.
8622
8623         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8624         the IFUNC routine in the libc case.
8625         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8626
8627         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8628         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8629         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8630         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8631         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8632         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8633         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8634         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8635
8636         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8637         loop to 256 bytes instead of 64 bytes and fix test signedness.
8638
8639         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8640         * sysdeps/sparc/sparc32/Makefile: rather than here...
8641         * sysdeps/sparc/sparc64/Makefile: and here.
8642
8643 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8644
8645         * malloc/mallocbug.c: Avoid warnings about unused variables.
8646
8647 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8648
8649         [BZ #13760]
8650         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8651         in the right place. Discard and retry query if response is
8652         larger than input buffer size.
8653
8654 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8655
8656         [BZ #369]
8657         [BZ #2678]
8658         [BZ #3866]
8659         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8660         x for large integer exponent.
8661         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8662         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8663         sign of result as needed afterwards.
8664         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8665         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8666         result for underflowing pow the same as for overflow.
8667         (__kernel_standard_l): Handle powl overflow and underflow here
8668         rather than calling __kernel_standard.
8669         * math/libm-test.inc (pow_test): Add more tests.
8670
8671         [BZ #3868]
8672         [BZ #13879]
8673         [BZ #13910]
8674         [BZ #13911]
8675         [BZ #13912]
8676         [BZ #13913]
8677         [BZ #13915]
8678         [BZ #13916]
8679         [BZ #13917]
8680         [BZ #13918]
8681         [BZ #13919]
8682         [BZ #13920]
8683         [BZ #13921]
8684         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8685         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8686         (__kernel_standard_l): New function.
8687         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8688         __kernel_standard.
8689         * math/w_acosl.c (__acosl): Likewise.
8690         * math/w_asinl.c (__asinl): Likewise.
8691         * math/w_atan2l.c (__atan2l): Likewise.
8692         * math/w_atanhl.c (__atanhl): Likewise.
8693         * math/w_coshl.c (__coshl): Likewise.
8694         * math/w_exp10l.c (__exp10l): Likewise.
8695         * math/w_exp2l.c (__exp2l): Likewise.
8696         * math/w_fmodl.c (__fmodl): Likewise.
8697         * math/w_hypotl.c (__hypotl): Likewise.
8698         * math/w_j0l.c (__j0l, __y0l): Likewise.
8699         * math/w_j1l.c (__j1l, __y1l): Likewise.
8700         * math/w_jnl.c (__jnl, __ynl): Likewise.
8701         * math/w_lgammal.c (__lgammal): Likewise.
8702         * math/w_log10l.c (__log10l): Likewise.
8703         * math/w_log2l.c (__log2l): Likewise.
8704         * math/w_logl.c (__logl): Likewise.
8705         * math/w_powl.c (__powl): Likewise.
8706         * math/w_remainderl.c (__remainderl): Likewise.
8707         * math/w_scalbl.c (sysv_scalbl): Likewise.
8708         * math/w_sinhl.c (__sinhl): Likewise.
8709         * math/w_sqrtl.c (__sqrtl): Likewise.
8710         * math/w_tgammal.c (__tgammal): Likewise.
8711         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8712         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8713         * math/libm-test.inc (acos_test): Add more tests.
8714         (acosh_test): Likewise.
8715         (asin_test): Likewise.
8716         (atanh_test): Likewise.
8717         (exp_test): Likewise.
8718         (exp10_test): Likewise.
8719         (exp2_test): Likewise.
8720         (expm1_test): Likewise.
8721         (lgamma_test): Likewise.
8722         (log_test): Likewise.
8723         (log10_test): Likewise.
8724         (log1p_test): Likewise.
8725         (log2_test): Likewise.
8726         (pow_test): Do not allow some spurious overflow exceptions.
8727         (sqrt_test): Add more tests.
8728         (tgamma_test): Likewise.
8729         (y0_test): Likewise.
8730         (y1_test): Likewise.
8731         (yn_test): Likewise.
8732
8733 2012-03-27  Anton Blanchard  <anton@samba.org>
8734
8735         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8736         MAP_HUGETLB.
8737         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8738         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8739         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8740
8741 2012-03-27  David S. Miller  <davem@davemloft.net>
8742
8743         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8744
8745         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8746         have-as-vis3 check.
8747
8748 2012-03-27  Andreas Jaeger  <aj@suse.de>
8749
8750         * sysdeps/x86_64/elf/configure.in: Moved to ...
8751         * sysdeps/x86_64/configure.in: ... here.
8752         * sysdeps/x86_64/elf/start.S: Moved to ...
8753         * sysdeps/x86_64/start.S: ... here.
8754         * sysdeps/x86_64/elf/configure: Delete.
8755
8756         * sysdeps/x86_64/configure.in: Merge contents from
8757         sysdeps/i386/configure.in (without i686 check).
8758
8759         * sysdeps/i386/elf/Versions: Merge into ...
8760         * sysdeps/i386/Versions: ... this.
8761         * sysdeps/i386/elf/Versions: Delete file.
8762         * sysdeps/i386/elf/start.S: Moved to ...
8763         * sysdeps/i386/start.S: ...here.
8764         * sysdeps/i386/elf/configure.in: Merge into...
8765         * sysdeps/i386/configure.in: ...here.
8766         * sysdeps/i386/elf/configure.in: Delete file.
8767         * sysdeps/i386/elf/configure: Delete file.
8768
8769         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8770         * debug/backtracesyms.c: ... here.
8771         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8772         * debug/backtracesymsfd.c: ... here.
8773         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8774         * sysdeps/generic/ifunc-sel.h: ... here.
8775
8776         * sysdeps/unix/i386/start.c: Delete file.
8777         * sysdeps/unix/sparc/start.c: Delete file.
8778         * sysdeps/unix/start.c: Delete file.
8779
8780         * sysdeps/sh/elf/configure.in: Moved to ...
8781         * sysdeps/sh/configure.in: ... here.
8782         * sysdeps/sh/elf/start.S: Moved to ...
8783         * sysdeps/sh/start.S: ... here.
8784         * sysdeps/sh/elf/configure: Delete file.
8785
8786         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8787         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8788         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8789         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8790         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8791         * sysdeps/powerpc/powerpc64/start.S: here.
8792         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8793         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8794         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8795         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8796         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8797
8798         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8799         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8800         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8801         * sysdeps/powerpc/powerpc32/start.S: ... here.
8802         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8803         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8804         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8805
8806         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8807         * sysdeps/powerpc/ifunc-sel.h: ... here.
8808         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8809         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8810
8811         * sysdeps/sparc/elf/configure.in: Moved to ...
8812         * sysdeps/sparc/configure.in: ... here.
8813         * sysdeps/sparc/elf/configure: Delete file.
8814         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8815         * sysdeps/sparc/sparc32/start.S: ... here.
8816         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8817         * sysdeps/sparc/sparc64/start.S: ... here.
8818         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8819         * sysdeps/sparc/sparc32/Makefile: ... this.
8820         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8821         * sysdeps/sparc/sparc64/Makefile: ... this.
8822
8823         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8824         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8825         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8826         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8827         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8828         * sysdeps/s390/s390-32/setjmp.S: ... here.
8829         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8830         * sysdeps/s390/s390-32/configure.in: ... here.
8831         * sysdeps/s390/s390-32/elf/configure: Delete file.
8832         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8833         * sysdeps/s390/s390-32/start.S: ... here.
8834
8835         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8836         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8837         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8838         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8839         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8840         * sysdeps/s390/s390-64/setjmp.S: ... here.
8841         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8842         * sysdeps/s390/s390-64/configure.in: ... here
8843         * sysdeps/s390/s390-64/elf/configure: Delete file.
8844         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8845         * sysdeps/s390/s390-64/start.S: ... here.
8846         * sysdeps/s390/s390-64/elf/configure: Delete.
8847
8848         * configure.in: Remove support for elf directories in sysdeps.
8849
8850         * configure: Regenerated.
8851         * sysdeps/i386/configure: Regenerated.
8852         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8853         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8854         * sysdeps/s390/s390-32/configure: Regenerated.
8855         * sysdeps/s390/s390-64/configure: Regenerated.
8856         * sysdeps/sh/configure: Regenerated.
8857         * sysdeps/sparc/configure: Regenerated.
8858         * sysdeps/x86_64/configure: Regenerated.
8859
8860 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8861
8862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8863
8864         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8865         denormal result into account.
8866
8867 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8868
8869         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8870         Reported by Allan McRae <allan@archlinux.org>.
8871
8872 2012-03-23  Jeff Law  <law@redhat.com>
8873
8874         * nss/getnssent.c (__nss_getent): Fix typo.
8875
8876 2012-03-23  David S. Miller  <davem@davemloft.net>
8877
8878         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8879
8880 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8881
8882         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8883         to pad to uint64_t for each field.
8884         (dl_tls_index): Replace unsigned long with uint64_t.
8885
8886 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8887         Paul Pluzhnikov  <ppluzhnikov@google.com>
8888
8889         [BZ #6528]
8890         * grp/Makefile (otherlibs): Don't set it.
8891         * inet/Makefile (otherlibs): Likewise.
8892         * login/Makefile (otherlibs): Likewise.
8893         * nscd/Makefile (otherlibs): Likewise.
8894         * posix/Makefile (otherlibs): Likewise.
8895         * pwd/Makefile (otherlibs): Likewise.
8896         * rt/Makefile (otherlibs): Likewise.
8897         * sunrpc/Makefile (otherlibs): Likewise.
8898         * nss/Makefile (otherlibs): Likewise.
8899         Add libnss_files to routines and static-only-routines.
8900         ($(objpfx)getent): Remove rule.
8901         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8902         static-only-routines.
8903
8904 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8905
8906         [BZ #13892]
8907         * math/s_cexp.c: Include <float.h>.
8908         (__cexp): Handle exp result overflowing not necessarily
8909         overflowing both real and imaginary parts of result.
8910         * math/s_cexpf.c: Likewise.
8911         * math/s_cexpl.c: Likewise.
8912         * math/libm-test.inc (cexp_test): Add more tests.
8913         * sysdeps/i386/fpu/libm-test-ulps: Update.
8914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8915
8916 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8917
8918         * include/link.h (ELFW): New macro.
8919         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8920         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8921
8922 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8923
8924         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8925         with uint64_t.
8926
8927 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8928
8929         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8930         declaration.
8931         (struct La_x32_retval): Likewise.
8932
8933 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8934
8935         * sysdeps/x86_64/preconfigure.in: New file.
8936         * sysdeps/x86_64/preconfigure: New generated file.
8937
8938 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8939
8940         [BZ #13824]
8941         * math/e_exp2l.c: Include <float.h>.
8942         (__ieee754_exp2l): Handle overflow and underflow cases
8943         separately.  Only pass fractional part of argument to
8944         __ieee754_expl.
8945         * math/libm-test.inc (exp2_test): Add more tests.
8946
8947         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8948         negating x to take absolute value.
8949         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8950         Likewise.
8951         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8952         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8953         Likewise.
8954         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8955         computing low part if x was negated.
8956         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8957
8958 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8959
8960         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8961         la_x32_gnu_pltexit.
8962         (pltexit): Cast int_retval to ptrdiff_t.
8963         * elf/tst-auditmod3b.c: Likewise.
8964         * elf/tst-auditmod4b.c: Likewise.
8965         * elf/tst-auditmod5b.c: Likewise.
8966         * elf/tst-auditmod6b.c: Likewise.
8967         * elf/tst-auditmod6c.c: Likewise.
8968         * elf/tst-auditmod7b.c: Likewise.
8969
8970         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8971         and x32_gnu_pltexit.
8972
8973         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8974         __ELF_NATIVE_CLASS.
8975         (La_x32_regs): New macro.
8976         (La_x32_retval): Likewise.
8977         (la_x32_gnu_pltenter): New function prototype.
8978         (la_x32_gnu_pltexit): Likewise.
8979
8980 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8981
8982         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8983         exponent.
8984
8985         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8986
8987         * configure.in (libc_cv_cc_nofma): Check for option to disable
8988         generation of FMA instructions.
8989         * configure: Regenerate.
8990         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8991         * sysdeps/ieee754/dbl-64/Makefile: New file.
8992         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8993         Remove brandred-fma4.
8994         (CFLAGS-brandred-fma4.c): Remove.
8995         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8996         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8997         define.
8998         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8999         define.
9000
9001 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9002
9003         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9004         LLONG_MAX != LONG_MAX.
9005         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9006         (_fitoa_word): Likewise.
9007         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9008         LLONG_MAX != LONG_MAX.
9009         * stdio-common/_itowa.h: Include <_itoa.h>.
9010         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9011         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9012         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9013         only if not defined.
9014         (_ITOA_WORD_TYPE): Likewise.
9015         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9016         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9017
9018 2012-03-21  David S. Miller  <davem@davemloft.net>
9019
9020         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9021
9022 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9023
9024         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9025         of x86_64 when setting libc_cv_slibdir, libdir and
9026         libc_cv_localedir.
9027         * sysdeps/unix/sysv/linux/configure: Regenerated.
9028
9029 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9030
9031         * manual/lang.texi (Old Varargs): Remove section.
9032         (How Variadic): Update menu.
9033         (va_start): Do not mention varargs.h.
9034
9035 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9036             Joseph Myers  <joseph@codesourcery.com>
9037
9038         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9039         link test.
9040         * configure: Regenerated.
9041
9042 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9043
9044         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9045         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9046         conformtest.pl
9047
9048 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9049
9050         * NOTES: Remove.
9051         * Makefile (files-for-dist): Remove NOTES.
9052         (NOTES): Remove rule.
9053         * README: Don't refer to NOTES.
9054         * manual/creature.texi: Don't include macros.texi.
9055         * manual/intro.texi (creature.texi): Remove comment referring to
9056         NOTES.
9057
9058         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9059         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9060         * configure: Regenerated.
9061         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9062         LIBC_TRY_CC_OPTION.
9063         (libc_cv_as_i686): Likewise.
9064         (libc_cv_cc_avx): Likewise.
9065         (libc_cv_cc_sse2avx): Likewise.
9066         (libc_cv_cc_fma4): Likewise.
9067         (libc_cv_cc_novzeroupper): Likewise.
9068         * sysdeps/i386/configure: Regenerated.
9069
9070         [BZ #13883]
9071         * sysdeps/i386/fpu/s_cexp.S: Remove.
9072         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9073         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9074         * math/libm-test.inc (cexp_test): Add more tests.
9075         * sysdeps/i386/fpu/libm-test-ulps: Update.
9076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9077
9078 2012-03-21  Allan McRae  <allan@archlinux.org>
9079
9080         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9081
9082 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9083
9084         [BZ #13871]
9085         * math/w_exp2.c: Do not include <float.h>.
9086         (o_threshold, u_threshold): Remove.
9087         (__exp2): Calculate result before checking finiteness and calling
9088         __kernel_standard.
9089         * math/w_exp2f.c: Likewise.
9090         * math/w_exp2l.c: Likewise.
9091         * math/libm-test.inc (exp2_test): Require overflow exception for
9092         1e6 input.
9093
9094         [BZ #3866]
9095         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9096         range of signed 64-bit integers before using fistpll.  Remove
9097         checks for whether integers fit in mantissa bits.
9098         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9099         the range of signed 32-bit integers before using fistpl.  Remove
9100         checks for whether integers fit in mantissa bits.
9101         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9102         (__ieee754_powl): Test for y outside the range of signed 64-bit
9103         integers before using fistpll.  Reduce 64-bit values to 63-bit
9104         ones as needed.
9105         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9106         divide-by-zero is raised for zero to large negative powers.
9107         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9108         (__ieee754_powl): Test for y outside the range of signed 64-bit
9109         integers before using fistpll.  Reduce 64-bit values to 63-bit
9110         ones as needed.
9111         * math/libm-test.inc (pow_test): Add more tests.
9112
9113 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9114
9115         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9116         <stdio-common/_itoa.h>.
9117         * debug/segfault.c: Likewise.
9118         * elf/dl-cache.c: Likewise.
9119         * elf/dl-minimal.c: Likewise.
9120         * elf/dl-misc.c: Likewise.
9121         * elf/dl-sysdep.c: Likewise.
9122         * elf/dl-version.c: Likewise.
9123         * elf/rtld.c: Likewise.
9124         * hurd/hurdsock.c: Likewise.
9125         * hurd/lookup-retry.c: Likewise.
9126         * malloc/malloc.c: Likewise.
9127         * malloc/mtrace.c: Likewise.
9128         * nscd/nscd_getgr_r.c: Likewise.
9129         * nscd/nscd_getpw_r.c: Likewise.
9130         * nscd/nscd_getserv_r.c: Likewise.
9131         * posix/getopt_init.c: Likewise.
9132         * posix/wordexp.c: Likewise.
9133         * stdio-common/_itoa.c: Likewise.
9134         * stdio-common/printf_fphex.c: Likewise.
9135         * stdio-common/vfprintf.c: Likewise.
9136         * string/_strerror.c: Likewise.
9137         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9138         * sysdeps/i386/i686/hp-timing.h: Likewise.
9139         * sysdeps/mach/_strerror.c: Likewise.
9140         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9141         * sysdeps/mach/hurd/sethostid.c: Likewise.
9142         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9143         * sysdeps/mach/xpg-strerror.c: Likewise.
9144         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9145         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9146         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9147         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9148         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9149         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9150         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9151         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9152         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9153         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9154         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9155         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9156         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9157         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9158         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9159         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9160         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9161         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9162         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9163         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9164         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9165
9166         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9167
9168         * stdio-common/_itoa.h: Moved to ...
9169         * sysdeps/generic/_itoa.h: Here.
9170
9171         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9172
9173         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9174         instead of "_itoa.h" and "_itowa.h".
9175         * stdio-common/vfprintf.: Likewise.
9176
9177 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9178
9179         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9180         <bits/wordsize.h>.
9181         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9182         (__signbit): Likwise.
9183         (llrintf): Likwise.
9184         (llrint): Likwise.
9185
9186 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9187
9188         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9189         __WORDSIZE != 64.
9190
9191 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9192
9193         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9194         OVERFLOW_EXCEPTION_OK.
9195         * math/libm-test.inc ("Philosophy"): Update comment about
9196         exception testing.
9197         (OVERFLOW_EXCEPTION): Define.
9198         (OVERFLOW_EXCEPTION_OK): Likewise.
9199         (INVALID_EXCEPTION_OK): Renumber.
9200         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9201         (IGNORE_ZERO_INF_SIGN): Likewise.
9202         (test_exceptions): Handle FE_OVERFLOW.
9203         (exp10_test): Expect overflow exceptions.
9204         (exp2_test): Likewise.
9205         (expm1_test): Likewise.
9206         (nextafter_test): Likewise.
9207         (pow_test): Likewise.
9208         (scalbn_test): Likewise.
9209         (scalbln_test): Likewise.
9210
9211 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9212
9213         * sysdeps/x86_64/bits/atomic.h
9214         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9215         64bit integer.
9216         (atomic_exchange_acq): Likewise.
9217         (__arch_exchange_and_add_body): Likewise.
9218         (__arch_add_body): Likewise.
9219         (atomic_add_negative): Likewise.
9220         (atomic_add_zero): Likewise.
9221
9222 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9223
9224         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9225         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9226
9227 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9228
9229         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9230         Check __x86_64__ instead of __WORDSIZE.
9231
9232 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9233
9234         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9235
9236 2012-03-19  David S. Miller  <davem@davemloft.net>
9237
9238         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9239
9240         * sysdeps/sparc/fpu/fenv_private.h: New file.
9241         * sysdeps/sparc/fpu/math_private.h: Use it.
9242         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9243         Remove.
9244         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9245         (libc_feholdexcept_setroundl): Remove.
9246         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9247         Remove.
9248         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9249         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9250
9251 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9252
9253         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9254         int64_t instead of long int.
9255         (INSERT_WORDS64): Likwise.
9256
9257 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9258
9259         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9260         _Unwind_GetCFA return to _Unwind_Ptr first.
9261
9262 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9263
9264         [BZ #13629]
9265         * math/s_clog.c: Include <float.h>.
9266         (__clog): Scale large or subnormal inputs.
9267         * math/s_clogf.c: Likewise.
9268         * math/s_clogl.c: Likewise.
9269         * math/s_clog10.c: Include <float.h>.
9270         (M_LOG10_2): Define.
9271         (__clog10): Scale large or subnormal inputs.
9272         * math/s_clog10f.c: Likewise.
9273         * math/s_clog10l.c: Likewise.
9274         * math/libm-test.inc (clog_test): Add more tests.
9275         (clog10_test): Likewise.
9276         * sysdeps/i386/fpu/libm-test-ulps: Update.
9277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9278
9279         [BZ #11451]
9280         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9281         x and y.
9282         * math/libm-test.inc (atan2_test): Add another test.
9283
9284         * Makerules (common-objdir-compile): Remove.
9285         * sysdeps/unix/Makefile (config-generated): Do not add
9286         $(unix-generated) to variable.
9287         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9288         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9289         Remove rule.
9290         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9291         Likewise.
9292         [generic bits/local_lim.h] (before-compile): Do not append to
9293         variable.
9294         [generic bits/local_lim.h] (common-generated): Likewise.
9295         [generic sys/param.h] (before-compile): Do not append to variable.
9296         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9297         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9298         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9299         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9300         include.
9301         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9302         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9303         [generic sys/param.h] ($(addprefix
9304         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9305         [generic sys/param.h] (common-generated): Do not append to
9306         variable.
9307         [generic sys/param.h] (sysdep_headers): Likewise.
9308         [generic bits/errno.h] (before-compile): Do not append to
9309         variable.
9310         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9311         rule.
9312         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9313         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9314         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9315         [generic bits/errno.h] (common-generated): Do not append to
9316         variable.
9317         [generic bits/ioctls.h] (before-compile): Do not append to
9318         variable.
9319         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9320         rule.
9321         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9322         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9323         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9324         rule.
9325         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9326         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9327         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9328         [generic bits/ioctls.h] (common-generated): Do not append to
9329         variable.
9330         [generic sys/syscall.h] (syscall.h): Remove variable.
9331         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9332         rule.
9333         [generic sys/syscall.h] (before-compile): Do not append to
9334         variable.
9335         [generic sys/syscall.h] (common-generated): Likewise.
9336         * sysdeps/unix/errnos-tmpl.c: Remove file.
9337         * sysdeps/unix/errnos.awk: Likewise.
9338         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9339         * sysdeps/unix/ioctls.awk: Likewise.
9340         * sysdeps/unix/mk-local_lim.c: Likewise.
9341         * sysdeps/unix/snarf-ioctls: Likewise.
9342
9343 2012-03-19  Richard Henderson  <rth@twiddle.net>
9344
9345         * sysdeps/i386/fpu/fenv_private.h: New file.
9346         * sysdeps/i386/fpu/math_private.h: Use it.
9347         (math_opt_barrier, math_force_eval): Remove.
9348         (libc_feholdexcept_setround_53bit): Remove.
9349         (libc_feupdateenv_53bit): Remove.
9350         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9351         (math_opt_barrier, math_force_eval): Remove.
9352         (libc_feholdexcept): Remove.
9353         (libc_feholdexcept_setround): Remove.
9354         (libc_fetestexcept, libc_fesetenv): Remove.
9355         (libc_feupdateenv_test): Remove.
9356         (libc_feupdateenv, libc_feholdsetround): Remove.
9357         (libc_feresetround): Remove.
9358
9359         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9360         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9361
9362         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9363         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9364         (libc_feupdateenv_testl): New.
9365         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9366         (libc_feupdateenv_testf): New.
9367         (libc_feupdateenv): Use libc_feupdateenv_test.
9368         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9369         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9370
9371         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9372         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9373         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9374         (libc_feresetround_noex): New.
9375         (libc_feresetround_noexf): New.
9376         (libc_feresetround_noexl): New.
9377         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9378         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9379         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9380         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9381         SET_RESTORE_ROUND.
9382         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9383         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9384         (__cos): Likewise.
9385         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9386         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9387         SET_RESTORE_ROUND_NOEX.
9388         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9389         SET_RESTORE_ROUND_NOEXF.
9390         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9391         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9392         (libc_feholdsetroundf): New.
9393         (libc_feresetround, libc_feresetroundf): New.
9394
9395         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9396         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9397         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9398
9399         * sysdeps/generic/math_private.h: Include <fenv.h>.
9400         (default_libc_feholdexcept): New.
9401         (default_libc_feholdexcept_setround): New.
9402         (default_libc_fesetenv, default_libc_feupdateenv): New.
9403         (libc_feholdexcept): Only define if undefined.
9404         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9405         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9406         (libc_feholdexcept_setroundl): Likewise.
9407         (libc_feholdexcept_setround_53bit): Likewise.
9408         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9409         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9410         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9411         (libc_feupdateenv_53bit): Likewise.
9412         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9413         (libc_feholdexcept): Convert from macro to inline function.
9414         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9415         (libc_fesetenv, libc_feupdateenv): Likewise.
9416
9417         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9418         not previously defined.
9419         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9420         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9421         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9422         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9423         * sysdeps/ieee754/flt-32/math_private.h: New file.
9424         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9425         math_private.h below SET_FLOAT_WORD.
9426         (__isnan, __isinf_ns, __finite): Remove.
9427         (__isnanf, __isinf_nsf, __finitef): Remove.
9428
9429 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9430
9431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9432
9433 2012-03-17  David S. Miller  <davem@davemloft.net>
9434
9435         [BZ #6471]
9436         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9437         for 2.16.
9438
9439 2012-03-16  David S. Miller  <davem@davemloft.net>
9440
9441         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9442         warnings.
9443
9444         [BZ #6471]
9445         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9446         properly.
9447         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9448         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9449         sysdep_routines when subdir is sysvipc.
9450         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9451         __getshmlba helper.
9452
9453         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9454
9455 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9456
9457         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9458         [__LP64__].
9459
9460 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9461
9462         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9463         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9464         (__lround): Renamed to ...
9465         (__llround): This.  Replace long int with long long int.
9466         Define lround functions as aliases of llround functions.
9467         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9468
9469 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9470
9471         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9472         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9473         adresses to uintptr_t.  Replace "long int" and "unsigned long
9474         int" with "greg_t" on va_arg.
9475
9476 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9477
9478         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9479         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9480
9481         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9482         Move e_machine check before EI_CLASS check.  Handle x32
9483         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9484         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9485         SKIP_EM_IA_64 and include
9486         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9487
9488         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9489         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9490         (add_system_dir): New macro.
9491
9492         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9493         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9494
9495 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9496
9497         [BZ #2551]
9498         [BZ #2552]
9499         [BZ #2553]
9500         [BZ #2554]
9501         [BZ #2562]
9502         [BZ #2563]
9503         [BZ #2565]
9504         [BZ #2566]
9505         [BZ #2576]
9506         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9507         (y0): Likewise.
9508         * math/w_j0f.c (j0f): Likewise.
9509         (y0f): Likewise.
9510         * math/w_j0l.c (__j0l): Likewise.
9511         (__y0l): Likewise.
9512         * math/w_j1.c (j1): Likewise.
9513         (y1): Likewise.
9514         * math/w_j1f.c (j1f): Likewise.
9515         (y1f): Likewise.
9516         * math/w_j1l.c (__j1l): Likewise.
9517         (__y1l): Likewise.
9518         * math/w_jn.c (jn): Likewise.
9519         (yn): Likewise.
9520         * math/w_jnf.c (jnf): Likewise.
9521         (ynf): Likewise.
9522         * math/w_jnl.c (__jnl): Likewise.
9523         (__ynl): Likewise.
9524         * math/libm-test.inc (j0_test): Add more tests.
9525         (j1_test): Likewise.
9526         (jn_test): Likewise.  Add trailing semicolon to existing test.
9527         (y0_test): Likewise.
9528         (y1_test): Likewise.
9529         * sysdeps/i386/fpu/libm-test-ulps: Update.
9530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9531
9532         [BZ #13851]
9533         [BZ #13854]
9534         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9535         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9536         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9537         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9538         (__tanl): Set errno for infinite argument.
9539         * sysdeps/i386/fpu/mptan.c: Remove.
9540         * sysdeps/i386/fpu/s_tan.S: Likewise.
9541         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9542         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9543         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9544         * math/libm-test.inc (tan_test): Add more tests and enable more
9545         tests for double and long double.
9546         * sysdeps/i386/fpu/libm-test-ulps: Update.
9547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9548
9549 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9550
9551         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9552         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9553
9554 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9555
9556         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9557         * configure.in: Use it for both main tree and add-ons.
9558         * configure: Regenerated.
9559
9560 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9561
9562         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9563
9564 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9565
9566         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9567         in comment.
9568
9569         [BZ #13851]
9570         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9571         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9572         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9573         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9574         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9575         infinite argument.
9576         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9577         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9578         != 0 for prec == 2.
9579         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9580         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9581         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9582         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9583         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9584         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9585         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9586         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9587         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9588         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9589         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9590         * math/libm-test.inc (cos_test): Add more tests and enable more
9591         tests for long double.
9592         (sin_test): Likewise.
9593         (sincos_test): Likewise.
9594         * sysdeps/i386/fpu/libm-test-ulps: Update.
9595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9596
9597 2012-03-16  David S. Miller  <davem@davemloft.net>
9598
9599         * sysdeps/sparc/fpu/math_private.h: New file.
9600
9601 2012-03-15  David S. Miller  <davem@davemloft.net>
9602
9603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9604         file.
9605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9607         file.
9608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9609         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9610         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9611         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9612         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9613         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9614         sysdep routines.
9615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9616
9617         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9618         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9619
9620         * sysdeps/sparc/sparc-ifunc.h: New file.
9621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9622         sparc-ifunc.h
9623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9625         Likewise.
9626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9627         Likewise.
9628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9632         Likewise.
9633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9638         Likewise.
9639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9640         Likewise.
9641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9645         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9646         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9647         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9648         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9649         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9650         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9651         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9652         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9653         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9654         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9655         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9656         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9657         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9658         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9659         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9660         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9661         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9662         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9663         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9664         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9665
9666 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9667
9668         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9669         scaling.
9670         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9671
9672 2012-03-15  Andreas Jaeger  <aj@suse.de>
9673
9674         [BZ #13852]
9675         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9676         ieee754/flt-32 implementation for sin, cos and sincos.
9677         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9678         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9679         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9680         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9681         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9682         ieee754/flt-32 implementation for tan.
9683
9684         * math/libm-test.inc (cos_test): Enable some large input tests for
9685         float as well
9686         (sin_test): Likewise.
9687         (sincos_test): Likewise.
9688         (tan_test): Add tests for large input.
9689
9690         * sysdeps/i386/fpu/libm-test-ulps: Update.
9691
9692 2012-03-15  Andreas Jaeger  <aj@suse.de>
9693
9694         [BZ #13658]
9695         * math/libm-test.inc (cos_test): Add more test cases.
9696         (sin_test): Likewise.
9697         (sincos_test): Likewise.
9698
9699 2012-03-15  Andreas Jaeger  <aj@suse.de>
9700
9701         [BZ #13837]
9702         * math/libm-test.inc (cos_test): Add a test case for large input
9703         value.
9704         (sin_test): Likewise.
9705         (sincos_test): Likewise.
9706
9707 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9708         Joseph Myers  <joseph@codesourcery.com>
9709
9710         [BZ #13658]
9711         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9712         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9713         * sysdeps/i386/fpu/branred.c: Likewise.
9714         * sysdeps/i386/fpu/dosincos.c: Likewise.
9715         * sysdeps/i386/fpu/mpa.c: Likewise.
9716         * sysdeps/i386/fpu/s_cos.S: Likewise.
9717         * sysdeps/i386/fpu/s_sin.S: Likewise.
9718         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9719         * sysdeps/i386/fpu/sincos32.c: Likewise.
9720
9721         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9722         Define.
9723         (libc_feupdateenv_53bit): Define.
9724         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9725         Define.
9726         (libc_feupdateenv_53bit): Define.
9727
9728         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9729         53 bit (without extend i386 double precision).
9730
9731         * math/libm-test.inc (sincos_test): Add tests for large input.
9732         (sin): Likewise.
9733         (cos): Likewise.
9734
9735         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9736
9737 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9738
9739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9740
9741 2012-03-15  David S. Miller  <davem@davemloft.net>
9742
9743         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9744         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9745         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9746         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9749         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9750         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9752         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9753         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9754         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9755         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9756         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9757         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9759         file.
9760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9762         file.
9763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9765         file.
9766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9768         file.
9769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9770         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9771         fmin/fmax sysdep routines.
9772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9773
9774 2012-03-14  David S. Miller  <davem@davemloft.net>
9775
9776         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9777         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9778         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9779         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9780         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9781         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9782         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9783         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9784         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9785         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9786         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9787         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9788         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9789         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9790         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9791         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9792         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9793         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9794         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9795         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9796         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9797         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9798         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9799         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9800         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9801         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9802         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9803         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9804         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9805         routines.
9806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9807         file.
9808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9810         file.
9811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9813         file.
9814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9816         file.
9817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9819         file.
9820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9822         file.
9823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9824         file.
9825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9826         file.
9827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9828         file.
9829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9830         New file.
9831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9832         file.
9833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9834         file.
9835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9837         file.
9838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9840         file.
9841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9843         file.
9844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9846         VIS3 routines.
9847
9848         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9849         New file.
9850
9851         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9852
9853         * sysdeps/sparc/configure.in: New file.
9854         * sysdeps/sparc/configure: Generate.
9855         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9856         * configure: Regenerate.
9857         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9858         * config.make.in (have-as-vis3): New.
9859         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9860         available use -Av9d instead of -Av9a.
9861         * sysdeps/sparc/sparc64/Makefile: Likewise.
9862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9864         New file.
9865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9866         file.
9867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9868         New file.
9869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9870         file.
9871         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9872         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9873         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9874         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9875         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9876
9877         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9878         fzeros/fnegs to load 0x80000000 into a float register instead of
9879         using the stack.
9880         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9881
9882 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9883
9884         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9885         bits/syscall.h.
9886         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9887         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9888         ($(inst_includedir)/bits/syscall.h): Remove rule.
9889         ($(objpfx)bits/syscall.d): Include instead of
9890         $(objpfx)syscall-list.d.
9891         (generated): Change syscall-list.h and syscall-list.d to
9892         bits/syscall.h and bits/syscall.d.
9893
9894 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9895
9896         [BZ #13846]
9897         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9898
9899 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9900
9901         [BZ #13841]
9902         * math/s_csqrt.c: Include <float.h>.
9903         (__csqrt): Scale large or subnormal inputs.
9904         * math/s_csqrtf.c: Likewise.
9905         * math/s_csqrtl.c: Likewise.
9906         * math/libm-test.inc (csqrt_test): Add more tests.
9907         * sysdeps/i386/fpu/libm-test-ulps: Update.
9908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9909
9910         [BZ #13840]
9911         * math/libm-test.inc (hypot_test): Add more tests.
9912
9913 2012-03-13  David S. Miller  <davem@davemloft.net>
9914
9915         [BZ #13840]
9916         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9917         double-precision for the calculation instead of scaling.
9918
9919 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9920
9921         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9922         manipulate bits before adding and subtracting TWO52[sx].
9923         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9924         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9925         Likewise.
9926         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9927
9928 2012-03-13  David S. Miller  <davem@davemloft.net>
9929
9930         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9931         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9932         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9933         rtld-global-offsets.h
9934         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9935
9936         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9937         large parameters.
9938
9939         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9940
9941         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9942         'err' in the ifdef scope in which it is actually used.
9943
9944         * nss/nss_db/db-init.c: Include string.h
9945
9946 2012-03-12  David S. Miller  <davem@davemloft.net>
9947
9948         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9949         masking out of the most significant byte of random value used.
9950         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9951         Fix coding style in previous change.
9952
9953         * sysdeps/unix/sysv/linux/kernel-features.h
9954         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9955         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9956         expression.
9957         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9958         later.
9959
9960 2012-03-11  David S. Miller  <davem@davemloft.net>
9961
9962         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9963         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9964         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9965         for 'resultvar' otherwise things get truncated on 64-bit.
9966
9967         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9968         Fix masking out of the most significant byte of random value used.
9969
9970         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9971
9972 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9973
9974         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9975
9976 2012-03-09  David S. Miller  <davem@davemloft.net>
9977
9978         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9979         variables with appropriate CPP guards.
9980         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9981         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9982         on resulting framesize and the management of the outregs buffer for pltexit.
9983         Preserve floating point return values across _dl_call_pltexit call.
9984         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9985         framesize and the management of the outregs buffer for pltexit.
9986         Preserve floating point return values across _dl_call_pltexit
9987         call.
9988         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9989         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9990         (print_exit): Fix format string for return register value.
9991
9992 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9993
9994         * sunrpc/Makefile (others): Add rpcgen.
9995         ($(objpfx)rpcgen): Remove special build rule and dependency on
9996         libc.
9997         * sunrpc/rpcgen.c: New file.
9998
9999 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10000
10001         [BZ #13673]
10002         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10003         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10004         * sysdeps/i386/crti.S: Likewise.
10005         * sysdeps/i386/crtn.S: Likewise.
10006         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10007         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10008         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10009         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10010         * sysdeps/sh/crti.S: Likewise.
10011         * sysdeps/sh/crtn.S: Likewise.
10012         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10013
10014         [BZ #13673]
10015         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10016         with URL.
10017         * locale/programs/locfile-kw.gperf: Likewise.
10018         * locale/programs/charmap-kw.h: Regenerated.
10019         * locale/programs/locfile-kw.h: Likewise.
10020
10021         [BZ #13673]
10022         * intl/plural.y: Replace FSF snail mail address with URL.
10023         * intl/plural.c: Regenerated.
10024
10025 2012-03-09  Richard Henderson  <rth@twiddle.net>
10026
10027         * include/math_private.h: Remove file.
10028         * math/math_private.h: Move file ...
10029         * sysdeps/generic/math_private.h: ... here.
10030
10031         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10032         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10033         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10034
10035         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10036         and <math_private.h>.
10037         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10038         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10039         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10040         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10041         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10042         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10043         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10044         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10045         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10046         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10047         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10048         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10049         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10050         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10051         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10052         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10053         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10054         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10055         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10056         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10057         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10058         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10059         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10060         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10061         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10062         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10063         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10064         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10065         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10066         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10067         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10068         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10069         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10070         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10071         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10072         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10073         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10074         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10075         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10076         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10077         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10078         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10079         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10080         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10081         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10082         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10083         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10084         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10085         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10086         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10087         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10088         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10089         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10090         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10091         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10092         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10093         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10094         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10095         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10096         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10097         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10098         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10099         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10100         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10101         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10102         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10103         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10104         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10105         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10106         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10107         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10108         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10109         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10110         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10111         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10112         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10113         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10114         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10115         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10116         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10117         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10118         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10119         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10120         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10121         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10122         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10123         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10124         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10125         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10126         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10127         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10128         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10129         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10130         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10131         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10132         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10133         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10134         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10135         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10136         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10137         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10138         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10139         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10140         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10141         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10142         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10143         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10144         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10145         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10146         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10147         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10148         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10149         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10150         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10151         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10152         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10153         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10154         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10155         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10156         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10157         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10158         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10159         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10160         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10161         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10162         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10163         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10164         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10165         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10166         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10167         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10168         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10169         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10170         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10171         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10172         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10173         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10174         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10175         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10176         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10177         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10178         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10179         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10180         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10181         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10182         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10183         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10184         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10185         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10186         * sysdeps/ieee754/k_standard.c: Likewise.
10187         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10188         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10189         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10190         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10191         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10192         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10193         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10194         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10195         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10196         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10199         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10200         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10201         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10202         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10203         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10204         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10205         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10206         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10207         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10208         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10209         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10210         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10211         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10212         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10213         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10216         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10217         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10218         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10219         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10220         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10221         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10222         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10223         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10224         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10225         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10226         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10227         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10228         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10229         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10230         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10231         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10232         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10233         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10234         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10235         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10236         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10237         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10238         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10239         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10240         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10241         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10242         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10243         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10244         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10245         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10246         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10247         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10248         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10249         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10250         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10251         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10252         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10253         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10254         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10255         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10258         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10259         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10260         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10261         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10262         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10263         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10264         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10265         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10266         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10267         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10268         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10269         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10270         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10271         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10272         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10273         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10274         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10275         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10276         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10277         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10278         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10279         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10280         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10281         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10282         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10283         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10284         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10285         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10286         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10287         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10288         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10290         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10291         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10292         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10293         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10294         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10295         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10296         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10297         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10298         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10299         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10300         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10301         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10302         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10303         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10304         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10305         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10306         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10307         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10308         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10309         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10310         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10311         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10312         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10313         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10314         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10316         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10317         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10318         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10319         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10320         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10321         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10322         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10323         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10324         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10325         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10326         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10327         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10328         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10329         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10330         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10331         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10332         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10333         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10334         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10335         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10336         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10337         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10338         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10340         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10341         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10342         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10343         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10344         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10345         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10346         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10347         * sysdeps/ieee754/s_lib_version.c: Likewise.
10348         * sysdeps/ieee754/s_matherr.c: Likewise.
10349         * sysdeps/ieee754/s_signgam.c: Likewise.
10350         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10351         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10352         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10353         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10354         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10355         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10356         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10357         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10358         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10359         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10360         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10361         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10362         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10363         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10364         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10365         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10366         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10367         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10368         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10369         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10370         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10371
10372 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10373
10374         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10375         * sunrpc/rpc_main.c: Likewise.
10376         * sunrpc/rpc_svcout.c: Likewise.
10377
10378 2012-03-09  David S. Miller  <davem@davemloft.net>
10379
10380         * include/math_private.h: New file.
10381
10382 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10383
10384         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10385         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10386         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10387         from <bits/socket_type.h>.
10388         (enum __socket_type): Don't define here.
10389         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10390         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10391         bits/socket_type.h.
10392
10393         [BZ #13566]
10394         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10395         checking __USE_GNU.
10396
10397         * Makerules ($(inst_includedir)/%.h): New rule.
10398         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10399         (install-others): Remove variable setting.
10400         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10401
10402 2012-03-08  Richard Henderson  <rth@twiddle.net>
10403
10404         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10405         from macro to inline function; merge with the
10406         !__LIBC_INTERNAL_MATH_INLINES version.
10407         (__ieee754_sqrtf): Likewise.
10408
10409         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10410         to inline function.
10411         (__rintf, __floor, __floorf): Likewise.
10412
10413         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10414         macro to inline function.
10415         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10416
10417         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10418         not <math/math_private.h>.
10419
10420 2012-03-08  David S. Miller  <davem@davemloft.net>
10421
10422         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10423         copyright year.
10424         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10425
10426 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10427
10428         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10429         normalization.
10430         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10431         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10432
10433 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10434
10435         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10436         be defined individually, they must be defined as a block.  Define
10437         S for printing a string instead of hidint the different by using a
10438         macro for adding the 'l'.
10439         * stdio-common/tst-fphex-wide.c: Adjust.
10440
10441 2012-03-07  Marek Polacek  <polacek@redhat.com>
10442
10443         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10444
10445 2012-03-08  Marek Polacek  <polacek@redhat.com>
10446
10447         [BZ #13806]
10448         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10449         * stdio-common/tst-fphex.c: Define a few macros to make the
10450         test reusable.  Use them.
10451         * stdio-common/tst-fphex-wide.c: New file.
10452
10453 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10454
10455         [BZ #6911]
10456         * manual/macros.texi (gnusystems): New macro.
10457         (nongnusystems): Likewise.
10458         (gnulinuxhurdsystems): Likewise.
10459         (gnuhurdsystems): Likewise..
10460         (gnulinuxsystems): Likewise.
10461         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10462         variants of the GNU system, not "GNU system".
10463         * manual/conf.texi: Likewise.
10464         * manual/errno.texi: Likewise.  Update example of errno macro
10465         expansion.
10466         * manual/filesys.texi: Likewise.
10467         (getumask): Document as specific to GNU/Hurd.
10468         * manual/install.texi: Likewise.  Reword some references to
10469         GNU/Linux.
10470         * manual/intro.texi: Likewise.
10471         * manual/io.texi: Likewise.
10472         (File Name Portability): Detail which constraints are inapplicable
10473         to all GNU systems and which are only inapplicable to GNU/Hurd.
10474         * manual/job.texi: Likewise.
10475         * manual/llio.texi: Likewise.
10476         (O_NOCTTY): Document as present on GNU/Linux.
10477         * manual/maint.texi: Likewise.
10478         * manual/memory.texi: Likewise.
10479         * manual/pattern.texi: Likewise.
10480         * manual/pipe.texi: Likewise.
10481         * manual/process.texi: Likewise.
10482         * manual/resource.texi: Likewise.
10483         (RUSAGE_CHILDREN): Remove statement about specifying a particular
10484         child on GNU/Hurd.
10485         * manual/setjmp.texi: Likewise.
10486         * manual/signal.texi: Likewise.
10487         * manual/startup.texi: Likewise.
10488         * manual/stdio.texi: Likewise.
10489         * manual/terminal.texi: Likewise.
10490         (ONLCR): Document as POSIX.
10491         (OXTABS): Document availability on GNU/Linux as XTABS.
10492         (ONOEOT): Document availability separately from other bits.
10493         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10494         * manual/time.texi: Likewise.
10495         * manual/users.texi: Likewise.
10496         * INSTALL: Regenerated.
10497         * sysdeps/gnu/errlist.c: Regenerated.
10498
10499         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10500         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10501         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
10502         puts.
10503         * configure: Regenerated.
10504
10505 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
10506
10507         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10508         default includes instead of AC_HEADER_CHECK.
10509         * sysdeps/i386/configure: Regenerated.
10510
10511         [BZ #10716]
10512         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10513         * math/s_cacoshf.c (__cacoshf): Likewise.
10514         * math/s_cacoshl.c (__cacoshl): Likewise.
10515         * math/s_casinh.c (__casinh): Set signs of result from argument.
10516         * math/s_casinhf.c (__casinhf): Likewise.
10517         * math/s_casinhl.c (__casinhl): Likewise.
10518         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10519         (casinh_test): Add more tests.
10520         * sysdeps/i386/fpu/libm-test-ulps: Update.
10521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10522
10523 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10524
10525         * po/zh_TW.po: Update from translation team.
10526
10527         * login/Makefile (distribute): Remove variable.
10528         * catgets/Makefile: Likewise.
10529         * mach/Makefile: Likewise.
10530         * malloc/Makefile: Likewise.
10531         * misc/Makefile: Likewise.
10532         * iconv/Makefile: Likewise.
10533         * nscd/Makefile: Likewise.
10534         * hurd/Makefile: Likewise.
10535         * manual/Makefile: Likewise.
10536         * locale/Makefile: Likewise.
10537         * intl/Makefile: Likewise.
10538         * conform/Makefile: Likewise.
10539         * nss/Makefile: Likewise.
10540         * time/Makefile: Likewise.
10541         * soft-fp/Makefile: Likewise.
10542         * dirent/Makefile: Likewise.
10543         * gmon/Makefile: Likewise.
10544         * po/Makefile: Likewise.
10545         * rt/Makefile: Likewise.
10546         * socket/Makefile: Likewise.
10547         * math/Makefile: Likewise.
10548         * signal/Makefile: Likewise.
10549         * debug/Makefile: Likewise.
10550         * elf/Makefile: Likewise.
10551         * timezone/Makefile: Likewise.
10552         * stdlib/Makefile: Likewise.
10553         * iconvdata/Makefile: Likewise.
10554         * sunrpc/Makefile: Likewise.
10555         * io/Makefile: Likewise.
10556         * argp/Makefile: Likewise.
10557         * inet/Makefile: Likewise.
10558         * hesiod/Makefile: Likewise.
10559         * grp/Makefile: Likewise.
10560         * csu/Makefile: Likewise.
10561         * wctype/Makefile: Likewise.
10562         * crypt/Makefile: Likewise.
10563         * libio/Makefile: Likewise.
10564         * string/Makefile: Likewise.
10565         * nis/Makefile: Likewise.
10566         * resolv/Makefile: Likewise.
10567         * stdio-common/Makefile: Likewise.
10568         * wcsmbs/Makefile: Likewise.
10569         * dlfcn/Makefile: Likewise.
10570         * posix/Makefile: Likewise.
10571
10572         [BZ #6959]
10573         * timezone/Makefile: Don't install timezone files, just the programs
10574         and scripts.
10575
10576 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10577
10578         * nss/databases.def: Add missing gshadow entry.
10579
10580         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10581
10582 2012-03-06  Marek Polacek  <polacek@redhat.com>
10583
10584         [BZ #13726]
10585         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10586         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10587         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10588         * stdio-common/tst-long-dbl-fphex.c: New file.
10589
10590 2012-03-06  David S. Miller  <davem@davemloft.net>
10591
10592         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10593         (set_obp_int): New function.
10594         (get_obp_int): New function.
10595         (__get_clockfreq_via_dev_openprom): Likewise.
10596         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10597         Avoid unused variable warnings on 'val' and use builtin_expect.
10598         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10599         __builtin_expect.
10600         (INLINE_CLONE_SYSCALL): Likewise.
10601
10602 2012-03-05  David S. Miller  <davem@davemloft.net>
10603
10604         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10605
10606 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10607
10608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10609
10610         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10611         only for |x| >= 40.
10612         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10613
10614 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10615
10616         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10617         Replace gettimeofday with __vdso_gettimeofday.
10618
10619         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10620         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10621         __vdso_clock_gettime and __vdso_getcpu.
10622
10623         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10624         time with __vdso_time.
10625
10626 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10627
10628         * manual/lang.texi (size_t): Note types to which size_t may be
10629         equivalent with the GNU C Library, but do not describe when
10630         differences between them are significant.
10631
10632 2012-03-05  Andreas Jaeger  <aj@suse.de>
10633
10634         * sysdeps/i386/fpu/libm-test-ulps: Update.
10635
10636 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10637
10638         [BZ #3976]
10639         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10640         (__ieee754_pow): Save and restore rounding mode and use
10641         round-to-nearest for main computations.
10642         * math/libm-test.inc (pow_test_tonearest): New function.
10643         (pow_test_towardzero): Likewise.
10644         (pow_test_downward): Likewise.
10645         (pow_test_upward): Likewise.
10646         (main): Call the new functions.
10647         * sysdeps/i386/fpu/libm-test-ulps: Update.
10648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10649
10650         [BZ #3976]
10651         * math/libm-test.inc (cosh_test_tonearest): New function.
10652         (cosh_test_towardzero): Likewise.
10653         (cosh_test_downward): Likewise.
10654         (cosh_test_upward): Likewise.
10655         (sinh_test_tonearest): Likewise.
10656         (sinh_test_towardzero): Likewise.
10657         (sinh_test_downward): Likewise.
10658         (sinh_test_upward): Likewise.
10659         (main): Call the new functions.
10660         * sysdeps/i386/fpu/libm-test-ulps: Update.
10661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10662
10663 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10664
10665         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10666         default stack guard is set in last bytes.
10667         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10668
10669 2012-03-05  Kees Cook  <keescook@chromium.org>
10670
10671         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10672
10673         [BZ #13656]
10674         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10675         possibly allocate from heap instead of stack.
10676         * stdio-common/bug-vfprintf-nargs.c: New file.
10677         * stdio-common/Makefile (tests): Add nargs overflow test.
10678
10679 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10680
10681         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10682
10683 2012-03-03  Marek Polacek  <polacek@redhat.com>
10684
10685         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10686         * math/math_private.h: Likewise.
10687         * stdlib/tst-strtod.c: Likewise.
10688         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10689         * sysdeps/x86_64/bits/atomic.h: Likewise.
10690
10691 2012-03-02  David S. Miller  <davem@davemloft.net>
10692
10693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10697         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10698         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10699         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10700         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10701
10702 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10703
10704         [BZ #13792]
10705         * manual/examples/README: New file, says the example source files
10706         can be used under GPL>=2.
10707         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10708         line containing just "*/".
10709         * manual/examples/add.c: Add copyright header (GPL>=2).
10710         * manual/examples/argp-ex1.c: Likewise.
10711         * manual/examples/argp-ex2.c: Likewise.
10712         * manual/examples/argp-ex3.c: Likewise.
10713         * manual/examples/argp-ex4.c: Likewise.
10714         * manual/examples/atexit.c: Likewise.
10715         * manual/examples/db.c: Likewise.
10716         * manual/examples/dir.c: Likewise.
10717         * manual/examples/dir2.c: Likewise.
10718         * manual/examples/execinfo.c: Likewise.
10719         * manual/examples/filecli.c: Likewise.
10720         * manual/examples/filesrv.c: Likewise.
10721         * manual/examples/fmtmsgexpl.c: Likewise.
10722         * manual/examples/genpass.c: Likewise.
10723         * manual/examples/inetcli.c: Likewise.
10724         * manual/examples/inetsrv.c: Likewise.
10725         * manual/examples/isockad.c: Likewise.
10726         * manual/examples/longopt.c: Likewise.
10727         * manual/examples/memopen.c: Likewise.
10728         * manual/examples/memstrm.c: Likewise.
10729         * manual/examples/mkfsock.c: Likewise.
10730         * manual/examples/mkisock.c: Likewise.
10731         * manual/examples/mygetpass.c: Likewise.
10732         * manual/examples/pipe.c: Likewise.
10733         * manual/examples/popen.c: Likewise.
10734         * manual/examples/rprintf.c: Likewise.
10735         * manual/examples/search.c: Likewise.
10736         * manual/examples/select.c: Likewise.
10737         * manual/examples/setjmp.c: Likewise.
10738         * manual/examples/sigh1.c: Likewise.
10739         * manual/examples/sigusr.c: Likewise.
10740         * manual/examples/stpcpy.c: Likewise.
10741         * manual/examples/strdupa.c: Likewise.
10742         * manual/examples/strftim.c: Likewise.
10743         * manual/examples/strncat.c: Likewise.
10744         * manual/examples/subopt.c: Likewise.
10745         * manual/examples/swapcontext.c: Likewise.
10746         * manual/examples/termios.c: Likewise.
10747         * manual/examples/testopt.c: Likewise.
10748         * manual/examples/testpass.c: Likewise.
10749         * manual/examples/timeval_subtract.c: Likewise.
10750
10751         [BZ #13792]
10752         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10753         function to ...
10754         * manual/timeval_subtract.c.texi: ... here, new file.
10755
10756 2012-03-02  David S. Miller  <davem@davemloft.net>
10757
10758         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10759
10760 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10761
10762         [BZ #3976]
10763         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10764         (__sin): Save and restore rounding mode and use round-to-nearest
10765         for all computations.
10766         (__cos): Save and restore rounding mode and use round-to-nearest
10767         for all computations.
10768         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10769         <fenv.h>.
10770         (tan): Save and restore rounding mode and use round-to-nearest for
10771         all computations.
10772         * math/libm-test.inc (cos_test_tonearest): New function.
10773         (cos_test_towardzero): Likewise.
10774         (cos_test_downward): Likewise.
10775         (cos_test_upward): Likewise.
10776         (sin_test_tonearest): Likewise.
10777         (sin_test_towardzero): Likewise.
10778         (sin_test_downward): Likewise.
10779         (sin_test_upward): Likewise.
10780         (tan_test_tonearest): Likewise.
10781         (tan_test_towardzero): Likewise.
10782         (tan_test_downward): Likewise.
10783         (tan_test_upward): Likewise.
10784         (main): Call the new functions.
10785         * sysdeps/i386/fpu/libm-test-ulps: Update.
10786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10787
10788         [BZ #10135]
10789         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10790         small n, then large n, before computing and testing k+n.
10791         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10792         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10793         Likewise.
10794         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10795         Likewise.
10796         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10797         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10798         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10799         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10800         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10801         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10802         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10803         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10804         * math/libm-test.inc (scalbn_test): Add more tests.
10805         (scalbln_test): Likewise.
10806
10807         * manual/filesys.texi (mode_t): Describe constraints on size and
10808         signedness, not exact equivalence to a particular type.
10809         (ino_t): Likewise.
10810         (ino64_t): Likewise.
10811         (dev_t): Likewise.
10812         (nlink_t): Likewise.
10813         (blkcnt_t): Likewise.
10814         (blkcnt64_t): Likewise.
10815         * manual/llio.texi (off_t): Likewise.
10816
10817         [BZ #3976]
10818         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10819         (__ieee754_exp): Save and restore rounding mode and use
10820         round-to-nearest for all computations.
10821         * math/libm-test.inc (exp_test_tonearest): New function.
10822         (exp_test_towardzero): Likewise.
10823         (exp_test_downward): Likewise.
10824         (exp_test_upward): Likewise.
10825         (main): Call the new functions.
10826         * sysdeps/i386/fpu/libm-test-ulps: Update.
10827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10828
10829 2012-03-01  Chris Demetriou  <cgd@google.com>
10830
10831         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10832         have predictable order.
10833
10834 2012-03-01  David S. Miller  <davem@davemloft.net>
10835
10836         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10837
10838         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10839         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10840         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10841         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10842
10843         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10844         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10845         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10847         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10848         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10849         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10850         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10851         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10852
10853         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10854
10855         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10856         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10857         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10858
10859         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10860         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10861         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10862         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10863         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10864         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10865         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10866         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10867         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10868         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10869         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10870         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10871         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10872         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10873         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10874         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10875         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10876         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10877         * sysdeps/sparc/elf/configure: Regenerated.
10878
10879 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10880
10881         * configure.in (AS, LD): Require binutils 2.20 or later.
10882         * configure: Regenerated.
10883         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10884         as required minimum version.
10885         * INSTALL: Regenerated.
10886
10887         [BZ #2541]
10888         [BZ #4108]
10889         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10890         before squaring exponent.
10891         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10892         bottom long double and 27 bits of top long double before squaring
10893         exponent.
10894         * math/libm-test.inc (erfc_test): Add more tests.
10895         * sysdeps/i386/fpu/libm-test-ulps: Update.
10896         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10897         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10898
10899 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10900
10901         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10902         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10903         containing bit-fields.
10904         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10905         * soft-fp/single.h (_FP_UNION_S): Likewise.
10906         * soft-fp/double.h (_FP_UNION_D): Likewise.
10907
10908 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10909
10910         [BZ #13786]
10911         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10912         not include ../strcmp.S.
10913         [USE_AS_STRNCASECMP_L]: Likewise.
10914         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10915         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10916         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10917         (__strncasecmp_l_ia32): Define as alias to
10918         __strncasecmp_l_nonascii.
10919
10920         [BZ #5794]
10921         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10922         * sysdeps/i386/fpu/libm-test-ulps: Update.
10923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10924
10925         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10927
10928 2012-02-29  Jeff Law  <law@redhat.com>
10929
10930         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10931         out of bounds read.
10932
10933 2012-02-29  Marek Polacek  <polacek@redhat.com>
10934
10935         [BZ #13706]
10936         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10937         * elf/Makefile: Add rules to run tst-unused-dep.out.
10938
10939 2012-02-28  David S. Miller  <davem@davemloft.net>
10940
10941         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10942         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10943         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10944         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10945         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10946         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10947
10948 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10949
10950         * math/libm-test.inc (llround_test): Move one test from
10951         lround_test.  Use TEST_f_L in moved test.
10952         (lround_test): Move misplaced test to llround_test.  Add testcase
10953         from bug 2561.
10954
10955 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10956
10957         * sysdeps/x86_64/fpu/e_expf.S: New file.
10958         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10959
10960 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10961
10962         [BZ #13637]
10963         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10964         of remain_len that may cause incomplete multi-byte character and
10965         false match.
10966         * posix/bug-regex33.c: New file.
10967         * posix/Makefile (tests): Add bug-regex33.
10968
10969 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10970
10971         * manual/macros.texi: New file.
10972         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10973         * manual/libc.texinfo: Include macros.texi.
10974         * manual/creatute.texi: Likewise.
10975         * manual/install.texi: Likewise.
10976         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10977         @glibcadj{} in references to the GNU C Library.
10978         * manual/charset.texi: Likewise.
10979         * manual/conf.texi: Likewise.
10980         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10981         when not using those macros.
10982         * manual/creature.texi: Likewise.
10983         * manual/crypt.texi: Likewise.
10984         * manual/errno.texi: Likewise.
10985         * manual/filesys.texi: Likewise.
10986         * manual/header.texi: Likewise.
10987         * manual/install.texi: Likewise.
10988         * manual/intro.texi: Likewise.
10989         * manual/io.texi: Likewise.
10990         * manual/job.texi: Likewise.
10991         * manual/lang.texi: Likewise.
10992         * manual/libc.texiinfo: Likewise.
10993         * manual/llio.texi: Likewise.
10994         * manual/locale.texi: Likewise.
10995         * manual/maint.texi: Likewise.
10996         * manual/math.texi: Likewise.
10997         * manual/memory.texi: Likewise.
10998         * manual/message.texi: Likewise.
10999         * manual/nss.texi: Likewise.
11000         * manual/pattern.texi: Likewise.
11001         * manual/process.texi: Likewise.
11002         * manual/resource.texi: Likewise.
11003         * manual/search.texi: Likewise.
11004         * manual/setjmp.texi: Likewise.
11005         * manual/signal.texi: Likewise.
11006         * manual/socket.texi: Likewise.
11007         * manual/startup.texi: Likewise.
11008         * manual/stdio.texi: Likewise.
11009         * manual/string.texi: Likewise.
11010         * manual/sysinfo.texi: Likewise.
11011         * manual/syslog.texi: Likewise.
11012         * manual/terminal.texi: Likewise.
11013         * manual/time.texi: Likewise.
11014         * manual/users.texi: Likewise.
11015         * INSTALL: Regenerated.
11016         * NOTES: Regenerated.
11017         * sysdeps/gnu/errlist.c: Regenerated.
11018
11019 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11020
11021         * include/dirent.h: Include <dirstream.h> before
11022         <dirent/dirent.h>.
11023
11024 2012-02-28  David S. Miller  <davem@davemloft.net>
11025
11026         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11027         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11028         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11029         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11030
11031 2012-02-27  David S. Miller  <davem@davemloft.net>
11032
11033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11035         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11036         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11037
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11039         frame pointer instead of stack pointer relative arg slot.
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11041         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11042         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11043
11044 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11045
11046         [BZ #3992]
11047         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11048
11049 2012-02-27  David S. Miller  <davem@davemloft.net>
11050
11051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11053         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11054         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11055         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11056         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11057         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11058         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11059
11060 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11061
11062         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11063         later.  Allow versions 5-9.
11064         * configure: Regenerated.
11065         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11066         required minimum version and 4.6 as recommended version.  Do not
11067         mention bugs in GCC 2.7 and 2.8.
11068         * INSTALL: Regenerated.
11069
11070 2012-02-27  David S. Miller  <davem@davemloft.net>
11071
11072         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11073         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11074         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11076         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11077         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11078         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11079         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11080
11081         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11082         manipulate bits before adding and subtracting TWO112[sx].
11083         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11084
11085 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11086
11087         [BZ #13775]
11088         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11089         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11090         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11091         being in POSIX, because they are in 1003.1-2008.
11092
11093         * rt/tst-aio.c: Include <fcntl.h>.
11094         * rt/tst-aio7.c: Likewise.
11095         * rt/tst-aio64.c: Likewise.
11096
11097         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11098
11099 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11100
11101         * manual/install.texi (--with-headers): Describe headers as
11102         interface headers, not private headers.
11103         (Specific advice for GNU/Linux systems): Describe use of headers
11104         from "make headers_install", not private headers from older
11105         kernels.
11106         * INSTALL: Regenerated.
11107         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11108         Change to 2.6.19.
11109         * sysdeps/unix/sysv/linux/configure: Regenerated.
11110
11111         * manual/llio.texi (fclean): Remove documentation.
11112
11113         * manual/Makefile (libc-texi-generated): New variable.  Include
11114         version.texi.
11115         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11116         $(libc-texi-generated), not duplicated list of files.
11117         (version.texi, stamp-version): New rules.
11118         (realclean): Remove $(libc-texi-generated), not individual files
11119         from that list.  Do not remove dir-add.texinfo.
11120         * manual/libc.texinfo: Comment out uses of edition numbers and
11121         references to printed manual.  Remove last-updated dates.
11122         (EDITION): Comment out.
11123         (ISBN): Likewise.
11124         (VERSION, UPDATED): Remove.
11125         (version.texi): Include.
11126
11127 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11128
11129         * sysdeps/posix/spawni.c: Include <signal.h>.
11130         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11131         * sysdeps/pthread/aio_fsync.c: Likewise.
11132
11133 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11134
11135         * conform/Makefile (tests): Run only when not cross-compiling and
11136         when fast-check is not defined.
11137
11138         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11139         * conform/data/limits.h-data: Fixes for POSIX2008.
11140         * conform/run-conformtest.sh: Run all tests.
11141         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11142         headers.
11143         * include/bits/dlfcn.h: Likewise.
11144         * include/langinfo.h: Likewise.
11145         * include/monetary.h: Likewise.
11146         * include/sys/poll.h: Likewise.
11147
11148         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11149         for __USE_GNU.
11150         * posix/spawn.h: Define __need_sigset_t.
11151         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11152         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11153         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11154         to get sigevent_t only.
11155         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11156         only for __USE_GNU.
11157         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11158         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11159         process_vm_writev only for __USE_GNU.
11160         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11161
11162         * conform/Makefile: For now ignore errors from run-conformtest.
11163         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11164         POSIX to avoid namespace pollution.  Don't prepend headers.
11165         * conform/data/aio.h-data: Fixes for POSIX testing.
11166         * conform/data/fcntl.h-data: Likewise.
11167         * conform/data/glob.h-data: Likewise.
11168         * conform/data/grp.h-data: Likewise.
11169         * conform/data/pthread.h-data: Likewise.
11170         * conform/data/pwd.h-data: Likewise.
11171         * conform/data/signal.h-data: Likewise.
11172         * conform/data/spawn.h-data: Likewise.
11173         * conform/data/stdio.h-data: Likewise.
11174         * conform/data/stdlib.h-data: Likewise.
11175         * conform/data/stropts.h-data: Likewise.
11176         * conform/data/sys/mman.h-data: Likewise.
11177         * conform/data/sys/stat.h-data: Likewise.
11178         * conform/data/sys/types.h-data: Likewise.
11179         * conform/data/sys/wait.h-data: Likewise.
11180         * conform/data/time.h-data: Likewise.
11181         * conform/data/unistd.h-data: Likewise.
11182         * conform/data/utime.h-data: Likewise.
11183
11184         * io/sys/stat.h: fchmod was always in POSIX.
11185         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11186         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11187         * rt/aio.h: Define __need_timespec before including <time.h>.
11188         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11189         struct.  Add forward declaration of pthread_attr_t and use it in
11190         sigevent.
11191         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11192         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11193         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11194         always remove CLK_TCK definition.
11195
11196 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11197
11198         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11199
11200 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11201
11202         * conform/run-conformtest.sh: New file.
11203         * conform/Makefile: Run run-conformtest for tests.
11204         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11205         support.
11206
11207         * conform/data/uchar.h-data: New file.
11208         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11209         * conform/data/arpa/inet.h-data: Likewise.
11210         * conform/data/assert.h-data: Likewise.
11211         * conform/data/complex.h-data: Likewise.
11212         * conform/data/cpio.h-data: Likewise.
11213         * conform/data/ctype.h-data: Likewise.
11214         * conform/data/dirent.h-data: Likewise.
11215         * conform/data/dlfcn.h-data: Likewise.
11216         * conform/data/errno.h-data: Likewise.
11217         * conform/data/fcntl.h-data: Likewise.
11218         * conform/data/float.h-data: Likewise.
11219         * conform/data/fmtmsg.h-data: Likewise.
11220         * conform/data/fnmatch.h-data: Likewise.
11221         * conform/data/ftw.h-data: Likewise.
11222         * conform/data/glob.h-data: Likewise.
11223         * conform/data/grp.h-data: Likewise.
11224         * conform/data/iconv.h-data: Likewise.
11225         * conform/data/inttypes.h-data: Likewise.
11226         * conform/data/langinfo.h-data: Likewise.
11227         * conform/data/libgen.h-data: Likewise.
11228         * conform/data/limits.h-data: Likewise.
11229         * conform/data/locale.h-data: Likewise.
11230         * conform/data/math.h-data: Likewise.
11231         * conform/data/monetary.h-data: Likewise.
11232         * conform/data/mqueue.h-data: Likewise.
11233         * conform/data/ndbm.h-data: Likewise.
11234         * conform/data/net/if.h-data: Likewise.
11235         * conform/data/netdb.h-data: Likewise.
11236         * conform/data/netinet/in.h-data: Likewise.
11237         * conform/data/nl_types.h-data: Likewise.
11238         * conform/data/poll.h-data: Likewise.
11239         * conform/data/pthread.h-data: Likewise.
11240         * conform/data/pwd.h-data: Likewise.
11241         * conform/data/regex.h-data: Likewise.
11242         * conform/data/sched.h-data: Likewise.
11243         * conform/data/search.h-data: Likewise.
11244         * conform/data/semaphore.h-data: Likewise.
11245         * conform/data/setjmp.h-data: Likewise.
11246         * conform/data/signal.h-data: Likewise.
11247         * conform/data/spawn.h-data: Likewise.
11248         * conform/data/stdarg.h-data: Likewise.
11249         * conform/data/stdio.h-data: Likewise.
11250         * conform/data/stdlib.h-data: Likewise.
11251         * conform/data/string.h-data: Likewise.
11252         * conform/data/strings.h-data: Likewise.
11253         * conform/data/stropts.h-data: Likewise.
11254         * conform/data/sys/ipc.h-data: Likewise.
11255         * conform/data/sys/mman.h-data: Likewise.
11256         * conform/data/sys/msg.h-data: Likewise.
11257         * conform/data/sys/resource.h-data: Likewise.
11258         * conform/data/sys/select.h-data: Likewise.
11259         * conform/data/sys/sem.h-data: Likewise.
11260         * conform/data/sys/shm.h-data: Likewise.
11261         * conform/data/sys/socket.h-data: Likewise.
11262         * conform/data/sys/stat.h-data: Likewise.
11263         * conform/data/sys/statvfs.h-data: Likewise.
11264         * conform/data/sys/time.h-data: Likewise.
11265         * conform/data/sys/timeb.h-data: Likewise.
11266         * conform/data/sys/times.h-data: Likewise.
11267         * conform/data/sys/types.h-data: Likewise.
11268         * conform/data/sys/uio.h-data: Likewise.
11269         * conform/data/sys/un.h-data: Likewise.
11270         * conform/data/sys/utsname.h-data: Likewise.
11271         * conform/data/sys/wait.h-data: Likewise.
11272         * conform/data/syslog.h-data: Likewise.
11273         * conform/data/tar.h-data: Likewise.
11274         * conform/data/termios.h-data: Likewise.
11275         * conform/data/utime.h-data: Likewise.
11276         * conform/data/utmpx.h-data: Likewise.
11277         * conform/data/varargs.h-data: Likewise.
11278         * conform/data/wchar.h-data: Likewise.
11279         * conform/data/wctype.h-data: Likewise.
11280         * conform/data/wordexp.h-data: Likewise.
11281
11282         * include/stropts.h: New file.
11283         * include/uchar.h: New file.
11284         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11285         * include/assert.h: Likewise.
11286         * include/ctype.h: Likewise.
11287         * include/dirent.h: Likewise.
11288         * include/dlfcn.h: Likewise.
11289         * include/fcntl.h: Likewise.
11290         * include/fnmatch.h: Likewise.
11291         * include/glob.h: Likewise.
11292         * include/grp.h: Likewise.
11293         * include/libio.h: Likewise.
11294         * include/locale.h: Likewise.
11295         * include/math.h: Likewise.
11296         * include/net/if.h: Likewise.
11297         * include/netdb.h: Likewise.
11298         * include/netinet/in.h: Likewise.
11299         * include/pthread.h: Likewise.
11300         * include/pwd.h: Likewise.
11301         * include/regex.h: Likewise.
11302         * include/sched.h: Likewise.
11303         * include/search.h: Likewise.
11304         * include/setjmp.h: Likewise.
11305         * include/signal.h: Likewise.
11306         * include/stdio.h: Likewise.
11307         * include/stdlib.h: Likewise.
11308         * include/string.h: Likewise.
11309         * include/sys/cdefs.h: Likewise.
11310         * include/sys/mman.h: Likewise.
11311         * include/sys/msg.h: Likewise.
11312         * include/sys/resource.h: Likewise.
11313         * include/sys/select.h: Likewise.
11314         * include/sys/socket.h: Likewise.
11315         * include/sys/stat.h: Likewise.
11316         * include/sys/statvfs.h: Likewise.
11317         * include/sys/time.h: Likewise.
11318         * include/sys/times.h: Likewise.
11319         * include/sys/uio.h: Likewise.
11320         * include/sys/utsname.h: Likewise.
11321         * include/sys/wait.h: Likewise.
11322         * include/termios.h: Likewise.
11323         * include/time.h: Likewise.
11324         * include/ulimit.h: Likewise.
11325         * include/unistd.h: Likewise.
11326         * include/utime.h: Likewise.
11327         * include/wchar.h: Likewise.
11328         * include/wctype.h: Likewise.
11329         * include/wordexp.h: Likewise.
11330
11331         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11332
11333         * time/time.h: TIME_UTC must be a macro.
11334         Make timespec_get available for ISO C11 only as well.
11335
11336 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11337
11338         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11339         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11340
11341 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11342
11343         * configure.in: Use -o not -a in test for unsupported multi-arch.
11344
11345 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11346
11347         * manual/texinfo.tex: Update to version 2012-01-19.16.
11348
11349 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11350
11351         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11352
11353 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11354
11355         [BZ #13738]
11356         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11357         * manual/fdl-1.3.texi: New file.
11358         * manual/fdl-1.1.texi: File removed.
11359
11360         [BZ #13738]
11361         * manual/libc.texinfo (FDL_VERSION): New @set.
11362         Use it for mention of FDL in cover text.
11363         (Documentation License): Use it in @include file name.
11364
11365 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11366             Roland McGrath  <roland@hack.frob.com>
11367
11368         [BZ #5461]
11369         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11370         not LONG_LONG_MAX and LONG_LONG_MIN.
11371         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11372         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11373         name.
11374         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11375
11376 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11377
11378         [BZ #2547]
11379         [BZ #11365]
11380         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11381         manipulate bits before adding and subtracting TWO23[sx].
11382         * math/libm-test.inc (nearbyint_test): Add more tests.
11383
11384 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11385
11386         [BZ #2548]
11387         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11388         bits before adding and subtracting TWO23[sx].
11389         * math/libm-test.inc (rint_test): Add more tests.
11390         (rint_test_tonearest): Likewise.
11391         (rint_test_towardzero): Likewise.
11392         (rint_test_downward): Likewise.
11393         (rint_test_upward: Likewise.
11394
11395 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11396
11397         [BZ #10110]
11398         * include/stdc-predef.h: New file.  Extracted from features.h.
11399         * include/features.h: Include stdc-predef.h.
11400         * Makefile (headers): Add stdc-predef.h.
11401         * CONFORMANCE (Compiler limitations): Update.
11402
11403 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11404
11405         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11406
11407 2012-02-21  David S. Miller  <davem@davemloft.net>
11408
11409         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11410         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11411
11412 2012-02-20  David S. Miller  <davem@davemloft.net>
11413
11414         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11415         using a normal save/restore sequence, rather than allocating a
11416         dummy stack frame just to store a frame pointer and restore.
11417         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11418
11419 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11420
11421         * manual/install.texi: Fix stray word in line-wrapped comment.
11422
11423 2012-02-20  David S. Miller  <davem@davemloft.net>
11424
11425         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11426         both binutils and gcc support GOTDATA.
11427
11428         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11429         "rd %pc" in the PIC register setup sequences.
11430
11431         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11432         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11433         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11434         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11435         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11436         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11437         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11438         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11439         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11440         (SYSCALL_ERROR_HANDLER): Likewise.
11441         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11442         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11443         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11444         (SYSCALL_ERROR_HANDLER): Likewise.
11445
11446         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11447         (HAVE_GCC_GOTDATA): New.
11448         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11449         relocation support in both binutils and gcc.
11450         * sysdeps/sparc/elf/configure: Regenerate.
11451
11452         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11453         * sysdeps/sparc/sparc32/elf/configure: Delete.
11454         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11455         * sysdeps/sparc/sparc64/elf/configure: Delete.
11456         * sysdeps/sparc/elf/configure.in: New file.
11457         * sysdeps/sparc/elf/configure: Generate.
11458
11459         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11460         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11461         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11462         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11463         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11464
11465 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11466
11467         * manual/install.texi: Do not mention specific glibc version
11468         numbers.
11469         * manual/libc.texinfo (VERSION, UPDATED): Update.
11470         (@copying): Use @copyright{} and range of years.
11471
11472 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11473
11474         [BZ #13695]
11475         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11476         [crti.S not in sysdirs] (generated): Do not append.
11477         [crti.S not in sysdirs] (omit-deps): Likewise.
11478         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11479         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11480         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11481         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11482         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11483         Likewise.
11484         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11485         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11486         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11487         * csu/defs.awk: Remove file.
11488         * sysdeps/generic/initfini.c: Likewise.
11489         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11490         variable.
11491         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11492         Likewise.
11493
11494 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11495
11496         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11497         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11498         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11499         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11500         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11501         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11502         <bits/epoll.h>.
11503         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11504         (__EPOLL_PACKED): Define to empty if not defined by
11505         <bits/epoll.h>.
11506         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11507         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11508         bits/epoll.h.
11509
11510 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11511
11512         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11513         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11514         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11515         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11516         <bits/timerfd.h>.
11517         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11518         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11519         bits/timerfd.h.
11520
11521 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11522
11523         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11524         in C locale.
11525         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11526         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11527         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11529
11530 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11531
11532         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11533         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11534
11535 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11536
11537         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11538         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11539         defined.
11540         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11541         Likewise.
11542         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11543         entry for 2.16.
11544
11545 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11546
11547         * math/w_acos.c: Use non-signaling floating-point comparisons.
11548         * math/w_acosf.c: Likewise.
11549         * math/w_acosh.c: Likewise.
11550         * math/w_acoshf.c: Likewise.
11551         * math/w_acoshl.c: Likewise.
11552         * math/w_acosl.c: Likewise.
11553         * math/w_asin.c: Likewise.
11554         * math/w_asinf.c: Likewise.
11555         * math/w_asinl.c: Likewise.
11556         * math/w_atanh.c: Likewise.
11557         * math/w_atanhf.c: Likewise.
11558         * math/w_atanhl.c: Likewise.
11559         * math/w_exp2.c: Likewise.
11560         * math/w_exp2f.c: Likewise.
11561         * math/w_exp2l.c: Likewise.
11562         * math/w_j0.c: Likewise.
11563         * math/w_j0f.c: Likewise.
11564         * math/w_j0l.c: Likewise.
11565         * math/w_j1.c: Likewise.
11566         * math/w_j1f.c: Likewise.
11567         * math/w_j1l.c: Likewise.
11568         * math/w_jn.c: Likewise.
11569         * math/w_jnf.c: Likewise.
11570         * math/w_log.c: Likewise.
11571         * math/w_log10.c: Likewise.
11572         * math/w_log10f.c: Likewise.
11573         * math/w_log10l.c: Likewise.
11574         * math/w_log2.c: Likewise.
11575         * math/w_log2f.c: Likewise.
11576         * math/w_log2l.c: Likewise.
11577         * math/w_logf.c: Likewise.
11578         * math/w_logl.c: Likewise.
11579         * math/w_sqrt.c: Likewise.
11580         * math/w_sqrtf.c: Likewise.
11581         * math/w_sqrtl.c: Likewise.
11582         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11583         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11584         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11585         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11586         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11587
11588 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11589
11590         [BZ #9739]
11591         * manual/string.texi (strnlen): Use correct parameter name in
11592         equivalent expression.
11593
11594 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11595
11596         [BZ #11174]
11597         * manual/users.texi (seteuid): Consistently use neweuid for
11598         argument name.
11599
11600 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11601
11602         [BZ #13704]
11603         * manual/nss.texi (Services in the NSS configuration): Correct
11604         list of services in example configuration file.
11605
11606 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11607
11608         [BZ #11322]
11609         * manual/arith.texi: Remove statements about negative zero
11610         behaving identically to zero.
11611
11612 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11613
11614         [BZ #5993]
11615         * manual/install.texi: Do not document upgrading from libc5.
11616
11617 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11618
11619         [BZ #4596]
11620         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11621
11622 2012-02-18  David S. Miller  <davem@davemloft.net>
11623
11624         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11625         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11626         %o7 across the call.
11627         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11628         instead.
11629         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11630         SETUP_PIC_REG_LEAF.
11631         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11632         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11633         * sysdeps/sparc/crtn.S: Likewise.
11634
11635 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11636
11637         * aout/Makefile: Remove.
11638
11639 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11640
11641         [BZ #13058]
11642         * manual/examples/argp-ex1.c (main): Format definition in GNU
11643         style.
11644         * manual/examples/argp-ex2.c (main): Likewise.
11645         * manual/examples/argp-ex3.c (main): Likewise.
11646         * manual/examples/argp-ex4.c (main): Likewise.
11647         * manual/examples/longopt.c (main): Use new-style prototype
11648         definition.
11649         * manual/examples/strncat.c (main): Specify return type and use
11650         (void) for arguments.
11651         * manual/examples/subopt.c (main): Use char **argv argument.
11652
11653 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11654
11655         [BZ #5077]
11656         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11657         rounding modes.
11658
11659 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11660
11661         [BZ #6907]
11662         * manual/string.texi (strchr): Change when strchrnul is
11663         recommended.
11664
11665 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11666
11667         [BZ #174]
11668         * manual/locale.texi (setlocale): Document LOCPATH.
11669
11670 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11671
11672         [BZ #10210]
11673         * manual/process.texi (execle): Move @dots{} before last argument.
11674
11675 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11676
11677         [BZ #12047]
11678         * manual/charset.texi (Generic Charset Conversion): Fix typo
11679         (LC_TYPE -> LC_CTYPE).
11680
11681 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11682
11683         [BZ #5805]
11684         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11685         (scalbnf): Likewise.
11686         (scalbnl): Likewise.
11687         (scalbln): Likewise.
11688         (scalblnf): Likewise.
11689         (scalblnl): Likewise.
11690         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11691         (vwarnx): Likewise.
11692         (verr): Likewise.
11693         (verrx): Likewise.
11694         * manual/filesys.texi (telldir): Use braces around return type.
11695         * manual/llio.texi (mmap): Add space after comma.
11696         (mmap64): Likewise.
11697         * manual/math.texi (jn): Use @var{} on parameter names.
11698         (jnf): Likewise.
11699         (jnl): Likewise.
11700         (yn): Likewise.
11701         (ynf): Likewise.
11702         (ynl): Likewise.
11703         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11704         line.
11705         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11706         "...".
11707         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11708         (sched_get_priority_max): Likewise.
11709         * manual/signal.texi (sigvec): Add space after comma.
11710         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11711         names.
11712         (if_indextoname): Likewise.
11713         (if_freenameindex): Likewise.
11714         (sendto): Use ',' instead of '.' in prototype.
11715         * manual/startup.texi (syscall): Use @dots{} instead of literal
11716         "...".
11717         * manual/stdio.texi (__fpending): Separate initial words of
11718         paragraph from @deftypefun line.
11719         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11720         "...".
11721         (vsyslog): Use @var{} on parameter names.
11722         * manual/terminal.texi (stty): Use @var{} on parameter names.
11723         * manual/users.texi (getutmp): Use @var{} on parameter names.
11724         (getutmpx): Likewise.
11725
11726 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11727
11728         [BZ #6884]
11729         * manual/stdio.texi (fopen): Fix typos in description of
11730         ",ccs=STRING".
11731
11732 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11733
11734         [BZ #4026]
11735         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11736         get clock_id definition.
11737
11738 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11739
11740         [BZ #4822]
11741         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11742         (madvise): Cast every argument to void on its own.
11743
11744 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11745
11746         [BZ #9902]
11747         * manual/startup.texi (Exit Status): Fix typo.
11748
11749 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11750
11751         [BZ #10140]
11752         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11753         * manual/examples/argp-ex2.c: Likewise.
11754         * manual/examples/argp-ex3.c: Likewise.
11755
11756 2012-02-16  Richard Henderson  <rth@redhat.com>
11757
11758         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11759         * sysdeps/s390/s390-32/initfini.c: Remove.
11760         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11761         * sysdeps/s390/s390-64/initfini.c: Remove.
11762
11763 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11764
11765         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11766         compiler output for sysdeps/generic/initfini.c.
11767         * sysdeps/sh/elf/initfini.c: Remove file.
11768
11769 2012-02-16  David S. Miller  <davem@davemloft.net>
11770
11771         [BZ #11494]
11772         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11773
11774         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11775         * sysdeps/sparc/crti.S: New file.
11776         * sysdeps/sparc/crtn.S: New file.
11777         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11778         * sysdeps/sparc/sparc64/Makefile: Likewise.
11779
11780 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11781
11782         [BZ #3335]
11783         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11784
11785 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11786
11787         [BZ #4822]
11788         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11789
11790         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11791         (write, read, close): Likewise.
11792         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11793
11794 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11795
11796         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11797         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11798         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11799         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11800         <bits/signalfd.h>.
11801         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11802         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11803         bits/signalfd.h.
11804
11805 2012-02-14  Marek Polacek  <polacek@redhat.com>
11806
11807         * sysdeps/x86_64/crti.S: New file.
11808         * sysdeps/x86_64/crtn.S: New file.
11809         * sysdeps/x86_64/elf/initfini.c: Remove file.
11810
11811 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11812
11813         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11814         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11815         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11816         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11817         <bits/inotify.h>.
11818         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11819         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11820         bits/inotify.h.
11821
11822 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11823
11824         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11825         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11826         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11827         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11828         <bits/eventfd.h>.
11829         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11830         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11831         bits/eventfd.h.
11832
11833 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11834
11835         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11836         __feraiseexcept instead of feraiseexcept.
11837
11838         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11839         nanosleep invocations.
11840         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11841         strings, and add error checking for a nanosleep invocations.
11842
11843 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11844
11845         Replace FSF snail mail address with URLs, as per GNU coding standards.
11846         Most of the snail mail addresses were wrong anyway, and omitting
11847         them makes the source code easier to maintain.  Almost all of the
11848         changes are to license notices and to locale LC_IDENTIFICATION
11849         addresses, except for this one:
11850         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11851         not its snail mail address.
11852
11853 2012-02-09  Richard Henderson  <rth@twiddle.net>
11854
11855         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11856         of kernel-features.h.
11857
11858         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11859
11860 2012-02-08  Marek Polacek  <polacek@redhat.com>
11861
11862         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11863         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11864         * sysdeps/gnu/_G_config.h: Likewise.
11865         * sysdeps/generic/_G_config.h: Likewise.
11866
11867 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11868
11869         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11870         tests.
11871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11872
11873         * sysdeps/powerpc/powerpc32/crti.S: New file.
11874         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11875         * sysdeps/powerpc/powerpc64/crti.S: New file.
11876         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11877
11878         * Makeconfig (have-initfini): Don't set.
11879         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11880         * configure.in (nopic_initfini): Don't substitute.
11881         * config.h.in (HAVE_INITFINI): Don't #undef.
11882         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11883         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11884
11885 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11886
11887         Support crti.S and crtn.S provided directly by architectures.
11888         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11889         [crti.S in sysdirs] (omit-deps): Likewise.
11890         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11891         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11892         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11893         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11894         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11895         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11896         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11897         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11898         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11899         compiler output for sysdeps/generic/initfini.c.
11900         * sysdeps/i386/elf/Makefile: Remove file.
11901         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11902
11903 2012-02-07  Marek Polacek  <polacek@redhat.com>
11904
11905         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11906         * sysdeps/gnu/_G_config.h: Likewise.
11907         * sysdeps/mach/hurd/_G_config.h: Likewise.
11908
11909 2012-02-07  Marek Polacek  <polacek@redhat.com>
11910
11911         * math/Makefile (tests): Add tst-CMPLX2.
11912         * math/tst-CMPLX2.c: New file.
11913
11914 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11915
11916         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11917
11918         * math/libm-test.inc (jn_test): Add missing L suffix.
11919
11920 2012-02-06  Marek Polacek  <polacek@redhat.com>
11921
11922         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11923         * sysdeps/i386/fpu/e_powf.S: Likewise.
11924         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11925         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11926         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11927         * sysdeps/i386/fpu/e_pow.S: Likewise.
11928         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11929         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11930         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11931         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11932         * sysdeps/i386/fpu/e_log2.S: Likewise.
11933         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11934         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11935         * sysdeps/i386/fpu/e_powl.S: Likewise.
11936         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11937         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11938         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11939         * sysdeps/i386/fpu/e_logl.S: Likewise.
11940         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11941         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11942         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11943         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11944         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11945         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11946         * sysdeps/i386/fpu/e_log.S: Likewise.
11947         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11948         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11949         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11950         * sysdeps/i386/fpu/e_logf.S: Likewise.
11951         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11952         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11953         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11954         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11955         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11956         * sysdeps/i386/fpu/e_log10.S: Likewise.
11957         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11958         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11959         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11960         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11961         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11962         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11963         * sysdeps/i386/asm-syntax.h: Likewise.
11964         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11965         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11966         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11967         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11968         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11969         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11970         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11971         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11972         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11973         * sysdeps/powerpc/sysdep.h: Likewise.
11974         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11975         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11976
11977 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11978
11979         [BZ #411]
11980         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11981
11982 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11983
11984         * sysdeps/i386/sysdep.h: Include <features.h>.
11985         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11986         version.
11987
11988 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11989
11990         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11991         Define.
11992         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11993         LOAD_PIC_REG_STR.
11994
11995 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11996
11997         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11998         (SETUP_PIC_REG): Use GET_PC_THUNK.
11999         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12000         macro.
12001
12002 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12003
12004         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12005         for non-PIC compilation.
12006         (SETUP_PIC_REG): Add .p2align directive.
12007         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12008         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12009         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12010         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12011         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12012         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12013         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12014         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12015         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12016         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12017         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12018         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12019         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12020         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12021         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12022         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12023         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12024         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12025         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12026         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12027         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12028         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12029         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12030         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12031         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12032         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12033         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12034         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12035         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12036         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12037         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12038         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12039         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12040         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12041         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12042         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12043         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12044         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12045         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12046         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12047         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12048
12049 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12050
12051         * math/tst-CMPLX.c: Include <stdio.h>.
12052
12053 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12054
12055         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12056         float.
12057         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12058         * sysdeps/sparc/bits/mathdef.h: Likewise.
12059
12060 2012-01-31  Marek Polacek  <polacek@redhat.com>
12061
12062         * libio/libio.h: Don't define _PARAMS.
12063         * locale/programs/config.h: Don't define PARAMS.
12064         * stdlib/strtol_l.c: Likewise.
12065         (__strtol_l): Remove PARAMS from the prototype.
12066
12067 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12068
12069         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12070         names.  Just use the correct names.  Remove unnecessary wrapper
12071         functions.
12072         * malloc/arena.c: Likewise.
12073         * malloc/hooks.c: Likewise.
12074
12075         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12076         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12077         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12078
12079 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12080
12081         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12082         into tail calls.
12083         (update_get_addr): New function.
12084         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12085         GET_ADDR_MODULE parameter.
12086
12087 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12088
12089         * crypt/cert.c: Remove __STDC__ conditionals.
12090         * crypt/crypt-entry.c: Likewise.
12091         * crypt/crypt_util.c: Likewise.
12092         * libio/filedoalloc.c: Likewise.
12093         * libio/fileops.c: Likewise.
12094         * libio/genops.c: Likewise.
12095         * libio/iofclose.c: Likewise.
12096         * libio/iofdopen.c: Likewise.
12097         * libio/iofopen.c: Likewise.
12098         * libio/iofopen64.c: Likewise.
12099         * libio/iogetdelim.c: Likewise.
12100         * libio/iopopen.c: Likewise.
12101         * libio/obprintf.c: Likewise.
12102         * libio/oldfileops.c: Likewise.
12103         * libio/oldiofclose.c: Likewise.
12104         * libio/oldiofdopen.c: Likewise.
12105         * libio/oldiofopen.c: Likewise.
12106         * libio/oldiopopen.c: Likewise.
12107         * libio/wfiledoalloc.c: Likewise.
12108         * libio/wgenops.c: Likewise.
12109         * locale/programs/xmalloc.c: Likewise.
12110         * misc/syslog.c: Likewise.
12111         * stdio-common/xbug.c: Likewise.
12112         * string/memchr.c: Likewise.
12113         * string/memcmp.c: Likewise.
12114         * string/memrchr.c: Likewise.
12115         * string/rawmemchr.c: Likewise.
12116         * sysdeps/posix/getcwd.c: Likewise.
12117         * time/strftime_l.c: Likewise.
12118
12119 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12120
12121         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12122         * config.make.in (config-cflags-sse2avx): Define.
12123         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12124         Fix typo.
12125
12126 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12127
12128         * scripts/config.guess: Update from upstream config git repository.
12129         * scripts/config.sub: Likewise.
12130
12131 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12132
12133         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12134         (EM_NUM): Update.
12135         (R_TILEPRO_*, R_TILEGX_*): New macros.
12136
12137         * scripts/firstversions.awk: Fix bug in version range handling.
12138
12139         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12140
12141         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12142
12143         * include/sys/epoll.h: New file.
12144         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12145         libc_hidden_def.
12146
12147 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12148
12149         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12150         Avoid unnecessary __WORDSIZE == 64 test.
12151         (fmaxf): Use VEX format if possible.
12152         (fmax): Likewise.
12153         (fminf): Likewise.
12154         (fmin): Likewise.
12155
12156         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12157         * math/math_private.h: Remove libc_fegetround* and
12158         libc_fesetround*.
12159         * sysdeps/i386/configure.in: Check for -msse2avx.
12160         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12161         also if SSE2AVX is defined.
12162         Remove libc_fegetround* and libc_fesetround*.
12163         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12164         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12165         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12166         of HAS_YMM_USABLE.
12167         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12168         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12169         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12170         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12171         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12172
12173         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12174
12175 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12176
12177         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12178         size is not set.
12179         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12180
12181 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12182
12183         [BZ #13618]
12184         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12185         relocation.
12186         * Makeconfig (libm): Define.
12187         * elf/Makefile: Add rules to build and run tst-relsort1.
12188         * elf/tst-relsort1.c: New file.
12189         * elf/tst-relsort1mod1.c: New file.
12190         * elf/tst-relsort1mod2.c: New file.
12191
12192 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12193
12194         * math/s_ldexp.c: Remove __STDC__ conditionals.
12195         * math/s_ldexpf.c: Likewise.
12196         * math/s_ldexpl.c: Likewise.
12197         * math/s_nextafter.c: Likewise.
12198         * math/s_nexttowardf.c: Likewise.
12199         * math/s_significand.c: Likewise.
12200         * math/s_significandf.c: Likewise.
12201         * math/s_significandl.c: Likewise.
12202         * math/w_jnl.c: Likewise.
12203         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12204         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12205         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12206         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12207         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12208         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12209         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12210         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12211         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12212         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12213         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12214         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12215         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12216         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12217         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12218         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12219         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12220         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12221         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12222         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12223         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12224         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12225         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12226         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12227         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12228         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12229         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12230         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12231         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12232         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12233         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12234         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12235         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12236         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12237         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12238         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12239         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12240         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12241         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12242         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12243         * sysdeps/ieee754/k_standard.c: Likewise.
12244         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12246         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12247         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12248         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12253         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12259         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12260         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12261         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12262         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12263         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12274         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12275         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12276         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12277         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12278         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12282         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12283         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12285         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12286         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12288         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12290         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12291         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12292         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12293         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12294         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12295         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12297         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12298         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12299         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12300         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12301         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12302         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12303         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12304         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12305         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12306         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12307         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12308         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12309         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12310         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12311         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12312         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12313         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12314         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12315         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12316         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12317         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12318         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12319         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12320         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12321         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12322         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12323         * sysdeps/ieee754/s_matherr.c: Likewise.
12324         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12325         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12326         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12327         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12328
12329 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12330
12331         * crypt/md5.h: Remove __STDC__ conditionals.
12332         * libio/libioP.h: Likewise.
12333         * locale/programs/config.h: Likewise.
12334         * sysdeps/generic/sysdep.h: Likewise.
12335         * sysdeps/i386/asm-syntax.h: Likewise.
12336         * sysdeps/s390/asm-syntax.h: Likewise.
12337         * sysdeps/unix/sysdep.h: Likewise.
12338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12340
12341 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12342
12343         * libio/libio.h: Remove __STDC__ conditionals.
12344         * malloc/obstack.h: Likewise.
12345         * math/complex.h: Likewise.
12346         * math/math.h: Likewise.
12347         * sysdeps/generic/_G_config.h: Likewise.
12348         * sysdeps/gnu/_G_config.h: Likewise.
12349         * sysdeps/mach/hurd/_G_config.h: Likewise.
12350         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12351         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12352         * sysdeps/sparc/bits/mathdef.h: Likewise.
12353
12354 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12355
12356         [BZ #13583]
12357         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12358         Clean up HAS_* macros.
12359         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12360         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12361         possible.
12362         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12363         HAS_AVX.
12364         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12365         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12366         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12367         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12368         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12369
12370 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12371
12372         * elf/tst-unique3.cc (gets): Remove declaration.
12373         * elf/tst-unique3lib.cc (gets): Likewise.
12374         * elf/tst-unique3lib2.cc (gets): Likewise.
12375         * elf/tst-unique4.cc (gets): Likewise.
12376
12377 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12378
12379         * include/stdio.h: Add C++ protection.  Add gets declarations and
12380         definitions.
12381         * debug/tst-chk1.c: Don't declare gets here.
12382         * stdio-common/tst-gets.c: Likewise.
12383
12384 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12385
12386         * posix/glob: Remove directory.
12387
12388 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12389
12390         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12391
12392 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12393
12394         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12395         of the non-standard EPFNOSUPPORT.
12396
12397 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12398
12399         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12400         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12401         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12402
12403 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12404
12405         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12406
12407 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12408
12409         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12410         transient errors.
12411         * nscd/grpcache.c (cache_addgr): Likewise.
12412         * nscd/hstcache.c (cache_addhst): Likewise.
12413         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12414         * nscd/pwdcache.c (cache_addpw): Likewise.
12415         * nscd/servicescache.c (cache_addserv): Likewise.
12416
12417 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12418
12419         * malloc/malloc.c: Various cleanups.
12420         * malloc/hooks.c: Likewise.
12421
12422         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12423         * stdlib/bug-fmtmsg1.c: New file.
12424
12425         * stdlib/fmtmsg.c (init): Add missing unlock.
12426         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12427
12428 2012-01-12  Marek Polacek  <polacek@redhat.com>
12429
12430         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12431         and _GNU_SOURCE.
12432
12433 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12434
12435         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12436         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12437         macro to ensure uniqueness of label name.
12438         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12439         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12440
12441 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12442
12443         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12444
12445         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12446         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12447         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12448         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12449
12450 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12451
12452         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12453
12454         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12455         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12456         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12457
12458         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12459
12460         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12461         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12462         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12463         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12464
12465         * math/bits/math-finite.h: Add ldexp support.
12466
12467 2012-01-10  Marek Polacek  <polacek@redhat.com>
12468
12469         * locale/programs/localedef.h (show_archive_content): Add noreturn
12470         attribute.
12471
12472 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12473
12474         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12475
12476 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12477
12478         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12479
12480         * io/Makefile (headers): Add bits/poll2.h.
12481
12482 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
12483
12484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12485         typo #include statement.
12486
12487 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12488
12489         * include/sys/cdefs.h: Define __attribute_alloc_size.
12490         * catgets/gencat.c: Add alloc_size attribute and apply consistently
12491         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12492         * elf/pldd.c: Likewise.
12493         * iconv/iconv_charmap.c: Likewise.
12494         * iconv/iconvconfig.c: Likewise.
12495         * iconv/strtab.c: Likewise.
12496         * locale/programs/locale.c: Likewise.
12497         * locale/programs/localedef.h: Likewise.
12498         * locale/programs/simple-hash.c: Likewise.
12499         * nscd/nscd.h: Likewise.
12500         * nss/makedb.c: Likewise.
12501         * sysdeps/generic/ldconfig.h: Likewise.
12502         * locale/programs/localedef.c: Remove xmalloc prototype.
12503         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12504
12505 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12506
12507         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12508         appropriate.
12509
12510 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12511
12512         * math/Makefile (tests): Add tst-CMPLX.
12513         * math/tst-CMPLX.c: New file.
12514
12515         * math/complex.h (CMPLXL): Fix typo.
12516
12517         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12518         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12519         GLIBC_2.16.
12520         * debug/tst-chk1.c: Add poll and ppoll tests.
12521         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12522         * include/sys/poll.h: Add hidden proto for ppoll.
12523         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12524         * sysdeps/mach/hurd/ppoll.c: Likewise.
12525         * io/ppoll.c: Likewise.
12526         * debug/poll_chk.c: New file.
12527         * debug/ppoll_chk.c: New file.
12528         * include/bits/poll2.h: New file.
12529         * io/bits/poll2.h: New file.
12530
12531         [BZ #1350]
12532         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12533
12534         * configure.in: static is always set to yes.  Remove.
12535         * config.make.in: Don't set build-static.
12536         * Makeconfig: Remove use of build-static.
12537         * dlfcn/Makefile: Likewise.
12538         * elf/Makefile: Likewise.
12539         * math/Makefile: Likewise.
12540         * misc/Makefile: Likewise.
12541         * nptl/Makefile: Likewise.
12542         * sysdeps/mach/hurd/Makefile: Likewise.
12543
12544         * configure.in: PWD_P is not used anymore.
12545         * config.make.in: Remove PWD_P entry.
12546
12547         * configure.in: Remove last remnants of RANLIB.
12548         No need to check for signed size_t anymore.
12549         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12550         and IA-64.
12551         Remove __builtin_expect test because we require at least gcc 3.4.
12552         * aclocal.m4: Likewise.
12553
12554         * wcsmbs/mbrtoc16.c: Implement using towc function.
12555         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12556         * wcsmbs/wcsmbsload.c: Likewise.
12557         * iconv/gconv_simple.c: Likewise.
12558         * iconv/gconv_int.h: Likewise.
12559         * iconv/gconv_builtin.h: Likewise.
12560         * iconv/iconv_prog.c: Remove CHAR16 handling.
12561
12562         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12563
12564         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12565
12566         * configure.in: Remove --with-elf and --enable-bounded options.
12567         Dont set base_machine for ia64.  More non-ELF conditions removed.
12568         Remove testing and setting of leading underscore information.
12569         * config.make.in (build-bounded): Set to no.
12570         * config.h.in: Remove NO_UNDERSCORES entry.
12571         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12572         them.
12573         * csu/start.c: Remove !NO_UNDERSCORE code.
12574         * locale/localeinfo.h: Likewise.
12575         * sysdeps/generic/machine-gmon.h: Likewise.
12576         * sysdeps/generic/sysdep.h: Likewise.
12577         * sysdeps/i386/sysdep.h: Likewise.
12578         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12579         * sysdeps/mach/sysdep.h: Likewise.
12580         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12581         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12582         * sysdeps/sh/sysdep.h: Likewise.
12583         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12584         * sysdeps/unix/i386/sysdep.S: Likewise.
12585         * sysdeps/unix/sparc/start.c: Likewise.
12586         * sysdeps/unix/sparc/sysdep.S: Likewise.
12587         * sysdeps/unix/sparc/sysdep.h: Likewise.
12588         * sysdeps/unix/start.c: Likewise.
12589         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12590         * sysdeps/x86_64/sysdep.h: Likewise.
12591
12592 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12593
12594         [BZ #13553]
12595         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12596         for non-gcc.
12597         * argp/argp-fmtstream.h: Use const instead __const.
12598         * argp/argp.h: Likewise.
12599         * assert/assert.h: Likewise.
12600         * bits/fenv.h: Likewise.
12601         * bits/sched.h: Likewise.
12602         * bits/sigset.h: Likewise.
12603         * bits/sigthread.h: Likewise.
12604         * catgets/nl_types.h: Likewise.
12605         * conform/data/pthread.h-data: Likewise.
12606         * crypt/crypt-private.h: Likewise.
12607         * crypt/crypt.h: Likewise.
12608         * crypt/crypt_util.c: Likewise.
12609         * ctype/ctype.h: Likewise.
12610         * debug/execinfo.h: Likewise.
12611         * debug/mbsnrtowcs_chk.c: Likewise.
12612         * debug/mbsrtowcs_chk.c: Likewise.
12613         * debug/wcsnrtombs_chk.c: Likewise.
12614         * debug/wcsrtombs_chk.c: Likewise.
12615         * debug/wcstombs_chk.c: Likewise.
12616         * dirent/dirent.h: Likewise.
12617         * dlfcn/dlfcn.h: Likewise.
12618         * elf/neededtest4.c: Likewise.
12619         * grp/grp.h: Likewise.
12620         * gshadow/gshadow.h: Likewise.
12621         * iconv/gconv.h: Likewise.
12622         * iconv/gconv_int.h: Likewise.
12623         * iconv/gconv_simple.c: Likewise.
12624         * iconv/iconv.h: Likewise.
12625         * iconv/loop.c: Likewise.
12626         * iconv/skeleton.c: Likewise.
12627         * include/aio.h: Likewise.
12628         * include/aliases.h: Likewise.
12629         * include/argz.h: Likewise.
12630         * include/arpa/inet.h: Likewise.
12631         * include/assert.h: Likewise.
12632         * include/dirent.h: Likewise.
12633         * include/dlfcn.h: Likewise.
12634         * include/execinfo.h: Likewise.
12635         * include/fcntl.h: Likewise.
12636         * include/fenv.h: Likewise.
12637         * include/glob.h: Likewise.
12638         * include/grp.h: Likewise.
12639         * include/libintl.h: Likewise.
12640         * include/mntent.h: Likewise.
12641         * include/netdb.h: Likewise.
12642         * include/pwd.h: Likewise.
12643         * include/rpc/netdb.h: Likewise.
12644         * include/sched.h: Likewise.
12645         * include/search.h: Likewise.
12646         * include/shadow.h: Likewise.
12647         * include/signal.h: Likewise.
12648         * include/stdio.h: Likewise.
12649         * include/stdlib.h: Likewise.
12650         * include/string.h: Likewise.
12651         * include/sys/socket.h: Likewise.
12652         * include/sys/stat.h: Likewise.
12653         * include/sys/statfs.h: Likewise.
12654         * include/sys/statvfs.h: Likewise.
12655         * include/sys/syslog.h: Likewise.
12656         * include/sys/time.h: Likewise.
12657         * include/sys/uio.h: Likewise.
12658         * include/time.h: Likewise.
12659         * include/unistd.h: Likewise.
12660         * include/utmp.h: Likewise.
12661         * include/wchar.h: Likewise.
12662         * include/wctype.h: Likewise.
12663         * inet/aliases.h: Likewise.
12664         * inet/arpa/inet.h: Likewise.
12665         * inet/netinet/ether.h: Likewise.
12666         * inet/netinet/in.h: Likewise.
12667         * intl/libintl.h: Likewise.
12668         * io/bits/fcntl2.h: Likewise.
12669         * io/fcntl.h: Likewise.
12670         * io/ftw.h: Likewise.
12671         * io/sys/poll.h: Likewise.
12672         * io/sys/stat.h: Likewise.
12673         * io/sys/statfs.h: Likewise.
12674         * io/sys/statvfs.h: Likewise.
12675         * io/utime.h: Likewise.
12676         * libio/bits/stdio.h: Likewise.
12677         * libio/bits/stdio2.h: Likewise.
12678         * libio/libio.h: Likewise.
12679         * libio/libioP.h: Likewise.
12680         * libio/stdio.h: Likewise.
12681         * locale/lc-ctype.c: Likewise.
12682         * locale/locale.h: Likewise.
12683         * login/utmp.h: Likewise.
12684         * malloc/arena.c: Likewise.
12685         * malloc/malloc.c: Likewise.
12686         * malloc/malloc.h: Likewise.
12687         * malloc/mcheck.c: Likewise.
12688         * malloc/mtrace.c: Likewise.
12689         * math/bits/mathcalls.h: Likewise.
12690         * math/fenv.h: Likewise.
12691         * math/math_private.h: Likewise.
12692         * misc/bits/error.h: Likewise.
12693         * misc/bits/syslog.h: Likewise.
12694         * misc/err.h: Likewise.
12695         * misc/error.h: Likewise.
12696         * misc/fstab.h: Likewise.
12697         * misc/mntent.h: Likewise.
12698         * misc/regexp.h: Likewise.
12699         * misc/search.h: Likewise.
12700         * misc/sgtty.h: Likewise.
12701         * misc/sys/mman.h: Likewise.
12702         * misc/sys/syslog.h: Likewise.
12703         * misc/sys/uio.h: Likewise.
12704         * misc/sys/xattr.h: Likewise.
12705         * misc/ttyent.h: Likewise.
12706         * nis/rpcsvc/ypclnt.h: Likewise.
12707         * nss/nss.h: Likewise.
12708         * posix/bits/unistd.h: Likewise.
12709         * posix/fnmatch.h: Likewise.
12710         * posix/glob.h: Likewise.
12711         * posix/sched.h: Likewise.
12712         * posix/spawn.h: Likewise.
12713         * posix/sys/wait.h: Likewise.
12714         * posix/unistd.h: Likewise.
12715         * posix/wordexp.h: Likewise.
12716         * pwd/pwd.h: Likewise.
12717         * resolv/netdb.h: Likewise.
12718         * resource/sys/resource.h: Likewise.
12719         * rt/aio.h: Likewise.
12720         * rt/bits/mqueue2.h: Likewise.
12721         * rt/mqueue.h: Likewise.
12722         * shadow/shadow.h: Likewise.
12723         * signal/signal.h: Likewise.
12724         * socket/send.c: Likewise.
12725         * socket/sendto.c: Likewise.
12726         * socket/sys/socket.h: Likewise.
12727         * stdio-common/printf.h: Likewise.
12728         * stdlib/bits/stdlib.h: Likewise.
12729         * stdlib/fmtmsg.h: Likewise.
12730         * stdlib/monetary.h: Likewise.
12731         * stdlib/stdlib.h: Likewise.
12732         * stdlib/ucontext.h: Likewise.
12733         * streams/stropts.h: Likewise.
12734         * string/argz.h: Likewise.
12735         * string/bits/string2.h: Likewise.
12736         * string/string.h: Likewise.
12737         * string/strings.h: Likewise.
12738         * sunrpc/rpc/auth.h: Likewise.
12739         * sunrpc/rpc/auth_des.h: Likewise.
12740         * sunrpc/rpc/clnt.h: Likewise.
12741         * sunrpc/rpc/netdb.h: Likewise.
12742         * sunrpc/rpc/pmap_clnt.h: Likewise.
12743         * sunrpc/rpc/xdr.h: Likewise.
12744         * sysdeps/generic/inttypes.h: Likewise.
12745         * sysdeps/generic/net/if.h: Likewise.
12746         * sysdeps/generic/sys/swap.h: Likewise.
12747         * sysdeps/gnu/net/if.h: Likewise.
12748         * sysdeps/gnu/utmpx.h: Likewise.
12749         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12750         * sysdeps/i386/i486/bits/string.h: Likewise.
12751         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12752         * sysdeps/s390/bits/string.h: Likewise.
12753         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12754         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12755         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12756         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12757         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12758         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12759         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12760         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12761         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12762         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12763         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12764         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12765         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12766         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12767         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12768         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12769         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12770         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12771         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12772         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12773         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12774         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12775         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12776         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12777         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12778         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12779         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12780         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12781         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12782         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12783         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12784         * sysvipc/sys/ipc.h: Likewise.
12785         * sysvipc/sys/msg.h: Likewise.
12786         * sysvipc/sys/sem.h: Likewise.
12787         * sysvipc/sys/shm.h: Likewise.
12788         * termios/termios.h: Likewise.
12789         * time/sys/time.h: Likewise.
12790         * time/time.h: Likewise.
12791         * wcsmbs/bits/wchar2.h: Likewise.
12792         * wcsmbs/uchar.h: Likewise.
12793         * wcsmbs/wchar.h: Likewise.
12794         * wctype/wctype.h: Likewise.
12795
12796         [BZ #13551]
12797         * Makeconfig: Remove all but ELF support including AIX support.
12798         * Makerules: Likewise.
12799         * config.h.in: Likewise.
12800         * config.make.in: Likewise.
12801         * configure: Likewise.
12802         * configure.in: Likewise.
12803         * csu/Makefile: Likewise.
12804         * csu/version.c: Likewise.
12805         * debug/Makefile: Likewise.
12806         * dlfcn/Makefile: Likewise.
12807         * elf/Makefile: Likewise.
12808         * extra-lib.mk: Likewise.
12809         * iconv/Makefile: Likewise.
12810         * include/libc-symbols.h: Likewise.
12811         * include/shlib-compat.h: Likewise.
12812         * resolv/Makefile: Likewise.
12813         * resolv/res_libc.c: Likewise.
12814         * rt/Makefile: Likewise.
12815         * sysdeps/i386/asm-syntax.h: Likewise.
12816         * sysdeps/i386/sysdep.h: Likewise.
12817         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12818         * sysdeps/mach/sysdep.h: Likewise.
12819         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12820         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12821         * sysdeps/s390/asm-syntax.h: Likewise.
12822         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12823         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12824         * sysdeps/sh/sysdep.h: Likewise.
12825         * sysdeps/unix/sparc/sysdep.h: Likewise.
12826         * sysdeps/wordsize-32/divdi3.c: Likewise.
12827         * sysdeps/x86_64/sysdep.h: Likewise.
12828
12829         * argp/Versions: Remove _argp_unlock_xxx.
12830
12831         [BZ #13559]
12832         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12833         * abilist/libBrokenLocale.abilist: Likewise.
12834         * abilist/libanl.abilist: Likewise.
12835         * abilist/libc.abilist: Likewise.
12836         * abilist/libcrypt.abilist: Likewise.
12837         * abilist/libdl.abilist: Likewise.
12838         * abilist/libm.abilist: Likewise.
12839         * abilist/libnsl.abilist: Likewise.
12840         * abilist/libpthread.abilist: Likewise.
12841         * abilist/libresolv.abilist: Likewise.
12842         * abilist/librt.abilist: Likewise.
12843         * abilist/libthread_db.abilist: Likewise.
12844         * abilist/libutil.abilist: Likewise.
12845         * abilist/libnss_db.abilist: New file.
12846
12847         * scripts/abilist.awk: Add support for indirect functions.
12848
12849         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12850
12851         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12852
12853         * shlib-versions: Remove entries for ports architectures.
12854
12855         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12856         files in ports.
12857         * elf/stackguard-macros.h: Remove support for IA-64.
12858         * elf/tst-auditmod1.c: Likewise.
12859         * sysdeps/generic/ldsodefs.h: Likewise.
12860
12861         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12862         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12863         configure files.
12864
12865         [BZ #13552]
12866         * configure.in: Remove --enable-omitfp support.
12867         * FAQ.in: Adjust.
12868         * config.make.in: Likewise.
12869         * Makeconfig: Likewise.
12870         * manual/install.texi: Likewise.
12871
12872         In case anyone cares, the IA-64 architecture could move to ports.
12873         * sysdeps/ia64/*: Removed.
12874         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12875         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12876
12877         [BZ #13555]
12878         * configure.in: Remove entries for unsupported architectures.
12879
12880         [BZ #13533]
12881         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12882         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12883         routines.
12884         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12885         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12886         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12887         fall back to using wcrtomb.
12888         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12889         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12890         renaming.
12891         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12892         * wcsmbs/tst-c16c32-1.c: New file.
12893
12894         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12895         local variable.
12896
12897         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12898
12899         * elf/tst-unique3.cc: Add explicit declaration of gets.
12900         * elf/tst-unique3lib.cc: Likewise.
12901         * elf/tst-unique3lib2.cc: Likewise.
12902         * elf/tst-unique4.cc: Likewise.
12903
12904         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12905
12906 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12907
12908         [BZ #13566]
12909         * assert/assert.h (static_assert): Don't define for C++.
12910         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12911         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12912
12913 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12914
12915         * iconv/loop.c (single loop): Fix assertion in storing of
12916         remaining bytes.
12917
12918         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12919
12920 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12921
12922         * posix/getconf.c: Update copyright year.
12923         * nss/getent.c: Likewise.
12924         * nss/makedb.c: Likewise.
12925         * iconv/iconvconfig.c: Likewise.
12926         * iconv/iconv_prog.c: Likewise.
12927         * elf/ldconfig.c: Likewise.
12928         * elf/pldd.c: Likewise.
12929         * elf/sotruss.ksh: Likewise.
12930         * catgets/gencat.c: Likewise.
12931         * csu/version.c: Likewise.
12932         * elf/ldd.bash.in: Likewise.
12933         * elf/sprof.c (print_version): Likewise.
12934         * locale/programs/locale.c: Likewise.
12935         * locale/programs/localedef.c: Likewise.
12936         * login/programs/pt_chown.c: Likewise.
12937         * nscd/nscd.c (print_version): Likewise.
12938         * debug/xtrace.sh: Likewise.
12939         * malloc/memusage.sh: Likewise.
12940         * malloc/mtrace.pl: Likewise.
12941         * debug/catchsegv.sh: Likewise.
12942
12943 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12944
12945         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12946         pure attribute.
12947
12948 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12949
12950         [BZ #13533]
12951         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12952         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12953         transformations.
12954         * iconv/gconv_int.h: Likewise.
12955         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12956         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12957         from libc for GLIBC_2.16.
12958         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12959         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12960         * wcsmbs/uchar.h: Really define mbstate_t.
12961         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12962         * wcsmbs/c16rtomb.c: New file.
12963         * wcsmbs/mbrtoc16.c: New file.
12964         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12965         for C/POSIX locale.
12966         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12967         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12968
12969         * wcsmbs/wchar.h: Add missing __restrict.
12970
12971 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12972
12973         [BZ #13532]
12974         * time/Makefile (routines): Add timespec_get.
12975         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12976         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12977         timespec for ISO C11.
12978         * time/timespec_get.c: New file.
12979         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12980         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12981
12982         [BZ #13531]
12983         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12984         * stdlib/stdlib.h: Declare aligned_alloc.
12985         * Versions.def: Add GLIBC_2.16 for libc.
12986         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12987
12988         [BZ 13527]
12989         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12990         ISO C11.
12991
12992         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12993         code.
12994
12995         [BZ #13528]
12996         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12997
12998         [BZ #13529]
12999         * assert/assert.h (static_assert): Define.
13000
13001         * version.h: Update for 2.16 development version.
13002
13003         [BZ #13526]
13004         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13005         _ISOC11_SOURCE.
13006
13007         * version.h (RELEASE): Bump for 2.15 release.
13008         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13009
13010         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13011         Patch by Marek Polacek <mpolacek@redhat.com>.
13012
13013         * bits/byteswap.h: Protect long long constants with __extension__.
13014         * sysdeps/i386/bits/byteswap.h: Likewise.
13015         * sysdeps/ia64/bits/byteswap.h: Likewise.
13016         * sysdeps/s390/bits/byteswap.h: Likewise.
13017         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13018
13019 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13020
13021         [BZ #13540]
13022         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13023         destination buffer.
13024         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13025
13026 2011-12-23  Marek Polacek  <polacek@redhat.com>
13027
13028         * elf/dl-addr.c (determine_info): Add inline keyword.
13029         * elf/tst-auditmod4b.c (check_avx): Likewise.
13030         * elf/tst-auditmod6b.c (check_avx): Likewise.
13031         * elf/tst-auditmod6c.c (check_avx): Likewise.
13032         * elf/tst-auditmod7b.c (check_avx): Likewise.
13033
13034 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13035
13036         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13037         !__SSE_MATH__.
13038
13039 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13040
13041         [BZ #13540]
13042         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13043         processing for last bytes.
13044
13045 2011-08-06  Bruno Haible  <bruno@clisp.org>
13046
13047         [BZ #13061]
13048         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13049         U+0385, not to U+1FEE.
13050
13051         [BZ #13062]
13052         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13053         entry for U+00A5 U+0301.
13054
13055 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13056
13057         [BZ #13166]
13058         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13059         buffer for the output is too small.
13060
13061         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13062         optimization.
13063
13064         [BZ #13185]
13065         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13066         SSE flags if possible.
13067
13068 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13069
13070         [BZ #13540]
13071         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13072         processing for last bytes.
13073
13074 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13075
13076         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13077         (syscall-list-default-options, syscall-list-default-condition)
13078         (syscall-list-includes): Define.
13079         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13080         list of ABIs and options and #if conditions for each ABI.  Do not
13081         handle common syscalls between ABIs specially.
13082         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13083         Remove.
13084         (syscall-list-variants, syscall-list-32bit-options)
13085         (syscall-list-32bit-condition, syscall-list-64bit-options)
13086         (syscall-list-64bit-condition): Define.
13087         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13088         (syscall-list-variants, syscall-list-32bit-options)
13089         (syscall-list-32bit-condition, syscall-list-64bit-options)
13090         (syscall-list-64bit-condition): Define.
13091         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13092         Remove.
13093         (syscall-list-variants, syscall-list-32bit-options)
13094         (syscall-list-32bit-condition, syscall-list-64bit-options)
13095         (syscall-list-64bit-condition): Define.
13096         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13097         Remove.
13098         (syscall-list-variants, syscall-list-32bit-options)
13099         (syscall-list-32bit-condition, syscall-list-64bit-options)
13100         (syscall-list-64bit-condition): Define.
13101
13102 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13103
13104         * locale/iso-639.def: Add brx entry.
13105
13106         [BZ #13328]
13107         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13108         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13109
13110         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13111         __feraiseexcept_renamed.
13112
13113 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13114
13115         [BZ #13538]
13116         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13117         EPOLLET with unsigned values.
13118         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13119         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13120
13121         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13122         to large cancellation.
13123         * math/s_cacoshf.c: Likewise.
13124         * math/s_cacoshl.c: Likewise.
13125
13126 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13127
13128         [BZ #13305]
13129         [BZ #12786]
13130         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13131         * math/s_cacoshf.c: Likewise.
13132         * math/s_cacoshl.c: Likewise.
13133
13134 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13135
13136         [BZ #13439]
13137         * iconv/gconv.h: Define __GCONV_SWAP.
13138         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13139         * iconvdata/utf-16.c: Likewise.
13140         * iconvdata/utf-32.c: Likewise.
13141
13142 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13143
13144         [BZ #13524]
13145         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13146         numerator after shifting it by one limb.
13147
13148 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13149
13150         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13151         under [__USE_EXTERN_INLINES].
13152
13153 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13154
13155         [BZ #13446]
13156         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13157
13158 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13159
13160         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13161         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13162         optimized code.
13163         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13164         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13165         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13166         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13167         for strncasecmp/strncasecmp_l compilation.
13168         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13169         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13170
13171 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13172
13173         [BZ #13484]
13174         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13175         of __asm__.
13176
13177 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13178
13179         [BZ #13506]
13180         * time/tzfile.c (__tzfile_read): Check values from file header.
13181
13182 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13183
13184         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13185         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13186         * powerpc/powerpc32/dl-start.S: Likewise.
13187         * powerpc/powerpc32/elf/start.S: Likewise.
13188         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13189         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13190         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13191         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13192         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13193         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13194         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13195         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13196         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13197         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13198         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13199         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13200         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13201         * powerpc/powerpc32/memset.S: Likewise.
13202         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13203         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13204         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13205         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13206         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13207         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13208         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13209         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13210         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13211         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13212         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13213         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13214         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13215
13216 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13217
13218         * math/libm-test.inc: Added more nearbyint tests.
13219         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13220         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13221         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13222         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13223
13224 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13225
13226         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13227         FD_CLOEXEC.
13228
13229 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13230
13231         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13232         Add wcscpy-ssse3 wcscpy-c.
13233         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13234         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13235         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13236         * sysdeps/x86_64/wcschr.S: New file.
13237         * sysdeps/x86_64/wcsrchr.S: New file.
13238         * string/test-strcmp.c: Remove checking of wcscmp function for
13239         wrong alignments.
13240         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13241         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13242         wcsrchr-sse2 wcsrchr-c.
13243         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13244         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13245         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13246         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13247         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13248         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13249         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13250         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13251         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13252         * wcsmbc/wcschr.c (WCSCHR): New macro.
13253
13254 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13255
13256         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13257         * wcsmbs/test-wcsrchr.c: New file.
13258         * string/test-strrchr.c: Add wcsrchr support.
13259         (WIDE): New macro.
13260         * wcsmbs/test-wcscpy.c: New file.
13261         * string/test-strcpy.c: Add wcscpy support.
13262         (WIDE): New macro.
13263
13264 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13265
13266         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13267         the inner loop.
13268
13269 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13270
13271         [BZ #13472]
13272         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13273
13274 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13275
13276         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13277         Minor optimizations.
13278
13279         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13280         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13281         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13282
13283 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13284
13285         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13286         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13287         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13288         for gcc to avoid warnings.
13289         * inet/Makefile (tests): Add tst-checks.
13290         * inet/tst-checks.c: New file.
13291
13292         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13293         warning.
13294
13295         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13296         __wmemcmp_sse2.
13297
13298         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13299         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13300
13301         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13302
13303 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13304
13305         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13306         problem.
13307
13308         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13309
13310 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13311
13312         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13313         conditional on GCC version.
13314         (__arch_compare_and_exchange_val_8_acq)
13315         (__arch_compare_and_exchange_val_16_acq)
13316         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13317         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13318         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13319
13320 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13321
13322         * sysdeps/sh/backtrace.c: New file.
13323
13324 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13325
13326         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13327         parenthesis.
13328
13329 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13330
13331         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13332         falling back to utime.
13333
13334 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13335
13336         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13337         expectations for float.
13338
13339 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13340
13341         * locale/weight.h (findidx): Add parameter len.
13342         * locale/weightwc.h (findidx): Likewise.
13343         * posix/fnmatch_loop.c (FCT): Adjust caller.
13344         * posix/regcomp.c (build_equiv_class): Likewise.
13345         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13346         * posix/regexec.c (check_node_accept_bytes): Likewise.
13347         * string/strcoll_l.c (STRCOLL): Likewise.
13348         * string/strxfrm_l.c (STRXFRM): Likewise.
13349
13350 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13351
13352         * Makefile.in: Remove CVSOPT handling.
13353         * configure.in: Remove use of AC_REVISION.
13354         * iconvdata/Makefile (distribute): No need to filter out CVS.
13355         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13356         handling.
13357
13358 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13359
13360         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13361         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13362         [USE_AS_STRNCASECMP_L]: Likewise.
13363         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13364         NO_TLS_DIRECT_SEG_REFS.
13365         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13366         Fix argument offsets for non-PIC.
13367         [USE_AS_STRNCASECMP_L]: Likewise.
13368         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13369         NO_TLS_DIRECT_SEG_REFS.
13370
13371 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13372
13373         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13374         O_CLOEXEC.
13375         * locale/loadlocale.c (_nl_load_locale): Likewise.
13376
13377 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13378
13379         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13380         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13381         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13382         (SYSCALL_GETTIME): Set errno on error.
13383
13384         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13385         count references to noai6ai_cached.
13386
13387 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13388
13389         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13390
13391         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13392         FD_CLOEXEC for /proc/self/maps.
13393
13394         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13395         FD_CLOEXEC for /proc/meminfo.
13396
13397         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13398         gai.conf.
13399
13400         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13401         FD_CLOEXEC for given file.
13402
13403         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13404
13405         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13406         FD_CLOEXEC for /etc/hosts.
13407         (_gethtent): Likewise.
13408
13409         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13410
13411         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13412         cancellation and set FD_CLOEXEC for /etc/netgroup.
13413
13414         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13415         reading /etc/publickey.
13416
13417         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13418         allow cancellation when reading /etc/group.
13419
13420         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13421         cancellation.
13422         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13423
13424         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13425         when using data file.
13426
13427         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13428
13429         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13430         (write_nis_obj): Use "c" and "e" in fopen.
13431
13432         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13433
13434         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13435
13436         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13437
13438         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13439
13440         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13441         locale.alias.
13442
13443         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13444
13445         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13446
13447         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13448
13449         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13450         file parsing and set FD_CLOEXEC.
13451
13452 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13453
13454         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13455
13456 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13457
13458         * malloc/arena.c (arena_get2): Don't call reused_arena when
13459         _int_new_arena failed.
13460
13461 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13462
13463         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13464         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13465         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13466         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13467         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13468         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13469         to compile strcasecmp and strncasecmp.
13470         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13471         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13472
13473         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13474
13475 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13476
13477         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13478         locale-defines.sym to gen-as-const-headers.
13479         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13480         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13481         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13482         to compile strcasecmp and strncasecmp.
13483         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13484         strcasecmp_l and strncasecmp_l.
13485         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13486         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13487         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13488         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13489         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13490         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13491         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13492         * sysdeps/i386/i686/multiarch/strncase.S: New file.
13493         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13494         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13495         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13496
13497 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
13498
13499         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13500         result of SYSDEP_GETTIME_CPU to retval.
13501         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13502         parameter list to macro.  Remove trailing semicolon.  Adjust users.
13503
13504         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13505         variable.
13506
13507         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13508         mantissa words.
13509         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13510
13511         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13512         from unused variable.
13513
13514         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13515         DWARF definitions.
13516         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13517         for assembling.
13518
13519         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13520         over namespaces.
13521
13522         * sunrpc/rpc_prot.c (rejected): Fix case value.
13523
13524         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13525         unsigned long long int to avoid warnings in shift.
13526
13527         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13528         of use of trans.
13529         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13530         variable tmp.
13531
13532         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13533         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13534         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13535
13536         * nis/nis_table.c (nis_list): Use variable of correct type for
13537         result of __follow_path call.
13538
13539 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13540
13541         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13542         of math functions ceil, trunc, floor, round, and sqrt, when
13543         avaliable on the platform.
13544         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13545         name clash.
13546         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13547         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13548         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13549
13550 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13551
13552         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13553         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13554
13555 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13556
13557         * include/unistd.h: Fix __readlink return type.
13558         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13559
13560 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13561
13562         * stdlib/ucontext.h: Undo last change for makecontext.
13563
13564 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13565
13566         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13567
13568         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13569         * setjmp/setjmp.h: Mark functions as non-leaf.
13570         * setjmp/bits/setjmp2.h: Likewise.
13571         * stdlib/ucontext.h: Likewise.
13572
13573 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13574
13575         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13576         (reused_arena): Don't check arena limit.
13577         (arena_get2): Atomically check arena limit.
13578
13579 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13580
13581         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13582         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13583
13584         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13585         instructions.
13586
13587 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13588
13589         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13590         handler when locking.
13591
13592         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13593         Fix size of allocated buffer.
13594
13595 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13596
13597         [BZ #10103]
13598         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13599         declarations for long double functions.
13600         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13601
13602         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13603
13604 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13605
13606         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13607         installed.
13608
13609         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13610         is disabled.
13611
13612 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13613
13614         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13615
13616 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13617
13618         * include/alloca.h (stackinfo_alloca_round): Define.
13619         (extend_alloca): Use it.
13620         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13621         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13622         here.
13623
13624         * scripts/check-local-headers.sh: Ignore libaudit.h.
13625
13626         * nscd/Makefile (extra-objs): Make recursively expanded.
13627
13628 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13629
13630         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13631         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13632
13633         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13634         * posix/tst-rfc3484-2.c: Likewise.
13635         * posix/tst-rfc3484-3.c: Likewise.
13636
13637         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13638         process_vm_writev.
13639         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13640         process_vm_writev.
13641         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13642         process_vm_writev from libc using GLIBC_2.15 version.
13643
13644         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13645
13646 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13647
13648         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13649         stack usage.
13650
13651 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13652
13653         [BZ #13367]
13654         * nss/getent.c (initgroups_keys): Show error message in case no group
13655         names are given.
13656
13657         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13658         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13659         __bump_nl_timestamp.
13660         * nscd/connections (nscd_init): When host database is served open
13661         netlink socket and request notification about configuration changes.
13662         (main_loop_poll): Track netlink file descriptor and bump timestamp
13663         in case data becomes available.
13664         (main_loop_epoll): Likewise.
13665         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13666         (database_pers_head): Add extra_data fileds.
13667         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13668         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13669         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13670         Adjust caller.
13671         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13672         in6ai data, call __free_in6ai.
13673         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13674         Add -DHAVE_NETLINK.
13675         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13676         interface information.  Reuse previous data if netlink timestamp
13677         is not changed.
13678         (__bump_nl_timestamp): New function.
13679         (__free_in6ai): New function.
13680
13681 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13682
13683         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13684         close_not_cancel_no_status here.
13685         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13686
13687 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13688
13689         [BZ #13276]
13690         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13691         return value.
13692
13693         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13694         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13695         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13696
13697 2011-07-03  Andreas Jaeger  <aj@suse.de>
13698
13699         [BZ #10709]
13700         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13701         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13702         * math/libm-test.inc (sin_test): Add test case.
13703
13704 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13705
13706         [BZ #13337]
13707         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13708         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13709
13710         * elf/chroot_canon.c (chroot_canon): Cleanups.
13711
13712         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13713
13714         [BZ #13335]
13715         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13716         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13717
13718         * string/test-strchr.c: Make usable for strchrnul testing.
13719         * string/test-strchrnul.c: New file.
13720         * string/Makefile (strop-tests): Add strchrnul.
13721
13722         * po/it.po: Update from translation team.
13723         * po/es.po: Likewise.
13724
13725 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13726
13727         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13728         the three constants needed as parameters.  Drop the others.
13729         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13730         __m128i_strloadu_tolower.
13731         Create and initialize variable zero and use it in all the places
13732         where _mm_setzero_si128 was used.
13733
13734         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13735         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13736         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13737         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13738         anymore.
13739         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13740         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13741         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13742         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13743         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13744         __mpranred, __mptan.
13745         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13746         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13747         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13748         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13749         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13750         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13751         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13752         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13753         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13754
13755 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13756
13757         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13758         redefine if SHARED.
13759         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13760
13761         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13762         wide char related routines to wcsmbs subdir.
13763
13764 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13765
13766         [BZ #13344]
13767         * misc/sys/cdefs.h (__THROWNL): Define.
13768         * posix/unistd.h: Use __THREADNL instead of __THREAD
13769         for memory synchronization functions.
13770
13771 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13772
13773         [BZ #13349]
13774         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13775         doesn't exist.
13776         * manual/stdio.texi (Obstack Streams): Node removed.
13777
13778 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13779
13780         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13781         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13782         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13783
13784         * math/math_private.h (math_force_eval): Allow non-addressable
13785         arguments.
13786         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13787
13788 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13789
13790         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13791         file is not needed.
13792
13793         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13794         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13795         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13796         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13797         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13798         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13799         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13800         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13801         Add AVX variants.
13802         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13803         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13804         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13805         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13806         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13807         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13808         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13809         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13810         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13811         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13812         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13813         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13814         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13815         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13816         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13817         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13818         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13819         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13820         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13821
13822         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13823         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13824
13825         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13826         place.  Use VEX encoding when compiling for AVX.
13827
13828 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13829
13830         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13831         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13832
13833         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13834
13835 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13836
13837         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13838         useless if() expression.
13839         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13840         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13841         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13842         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13843         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13844         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13845         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13846         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13847         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13848         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13849         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13850         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13851         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13852         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13853         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13854         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13855         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13856         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13857         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13858
13859         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13860
13861 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13862
13863         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13864         condition.
13865         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13866
13867 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13868
13869         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13870         .text section.  Avoid duplicate constants.
13871         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13872         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13873         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13874         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13875         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13876         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13877         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13878         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13879         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13880         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13881         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13882         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13883         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13884         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13885         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13886         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13887         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13888         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13889         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13890         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13891         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13892         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13893         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13894         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13895         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13896         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13897         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13898         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13899         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13900         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13901         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13902         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13903         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13904         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13905         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13906         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13907         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13908         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13909         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13910         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13911         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13912         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13913         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13914         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13915         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13916
13917 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13918
13919         * sysdeps/x86_64/dla.h: Move to ...
13920         * sysdeps/x86_64/fpu/dla.h: ...here.
13921         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13922         situations.  Use __builtin_fma only for gcc 4.6 and up.
13923
13924         * config.make.in: Add have-mfma4 entry.
13925         * configure.in: Substitute libc_cv_cc_fma4.
13926         * math/Makefile (dbl-only-routines): Add sincostab.
13927         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13928         Use __sincostab not sincos.
13929         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13930         name is a macro.
13931         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13932         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13933         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13934         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13935         using __copysign.
13936         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13937         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13938         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13939         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13940         and __inv.
13941         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13942         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13943         __copysign.
13944         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13945         define aliases when function name is a macro.
13946         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13947         sysdeps/ieee754/dbl-64/sincos.tbl.
13948         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13949         fma4-enabled routines.
13950         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13951         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13952         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13953         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13954         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13955         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13956         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13957         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13958         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13959         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13960         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13961         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13962         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13963         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13964         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13965         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13966         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13967         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13968         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13969         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13970         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13971         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13972         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13973         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13974         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13975         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13976         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13977         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13978         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13979         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13980
13981         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13982         rename.
13983         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13984         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13985         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13986         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13987         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13988         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13989         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13990         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13991
13992 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13993
13994         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13995
13996 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13997
13998         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13999
14000         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14001         prediction.
14002         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14003
14004         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14005         Remove unused variable magic_bits.
14006         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14007
14008         * string/strnlen.c: Define and use STRNLEN macro.
14009         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14010         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14011         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14012         * wcsmbs/wcslen.c: Define and use WCSLEN.
14013         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14014         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14015         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14016         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14017         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14018         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14019         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14020
14021 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14022
14023         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14024         strnlen-sse2-no-bsf.
14025         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14026         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14027         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14028         Add strnlen support.
14029         (USE_AS_STRNLEN): New macro.
14030         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14031         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14032         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14033         * sysdeps/x86_64/wcslen.S: New file.
14034
14035 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14036
14037         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14038         XMM-moves are used for copying on small sizes.
14039
14040 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14041
14042         * wcsmbs/Makefile (strop-tests): Add wcschr.
14043         * wcsmbs/test-wcschr.c: New file.
14044         * string/test-strchr.c: Update.
14045         Add wcschr support.
14046         (WIDE): New macro.
14047
14048 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14049
14050         * wcsmbs/Makefile (strop-tests): Add wcslen.
14051         * wcsmbs/test-wcslen.c: New file.
14052         * string/test-strlen.c: Update.
14053         Add wcslen support.
14054         (WIDE): New macro.
14055
14056 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14057
14058         * po/it.po: Update from translation team.
14059
14060 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14061
14062         * sysdeps/x86_64/wcscmp.S: Update.
14063         Fix wrong comparison semantics.
14064         wcscmp shall use signed comparison not unsigned.
14065         Don't use substraction to avoid overflow bug.
14066         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14067         * wcsmbc/wcscmp.c: Likewise.
14068         * string/test-strcmp.c: Likewise.
14069         Add new tests to check cases with negative values.
14070
14071 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14072
14073         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14074         * sysdeps/x86_64/dla.h: ...here.  New file.
14075         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14076         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14077         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14078         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14079         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14080         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14081         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14082         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14083         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14084
14085 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14086
14087         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14088         __ynl_finite aliases.
14089
14090 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14091
14092         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14093
14094         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14095         define DLA_FMA.
14096         [DLA_FMA] (EMULV): Use DLA_FMA.
14097         [DLA_FMA] (MUL12): Use EMULV.
14098         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14099         that are not needed.
14100         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14101         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14102         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14103         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14104         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14105         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14106         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14107
14108 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14109
14110         * math/s_nan.c: Undef __nan.
14111         * math/s_nanf.c: Undef __nanf.
14112         * math/s_nanl.c: Undef __nanl.
14113         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14114         "math_private.h".
14115
14116 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14117
14118         * math/s_catan.c: Add branch predictions.
14119         * math/s_catanf.c: Likewise.
14120         * math/s_catanh.c: Likewise.
14121         * math/s_catanhf.c: Likewise.
14122         * math/s_catanhl.c: Likewise.
14123         * math/s_catanl.c: Likewise.
14124         * math/s_cexp.c: Likewise.
14125         * math/s_cexpf.c: Likewise.
14126         * math/s_cexpl.c: Likewise.
14127         * math/s_clog.c: Likewise.
14128         * math/s_clog10.c: Likewise.
14129         * math/s_clog10f.c: Likewise.
14130         * math/s_clog10l.c: Likewise.
14131         * math/s_clogf.c: Likewise.
14132         * math/s_clogl.c: Likewise.
14133         * math/s_csqrt.c: Likewise.
14134         * math/s_csqrtf.c: Likewise.
14135         * math/s_csqrtl.c: Likewise.
14136         * math/s_ctanf.c: Likewise.
14137         * math/s_ctanh.c: Likewise.
14138         * math/s_ctanhf.c: Likewise.
14139         * math/s_ctanhl.c: Likewise.
14140         * math/s_ctanl.c: Likewise.
14141
14142         * math/math_private.h: Define __nan, __nanf, __nanl.
14143         * math/s_cacosh.c: Include <math_private.h>.
14144         * math/s_cacoshl.c: Likewise.
14145         * math/s_casinh.c: Likewise.
14146         * math/s_casinhf.c: Likewise.
14147         * math/s_casinhl.c: Likewise.
14148         * math/s_ccos.c: Rely entire on ccosh.
14149         * math/s_ccosf.c: Rely entire on ccoshf.
14150         * math/s_ccosl.c: Rely entirely on ccoshl.
14151         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14152         Remove tests for FE_INVALID.
14153         * math/s_ccoshf.c: Likewise.
14154         * math/s_ccoshl.c: Likewise.
14155         * math/s_csin.c: Likewise.
14156         * math/s_csinf.c: Likewise.
14157         * math/s_csinh.c Likewise.
14158         * math/s_csinhf.c: Likewise.
14159         * math/s_csinhl.c: Likewise.
14160         * math/s_csinl.c: Likewise.
14161         * math/s_ctan.c: Likewise.
14162         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14163         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14164         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14165
14166 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14167
14168         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14169         compilation problems.
14170
14171         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14172         __builtin_expect.
14173
14174 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14175
14176         * sysdeps/i386/configure.in: Test for -mfma4 option.
14177         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14178         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14179         COMMON_CPUID_INDEX_80000001.
14180         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14181         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14182         use it if FMA3 is not supported.
14183         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14184
14185         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14186         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14187
14188 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14189
14190         [BZ #12892]
14191         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14192         it would create a cycle with a link time dependency.
14193
14194 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14195
14196         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14197         instruction.
14198         * string/Makefile (strop-tests): Add rawmemchr.
14199         * string/test-rawmemchr.c: New file.
14200
14201         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14202         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14203         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14204         when compiling str{,n}casecmp and when AVX is available.  Hook up
14205         new optimized code in initializers.
14206
14207 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14208
14209         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14210         __feraiseexcept instead of feraiseexcept.
14211
14212 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14213
14214         * math/math_private.h: Define defaults for libc_fetestexcept and
14215         libc_feupdateenv.
14216         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14217         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14218         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14219         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14220         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14221         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14222         libc_fetestexcept and libc_feupdateenv.
14223
14224         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14225         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14226         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14227         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14228         libc_feholdexcept_setround.
14229
14230         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14231         Add s_nearbyint-c and s_nearbyintf-c.
14232         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14233         nearbyintf inlines.
14234         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14235         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14236         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14237         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14238
14239         * math/math_private.h: Define defaults for libc_fegetround,
14240         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14241         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14242         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14243         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14244         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14245         standard functions.
14246         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14247         Remove comments and hacks for old compiler versions.
14248         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14249         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14250         libc_feholdexceptl.
14251
14252 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14253
14254         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14255         (__feraiseexcept_renamed): Add __NTH.
14256         (feraiseexcept): Add __NTH.  Rename local variables to fix
14257         namespace violations.
14258
14259 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14260
14261         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14262
14263         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14264
14265         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14266         recently added interfaces.
14267         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14268
14269         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14270         about macro parameter expansion.
14271
14272         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14273         __NO_MATH_INLINES is defined.  Cleanups.
14274
14275         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14276         and __floorf is target has SSE4.1.
14277         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14278         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14279         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14280         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14281
14282         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14283         name.
14284         (floorf): Likewise.
14285
14286         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14287
14288 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14289
14290         * misc/sys/cdefs.h: Fix last change.
14291
14292         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14293         database lookup.
14294
14295 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14296
14297         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14298
14299         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14300         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14301         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14302         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14303         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14304         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14305         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14306         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14307         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14308         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14309         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14310         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14311         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14312         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14313         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14314         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14315         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14316         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14317         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14318         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14319         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14320         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14321
14322         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14323         ceil, ceilf, floor, floorf.
14324
14325         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14326         Perform IRELATIVE relocations last.
14327
14328         * elf/do-rel.h: Add another parameter nrelative, replacing the
14329         local variable with the same name.  Change name of the function
14330         to end in Rel or Rela (uppercase).
14331         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14332         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14333         elf_dynamic_do_##reloc function.
14334
14335 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14336
14337         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14338         is sufficient, at least on modern CPUs.
14339
14340         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14341
14342         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14343         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14344
14345         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14346         __expl_finite.
14347         * math/bits/math-finite.h: Add entries for exp.
14348         * math/e_expl.c: Add __*_finite alias.
14349         * sysdeps/i386/fpu/e_exp.S: Likewise.
14350         * sysdeps/i386/fpu/e_expf.S: Likewise.
14351         * sysdeps/i386/fpu/e_expl.c: Likewise.
14352         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14353         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14354         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14355         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14356         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14357         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14358         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14359
14360         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14361         is sufficient, at least on modern CPUs.
14362
14363         * ctype/ctype-info.c (__ctype_init): Define.
14364         * include/ctype.h (__ctype_init): Declare.
14365         (__ctype_b_loc): The variable is always initialized.
14366         (__ctype_toupper_loc): Likewise.
14367         (__ctype_tolower_loc): Likewise.
14368         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14369         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14370
14371 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14372
14373         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14374
14375         * configure.in: Also look in $cxxmachine/include for C++ system
14376         headers.
14377
14378 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14379
14380         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14381         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14382         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14383         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14384         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14385         (USE_AS_WMEMCMP): New macro.
14386         Fixing indents.
14387         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14388         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14389         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14390         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14391         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14392         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14393         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14394         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14395         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14396         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14397         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14398         (USE_AS_WMEMCMP): New macro.
14399         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14400         * sysdeps/string/test-memcmp.c: Update.
14401         Fix simple_wmemcmp.
14402         Add new tests.
14403         * wcsmbs/wmemcmp.c: Update.
14404         (WMEMCMP): New macro.
14405         Fix overflow bug.
14406
14407 2011-10-12  Andreas Jaeger  <aj@suse.de>
14408
14409         [BZ #13268]
14410         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14411
14412 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14413
14414         * libio/iofwide.c (do_length): Avoid warning.
14415
14416         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14417
14418 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14419
14420         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14421
14422         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14423         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14424         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14425         * sysdeps/i386/i686/fpu/e_log.S: New file.
14426         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14427         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14428
14429         * ctype/ctype.h: Add support for inlined isXXX functions when
14430         compiling C++ code.
14431
14432 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14433
14434         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14435
14436         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14437
14438 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14439
14440         [BZ #13291]
14441         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14442
14443 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14444
14445         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14446         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14447         feraiseexcept.
14448
14449         * sysdeps/x86_64/memrchr.S: Check for zero size.
14450
14451         * string/stratcliff.c: Add memrchr tests.
14452
14453 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14454
14455         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14456         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14457         rawmemchr-sse2 rawmemchr-sse2-bsf.
14458         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14459         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14460         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14461         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14462         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14463         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14464         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14465         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14466         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14467         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14468         * string/memrchr.c (MEMRCHR): New macro.
14469
14470 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14471
14472         Add integration with gcc's -ffinite-math-only and optimize wrapper
14473         functions in libm.
14474         * Versions.def: Define GLIBC_2.15 version for libm.
14475         * math/Makefile (headers): Add bits/math-finite.h.
14476         * math/bits/math-finite.h: New file.
14477         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14478         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14479         * math/e_acoshl.c: Add __*_finite alias.
14480         * math/e_acosl.c: Likewise.
14481         * math/e_asinl.c: Likewise.
14482         * math/e_atan2l.c: Likewise.
14483         * math/e_atanhl.c: Likewise.
14484         * math/e_coshl.c: Likewise.
14485         * math/e_exp10.c: Likewise.
14486         * math/e_exp10f.c: Likewise.
14487         * math/e_exp10l.c: Likewise.
14488         * math/e_exp2l.c: Likewise.
14489         * math/e_fmodl.c: Likewise.
14490         * math/e_gammal_r.c: Likewise.
14491         * math/e_hypotl.c: Likewise.
14492         * math/e_j0l.c: Likewise.
14493         * math/e_j1l.c: Likewise.
14494         * math/e_jnl.c: Likewise.
14495         * math/e_lgammal_r.c: Likewise.
14496         * math/e_log10l.c: Likewise.
14497         * math/e_log2l.c: Likewise.
14498         * math/e_logl.c: Likewise.
14499         * math/e_powl.c: Likewise.
14500         * math/e_sinhl.c: Likewise.
14501         * math/e_sqrtl.c: Likewise.
14502         * math/e_scalb.c: Completely rewritten and optimized.
14503         * math/e_scalbf.c: Likewise.
14504         * math/e_scalbl.c: Likewise.
14505         * math/w_acos.c: Likewise.
14506         * math/w_acosf.c: Likewise.
14507         * math/w_acosl.c: Likewise.
14508         * math/w_acosh.c: Likewise.
14509         * math/w_acoshf.c: Likewise.
14510         * math/w_acoshl.c: Likewise.
14511         * math/w_asin.c: Likewise.
14512         * math/w_asinf.c: Likewise.
14513         * math/w_asinl.c: Likewise.
14514         * math/w_atan2.c: Likewise.
14515         * math/w_atan2f.c: Likewise.
14516         * math/w_atan2l.c: Likewise.
14517         * math/w_atanh.c: Likewise.
14518         * math/w_atanhf.c: Likewise.
14519         * math/w_atanhl.c: Likewise.
14520         * math/w_exp10.c: Likewise.
14521         * math/w_exp10f.c: Likewise.
14522         * math/w_exp10l.c: Likewise.
14523         * math/w_fmod.c: Likewise.
14524         * math/w_fmodf.c: Likewise.
14525         * math/w_fmodl.c: Likewise.
14526         * math/w_j0.c: Likewise.
14527         * math/w_j0f.c: Likewise.
14528         * math/w_j0l.c: Likewise.
14529         * math/w_j1.c: Likewise.
14530         * math/w_j1f.c: Likewise.
14531         * math/w_j1l.c: Likewise.
14532         * math/w_jn.c: Likewise.
14533         * math/w_jnf.c: Likewise.
14534         * math/w_log.c: Likewise.
14535         * math/w_logf.c: Likewise.
14536         * math/w_logl.c: Likewise.
14537         * math/w_log10.c: Likewise.
14538         * math/w_log10f.c: Likewise.
14539         * math/w_log10l.c: Likewise.
14540         * math/w_log2.c: Likewise.
14541         * math/w_log2f.c: Likewise.
14542         * math/w_log2l.c: Likewise.
14543         * math/w_pow.c: Likewise.
14544         * math/w_powf.c: Likewise.
14545         * math/w_powl.c: Likewise.
14546         * math/w_remainder.c: Likewise.
14547         * math/w_remainderf.c: Likewise.
14548         * math/w_remainderl.c: Likewise.
14549         * math/w_scalb.c: Likewise.
14550         * math/w_scalbf.c: Likewise.
14551         * math/w_scalbl.c: Likewise.
14552         * math/w_sqrt.c: Likewise.
14553         * math/w_sqrtf.c: Likewise.
14554         * math/w_sqrtl.c: Likewise.
14555         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14556         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14557         used.
14558         * math/math_private.h: Declare __kernel_standard_f.
14559         * math/w_cosh.c: Remove cruft and optimize a bit.
14560         * math/w_coshf.c: Likewise.
14561         * math/w_coshl.c: Likewise.
14562         * math/w_exp2.c: Likewise.
14563         * math/w_exp2f.c: Likewise.
14564         * math/w_exp2l.c: Likewise.
14565         * math/w_hypot.c: Likewise.
14566         * math/w_hypotf.c: Likewise.
14567         * math/w_hypotl.c: Likewise.
14568         * math/w_lgamma.c: Likewise.
14569         * math/w_lgamma_r.c: Likewise.
14570         * math/w_lgammaf.c: Likewise.
14571         * math/w_lgammaf_r.c: Likewise.
14572         * math/w_lgammal.c: Likewise.
14573         * math/w_lgammal_r.c: Likewise.
14574         * math/w_sinh.c: Likewise.
14575         * math/w_sinhf.c: Likewise.
14576         * math/w_sinhl.c: Likewise.
14577         * math/w_tgamma.c: Likewise.
14578         * math/w_tgammaf.c: Likewise.
14579         * math/w_tgammal.c: Likewise.
14580         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14581         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14582         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14583         Minor optimizations.  Pretty printing.  Remove cruft.
14584         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14585         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14586         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14587         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14588         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14589         * sysdeps/i386/fpu/e_asin.S: Likewise.
14590         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14591         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14592         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14593         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14594         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14595         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14596         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14597         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14598         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14599         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14600         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14601         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14602         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14603         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14604         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14605         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14606         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14607         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14608         * sysdeps/i386/fpu/e_log.S: Likewise.
14609         * sysdeps/i386/fpu/e_log10.S: Likewise.
14610         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14611         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14612         * sysdeps/i386/fpu/e_log2.S: Likewise.
14613         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14614         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14615         * sysdeps/i386/fpu/e_logf.S: Likewise.
14616         * sysdeps/i386/fpu/e_logl.S: Likewise.
14617         * sysdeps/i386/fpu/e_pow.S: Likewise.
14618         * sysdeps/i386/fpu/e_powf.S: Likewise.
14619         * sysdeps/i386/fpu/e_powl.S: Likewise.
14620         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14621         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14622         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14623         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14624         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14625         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14626         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14627         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14628         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14629         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14631         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14632         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14633         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14634         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14635         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14636         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14637         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14638         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14639         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14640         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14641         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14642         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14643         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14644         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14645         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14646         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14647         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14648         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14649         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14650         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14651         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14652         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14653         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14654         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14655         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14656         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14657         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14658         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14659         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14660         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14661         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14662         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14663         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14664         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14665         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14666         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14667         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14668         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14669         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14670         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14671         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14672         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14673         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14674         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14675         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14676         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14677         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14692         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14694         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14696         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14697         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14698         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14699         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14700         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14701         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14702         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14704         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14705         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14707         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14708         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14709         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14710         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14711         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14712         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14713         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14714         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14715         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14716         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14717         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14718         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14719         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14720         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14721         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14722         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14723         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14724         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14725         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14726         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14727         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14728         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14729         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14730         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14731         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14732         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14733         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14734         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14735         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14736         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14737         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14738         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14739         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14740         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14741         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14742         (__isnanf): Likewise.
14743         (__isinf_ns): Likewise.
14744         (__isinf_nsf): Likewise.
14745         (__finite): Likewise.
14746         (__finitef): Likewise.
14747         (__ieee754_sqrt): Define as macro.
14748         (__ieee754_sqrtf): Define as macro.
14749         (__ieee754_sqrtl): Define as macro.
14750         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14751         inlined copy.
14752         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14753         __FINITE_MATH_ONLY__ consistent.
14754         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14755
14756 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14757
14758         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14759         of rawmemchr.
14760
14761         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14762
14763 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14764
14765         * po/ja.po: Update from translation team.
14766
14767 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14768
14769         * locale/programs/locarchive.c (prepare_address_space): New function.
14770         (create_archive, enlarge_archive, open_archive): Use it.
14771
14772         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14773         inside [SHARED], where it is used.
14774
14775         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14776
14777         * nss/getent.c (netgroup_keys): Remove unused variable.
14778         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14779
14780 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14781
14782         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14783         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14784         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14785         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14786         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14787         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14788         * math/Makefile (libm-calls): Add s_isinf_ns.
14789         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14790         * math/multc3.c: Likewise.
14791         * math/s_casin.c: Likewise.
14792         * math/s_casinf.c: Likewise.
14793         * math/s_casinl.c: Likewise.
14794         * math/s_ccos.c: Likewise.
14795         * math/s_ccosf.c: Likewise.
14796         * math/s_ccosl.c: Likewise.
14797         * math/s_ctan.c: Likewise.
14798         * math/s_ctanf.c: Likewise.
14799         * math/s_ctanh.c: Likewise.
14800         * math/s_ctanhf.c: Likewise.
14801         * math/s_ctanhl.c: Likewise.
14802         * math/s_ctanl.c: Likewise.
14803         * math/w_fmod.c: Likewise.
14804         * math/w_fmodf.c: Likewise.
14805         * math/w_fmodl.c: Likewise.
14806         * math/w_remainder.c: Likewise.
14807         * math/w_remainderf.c: Likewise.
14808         * math/w_remainderl.c: Likewise.
14809         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14810         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14811         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14812         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14813         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14814         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14815         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14816         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14817
14818         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14819         of the number.
14820         * stdio-common/printf_fphex.c: Likewise.
14821         * stdio-common/printf_size.c: Likewise.
14822
14823         * math/e_exp10.c: Include math_private.h using <...> not "...".
14824         * math/e_exp10f.c: Likewise.
14825         * math/e_exp10l.c: Likewise.
14826         * math/e_exp2l.c: Likewise.
14827         * math/e_j0l.c: Likewise.
14828         * math/e_j1l.c: Likewise.
14829         * math/e_jnl.c: Likewise.
14830         * math/e_lgammal_r.c: Likewise.
14831         * math/e_rem_pio2l.c: Likewise.
14832         * math/e_scalb.c: Likewise.
14833         * math/e_scalbf.c: Likewise.
14834         * math/e_scalbl.c: Likewise.
14835         * math/k_cosl.c: Likewise.
14836         * math/k_sinl.c: Likewise.
14837         * math/k_tanl.c: Likewise.
14838         * math/s_cacoshf.c: Likewise.
14839         * math/s_catan.c: Likewise.
14840         * math/s_catanf.c: Likewise.
14841         * math/s_catanh.c: Likewise.
14842         * math/s_catanhf.c: Likewise.
14843         * math/s_catanhl.c: Likewise.
14844         * math/s_catanl.c: Likewise.
14845         * math/s_ccosh.c: Likewise.
14846         * math/s_ccoshf.c: Likewise.
14847         * math/s_ccoshl.c: Likewise.
14848         * math/s_cexp.c: Likewise.
14849         * math/s_cexpf.c: Likewise.
14850         * math/s_cexpl.c: Likewise.
14851         * math/s_clog.c: Likewise.
14852         * math/s_clog10.c: Likewise.
14853         * math/s_clog10f.c: Likewise.
14854         * math/s_clog10l.c: Likewise.
14855         * math/s_clogf.c: Likewise.
14856         * math/s_clogl.c: Likewise.
14857         * math/s_csin.c: Likewise.
14858         * math/s_csinf.c: Likewise.
14859         * math/s_csinh.c: Likewise.
14860         * math/s_csinhf.c: Likewise.
14861         * math/s_csinhl.c: Likewise.
14862         * math/s_csinl.c: Likewise.
14863         * math/s_csqrt.c: Likewise.
14864         * math/s_csqrtf.c: Likewise.
14865         * math/s_csqrtl.c: Likewise.
14866         * math/s_ctan.c: Likewise.
14867         * math/s_ctanf.c: Likewise.
14868         * math/s_ctanh.c: Likewise.
14869         * math/s_ctanhf.c: Likewise.
14870         * math/s_ctanhl.c: Likewise.
14871         * math/s_ctanl.c: Likewise.
14872         * math/s_ldexp.c: Likewise.
14873         * math/s_ldexpf.c: Likewise.
14874         * math/s_ldexpl.c: Likewise.
14875         * math/s_significand.c: Likewise.
14876         * math/s_significandf.c: Likewise.
14877         * math/s_significandl.c: Likewise.
14878         * math/w_acos.c: Likewise.
14879         * math/w_acosf.c: Likewise.
14880         * math/w_acosh.c: Likewise.
14881         * math/w_acoshf.c: Likewise.
14882         * math/w_acoshl.c: Likewise.
14883         * math/w_acosl.c: Likewise.
14884         * math/w_asin.c: Likewise.
14885         * math/w_asinf.c: Likewise.
14886         * math/w_asinl.c: Likewise.
14887         * math/w_atan2.c: Likewise.
14888         * math/w_atan2f.c: Likewise.
14889         * math/w_atan2l.c: Likewise.
14890         * math/w_atanh.c: Likewise.
14891         * math/w_atanhf.c: Likewise.
14892         * math/w_atanhl.c: Likewise.
14893         * math/w_cosh.c: Likewise.
14894         * math/w_coshf.c: Likewise.
14895         * math/w_coshl.c: Likewise.
14896         * math/w_dremf.c: Likewise.
14897         * math/w_exp10.c: Likewise.
14898         * math/w_exp10f.c: Likewise.
14899         * math/w_exp10l.c: Likewise.
14900         * math/w_exp2.c: Likewise.
14901         * math/w_exp2f.c: Likewise.
14902         * math/w_fmod.c: Likewise.
14903         * math/w_fmodf.c: Likewise.
14904         * math/w_fmodl.c: Likewise.
14905         * math/w_hypot.c: Likewise.
14906         * math/w_hypotf.c: Likewise.
14907         * math/w_hypotl.c: Likewise.
14908         * math/w_j0.c: Likewise.
14909         * math/w_j0f.c: Likewise.
14910         * math/w_j0l.c: Likewise.
14911         * math/w_j1.c: Likewise.
14912         * math/w_j1f.c: Likewise.
14913         * math/w_j1l.c: Likewise.
14914         * math/w_jn.c: Likewise.
14915         * math/w_jnf.c: Likewise.
14916         * math/w_jnl.c: Likewise.
14917         * math/w_lgamma.c: Likewise.
14918         * math/w_lgamma_r.c: Likewise.
14919         * math/w_lgammaf.c: Likewise.
14920         * math/w_lgammaf_r.c: Likewise.
14921         * math/w_lgammal.c: Likewise.
14922         * math/w_lgammal_r.c: Likewise.
14923         * math/w_log.c: Likewise.
14924         * math/w_log10.c: Likewise.
14925         * math/w_log10f.c: Likewise.
14926         * math/w_log10l.c: Likewise.
14927         * math/w_log2.c: Likewise.
14928         * math/w_log2f.c: Likewise.
14929         * math/w_log2l.c: Likewise.
14930         * math/w_logf.c: Likewise.
14931         * math/w_logl.c: Likewise.
14932         * math/w_pow.c: Likewise.
14933         * math/w_powf.c: Likewise.
14934         * math/w_powl.c: Likewise.
14935         * math/w_remainder.c: Likewise.
14936         * math/w_remainderf.c: Likewise.
14937         * math/w_remainderl.c: Likewise.
14938         * math/w_scalb.c: Likewise.
14939         * math/w_scalbf.c: Likewise.
14940         * math/w_scalbl.c: Likewise.
14941         * math/w_sinh.c: Likewise.
14942         * math/w_sinhf.c: Likewise.
14943         * math/w_sinhl.c: Likewise.
14944         * math/w_sqrt.c: Likewise.
14945         * math/w_sqrtf.c: Likewise.
14946         * math/w_sqrtl.c: Likewise.
14947         * math/w_tgamma.c: Likewise.
14948         * math/w_tgammaf.c: Likewise.
14949         * math/w_tgammal.c: Likewise.
14950
14951         * po/ja.po: Update from translation team.
14952
14953 2011-09-29  Andreas Jaeger  <aj@suse.de>
14954
14955         [BZ #13179]
14956         * sunrpc/netname.c (netname2host): Fix logic.
14957
14958         [BZ #6779]
14959         [BZ #6783]
14960         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14961         correctly.
14962         * math/w_remainder.c (__remainder): Likewise.
14963         * math/w_remainderf.c (__remainderf): Likewise.
14964         * math/libm-test.inc (remainder_test): Add test cases.
14965
14966 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14967
14968         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14969         sdiv_qrnnd.
14970
14971 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14972
14973         * string/test-memcmp.c: Avoid unncessary #defines.
14974         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14975
14976 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14977
14978         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14979         Use new sse2 version for core i3 - i7 as it's faster
14980         than sse42 version.
14981         (bit_Prefer_PMINUB_for_stringop): New.
14982         * sysdeps/x86_64/rawmemchr.S: Update.
14983         Replace with faster SSE2 version.
14984         * sysdeps/x86_64/memrchr.S: New file.
14985         * sysdeps/x86_64/memchr.S: Update.
14986         Replace with faster SSE2 version.
14987
14988 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14989
14990         * elf/dl-load.c (lose): Add cast to avoid warning.
14991
14992 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14993
14994         * po/ca.po: Update from translation team.
14995
14996         * inet/getnetgrent_r.c: Hook up nscd.
14997         * nscd/Makefile (routines): Add nscd_netgroup.
14998         (nscd-modules): Add netgroupcache.
14999         (CFLAGS-netgroupcache.c): Define.
15000         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15001         (cache_search): Add const to second parameter.
15002         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15003         INNETGR.
15004         (dbs): Add netgrdb entry.
15005         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15006         (verify_persistent_db): Handle netgrdb.
15007         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15008         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15009         GETFDNETGR.
15010         (netgroup_response_header): Define.
15011         (innetgroup_response_header): Define.
15012         (datahead): Add netgroup_response_header and innetgroup_response_header
15013         elements.
15014         * nscd/nscd.conf: Add entries for netgroup cache.
15015         * nscd/nscd.h (dbtype): Add netgrdb.
15016         (_PATH_NSCD_NETGROUP_DB): Define.
15017         (netgroup_iov_disabled): Declare.
15018         (xmalloc, xcalloc, xrealloc): Move declarations here.
15019         (cache_search): Adjust prototype.
15020         Add netgroup-related prototypes.
15021         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15022         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15023         (__nscd_innetgr): Declare.
15024         * nscd/selinux.c (perms): Use access_vector_t as element type and
15025         add netgroup-related initializers.
15026         * nscd/netgroupcache.c: New file.
15027         * nscd/nscd_netgroup.c: New file.
15028         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15029         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15030         For four parameters use innetgr.
15031         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15032         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15033         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15034         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15035
15036         * nscd/connections.c (register_traced_file): Don't register file
15037         for disabled databases.
15038
15039 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15040
15041         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15042
15043         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15044         from tree and freeing node.
15045
15046 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15047
15048         * nss/nsswitch.c (__nss_database_lookup): Handle
15049         nss_parse_service_list out of memory case.
15050
15051 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15052
15053         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15054         out of memory case.
15055
15056 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15057
15058         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15059         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15060         pass it down.
15061         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15062         elf_machine_rela, elf_machine_lazy_rel.
15063         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15064         (ELF_DYNAMIC_DO_REL): Likewise.
15065         (ELF_DYNAMIC_DO_RELA): Likewise.
15066         (ELF_DYNAMIC_RELOCATE): Likewise.
15067         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15068         to ELF_DYNAMIC_DO_REL.
15069         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15070         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15071         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15072         elf_machine_rela.
15073         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15074         skip_ifunc, don't call ifunc function if non-zero.
15075         (elf_machine_rela): Likewise.
15076         (elf_machine_lazy_rel): Likewise.
15077         (elf_machine_lazy_rela): Likewise.
15078         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15079         (elf_machine_lazy_rel): Likewise.
15080         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15081         Likewise.
15082         (elf_machine_lazy_rel): Likewise.
15083         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15084         Likewise.
15085         (elf_machine_lazy_rel): Likewise.
15086         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15087         (elf_machine_lazy_rel): Likewise.
15088         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15089         (elf_machine_lazy_rel): Likewise.
15090         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15091         (elf_machine_lazy_rel): Likewise.
15092         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15093         (elf_machine_lazy_rel): Likewise.
15094         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15095         (elf_machine_lazy_rel): Likewise.
15096         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15097         (elf_machine_lazy_rel): Likewise.
15098
15099 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15100
15101         * nss/nss_files/files-init.c (_nss_files_init): Use static
15102         initialization for all the *_traced_file variables.
15103
15104 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15105
15106         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15107
15108 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15109
15110         [BZ #13226]
15111         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15112
15113 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15114
15115         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15116         Reread the line before reparsing it.
15117
15118 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15119
15120         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15121
15122 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15123             Maxim Kuvyrkov  <maxim@codesourcery.com>
15124             Joseph Myers  <joseph@codesourcery.com>
15125
15126         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15127         if needed for __stack_chk_guard.
15128
15129 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15130
15131         * sysdeps/posix/spawni.c (script_execute): Always define it.
15132         It will be optimized away if unused.
15133         (maybe_script_execute): New function.
15134         (__spawni): Call it.
15135
15136         * Makerules: Don't include tls.make.
15137         (config-tls): Always set to thread.
15138         * tls.make.c: File removed.
15139
15140 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15141
15142         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15143         * config.make.in (CPPFLAGS-config): New substituted variable.
15144
15145 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15146
15147         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15148
15149         [BZ #13192]
15150         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15151         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15152
15153 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15154
15155         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15156         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15157         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15158         (CALL_FAIL): Likewise.
15159         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15160         (CALL_FAIL): Macro removed.
15161         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15162
15163 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15164
15165         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15166         for __FINITE_MATH_ONLY__ == 1.
15167
15168 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15169
15170         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15171         __ieee754_sqrt instead of sqrt.
15172         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15173         __ieee754_sqrtf instead of sqrtf.
15174         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15175         __floorf instead of floorf.
15176         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15177         __floorf, __truncf instead of floorf, truncf.
15178
15179 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15180
15181         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15182
15183         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15184         __extern_always_inline.
15185         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15186         32-bit.
15187
15188 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15189
15190         * elf/rtld.c (dl_main): Also relocate in dependency order when
15191         doing symbol dependency testing.
15192
15193 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15194
15195         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15196         Always define `refsym'.
15197
15198 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15199
15200         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15201         (__FD_ELT): Renamed from __FDELT.
15202         * misc/bits/select2.h (__FD_ELT): Likewise.
15203         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15204         __FD_MASK instead of __FDELT, __FDMASK.
15205         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15206         Likewise.
15207         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15208         Likewise.
15209
15210         * elf/Makefile (gen-ldd): Fix pattern.
15211
15212         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15213         (init_tls): Likewise.
15214
15215 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15216
15217         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15218
15219 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15220
15221         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15222         `struct cmsghdr *' instead of `void *'.
15223         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15224         Likewise.
15225
15226 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15227
15228         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15229         if non-absolute.
15230         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15231         ldd_rewrite_script.
15232
15233 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15234
15235         * configure.in: Remove --with-tls option.
15236         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15237         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15238         out in case it is missing.
15239         * sysdeps/ia64/elf/configure.in: Likewise.
15240         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15241         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15242         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15243         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15244         * sysdeps/sh/elf/configure.in: Likewise.
15245         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15246         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15247         * sysdeps/x86_64/elf/configure.in: Likewise.
15248         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15249         * sysdeps/mach/hurd/tls.h: Likewise.
15250
15251         [BZ #13067]
15252         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15253
15254         [BZ #13090]
15255         * configure.in: Fix use of AC_INIT.
15256
15257         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15258
15259 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15260
15261         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15262         __set_errno.
15263         * malloc/hooks.c: Likewise.
15264
15265         [BZ #11929]
15266         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15267         variables statically.
15268         (narenas): Initialize.
15269         (list_lock): Initialize.
15270         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15271         initializtion of main_arena and list_lock.  Small cleanups.
15272         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15273         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15274         Add initializers to main_arena and mp_.
15275         (malloc_state): Remove pagesize member.  Change all users to use
15276         GLRO(dl_pagesize).
15277
15278         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15279         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15280         is always initialized.
15281
15282         * malloc/malloc.c: Removed unused configurations and dead code.
15283         * malloc/arena.c: Likewise.
15284         * malloc/hooks.c: Likewise.
15285         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15286
15287         * include/tls.h: Removed.  USE___THREAD must always be defined.
15288         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15289         * elf/dl-libc.c: Likewise.
15290         * elf/dl-tsd.c: Likewise.
15291         * include/errno.h: Likewise.
15292         * include/netdb.h: Likewise.
15293         * include/resolv.h: Likewise.
15294         * inet/herrno-loc.c: Likewise.
15295         * inet/herrno.c: Likewise.
15296         * malloc/arena.c: Likewise.
15297         * malloc/hooks.c: Likewise.
15298         * malloc/malloc.c: Likewise.
15299         * resolv/res-state.c: Likewise.
15300         * resolv/res_libc.c: Likewise.
15301         * sysdeps/i386/dl-machine.h: Likewise.
15302         * sysdeps/ia64/dl-machine.h: Likewise.
15303         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15304         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15305         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15306         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15307         * sysdeps/sh/dl-machine.h: Likewise.
15308         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15309         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15310         * sysdeps/unix/i386/sysdep.S: Likewise.
15311         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15312         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15313         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15314         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15315         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15316         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15317         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15318         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15319         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15320         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15321         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15322         * sysdeps/x86_64/dl-machine.h: Likewise.
15323         * tls.make.c: Likewise.
15324
15325         * configure.in: Remove --with-__thread option.  Make tests for
15326         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15327         tls_model attribute fail if no support is available.  Remove
15328         USE_IN_LIBIO.
15329         * Makeconfig: Adjust for dropped configure option.  All features are
15330         now mandatory.
15331         * Makerules: Likewise.
15332         * Versions.def: Likewise.
15333         * argp/argp-fmtstream.c: Likewise.
15334         * argp/argp-fmtstream.h: Likewise.
15335         * argp/argp-help.c: Likewise.
15336         * assert/assert.c: Likewise.
15337         * config.h.in: Likewise.
15338         * config.make.in: Likewise.
15339         * configure: Likewise.
15340         * configure.in: Likewise.
15341         * csu/Versions: Likewise.
15342         * csu/init.c: Likewise.
15343         * elf/tst-audit2.c: Likewise.
15344         * elf/tst-tls10.c: Likewise.
15345         * elf/tst-tls10.h: Likewise.
15346         * elf/tst-tls11.c: Likewise.
15347         * elf/tst-tls12.c: Likewise.
15348         * elf/tst-tls14.c: Likewise.
15349         * elf/tst-tlsmod11.c: Likewise.
15350         * elf/tst-tlsmod12.c: Likewise.
15351         * elf/tst-tlsmod13.c: Likewise.
15352         * elf/tst-tlsmod13a.c: Likewise.
15353         * elf/tst-tlsmod14a.c: Likewise.
15354         * elf/tst-tlsmod15b.c: Likewise.
15355         * elf/tst-tlsmod16a.c: Likewise.
15356         * elf/tst-tlsmod16b.c: Likewise.
15357         * elf/tst-tlsmod7.c: Likewise.
15358         * elf/tst-tlsmod8.c: Likewise.
15359         * elf/tst-tlsmod9.c: Likewise.
15360         * gmon/gmon.c: Likewise.
15361         * grp/fgetgrent_r.c: Likewise.
15362         * grp/putgrent.c: Likewise.
15363         * hurd/fopenport.c: Likewise.
15364         * include/libc-symbols.h: Likewise.
15365         * include/tls.h: Likewise.
15366         * intl/gettextP.h: Likewise.
15367         * intl/loadinfo.h: Likewise.
15368         * locale/global-locale.c: Likewise.
15369         * locale/localeinfo.h: Likewise.
15370         * mach/devstream.c: Likewise.
15371         * malloc/arena.c: Likewise.
15372         * malloc/set-freeres.c: Likewise.
15373         * misc/err.c: Likewise.
15374         * misc/getttyent.c: Likewise.
15375         * misc/mntent_r.c: Likewise.
15376         * posix/getopt.c: Likewise.
15377         * posix/wordexp.c: Likewise.
15378         * pwd/fgetpwent_r.c: Likewise.
15379         * resolv/Versions: Likewise.
15380         * resolv/res_hconf.c: Likewise.
15381         * shadow/fgetspent_r.c: Likewise.
15382         * shadow/putspent.c: Likewise.
15383         * stdio-common/printf_fphex.c: Likewise.
15384         * stdio-common/tmpfile.c: Likewise.
15385         * stdlib/abort.c: Likewise.
15386         * stdlib/fmtmsg.c: Likewise.
15387         * sunrpc/auth_unix.c: Likewise.
15388         * sunrpc/clnt_perr.c: Likewise.
15389         * sunrpc/clnt_tcp.c: Likewise.
15390         * sunrpc/clnt_udp.c: Likewise.
15391         * sunrpc/clnt_unix.c: Likewise.
15392         * sunrpc/openchild.c: Likewise.
15393         * sunrpc/svc_simple.c: Likewise.
15394         * sunrpc/svc_tcp.c: Likewise.
15395         * sunrpc/svc_udp.c: Likewise.
15396         * sunrpc/svc_unix.c: Likewise.
15397         * sunrpc/xdr.c: Likewise.
15398         * sunrpc/xdr_array.c: Likewise.
15399         * sunrpc/xdr_rec.c: Likewise.
15400         * sunrpc/xdr_ref.c: Likewise.
15401         * sunrpc/xdr_stdio.c: Likewise.
15402
15403 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15404
15405         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15406
15407 2011-07-03  Andreas Jaeger  <aj@suse.de>
15408
15409         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15410         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15411         regenerate with gen-libm-tests.pl.
15412
15413 2010-05-12  Petr Baudis  <pasky@suse.cz>
15414
15415         [BZ #11589]
15416         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15417         around j0() zero points by switching to j1().
15418         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15419         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15420         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15421         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15422
15423 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15424
15425         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15426         instead of 0.
15427         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15428         instead of 0.                              .
15429         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15430         Patch in part by Pavel Roskin <proski@gnu.org>.
15431
15432         [BZ #13138]
15433         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15434         realloc.
15435         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15436         Free memory block if necessary.
15437
15438         [BZ #12847]
15439         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15440         be NULL.  Don't lock in this case.
15441
15442 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15443
15444         * elf/elf.h (ELFOSABI_GNU): New macro.
15445         (ELFOSABI_LINUX): Define to that.
15446
15447 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15448
15449         * string/strncat.c (strncat): Undef the symbol in case it has been
15450         defined in bits/string.h.
15451
15452 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15453
15454         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15455
15456         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15457         link map.
15458
15459 2011-08-17  Andreas Jaeger  <aj@suse.de>
15460
15461         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15462
15463 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15464             Ian Lance Taylor  <iant@google.com>
15465
15466         * math/libm-test.inc (lround_test): New testcase.
15467         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15468
15469 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15470
15471         * Makefile: Remove support for automatic cvs check-ins.
15472         * Makerules: Likewise.
15473         * config.make.in: Likewise.
15474         * configure.in: Likewise.
15475         * intl/Makefile: Likewise.
15476         * locale/Makefile: Likewise.
15477         * po/Makefile: Likewise.
15478         * posix/Makefile: Likewise.
15479         * sysdeps/gnu/Makefile: Likewise.
15480         * sysdeps/mach/hurd/Makefile: Likewise.
15481         * sysdeps/sparc/sparc32/Makefile: Likewise.
15482
15483         [BZ #13118]
15484         * posix/Makefile (bug-regex32-ENV): Define.
15485         Patch by John Stanley <jpsinthemix@verizon.net>.
15486
15487         * misc/Makefile (headers): Add bits/select2.h.
15488         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15489         * misc/bits/select2.h: New file.
15490         * include/bits/select2.h: New file.
15491         * debug/Makefile (routines): Add fdelt_chk.
15492         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15493         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15494         FD_ISSET.
15495         * debug/fdelt_chk.c: New file.
15496
15497         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
15498         * wcsmbs/test-wmemcmp.c: Likewise.
15499         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15500         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15501
15502 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15503
15504         * string/Makefile (strop-tests): Add memcmp.
15505         * string/test-wmemcmp.c: New file.
15506         * string/test-memcmp.c: Add wmemcmp support.
15507
15508 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15509
15510         [BZ #13153]
15511         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15512         2011-07-19 change.
15513
15514         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15515         garbage value in a __mach_port_mod_refs call in the cases of the
15516         task-self and thread-self ports.
15517
15518 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15519
15520         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15521
15522 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15523
15524         * elf/dl-load.c (lose): Check for non-null L.
15525
15526 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15527
15528         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15529
15530         * elf/dl-libc.c (dlerror_run): Pass back error code from
15531         dl_catch_error.
15532
15533         [BZ #13123]
15534         * elf/dl-load.c (lose): Free l_origin if it is valid.
15535
15536         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15537         names.
15538         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15539         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15540         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15541         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15542         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15543         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15544
15545 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15546
15547         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15548         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15549         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15550         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15551         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15552         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15553         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15554         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15555         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15556         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15557
15558 2011-08-15  Alan Modra  <amodra@gmail.com>
15559
15560         [BZ #13092]
15561         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15562         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15563         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15564         ppc_mcount to static-only-routines.
15565         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15566         __mcount_internal.
15567         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15568         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15569
15570 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15571
15572         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15573         for finite and infinity parameters.
15574
15575 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15576
15577         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15578         and add nop instructions for throughput optimization.
15579         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15580
15581 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15582
15583         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15584         aligned copy for power7 with vector-scalar instructions.
15585         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15586
15587 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15588
15589         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15590         AVX check.
15591
15592 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15593
15594         [BZ #13144]
15595         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15596         last change.
15597
15598 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15599
15600         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15601         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15602         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15603         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15604         clock_gettime.
15605
15606 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15607
15608         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15609         Forgot to demangle the pointer.
15610
15611         * sysdeps/i386/sysdep.h: Define atom_text_section.
15612         * sysdeps/x86_64/sysdep.h: Likewise.
15613         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15614         section with atom_text_section.
15615         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15616         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15617         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15618         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15619         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15620
15621         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15622         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15623         already be defined.  Change to take two parameters and don't assign
15624         result to variable.  Adjust all users.
15625         Define INTERNAL_GETTIME if not already defined.
15626         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15627         call.
15628         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15629         HAVE_CLOCK_GETTIME_VSYSCALL.
15630         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15631
15632         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15633         gettimeofday vsyscall, just use time.
15634
15635 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15636
15637         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15638         <errno.h>.
15639
15640 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15641
15642         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15643         syscall on x86-64.
15644         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15645         syscall.
15646         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15647         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15648         syscall if possible.
15649
15650 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15651
15652         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15653         e_ident.  Don't pass to find_mapsXX.
15654         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15655
15656 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15657
15658         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15659         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15660         * sysdeps/x86_64/multiarch/strchr.S: Update.
15661         Check bit_slow_BSF bit.
15662         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15663         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15664         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15665
15666 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15667
15668         [BZ #13134]
15669         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15670         before glibc 2.15.
15671         (tryshell): Define.
15672         (__spawni): Change last parameter to be flag.  Test
15673         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15674         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15675         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15676         * posix/spawni.c: Likewise.
15677         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15678         * posix/spawnp.c: Likewise.  Change normal version to use
15679         SPAWN_XFLAGS_USE_PATH.
15680         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15681         SPAWN_XFLAGS_TRY_SHELL.
15682
15683         [BZ #13150]
15684         * posix/glob.h: Remove gcc 1.x support.
15685
15686         [BZ #13068]
15687         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15688
15689 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15690
15691         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15692         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15693         strrchr-sse2-bsf
15694         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15695         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15696         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15697         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15698         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15699         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15700
15701 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15702
15703         * sysdeps/x86_64/wcscmp.S: New file.
15704
15705         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15706         wcscmp-c wcscmp-sse2
15707         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15708         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15709         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15710         * wcsmbs/wcscmp.c: Allow renaming.
15711
15712 2011-09-05  David S. Miller  <davem@davemloft.net>
15713
15714         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15715         stack slot, rather than the struct return pointer slot.
15716         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15717         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15718         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15719         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15720
15721 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15722
15723         * po/ja.po: Update from translation team.
15724
15725         [BZ #13144]
15726         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15727         kernel in 64-bit binaries.
15728
15729 2011-09-01  David S. Miller  <davem@davemloft.net>
15730
15731         * elf/elf.h (HWCAP_SPARC_*): Move to..
15732         * sysdeps/sparc/sysdep.h: this new file and add new values.
15733         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15734         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15735         _DL_HWCAP_COUNT to 24.
15736         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15737         entries.
15738         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15739         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15740         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15741         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15742         instead of magic constants.
15743         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15744
15745 2011-08-31  David S. Miller  <davem@davemloft.net>
15746
15747         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15748         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15749         Reimplement to do errno handling inline.
15750         (SYSCALL_ERROR_HANDLER): New macro.
15751         (__SYSCALL_STRING): Do not do errno handling in asm.
15752         (__CLONE_SYSCALL_STRING): Delete.
15753         (__INTERNAL_SYSCALL_STRING): Delete.
15754         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15755         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15756         (PSEUDO): Reimplement to do errno handling inline.
15757         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15758         (SYSCALL_ERROR_HANDLER): New macro.
15759         (__SYSCALL_STRING): Do not do errno handling in asm.
15760         (__CLONE_SYSCALL_STRING): Delete.
15761         (__INTERNAL_SYSCALL_STRING): Delete.
15762         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15763         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15764         i386.
15765         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15766         (inline_syscall*): Add 'err' argument.
15767         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15768         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15769         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15770         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15771
15772         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15773         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15774
15775 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15776
15777         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15778
15779 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15780
15781         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15782         directive.
15783
15784 2011-08-24  David S. Miller  <davem@davemloft.net>
15785
15786         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15787
15788 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15789
15790         * elf/Makefile: Add rules to build and run unload8 test.
15791         * elf/unload8.c: New file.
15792         * elf/unload8mod1.c: New file.
15793         * elf/unload8mod1x.c: New file.
15794         * elf/unload8mod2.c: New file.
15795         * elf/unload8mod3.c: New file.
15796
15797         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15798         it wasn't used.
15799
15800 2011-08-23  David S. Miller  <davem@davemloft.net>
15801
15802         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15803         subtract stack bias.
15804         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15805         %sp not %fp in calculations.
15806         (_JMPBUF_UNWINDS_ADJ): Likewise.
15807
15808         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15809         (aio_suspend): Call it to force an exception region around the
15810         AIO_MISC_WAIT() invocation.
15811
15812 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15813
15814         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15815         backslash.
15816
15817 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15818
15819         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15820         protection macro.
15821         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15822         and <dl-machine.h>.
15823         (Elf64_FuncDesc): Remove.
15824
15825 2011-08-22  David S. Miller  <davem@davemloft.net>
15826
15827         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15828         sigaltstack check, add missing cfi directives.
15829         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15830         missing cfi directives, and sigaltstack handling.
15831
15832 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15833
15834         [BZ #11724]
15835         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15836         object is seen twice.
15837         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15838
15839         * elf/Makefile (distribute): Add tst-initorder2.c.
15840         (tests): Add tst-initorder2.
15841         (modules-names): Add tst-initorder2a tst-initorder2b
15842         tst-initorder2c tst-initorder2d.  Add rules to build them.
15843         ($(objpfx)tst-initorder2.out): New rule.
15844         * elf/tst-initorder2.c: New file.
15845         * elf/tst-initorder2.exp: New file.
15846
15847 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15848
15849         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15850
15851         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15852         dependencies back to end of function.
15853
15854         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15855         $(elfobjdir)/ld.so.
15856
15857 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15858
15859         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15860         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15861         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15862         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15863         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15864         of __vdso_gettimeofday.
15865         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15866         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15867         attribute_hidden.
15868         (_libc_vdso_platform_setup): Remove initialization of
15869         __vdso_gettimeofday and __vdso_time.
15870
15871 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15872
15873         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15874         and fgetc_unlocked.
15875         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15876         getc_unlocked.
15877
15878         * elf/dl-open.c (add_to_global): Report additions to the global scope
15879         for LD_DEBUG=scopes.
15880         (dl_open_worker): Also print scope of newly loaded dependencies.
15881         (_dl_show_scope): Indicate if there is no scope.
15882
15883         [BZ #13114]
15884         * stdio-common/Makefile (tests): Add bug24.
15885         * stdio-common/bug24.c: New file.
15886
15887 2011-08-19  Andreas Jaeger  <aj@suse.de>
15888
15889         [BZ #13114]
15890         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15891         non-existant file when using close-on-exec mode.
15892
15893 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15894
15895         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15896         the very first instruction.
15897
15898         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15899         the CFI state in the end.
15900         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15901         inclusion of dl-trampoline.h.
15902         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15903
15904 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15905
15906         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15907         expectations for long double.
15908
15909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15910         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15911
15912 2011-08-14  David S. Miller  <davem@davemloft.net>
15913
15914         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15915         artificual limit depends upon the system page size.
15916
15917 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15918
15919         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15920         * resolv/Makefile: Define CFLAGS-libresolv.
15921
15922 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15923
15924         * nss/makedb.c (compute_tables): Make variables used in nested
15925         function static.
15926
15927 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15928
15929         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15930         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15931         if buffer was too small.
15932
15933         * elf/pldd.c (main): Attach to all threads in the process.
15934         Rewrite /proc handling to use *at functions.
15935
15936 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15937
15938         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15939         specifies first scope to show.
15940         (dl_open_worker): Update callers.  Move printing scope of new
15941         object to before the relocation.
15942         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15943         * sysdeps/generic/ldsodefs.h: Update declaration.
15944
15945         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15946         string for the scope number.
15947
15948 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15949
15950         * nscd/servicescache.c (cache_addserv): Make sure written is always
15951         initialized.
15952
15953 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15954
15955         * sysdeps/i386/i486/bits/atomic.h
15956         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15957         statement expression, so as to suppress "set but not used" warning.
15958         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15959
15960         * string/strncat.c (STRNCAT): Use prototype definition.
15961
15962         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15963         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15964         -Iprograms here.
15965         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15966         (localedef-modules): Add localedef.
15967         (locale-modules): Add locale.
15968
15969         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15970         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15971         to avoid a warning.
15972
15973 2011-08-14  David S. Miller  <davem@davemloft.net>
15974
15975         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15976         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15977
15978 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15979
15980         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15981         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15982         * elf/rtld.c (dl_main): Set l_name of vDSO.
15983         Call _dl_show_scope when DL_DEBUG_SCOPES.
15984         (process_dl_debug): Recognize scopes flag and also set it for all.
15985         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15986         Declare _dl_show_scope.
15987
15988         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15989         (do_dlopen): Pass caller_dlopen to dl_open.
15990         (__libc_dlopen_mode): Initialize caller_dlopen.
15991
15992         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15993         of libc.  Make tolower call locale-independent.  Optimize a bit by
15994         using isdigit instead of isalnum.
15995         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15996
15997 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15998
15999         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16000         was a dependency or dynamically loaded.
16001
16002 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16003
16004         * intl/l10nflist.c: Allow architecture-specific pop function.
16005         * sysdeps/x86_64/l10nflist.c: New file.
16006
16007         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16008         classification.
16009
16010 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16011
16012         * include/dirent.h: Add libc_hidden_proto for scandirat and
16013         scandirat64.  Don't declare __scandirat64.
16014         * dirent/scandirat.c: Add libc_hidden_def.
16015         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16016         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16017
16018 2011-08-10  David S. Miller  <davem@davemloft.net>
16019
16020         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16021         enum.
16022         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16023         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16024         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16025
16026 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16027
16028         * Versions.def [libc]: Add GLIBC_2.15.
16029         * dirent/Makefile (routines): Add scandirat and scandirat64.
16030         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16031         GLIBC_2.15.
16032         * dirent/dirent.h: Declare scandirat and scandirat64.
16033         * dirent/scandirat.c: New file.
16034         * dirent/scandirat64.c: New file.
16035         * sysdeps/wordsize-64/scandirat.c: New file.
16036         * sysdeps/wordsize-64/scandirat64.c: New file.
16037         * dirent/opendir.c: Define opendirat.
16038         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16039         using scandirat.
16040         * dirent/scandir64.c: Adjust for scandir.c change.
16041         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16042         __scandirat64, and __scandir_cancel_handler.
16043         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16044         additional parameter and use openat instead of open (outside of ld.so).
16045         Add new __opendir as wrapper around __opendirat.
16046         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16047         here without requiring old scandirat implementation.
16048
16049 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16050
16051         * dirent/scandir.c (cancel_handler): Renamed to
16052         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16053         defined.  Adjust users.
16054         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16055         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16056
16057 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16058
16059         * string/test-string.h (IMPL): Use __STRING to expand name and then
16060         stringify it.
16061
16062         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16063         of cleanups.
16064
16065 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16066
16067         * string/Makefile: Update.
16068         (strop-tests): Append strncat.
16069         * string/test-wcscmp.c: New file.
16070         New comprehensive test for wcscmp.
16071         * string/test-strcmp.c: Update.
16072         (WIDE): New define.
16073
16074 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16075
16076         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16077         line.
16078
16079 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16080
16081         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16082         encoding to ACE if AI_IDN.
16083
16084 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16085
16086         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16087         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16088
16089 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16090
16091         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16092         Fix overflow bug in strncat.
16093         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16094
16095         * string/test-strncat.c: Update.
16096         Add new tests for checking overflow bugs.
16097
16098 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16099
16100         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16101         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16102         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16103         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16104         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16105         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16106         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16107         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16108         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16109
16110         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16111         (USE_AS_STRCAT): Define.
16112         Add strcat and strncat support.
16113         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16114
16115 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16116
16117         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16118         __n bigger than INT_MAX+1.
16119         (__strncmp_g): Likewise.
16120
16121 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16122
16123         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16124         * libio/stido.h: Likewise.
16125
16126         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16127         (AF_NFC): Define.
16128         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16129         (AF_NFC): Define.
16130
16131         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16132         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16133         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16134         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16135         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16136
16137         [BZ #13021]
16138         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16139         installed.
16140
16141         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16142         typo.
16143         (_dl_x86_64_save_sse): Likewise.
16144
16145 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16146
16147         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16148         OSXSAVE.
16149         (_dl_x86_64_save_sse): Likewise.
16150
16151         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16152
16153         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16154
16155 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16156
16157         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16158         change.
16159         (_dl_x86_64_save_sse): Use correct AVX check.
16160
16161 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16162
16163         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16164         bug in strncpy/strncat.
16165         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16166
16167 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16168
16169         * string/tester.c (test_strcat): Add tests for different alignments
16170         of source and destination.
16171         (test_strncat): Likewise.
16172
16173 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16174
16175         [BZ #12852]
16176         * posix/glob.c (glob): Check passed in values before using them in
16177         expressions to avoid some overflows.
16178         (glob_in_dir): Likewise.
16179
16180         [BZ #13007]
16181         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16182         check for AVX enablement so that we don't crash with old kernels and
16183         new hardware.
16184         * elf/tst-audit4.c: Add same checks here.
16185         * elf/tst-audit6.c: Likewise.
16186
16187         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16188
16189 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16190
16191         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16192
16193 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16194
16195         * po/cs.po: Update from translation team.
16196         * po/bg.po: Likewise.
16197
16198 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16199
16200         * misc/sys/cdefs.h: Add support for const attribute.
16201         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16202         to gnu_dev_{major,minor,makedev} functions.
16203
16204 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16205
16206         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16207
16208 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16209
16210         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16211         strlen results.
16212
16213 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16214
16215         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16216         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16217         register in order to avoid conflicts with the soft frame pointer
16218         being held in r11 when necessary.
16219         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16220         (INTERNAL_VSYSCALL_NCS): Likewise.
16221
16222 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16223
16224         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16225         * elf/dl-fini.c (_dl_fini): Adjust caller.
16226         * elf/dl-close.c (_dl_close_worker): Likewise.
16227         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16228
16229 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16230
16231         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16232         "aux_cache->nlibs < 0".
16233
16234         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16235         in the reload-count case.
16236
16237 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16238
16239         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16240         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16241         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16242         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16243         * sysdeps/x86_64/multiarch/strcat.S: New file.
16244         * sysdeps/x86_64/multiarch/strncat.S: New file.
16245         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16246         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16247         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16248         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16249         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16250         (USE_AS_STRCAT): Define.
16251         Add strcat and strncat support.
16252         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16253         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16254         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16255         * string/strncat.c: Update.
16256         (USE_AS_STRNCAT): Define.
16257         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16258         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16259         and i7.
16260         * sysdeps/x86_64/multiarch/init-arch.h
16261         (bit_Prefer_PMINUB_for_stringop): New.
16262         (index_Prefer_PMINUB_for_stringop): Likewise.
16263         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16264         bit_Prefer_PMINUB_for_stringop.
16265
16266 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16267
16268         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16269         buffer64.
16270         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16271         of casting of buffer.
16272         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16273         buffer32 and buffer64.
16274         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16275         writes instead of casting of buffer.
16276         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16277         buffer32.
16278         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16279         casting of buffer.
16280
16281 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16282
16283         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16284
16285 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16286
16287         * nscd/nscd.c (termination_handler): Don't do anything for a database
16288         if it has not yet been initialized.
16289
16290 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16291
16292         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16293
16294 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16295
16296         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16297
16298 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16299
16300         * po/nl.po: Update from translation team.
16301         * po/sv.po: Likewise.
16302
16303 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16304
16305         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16306         now disallowed by GCC.
16307
16308         * configure.in (use-default-link): Default to yes if a test -shared
16309         link meets our qualifications.
16310         * configure: Regenerated.
16311
16312         * config.make.in (output-format): New variable.
16313         * configure.in: Check for ld --print-output-format support.
16314         * configure: Regenerated.
16315         * Makerules ($(common-objpfx)format.lds)
16316         [$(output-format) != unknown]: Just use $(output-format),
16317         instead of the linker-script munging.
16318
16319 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16320
16321         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16322         of $(common-objpfx)shlib.lds.
16323         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16324
16325         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16326         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16327
16328         * configure.in (-z relro check): Adjust test code to add a large
16329         writable data section after it.
16330         * configure: Regenerated.
16331
16332 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16333
16334         * configure.in (-z relro check): Fix test code to make the variable
16335         truly const.
16336         * configure: Regenerated.
16337
16338 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16339
16340         * nscd/nscd.h (struct traced_file): Define.
16341         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16342         elements.  Add traced_files.
16343         (inotify_fd): Declare.
16344         (register_traced_file): Declare.
16345         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16346         (inotify_fd): Export.
16347         (resolv_conf_descr): Remove.
16348         (nscd_init): Move inotify descriptor creation to main.
16349         Don't register files for notification here.
16350         (register_traced_file): New function.
16351         (invalidate_cache): Don't use reset_res to determine whether to call
16352         res_init, go through the list of registered files.
16353         (main_loop_poll): The inotify descriptors are now stored in the
16354         structures for the traced files.
16355         (main_loop_epoll): Likewise
16356         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16357         to __nss_disable_nscd.
16358         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16359         for a database anymore.  Check the records for all the registered
16360         files instead.
16361         * nss/Makefile (libnss_files-routines): Add files-init.
16362         (libnss_db-routines): Add db-init.
16363         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16364         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16365         * nss/nss_db/db-init.c: New file.
16366         * nss/nss_files/files-init.c: New file.
16367         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16368         __nss_lookup_function.
16369         (__nss_lookup_function): Call nss_load_library.
16370         (nss_load_all_libraries): New function.
16371         (__nss_disable_nscd): Take parameter with callback function for files
16372         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16373         used for the cached services.
16374         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16375         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16376         options for features to all the files in nscd.
16377
16378         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16379
16380 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16381
16382         * csu/elf-init.c (__libc_csu_init): Comment typo.
16383
16384 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16385
16386         * po/pl.po: Update from translation team.
16387         * po/ja.po: Likewise.
16388         * po/ru.po: Likewise.
16389         * po/ko.po: Likewise.
16390         * po/fr.po: Likewise.
16391
16392 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16393
16394         * configure.in (.ctors/.dtors header and trailer check):
16395         Use an empirical test on a built program.
16396         * configure: Regenerated.
16397
16398         * configure.in (-z relro check): Use an empirical test on a built DSO.
16399         Detect, but do not require, on ia64.
16400         * configure: Regenerated.
16401
16402         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16403         Update tests that use readelf to use $READELF instead.
16404         * configure: Regenerated.
16405
16406 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16407
16408         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16409         if the result is not used.
16410
16411 2011-07-05  Andreas Jaeger  <aj@suse.de>
16412
16413         [BZ#9696]
16414         * stdlib/tst-strtod.c: Add testcase.
16415
16416 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16417
16418         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16419         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16420         The latter has a higher limit.  Take additional parameter to pass to
16421         the new function.
16422         (__pathconf): Pass file to __statfs_link_max.
16423         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16424         __statfs_link_max.
16425         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16426         __statfs_link_max.
16427
16428         [BZ #12868]
16429         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16430         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16431         Handle Lustre.
16432         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16433         (__statfs_filesize_max): Likewise.
16434         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16435
16436 2011-07-05  Andreas Jaeger  <aj@suse.de>
16437
16438         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16439
16440 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16441
16442         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16443         `status' variable.
16444         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16445         Likewise.
16446
16447 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16448
16449         * Makefile (strop-tests): Add strncat.
16450         * string/test-strncat.c: New file.
16451
16452 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16453
16454         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16455
16456 2011-06-21  Andreas Jaeger  <aj@suse.de>
16457
16458         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16459         Copy rule from iconvdata/Makefile.
16460
16461 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16462
16463         [BZ #12922]
16464         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16465         but no long options are defined, just return 'W'.
16466
16467 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16468
16469         [BZ #9696]
16470         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16471
16472 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16473
16474         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16475         netgroups to read.
16476         (innetgr): Likewise.
16477
16478 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16479
16480         * config.make.in (install_root): Default to $(DESTDIR).
16481
16482 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
16483
16484         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16485
16486 2011-07-02  Roland McGrath  <roland@hack.frob.com>
16487
16488         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16489
16490         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16491         containing directory rather than embedding absolute directory names.
16492
16493         * scripts/check-local-headers.sh: Rewritten using awk.
16494         Match by word, not by line.  Print error messages for matches.
16495         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16496
16497         * Makerules [shlib-lds-flags empty]:
16498         ($(common-objpfx)libc_pic.opts): New target.
16499         ($(common-objpfx)libc_pic.os.clean): New target.
16500         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16501
16502         * config.make.in (OBJCOPY): New variable.
16503         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16504         * configure: Regenerated.
16505
16506         * config.make.in (use-default-link): New variable.
16507         * configure.in (use_default_link): Grok --with-default-link to set it.
16508         * configure: Regenerated.
16509         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16510         (shlib-lds, shlib-lds-flags): Define to empty.
16511
16512         * Makerules (shlib-lds): New variable.
16513         (shlib-lds-flags): New variable.
16514         (build-shlib, build-moduile, build-module-asneeded): Use it.
16515         ($(common-objpfx)libc.so): Use $(shlib-lds).
16516         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16517         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16518
16519         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16520         DT_FLAGS/DT_FLAGS_1 with zero flags.
16521
16522         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16523         linker script munging.
16524
16525 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16526
16527         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16528         as 128-bit value.
16529         * crypt/sha512.c (sha512_process_block): Perform total addition using
16530         128-bit if possible.
16531         (__sha512_finish_ctx): Likewise.
16532         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16533         as 64-bit value.
16534         * crypt/sha256.c (SWAP64): Define.
16535         (sha256_process_block): Perform total addition using 64-bit if
16536         possible.
16537         (__sha256_finish_ctx): Likewise.
16538
16539 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16540
16541         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16542         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16543         * nscd/hstcache.c (cache_addhst): Likewise.
16544         * nscd/grpcache.c (cache_addgr): Likewise.
16545         * nscd/aicache.c (addhstaiX): Likewise
16546         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16547
16548 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16549
16550         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16551         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16552         * nscd/hstcache.c (cache_addhst): Likewise.
16553         * nscd/grpcache.c (cache_addgr): Likewise.
16554         * nscd/aicache.c (addhstaiX): Likewise
16555
16556 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16557
16558         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16559         domain only when needed.
16560
16561 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16562
16563         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16564         is always restored.
16565
16566 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16567
16568         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16569         are re-adding the entry.
16570         * nscd/servicescache.c (cache_addserv): Likewise.
16571
16572 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16573
16574         * sysdeps/generic/dl-irel.h: fix protection against multiple
16575         inclusions.
16576         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16577
16578 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16579
16580         [BZ #12935]
16581         * malloc/memusage.sh: Fix quoting in message.
16582         * debug/xtrace.sh: Likewise.
16583
16584         * configure.in: Remove support for --experimental-malloc option, make
16585         it the default.
16586         * config.make.in: Likewise.
16587         * malloc/Makefile: Likewise.
16588
16589 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16590
16591         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16592         two-byte characters.
16593
16594 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16595
16596         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16597         AC_CACHE_CHECK invocation.
16598         * configure: Regenerated.
16599
16600         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16601
16602 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16603
16604         [BZ #12350]
16605         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16606         bit from old_res_options.
16607
16608         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16609
16610         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16611         value type for setfct.
16612
16613 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16614
16615         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16616         __gettimeofday instead of gettimeofday.
16617
16618 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16619
16620         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16621
16622 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16623
16624         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16625
16626         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16627         info.
16628
16629 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16630
16631         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16632         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16633         strcpy-sse2-unaligned strncpy-sse2-unaligned
16634         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16635         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16636         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16637         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16638         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16639         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16640         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16641         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16642         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16643         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16644         (STRCPY): Support SSE2 and SSSE3 versions.
16645
16646 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16647
16648         [BZ #12874]
16649         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16650         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16651         kernels which artificially limit size of requests.
16652
16653 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16654
16655         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16656         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16657         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16658         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16659         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16660         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16661         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16662         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16663         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16664         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16665         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16666         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16667         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16668         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16669         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16670         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16671         Enable unaligned load optimization for Intel Core i3, i5 and i7
16672         processors.
16673         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16674         Define.
16675         (index_Fast_Unaligned_Load): Define.
16676         (HAS_FAST_UNALIGNED_LOAD): Define.
16677
16678 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16679
16680         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16681
16682 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16683
16684         [BZ #12907]
16685         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16686         until it is clear that the information is realy needed.
16687         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16688
16689 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16690
16691         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16692
16693 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16694
16695         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16696         /sys/devices/system/cpu/online if it is usable.
16697
16698         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16699         reading the information from the /proc filesystem to once a second.
16700
16701 2011-06-21  Andreas Jaeger  <aj@suse.de>
16702
16703         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16704         NULL after inclusion of kernel headers.
16705
16706 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16707
16708         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16709         calls to internal_setent.
16710
16711         [BZ #12885]
16712         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16713         addresses using gethostbyname4_r ignore IPv4 addresses.
16714
16715         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16716         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16717
16718         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16719
16720 2011-06-20  David S. Miller  <davem@davemloft.net>
16721
16722         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16723         inclusions.
16724         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16725
16726         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16727         (elf_irel): Use it.
16728         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16729         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16730         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16731         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16732         * sysdeps/x86_64/dl-irel.h: Likewise.
16733
16734         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16735         * elf/dl-sym.c: Likewise.
16736
16737 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16738
16739         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16740         need to dereference resplen2.
16741
16742 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16743
16744         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16745
16746 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16747
16748         * Makeconfig: Define vardbdir and inst_vardbdir.
16749         * nss/Makefile: Add rules to install db-Makefile.
16750
16751         * nss/nss_db/db-XXX.c: Cleanup.
16752
16753         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16754         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16755         GLIBC_PRIVATE.
16756         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16757         * nss/makedb.c: Implement -g option to specify that value strings
16758         are generated and should not be added to table iterated over for
16759         get*ent calls.
16760         * nss/nss_db/db-initgroups.c: New file.
16761
16762         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16763         interface.
16764
16765         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16766         (internal_getgrouplist): Adjust to name change.
16767         Update use_initgroups_entry if this is not the first call.
16768         * nss/databases.def: Add initgroups entry.
16769
16770         * nss/makedb.c (compute_tables): Check result of multiple hash table
16771         sizes to minimize maximum chain length.
16772
16773 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16774
16775         * Versions.def: Add entry for libnss_db.
16776         * shlib-versions: Likewise.
16777         * nss/Makefile: Add rules to build libnss_db.
16778         * nss/Versions: Add libnss_db information.  Organize libnss_files
16779         entries better.
16780         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16781         makedb progra.  Some minor improvements to generate smaller files.
16782         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16783         here from...
16784         * nss/makedb.c: ...here.
16785         Improve database format to be smaller and require less memory at
16786         runtime.
16787         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16788         db anymore.
16789         * nss/nss_db/db-netgrp.c: Likewise.
16790         * nss/nss_db/db-open.c: Likewise.
16791         * nss/nss_files/flies-XXX.x: Adjust comments.
16792         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16793         * nss/nss_files/files-grp.c: Likewise.
16794         * nss/nss_files/files-hosts.c: Likewise.
16795         * nss/nss_files/files-network.c: Likewise.
16796         * nss/nss_files/files-proto.c: Likewise.
16797         * nss/nss_files/files-pwd.c: Likewise.
16798         * nss/nss_files/files-rpc.c: Likewise.
16799         * nss/nss_files/files-service.c: Likewise.
16800         * nss/nss_files/files-sgrp.c: Likewise.
16801         * nss/nss_files/files-spwd.c: Likewise.
16802         * nss/nss_db/db-alias.c: Removed.
16803         * nss/nss_db/dummy-db.h: Removed.
16804
16805 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16806
16807         * nss/makedb.c: Rewritten to not use database library.
16808         * nss/Makefile: Update to build new makedb program.
16809
16810 2011-06-14  Andreas Jaeger  <aj@suse.de>
16811
16812         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16813         memset declaration.
16814
16815 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16816
16817         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16818         tmpbuf.
16819
16820 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16821
16822         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16823         * elf/Makefile ($(objpfx)ld.so): Likewise.
16824
16825         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16826         Don't list ld.so twice in dependencies.
16827
16828         * posix/bug-regex31.c: Include <stdlib.h>.
16829
16830         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16831
16832         * nis/nss_compat/compat-spwd.c
16833         (getspent_next_nss_netgr): Remove unused variable.
16834         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16835
16836         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16837         nonmembers" output to use the right array.
16838
16839         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16840
16841         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16842
16843         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16844         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16845         * catgets/gencat.c (read_input_file): Likewise.
16846         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16847
16848         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16849         variable definition inside #if's controlling its use.
16850
16851         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16852
16853         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16854
16855         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16856
16857         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16858         unreachable code.
16859
16860         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16861
16862         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16863         * configure: Regenerated.
16864
16865         * Makerules: Revert last change.
16866         * elf/Makefile: Likewise.
16867
16868 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16869
16870         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16871         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16872         (reloc-link): Likewise.
16873
16874 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16875
16876         * elf/Makefile: Add rules to build pldd.
16877         * elf/pldd.c: New file.
16878         * elf/pldd-xx.c: New file.
16879
16880 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16881
16882         * version.h: Update for 2.15 development version.
16883
16884 2011-06-07  David S. Miller  <davem@davemloft.net>
16885
16886         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16887         ifuncs.
16888         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16889         elf_machine_lazy_rel): Likewise.
16890         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16891         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16892         elf_machine_lazy_rel): Likewise.
16893         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16894         dl_hwcap via passed in argument.
16895         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16896         Likewise.
16897
16898 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16899
16900         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16901
16902 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16903
16904         [BZ #12849]
16905         * manual/fdl-1.1.texi: New file, verbatim from:
16906         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16907         * manual/lgpl-2.1.texi: New file, verbatim from:
16908         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16909         * manual/Makefile (licenses): New variable, list those new file names.
16910         (texis): Use it.
16911         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16912
16913         * manual/fdl.texi: File removed.
16914         * manual/lesser.texi: File removed.
16915         * manual/libc.texinfo (Copying, Documentation License):
16916         Use new @include file names, put @appendix directive before @include.
16917
16918 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16919
16920         [BZ #12841]
16921         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16922         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16923         (mq_open): Add __NTH.
16924
16925 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16926
16927         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16928         Assume Intel Core i3/i5/i7 processor if AVX is available.
16929
16930 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16931
16932         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16933         typo.
16934
16935 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16936
16937         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16938         memory.  Use alloca_account.  Fix memory leak when retrying.
16939
16940 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16941
16942         * version.h (RELEASE): Bump for 2.14 release.
16943         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16944
16945         * config.make.in (RANLIB): Remove entry.
16946
16947 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16948
16949         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16950         (libc.pot): Work around missing support for .ksh extension in xgettext.
16951
16952         [BZ #12684]
16953         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16954         if both request failed.
16955         (send_dg): In case of server errors clear resplen or *resplen2.
16956
16957         [BZ #12454]
16958         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16959         when there are multiple maps.
16960         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16961         (_dl_fini): Remove test here.
16962
16963         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16964
16965 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16966
16967         [BZ #12350]
16968         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16969         bit from old_res_options.
16970         (gaih_inet): Likewise.
16971
16972         [BZ #11099]
16973         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16974         as signed.
16975
16976         * resolv/res_init.c (res_setoptions): Make the code more compact.
16977
16978         [BZ #11558]
16979         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16980         set RES_USEVC.
16981
16982         [BZ #11634]
16983         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16984
16985         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16986
16987         [BZ #11781]
16988         * malloc/malloc.h: Declare malloc hook variables as volatile.
16989
16990         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16991         in last patch.
16992
16993         [BZ #11799]
16994         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16995         raise in the comment.
16996         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16997         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16998         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16999
17000 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17001
17002         [BZ #12811]
17003         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17004         grow the buffers more if it already has to be sufficient.
17005         (build_wcs_upper_buffer): Likewise.
17006         * posix/regexec.c (check_matching): Likewise.
17007         (clean_state_log_if_needed): Likewise.
17008         (extend_buffers): Don't enlarge buffers beyond size of the input
17009         buffer.
17010         Patches mostly by Emil Wojak <emil@wojak.eu>.
17011         * posix/bug-regex32.c: New file.
17012         * posix/Makefile (tests): Add bug-regex32.
17013
17014         * locale/findlocale.c (_nl_find_locale): Return right away if
17015         _nl_explode_name failed.
17016         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17017
17018         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17019
17020         * debug/xtrace.sh: Unify messages.
17021         * malloc/memusage.sh: Likewise.
17022
17023         [BZ #12813]
17024         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17025         time symbol from vDSO.  Substitute with vsyscall if not available.
17026         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17027         __vdso_time.
17028
17029         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17030         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17031         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17032         Add sendmmsg and internal_sendmmsg.
17033         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17034         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17035         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17036
17037         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17038         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17039         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17040
17041 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17042
17043         [BZ #12813]
17044         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17045         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17046         available.
17047         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17048         __vdso_getcpu.
17049
17050         [BZ #12814]
17051         * iconvdata/Makefile (tests): Add bug-iconv9.
17052         * iconvdata/bug-iconv9.c: New file.
17053
17054 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17055
17056         [BZ #12814]
17057         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17058
17059 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17060
17061         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17062         (struct user_regs_struct): Change intcs field back to cs.
17063
17064 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17065
17066         * po/ja.po: Update from translation team.
17067
17068 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17069
17070         [BZ #12795]
17071         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17072         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17073
17074 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17075
17076         * stdlib/longlong.h: Update from GCC.
17077
17078 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17079
17080         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17081         parameter name.
17082         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17083         Add parameter name.
17084         (__sysconf): Pass it down.
17085
17086 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17087
17088         [BZ #12671]
17089         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17090         some situations.
17091         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17092         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17093         add in in __libc_use_alloca calls.  Adjust callers.
17094         (glob): Use malloc in some situations.
17095
17096         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17097         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17098         pltexit.
17099
17100 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17101
17102         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17103         and CLOCK_BOOTTIME_ALARM.
17104
17105         [BZ #12782]
17106         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17107         is returned.
17108
17109         * string/_strerror.c (__strerror_r): Print negative errors as signed
17110         numbers.
17111
17112         [BZ #12777]
17113         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17114         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17115         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17116
17117         * configure.in: Fix typo in redirection and correct removal of test
17118         files in two cases.
17119
17120         [BZ #12788]
17121         * locale/setlocale.c (new_composite_name): Fix test to check for
17122         identical name of all categories.
17123
17124         [BZ #12792]
17125         * libio/filedoalloc.c (local_isatty): New function.
17126         (_IO_file_doallocate): Use local_isatty.
17127         * stdio-common/perror.c (perror): In case a new stream is used
17128         forward the stream error.
17129         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17130         error flag.
17131
17132 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17133
17134         [BZ #11869]
17135         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17136         alloca.
17137         * include/alloca.h (extend_alloca_account): Define.
17138
17139         [BZ #11857]
17140         * posix/regex.h: Fix comments with documentation of user-accessible
17141         fields after compilation and describe correct free'ing of pattern
17142         after re_compile_pattern.
17143         Patch by Reuben Thomas <rrt@sc3d.org>.
17144
17145 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17146
17147         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17148         and -mno-altivec to prevent the compiler from using Altivec and/or
17149         VSX instructions when the corresponding registers are not available.
17150
17151 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17152
17153         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17154
17155 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17156
17157         * libio/freopen.c (freopen): Use __dup2, not dup2.
17158         * libio/freopen64.c (freopen64): Likewise.
17159
17160 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17161
17162         [BZ #12775]
17163         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17164         * math/Makefile (tests): Add test-powl.
17165         (CFLAGS-test-powl.c): Define.
17166         * math/test-powl.c: New file.
17167
17168 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17169
17170         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17171
17172 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17173
17174         [BZ #11837]
17175         * iconvdata/gb18030.c: Update to GB18020-2005.
17176
17177 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17178
17179         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17180         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17181         Patch by Aharon Robbins <arnold@skeeve.com>.
17182
17183         [BZ #11892]
17184         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17185         on the stack.
17186
17187         [BZ #11895]
17188         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17189         through underflows.
17190
17191         [BZ #12766]
17192         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17193         point to strings before performing equality test for error_one_per_line
17194         mode.
17195
17196         [BZ #11697]
17197         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17198
17199         [BZ #11820]
17200         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17201         (struct user_fpregs_struct): Avoid __uint*_t types.
17202
17203         [BZ #6420]
17204         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17205         symbol info.  Use it instead of calling _dl_addr locally.
17206         (lock_and_info): New function.
17207         (tr_freehook): Call lock_and_info and pass symbol info as additional
17208         parameter to tr_where.
17209         (tr_mallochook): Likewise.
17210         (tr_reallochook): Likewise.
17211         (tr_memalignhook): Likewise.
17212
17213         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17214         used and couldn't be at all thread-safe.
17215
17216 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17217
17218         * libio/freopen.c (freopen): Don't close old file descriptor
17219         before the new one is opened.  Instead dup the new file descriptor
17220         to the old one after the new stream is created.
17221         * libio/freopen64.c (freopen64): Likewise.
17222         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17223         * libio/fileops.c (_IO_new_file_close_it): Handle new
17224         _IO_FLAGS2_NOCLOSE flag.
17225         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17226         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17227         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17228         _IO_FLAGS2_NOCLOSE flag.
17229         * include/unistd.h: Add hidden_proto for dup3.
17230         Define __have_dup3.
17231         * io/dup3.c: Define hidden symbol.
17232         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17233
17234         [BZ #7101]
17235         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17236         when an incomplete long option is used.
17237         * posix/tst-getopt_long1.c: New file.
17238         * posix/Makefile (tests): Add tst-getopt_long1.
17239
17240         [BZ #10138]
17241         * scripts/config.guess: Update from autoconf-2.68.
17242         * scripts/config.sub: Likewise.
17243
17244         [BZ #10157]
17245         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17246         tests into ...
17247         (has_cpuclock): ...this.  New function.
17248         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17249         macro here based on has_cpuclock code.
17250
17251         [BZ #10149]
17252         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17253         First byte (not low byte) is now always NUL.
17254         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17255
17256         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17257         Use non-cancelable interfaces.
17258
17259         [BZ #9809]
17260         * locale/iso-639.def: Add entry for Sorani.
17261
17262         [BZ #11901]
17263         * include/stdlib.h: Move include protection to the right place.
17264         Define abort_msg_s.  Declare __abort_msg with it.
17265         * stdlib/abort.c (__abort_msg): Adjust type.
17266         * assert/assert.c (__assert_fail_base): New function.  Majority
17267         of code from __assert_fail.  Allocate memory for __abort_msg with
17268         mmap.
17269         (__assert_fail): Now call __assert_fail_base.
17270         * assert/assert-perr.c: Remove bulk of implementation.  Use
17271         __assert_fail_base.
17272         * include/assert.hL Declare __assert_fail_base.
17273         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17274         mmap.
17275         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17276
17277 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17278
17279         [BZ #11952]
17280         [BZ #12453]
17281         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17282         until all modules are registered in the DTV.
17283         * elf/Makefile: Add rules to build and run tst-tls19.
17284         * elf/tst-tls19.c: New file.
17285         * elf/tst-tls19mod1.c: New file.
17286         * elf/tst-tls19mod2.c: New file.
17287         * elf/tst-tls19mod3.c: New file.
17288         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17289
17290         [BZ #12083]
17291         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17292         correctly.
17293
17294         [BZ #12601]
17295         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17296         two-byte sequence errors.
17297         * iconvdata/Makefile (tests): Add bug-iconv8.
17298         * iconvdata/bug-iconv8.c: New file.
17299
17300         [BZ #12626]
17301         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17302         buf2 definition.
17303
17304         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17305
17306         [BZ #12432]
17307         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17308         (dummy_getcfa): New function.
17309         (init): Get _Unwind_GetCFA address, use dummy if not found.
17310         (backtrace_helper): In recursion check, also check whether CFA changes.
17311         (__backtrace): Completely initialize arg.
17312
17313         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17314         storing incomplete byte sequence in state object.  Avoid testing for
17315         guaranteed too small input if we know there is enough data available.
17316
17317 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17318
17319         * Makeconfig (+link-pie): Indent.
17320         * Rules (binaries-pie): Define if $(have-fpie) and
17321         $(build-shared).
17322         (binaries-shared): Also filter out $(binaries-pie).
17323         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17324         * nscd/Makefile (others-pie): Add nscd.
17325         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17326         ($(objpfx)nscd): Remove command override.
17327         * login/Makefile (others-pie): Add pt_chown.
17328         ($(objpfx)pt_chown): Remove command override.
17329         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17330         remove command overrides.
17331
17332 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17333
17334         * libio/tst_putwc.c: Fix error messages.
17335
17336         [BZ #12724]
17337         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17338         currently writing and seek to current position when not.
17339         * libio/Makefile (tests): Add bug-fclose1.
17340         * libio/bug-fclose1.c: New file.
17341
17342 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17343
17344         [BZ #12511]
17345         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17346         don't set DF_1_NODELETE here.
17347         (do_lookup_x): When entering new entry test for copy relocation
17348         and if necessary set DF_1_NODELETE flag.
17349         * elf/tst-unique4.cc: New file.
17350         * elf/tst-unique4.h: New file.
17351         * elf/tst-unique4lib.cc: New file.
17352         * elf/Makefile: Add rules to build and run tst-unique4.
17353         Patch by Piotr Bury <pbury@goahead.com>.
17354
17355 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17356
17357         [BZ #12052]
17358         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17359
17360         [BZ #12625]
17361         * misc/mntent_r.c (addmntent): Flush the stream after the output
17362
17363         [BZ #12393]
17364         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17365         (is_trusted_path_normalize): Skip initial colon.  Append slash
17366         to empty buffer.  Duplicate is_trusted_path code but allow
17367         constructed patch to be prefix.
17368         (is_dst): Allow $ORIGIN followed by /.
17369         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17370         Correct testing of result of is_trusted_path_normalize
17371         (decompose_rpath): Fix warning.
17372
17373 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17374
17375         [BZ #11257]
17376         * grp/initgroups.c (internal_getgrouplist): When we found the service
17377         list through the initgroups entry in nsswitch.conf do not always
17378         continue on a successful lookup.  Don't always use the
17379         __nss_group_database value if it is set.
17380         * nss/nsswitch.conf (initgroups): Change action for successful db
17381         lookup to continue for compatibility.
17382
17383 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17384
17385         [BZ #11532]
17386         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17387         and CP774 modules.
17388         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17389         and CP774 modules.
17390         * iconvdata/tst-tables.sh: Likewise.
17391         * iconvdata/cp770.c: New file.
17392         * iconvdata/cp771.c: New file.
17393         * iconvdata/cp772.c: New file.
17394         * iconvdata/cp773.c: New file.
17395         * iconvdata/cp774.c: New file.
17396         * iconvdata/testdata/CP770: New file.
17397         * iconvdata/testdata/CP770..UTF8: New file.
17398         * iconvdata/testdata/CP771: New file.
17399         * iconvdata/testdata/CP771..UTF8: New file.
17400         * iconvdata/testdata/CP772: New file.
17401         * iconvdata/testdata/CP772..UTF8: New file.
17402         * iconvdata/testdata/CP773: New file.
17403         * iconvdata/testdata/CP773..UTF8: New file.
17404         * iconvdata/testdata/CP774: New file.
17405         * iconvdata/testdata/CP774..UTF8: New file.
17406
17407         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17408         END CHARMAP line.
17409         * iconvdata/gen-8bit-gap.sh: Likewise.
17410         * iconvdata/gen-8bit.sh: Likewise.
17411
17412         * locale/iso-639.def: Add ary entry.
17413
17414         [BZ #11258]
17415         * locale/C-translit.h.in: Add U20A1 transliteration.
17416
17417         [BZ #12178]
17418         * locale/iso-639.def: Add wae entry.
17419         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17420
17421         [BZ #12545]
17422         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17423         for n.
17424
17425         [BZ #12711]
17426         * locale/C-translit.h.in: Add entry for U20B9.
17427         Patch by pravin.d.s@gmail.com.
17428
17429 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17430
17431         [BZ #12713]
17432         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17433         ENAMETOOLONG use generic getcwd.
17434         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17435         in rtld.  Use *stat64.
17436         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17437         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17438         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17439         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17440         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17441         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17442         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17443         __fstatat64 macros.
17444         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17445         * dirent/rewinddir.c: Add libc_hidden_def.
17446         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17447         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17448
17449         * include/dirent.h (__alloc_dir): Add flags parameter.
17450         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17451         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17452         __alloc_dir.
17453         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17454         from fdopendir if O_CLOEXEC is already set.
17455
17456 2011-03-15  Alan Modra  <amodra@gmail.com>
17457
17458         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17459         l_tls_firstbyte_offset non-zero.  Save padding offset in
17460         l_tls_firstbyte_offset for later use.
17461         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17462         freeing static tls block.
17463
17464 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17465
17466         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17467         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17468         being defined by the kernel headers.
17469
17470 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17471
17472         [BZ #12734]
17473         * resolv/resolv.h: Define RES_NOTLDQUERY.
17474         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17475         no-tld-query and set RES_NOTLDQUERY.
17476         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17477         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17478         modern BIND to search name as TLD unless forbidden.
17479
17480 2011-05-07  Petr Baudis  <pasky@suse.cz>
17481             Ulrich Drepper  <drepper@gmail.com>
17482
17483         [BZ #12393]
17484         * elf/dl-load.c (fillin_rpath): Move trusted path check...
17485         (is_trusted_path): ...to here.
17486         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17487         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17488         using is_trusted_path_normalize() in setuid scripts.
17489
17490 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17491
17492         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17493         __BEGIN/__END_DECLS.
17494
17495 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
17496
17497         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17498         NSS_STATUS_NOTFOUND if no record was found.
17499
17500 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17501
17502         * sunrpc/Makefile (headers): Add rpc/netdb.h.
17503         (headers-not-in-tirpc): Remove rpc/netdb.h
17504         * resolv/netdb.h: Revert last change.
17505
17506 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17507
17508         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17509         circular dependency between libgcc.a and libc.a.
17510
17511 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17512
17513         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17514         * nis/Makefile: Don't install rpcsvc/*.
17515         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17516         instead of <rpc/types.h>.
17517         (MAXHOSTNAMELEN): Define.
17518
17519 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17520
17521         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17522
17523 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17524
17525         [BZ #12714]
17526         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17527         gethostbyname4_r when IPv6 results are possible.
17528
17529 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17530
17531         [BZ #12723]
17532         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17533         _PC_PIPE_BUF handling.
17534
17535 2011-04-30  Bruno Haible  <bruno@clisp.org>
17536
17537         [BZ #12717]
17538         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17539         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17540         to 'int'.
17541         * inet/getnameinfo.c (getnameinfo): Likewise.
17542
17543 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17544
17545         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17546         to groups setting in database lookup.
17547         * nss/nsswitch.conf: Add initgroups entry.
17548
17549 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17550
17551         [BZ #12685]
17552         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17553         mode string.
17554         Patch by Eric Blake <eblake@redhat.com>.
17555
17556 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17557
17558         * sunrpc/Makefile (need-export-routines): Add svc_run.
17559         (routines): Remove svc_run.
17560         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17561         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17562         * sunrpc/svc_run.c (svc_run): Likewise.
17563         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17564
17565 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17566
17567         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17568         problem in reallocation in last patch.
17569
17570 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17571
17572         * sunrpc/Makefile: Move inclusion of Rules.
17573
17574 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17575
17576         * nss/nss_files/files-initgroups.c: New file.
17577         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17578         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17579         _nss_files_initgroups_dyn.
17580
17581 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17582
17583         * elf/elf.h (R_ARM_IRELATIVE): Define.
17584
17585 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17586
17587         * po/ru.po: Update from translation team.
17588
17589 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17590
17591         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17592         dependencies.
17593
17594 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17595
17596         [BZ #12653]
17597         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17598         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17599         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17600         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17601         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17602
17603 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17604
17605         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17606         differing bytes.
17607         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17608         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17609         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17610
17611 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17612
17613         [BZ #12420]
17614         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17615         storing it.
17616         * stdlib/bug-getcontext.c: New file.
17617         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17618
17619 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17620
17621         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17622         instructions into .machine "z9-109".
17623         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17624         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17625
17626 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17627
17628         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17629         between environment variables and auxiliary vector.
17630
17631 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17632
17633         * Makefile: Add rules to build linkobj/libc.so.
17634         * include/libc-symbols.h: Define libc_hidden_nolink.
17635         * include/rpc/auth.h: Mark functions which are to be hidden.
17636         * include/rpc/auth_des.h: Likewise.
17637         * include/rpc/auth_unix.h: Likewise.
17638         * include/rpc/clnt.h: Likewise.
17639         * include/rpc/des_crypt.h: Likewise.
17640         * include/rpc/key_prot.h: Likewise.
17641         * include/rpc/pmap_clnt.h: Likewise.
17642         * include/rpc/pmap_prot.h: Likewise.
17643         * include/rpc/pmap_rmt.h: Likewise.
17644         * include/rpc/rpc_msg.h: Likewise.
17645         * include/rpc/svc.h: Likewise.
17646         * include/rpc/svc_auth.h: Likewise.
17647         * include/rpc/xdr.h: Likewise.
17648         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17649         * nss/Makefile: Likewise.
17650         * sunrpc/Makefile: Don't install headers.  Build library with normal
17651         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17652         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17653         for the compat linking library.  Remove use of INTDEF/INTUSE.
17654         * sunrpc/auth_none.c: Likewise.
17655         * sunrpc/auth_unix.c: Likewise.
17656         * sunrpc/authdes_prot.c: Likewise.
17657         * sunrpc/authuxprot.c: Likewise.
17658         * sunrpc/clnt_gen.c: Likewise.
17659         * sunrpc/clnt_perr.c: Likewise.
17660         * sunrpc/clnt_raw.c: Likewise.
17661         * sunrpc/clnt_simp.c: Likewise.
17662         * sunrpc/clnt_tcp.c: Likewise.
17663         * sunrpc/clnt_udp.c: Likewise.
17664         * sunrpc/clnt_unix.c: Likewise.
17665         * sunrpc/des_crypt.c: Likewise.
17666         * sunrpc/des_soft.c: Likewise.
17667         * sunrpc/get_myaddr.c: Likewise.
17668         * sunrpc/key_call.c: Likewise.
17669         * sunrpc/key_prot.c: Likewise.
17670         * sunrpc/netname.c: Likewise.
17671         * sunrpc/pm_getmaps.c: Likewise.
17672         * sunrpc/pm_getport.c: Likewise.
17673         * sunrpc/pmap_clnt.c: Likewise.
17674         * sunrpc/pmap_prot.c: Likewise.
17675         * sunrpc/pmap_prot2.c: Likewise.
17676         * sunrpc/pmap_rmt.c: Likewise.
17677         * sunrpc/publickey.c: Likewise.
17678         * sunrpc/rpc_cmsg.c: Likewise.
17679         * sunrpc/rpc_common.c: Likewise.
17680         * sunrpc/rpc_dtable.c: Likewise.
17681         * sunrpc/rpc_prot.c: Likewise.
17682         * sunrpc/rpc_thread.c: Likewise.
17683         * sunrpc/rtime.c: Likewise.
17684         * sunrpc/svc.c: Likewise.
17685         * sunrpc/svc_auth.c: Likewise.
17686         * sunrpc/svc_authux.c: Likewise.
17687         * sunrpc/svc_raw.c: Likewise.
17688         * sunrpc/svc_run.c: Likewise.
17689         * sunrpc/svc_simple.c: Likewise.
17690         * sunrpc/svc_tcp.c: Likewise.
17691         * sunrpc/svc_udp.c: Likewise.
17692         * sunrpc/svc_unix.c: Likewise.
17693         * sunrpc/svcauth_des.c: Likewise.
17694         * sunrpc/xcrypt.c: Likewise.
17695         * sunrpc/xdr.c: Likewise.
17696         * sunrpc/xdr_array.c: Likewise.
17697         * sunrpc/xdr_float.c: Likewise.
17698         * sunrpc/xdr_intXX_t.c: Likewise.
17699         * sunrpc/xdr_mem.c: Likewise.
17700         * sunrpc/xdr_rec.c: Likewise.
17701         * sunrpc/xdr_ref.c: Likewise.
17702         * sunrpc/xdr_sizeof.c: Likewise.
17703         * sunrpc/xdr_stdio.c: Likewise.
17704
17705 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17706
17707         [BZ #12650]
17708         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17709         * sysdeps/ia64/dl-tls.h: Likewise.
17710         * sysdeps/powerpc/dl-tls.h: Likewise.
17711         * sysdeps/s390/dl-tls.h: Likewise.
17712         * sysdeps/sh/dl-tls.h: Likewise.
17713         * sysdeps/sparc/dl-tls.h: Likewise.
17714         * sysdeps/x86_64/dl-tls.h: Likewise.
17715         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17716
17717 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17718
17719         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17720         rpath element also skip the following colon.
17721         (expand_dynamic_string_token): Add is_path parameter and pass
17722         down to DL_DST_REQUIRED and _dl_dst_substitute.
17723         (decompose_rpath): Call expand_dynamic_string_token with
17724         non-zero is_path.  Ignore empty rpaths.
17725         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17726         with zero is_path.
17727
17728 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17729
17730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17731         Make cancelable.
17732
17733 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17734
17735         [BZ #12655]
17736         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17737         Patch by Filipe David Manana <fdmanana@apache.org>.
17738
17739 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17740
17741         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17742         Maintain aligned stack.
17743         (CHECK_RSP): Remove unused macro.
17744
17745 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17746
17747         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17748         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17749
17750 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17751
17752         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17753
17754         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17755
17756 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17757
17758         [BZ #12518]
17759         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17760         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17761         * sysdeps/x86_64/memmove.c: New file.
17762         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17763         (memcpy): Renamed to ...
17764         (__new_memcpy): This.
17765         (memcpy): Provide GLIBC_2_14 memcpy.
17766         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17767         (memcpy): Provide GLIBC_2_2_5 memcpy.
17768
17769 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17770
17771         [BZ #12631]
17772         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17773
17774 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17775
17776         * misc/syncfs.c: New file.
17777         * misc/Makefile (routines): Add syncfs.
17778         * posix/unistd.h: Declare syncfs.
17779         * sysdeps/unix/syscalls.list: Add syncfs.
17780
17781 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17782
17783         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17784         open_by_handle_at.
17785         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17786         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17787         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17788         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17789         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17790         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17791         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17792
17793 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17794
17795         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17796         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17797         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17798         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17799         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17800         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17801         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17802
17803         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17804         sync_file_range.c with -fexceptions.
17805         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17806         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17807         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17808         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17809         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17810         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17811         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17812         sync_file_range as cancellation point
17813         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17814         now a wrapper around __call_sync_file_range with cancellation handling.
17815         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17816         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17817         function name to __call_sync_file_range.
17818         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17819         Add call_sync_file_range.
17820
17821 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17822
17823         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17824         bits/timex.h.
17825
17826 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17827
17828         * iconv/iconv.h: Fix typo in comment.
17829         * io/fcntl.h: Likewise.
17830         * libio/stdio.h: Likewise.
17831         * posix/spawn.h: Likewise.
17832         * posix/unistd.h: Likewise.
17833         * stdlib/stdlib.h: Likewise.
17834         * time/time.h: Likewise.
17835         * wcsmbs/wchar.h: Likewise.
17836
17837         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17838         open_by_handle): Add.
17839         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17840         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17841         Augment a few comments.
17842         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17843         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17844         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17845         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17846         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17847         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17848         open_by_handle.
17849
17850         * io/fcntl.h (AT_EMPTY_PATH): Define.
17851
17852 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17853
17854         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17855         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17856         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17857         to...
17858         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17859         * Versions.def: Add GLIBC_2.14.
17860         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17861         Export.
17862
17863 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17864
17865         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17866         round counter.
17867         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17868
17869 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17870
17871         [BZ #12597]
17872         * string/test-strncmp.c (do_page_test): New function.
17873         (check2): Likewise.
17874         (test_main): Call check2.
17875         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17876
17877 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17878
17879         [BZ #12587]
17880         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17881         Handle cache information in CPU leaf 4.
17882         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17883
17884 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17885
17886         [BZ #12583]
17887         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17888         character representation.
17889         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17890
17891 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17892
17893         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17894         END(__isnan) to END(__isnanf) to match function entry point/label
17895         EALIGN(__isnanf,...).
17896
17897 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17898
17899         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17900
17901 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17902
17903         [BZ #12510]
17904         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17905         copy from the symbol referenced in the relocation to initialize the
17906         used variable.
17907         Patch by Piotr Bury <pbury@goahead.com>.
17908         * elf/Makefile: Add rules to build and tst-unique3.
17909         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17910         * elf/tst-unique3.cc: New file.
17911         * elf/tst-unique3.h: New file.
17912         * elf/tst-unique3lib.cc: New file.
17913         * elf/tst-unique3lib2.cc: New file.
17914
17915         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17916
17917 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17918
17919         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17920         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17921         to _start.
17922
17923 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17924
17925         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17926         to-be-loaded object along a path to loader is ld.so.
17927
17928 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17929             Ulrich Drepper  <drepper@gmail.com>
17930
17931         * sysdeps/x86_64/memset.S: After aligning destination, code
17932         branches to different locations depending on the value of
17933         misalignment, when multiarch is enabled. Fix this.
17934
17935 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17936
17937         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17938         Set _x86_64_preferred_memory_instruction for AMD processsors.
17939         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17940         Set bit_Prefer_SSE_for_memop for AMD processors.
17941
17942 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17943
17944         * libio/fmemopen.c (fmemopen): Optimize a bit.
17945
17946 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17947
17948         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17949
17950 2011-03-03  Roland McGrath  <roland@redhat.com>
17951
17952         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17953
17954 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17955
17956         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17957         __bzero_ultra1 instead of __memset_ultra1.
17958
17959 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17960             Ulrich Drepper  <drepper@gmail.com>
17961
17962         [BZ #12509]
17963         * include/link.h (struct link_map): Add l_orig_initfini.
17964         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17965         returning unsuccessfully.
17966         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17967         close of a file loaded at startup, restore the original l_initfini
17968         list.
17969         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17970         list, store the pointer.
17971         * elf/Makefile ($(objpfx)noload-mem): New rule.
17972         (noload-ENV): Define.
17973         (tests): Add $(objpfx)noload-mem.
17974         * elf/noload.c: Include <memcheck.h>.
17975         (main): Call mtrace.  Close all opened handles.
17976
17977 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17978
17979         [BZ #12454]
17980         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17981         dependencies are missing.
17982
17983 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17984
17985         Fix __if_freereq crash: Unlike the generic version which uses free,
17986         Hurd needs munmap.
17987         * sysdeps/mach/hurd/ifreq.h: New file.
17988
17989 2011-01-27  Petr Baudis  <pasky@suse.cz>
17990             Ulrich Drepper  <drepper@gmail.com>
17991
17992         [BZ 12445]#
17993         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17994         to extend_alloca().
17995         * stdio-common/bug23.c: New file.
17996         * stdio-common/Makefile (tests): Add bug23.
17997
17998 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17999             Ulrich Drepper  <drepper@gmail.com>
18000
18001         [BZ #12489]
18002         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18003         before performing relro protection.  At old place add assertion
18004         to make sure nothing changed.
18005
18006 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18007             Glauber de Oliveira Costa  <glommer@gmail.com>
18008
18009         * elf/elf.h: Add new ARM TLS relocs.
18010
18011 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18012
18013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18014         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18015         cast from r3.
18016         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18017         'tests' variable.
18018         * sysdeps/wordsize-64/tst-writev.c: New file.
18019
18020 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18021
18022         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18023         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18024         insns in _dl_start to prevent a TOC reference before relocs are
18025         resolved.
18026
18027 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18028
18029         [BZ #12469]
18030         * Makeconfig: Remove RANLIB definition.
18031         * Makerules: Don't use RANLIB.
18032         * aclocal.m4: Remove ranlib test.
18033         * configure.in: No need to check for ranlib.
18034         * elf/rtld-Rules: Don't use RANLIB.
18035
18036 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18037
18038         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18039         protection macro.
18040         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18041         inclusion protection macro.
18042
18043         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18044         SIGRTMIN and SIGRTMAX and print information in that case only when
18045         SIGRTMIN is defined.
18046
18047 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18048
18049         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18050         arginfo fn returning -1.
18051
18052         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18053         and thousands string is zero terminated.
18054
18055 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18056
18057         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18058         sysdeps/unix/sysv/linux/bits/socket.h.
18059
18060 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18061
18062         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18063         (__CPU_COUNT): Remove old macros.
18064         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18065         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18066         (__CPU_ALLOC, __CPU_FREE): Add macros.
18067         (__sched_cpualloc, __sched_cpufree): Add declarations.
18068
18069 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18070
18071         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18072         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18073         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18074         (readdhstai): Return value of addhstaiX call.
18075         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18076         (addgrbyX): Return value returned by cache_addgr.
18077         (readdgrbyname): Return value returned by addgrbyX.
18078         (readdgrbygid): Likewise.
18079         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18080         (addpwbyX): Return value returned by cache_addpw.
18081         (readdpwbyname): Return value returned by addhstbyX.
18082         (readdpwbyuid): Likewise.
18083         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18084         (addservbyX): Return value returned by cache_addserv.
18085         (readdservbyname): Return value returned by addservbyX:
18086         (readdservbyport): Likewise.
18087         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18088         (addhstbyX): Return value returned by cache_addhst.
18089         (readdhstbyname): Return value returned by addhstbyX.
18090         (readdhstbyaddr): Likewise.
18091         (readdhstbynamev6): Likewise.
18092         (readdhstbyaddrv6): Likewise.
18093         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18094         (readdinitgroups): Return value returned by addinitgroupsX.
18095         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18096         (prune_cache): Keep track of timeout value of re-added entries.
18097         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18098         * nscd/nscd.h: Adjust prototypes of readd* functions.
18099
18100 2011-02-04  Roland McGrath  <roland@redhat.com>
18101
18102         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18103         (nis_stats): Likewise.
18104         * nis/nis_modify.c (nis_modify): Likewise.
18105         * nis/nis_remove.c (nis_remove): Likewise.
18106         * nis/nis_add.c (nis_add): Likewise.
18107
18108         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18109
18110         * posix/fnmatch_loop.c: Add some consts.
18111
18112         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18113
18114 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18115
18116         [BZ #12460]
18117         * config.make.in (config-cflags-novzeroupper): Define.
18118         * configure.in: Substitute libc_cv_cc_novzeroupper.
18119         * elf/Makefile (AVX-CFLAGS): Define.
18120         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18121         (CFLAGS-tst-auditmod4a.c): Likewise.
18122         (CFLAGS-tst-auditmod4b.c): Likewise.
18123         (CFLAGS-tst-auditmod6b.c): Likewise.
18124         (CFLAGS-tst-auditmod6c.c): Likewise.
18125         (CFLAGS-tst-auditmod7b.c): Likewise.
18126         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18127
18128 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18129
18130         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18131         function to the callback.
18132         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18133
18134 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18135
18136         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18137         of errno.
18138
18139 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18140
18141         [BZ #11724]
18142         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18143         of constructors.
18144         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18145         of destructors.
18146         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18147
18148         [BZ #11724]
18149         * elf/Makefile: Add rules to build and run new test.
18150         * elf/tst-initorder.c: New file.
18151         * elf/tst-initorder.exp: New file.
18152         * elf/tst-initordera1.c: New file.
18153         * elf/tst-initordera2.c: New file.
18154         * elf/tst-initordera3.c: New file.
18155         * elf/tst-initordera4.c: New file.
18156         * elf/tst-initorderb1.c: New file.
18157         * elf/tst-initorderb2.c: New file.
18158         * elf/tst-order-a1.c: New file.
18159         * elf/tst-order-a2.c: New file.
18160         * elf/tst-order-a3.c: New file.
18161         * elf/tst-order-a4.c: New file.
18162         * elf/tst-order-b1.c: New file.
18163         * elf/tst-order-b2.c: New file.
18164         * elf/tst-order-main.c: New file.
18165         New test case by George Gensure <werkt0@gmail.com>.
18166
18167 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18168
18169         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18170         decoding ACE if AI_CANONIDN.
18171
18172 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18173
18174         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18175
18176 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18177
18178         * version.h (RELEASE): Bump for 2.13 release.
18179         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18180
18181         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18182
18183         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18184         MADV_NOHUGEPAGE.
18185         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18186         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18187         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18188         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18189         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18190         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18191
18192         * posix/getconf.c: Update copyright year.
18193         * catgets/gencat.c: Likewise.
18194         * csu/version.c: Likewise.
18195         * debug/catchsegv.sh: Likewise.
18196         * debug/xtrace.sh: Likewise.
18197         * elf/ldconfig.c: Likewise.
18198         * elf/ldd.bash.in: Likewise.
18199         * elf/sprof.c (print_version): Likewise.
18200         * iconv/iconv_prog.c: Likewise.
18201         * iconv/iconvconfig.c: Likewise.
18202         * locale/programs/locale.c: Likewise.
18203         * locale/programs/localedef.c: Likewise.
18204         * malloc/memusage.sh: Likewise.
18205         * malloc/mtrace.pl: Likewise.
18206         * nscd/nscd.c (print_version): Likewise.
18207         * nss/getent.c: Likewise.
18208
18209         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18210         PF_CAIF, and PF_ALG.
18211         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18212
18213 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18214
18215         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18216         (modules-names): Use them.
18217         (ifunc-test-modules, ifunc-pie-tests): Define.
18218         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18219         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18220         (test-extras): Likewise.
18221         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18222         $(compile-command.c).
18223         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18224         (all-built-dso): Define.
18225         (check-textrel.out, check-execstack.out): Depend on it.
18226
18227         * configure.in: Don't override --enable-multi-arch.
18228
18229 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18230
18231         [BZ #6812]
18232         * nscd/hstcache.c (tryagain): Define.
18233         (cache_addhst): Return tryagain not notfound for temporary errors.
18234         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18235         failed.
18236
18237 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18238
18239         [BZ #10563]
18240         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18241         to make the syscall.
18242         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18243
18244         [BZ #12378]
18245         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18246         and fall back to matching as normal character if the string ends before
18247         the matching ']' is found.  This is what POSIX requires.
18248         * posix/testfnm.c: Adjust test result.
18249         * posix/globtest.sh: Adjust test result.  Add new test.
18250         * posix/tst-fnmatch.input: Likewise.
18251         * posix/tst-fnmatch2.c: Add new test.
18252
18253 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18254
18255         * elf/Makefile (check-execstack): Revert last change.  Depend on
18256         check-execstack.h.
18257         (check-execstack.h): New target.
18258         (generated): Add check-execstack.h.
18259         * elf/check-execstack.c: Include "check-execstack.h".
18260         (main): Revert last change.
18261         (handle_file): Return zero if GNU_STACK is absent and
18262         DEFAULT_STACK_PERMS doesn't include PF_X.
18263
18264 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18265
18266         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18267         in child fails because the descriptor is already closed.
18268         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18269         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18270         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18271
18272         [BZ #12397]
18273         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18274         syscall.
18275
18276         [BZ #10484]
18277         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18278         temporary buffer used to handle multi lookups locally.
18279         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18280
18281 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18282
18283         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18284         loader is ld.so.
18285
18286 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18287
18288         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18289         alignment for SSE2.
18290
18291 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18292
18293         [BZ #12394]
18294         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18295         characters.  When rounding increased number of integer digits recompute
18296         number of groups.
18297         * stdio-common/tst-grouping.c: New file.
18298         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18299
18300 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18301
18302         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18303         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18304
18305         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18306         void.
18307         * bits/select.h: Likewise.
18308
18309 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18310
18311         * po/ja.po: Update from translation team.
18312
18313 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18314
18315         [BZ #11155]
18316         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18317         implementation just like for lxstat, fxstatat, et al.
18318
18319 2010-12-27  Jim Meyering  <meyering@redhat.com>
18320
18321         [BZ #12348]
18322         * posix/regexec.c (build_trtable): Return failure indication upon
18323         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18324
18325 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18326
18327         [BZ #12201]
18328         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18329         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18330         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18331         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18332
18333         [BZ #12207]
18334         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18335
18336         [BZ #12204]
18337         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18338         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18339
18340 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18341
18342         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18343         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18344         script has SORT_BY_INIT_PRIORITY.
18345         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18346         NO_CTORS_DTORS_SECTIONS is defined.
18347         * elf/soinit.c: Likewise.
18348         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18349         NO_CTORS_DTORS_SECTIONS is defined.
18350         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18351         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18352         * sysdeps/sh/init-first.c: Likewise.
18353         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18354
18355 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18356
18357         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18358         always use the slow path.
18359
18360 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18361
18362         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18363         similar rule which adds the sysdep directories to the header search in
18364         order to pick up the correct platform stackinfo.h.
18365         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18366         perform test if it is, otherwise return successfully without testing.
18367         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18368         DEFAULT_STACK_PERMS define in stackinfo.h.
18369         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18370         defined in stackinfo.h.
18371         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18372         DEFAULT_STACK_PERMS defined in stackinfo.h.
18373         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18374         * sysdeps/ia64/stackinfo.h: Likewise.
18375         * sysdeps/s390/stackinfo.h: Likewise.
18376         * sysdeps/sh/stackinfo.h: Likewise.
18377         * sysdeps/sparc/stackinfo.h: Likewise.
18378         * sysdeps/x86_64/stackinfo.h: Likewise.
18379         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18380         PF_X for powerpc64.  Retain PF_X for powerpc32.
18381
18382 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18383
18384         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18385         accurately.
18386         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18387         GETDENTS_64BIT_ALIGNED.
18388
18389 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18390
18391         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18392
18393 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18394
18395         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18396         _GNU_SOURCE.
18397
18398         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18399         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18400         Remove __restrict.
18401         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18402         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18403
18404 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18405
18406         [BZ #11655]
18407         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18408         are initialized.
18409
18410 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18411
18412         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18413
18414 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18415
18416         * po/it.po: Update from translation team.
18417
18418 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18419
18420         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18421         unused codes.
18422
18423 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18424
18425         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18426
18427 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18428
18429         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18430         specially.
18431         (gaih_getanswer_slice): Likewise.
18432
18433 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18434
18435         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18436
18437 2010-05-31  Petr Baudis  <pasky@suse.cz>
18438
18439         [BZ #11149]
18440         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18441         silently even in the chroot mode.
18442
18443 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18444
18445         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18446         last patch a bit.  Pretty printing
18447
18448 2010-05-31  Petr Baudis <pasky@suse.cz>
18449
18450         [BZ #10085]
18451         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18452         initialization of skip_initgroups_dyn.
18453
18454 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18455
18456         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18457         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18458
18459 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18460
18461         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18462
18463 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18464
18465         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18466         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18467         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18468         ($(objpfx)tst-fnmatch-mem): New rule.
18469         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18470         * posix/tst-fnmatch.c (main): Call mtrace.
18471
18472 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18473
18474         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18475         Support Intel processor model 6 and model 0x2c.
18476
18477 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18478
18479         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18480           signed comparison.
18481
18482 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18483
18484         [BZ #12205]
18485         * string/test-strncasecmp.c (check_result): New function.
18486         (do_one_test): Use it.
18487         (check1): New function.
18488         (test_main): Use it.
18489         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18490         Support strcasecmp and strncasecmp.
18491
18492 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
18493
18494         [BZ #12194]
18495         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18496         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18497
18498 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
18499
18500         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18501         IFUNC support.
18502         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18503         memset-x86-64.
18504         * sysdeps/x86_64/multiarch/bzero.S: New file.
18505         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18506         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18507         * sysdeps/x86_64/multiarch/memset.S: New file.
18508         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18509         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18510         Set bit_Prefer_SSE_for_memop for Intel processors.
18511         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18512         Define.
18513         (index_Prefer_SSE_for_memop): Define.
18514         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18515
18516 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18517
18518         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18519         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18520
18521 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18522
18523         [BZ #12191]
18524         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18525         (__x86_64_raw_data_cache_size_half): Likewise.
18526         (__x86_64_raw_shared_cache_size): Likewise.
18527         (__x86_64_raw_shared_cache_size_half): Likewise.
18528
18529         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18530         (__x86_64_raw_data_cache_size_half): Likewise.
18531         (__x86_64_raw_shared_cache_size): Likewise.
18532         (__x86_64_raw_shared_cache_size_half): Likewise.
18533         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18534         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18535         and __x86_64_raw_shared_cache_size_half.  Round
18536         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18537         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18538         to multiple of 256 bytes.
18539
18540 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18541
18542         [BZ #12167]
18543         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18544         of inacessible symlinks.  Verify result of symlink before returning it.
18545         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18546         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18547
18548 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18549
18550         * math/math.h (isinf): Fix typo in comment.
18551
18552 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18553
18554         * po/da.po: Update from translation team.
18555
18556 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18557
18558         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18559         is added to the list.
18560
18561 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18562             Ulrich Drepper  <drepper@gmail.com>
18563
18564         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18565         the global list here.  Move code to...
18566         (_dl_add_to_namespace_list): ...here.  New function.
18567         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18568         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18569         * elf/dl-load.c (lose): Don't remove the element from the list.
18570         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18571         (_dl_map_object): Likewise.
18572
18573 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18574
18575         [BZ #12159]
18576         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18577         into all bytes of SSE register.
18578         Patch by Richard Li <richardpku@gmail.com>.
18579
18580 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18581
18582         [BZ #12140]
18583         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18584         perturbing.
18585
18586 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18587
18588         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18589         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18590         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18591         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18593         submachine.
18594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18595
18596 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18597
18598         * include/dlfcn.h (__RTLD_SECURE): Define.
18599         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18600         mode & __RTLD_SECURE instead.
18601         (open_path): Rename preloaded parameter to secure.
18602         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18603         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18604         * elf/dl-deps.c (openaux): Likewise.
18605         * elf/rtld.c (struct map_args): Remove is_preloaded.
18606         (map_doit): Don't use it.
18607         (dl_main): Likewise.
18608         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18609         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18610
18611 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18612
18613         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18614         (sysd-rules-targets): Remove duplicates.
18615         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18616         rtld-%.$o dependency.
18617
18618 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18619
18620         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18621         _dl_map_object do it.
18622
18623 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18624
18625         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18626         fast fma builtins, define the macros in the C99 standard.
18627         (FP_FAST_FMAF): Likewise.
18628         (FP_FAST_FMAL): Likewise.
18629         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18630
18631         * bits/mathdef.h: Update copyright year.
18632         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18633
18634 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18635
18636         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18637         builtins, define the macros in the C99 standard.
18638         (FP_FAST_FMAF): Likewise.
18639         (FP_FAST_FMAL): Likewise.
18640         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18641         multiply/add.
18642         (FP_FAST_FMAF): Likewise.
18643
18644 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18645
18646         [BZ #3268]
18647         * math/libm-test.inc (fma_test): Some new testcases.
18648         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18649         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18650         y and infinite z.  Do multiplication by C already in long double.
18651         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18652         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18653         y and infinite z.  Do bitwise or of inexact bit into u.d.
18654         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18655         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18656         * sysdeps/i386/fpu/s_fma.S: Removed.
18657         * sysdeps/i386/fpu/s_fmal.S: Removed.
18658
18659 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18660
18661         [BZ #3268]
18662         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18663         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18664         computation is not scheduled after fetestexcept.  Fix value
18665         of minimum denormal long double.
18666
18667 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18668
18669         [BZ #3268]
18670         * math/libm-test.inc (fma_test): Add some more tests.
18671         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18672         correctly.
18673
18674 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18675
18676         * scripts/data/localplt-s390-linux-gnu.data: New file.
18677         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18678
18679 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18680
18681         [BZ #3268]
18682         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18683         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18684         instead of dbl-64.
18685         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18686         inlines.
18687         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18688         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18689         if one of x and y is very large and the other is subnormal.
18690         * sysdeps/s390/fpu/s_fmaf.c: New file.
18691         * sysdeps/s390/fpu/s_fma.c: New file.
18692         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18693         * sysdeps/powerpc/fpu/s_fma.S: New file.
18694         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18695         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18696         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18697
18698 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18699
18700         [BZ #3268]
18701         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18702         fma tests.
18703         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18704         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18705         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18706         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18707         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18708         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18709         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18710
18711 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18712
18713         [BZ #12078]
18714         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18715         * posix/bug-regex31.input: Add test case.
18716
18717 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18718
18719         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18720         * posix/bug-regex31.input: New file.
18721
18722         [BZ #12078]
18723         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18724         (parse_sub_exp): Fix last change, use postorder.
18725
18726         * posix/bug-regex31.c: New file.
18727         * posix/Makefile: Add rules to build and run bug-regex31.
18728
18729         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18730
18731         [BZ #12078]
18732         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18733
18734         [BZ #12108]
18735         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18736         to have entries in sys_siglist.
18737
18738         [BZ #12093]
18739         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18740         be NULL.
18741
18742 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18743
18744         [BZ #3268]
18745         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18746         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18747         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18748         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18749         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18750         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18751         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18752         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18753         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18754         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18755         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18756         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18757         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18758         * math/ftestexcept.c (fetestexcept): Likewise.
18759         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18760         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18761         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18762         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18763         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18764         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18765         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18766
18767 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18768
18769         [BZ #12107]
18770         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18771         newline.
18772
18773 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18774
18775         * string/bug-strstr1.c: New file.
18776         * string/Makefile: Add rules to build and run bug-strstr1.
18777
18778 2010-10-05  Eric Blake  <eblake@redhat.com>
18779
18780         [BZ #12092]
18781         * string/str-two-way.h (two_way_long_needle): Always clear memory
18782         when skipping input due to the shift table.
18783
18784 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18785
18786         [BZ #12005]
18787         * malloc/mcheck.c: Handle large requests.
18788
18789         [BZ #12077]
18790         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18791         for strncmp and strncasecmp.
18792         * string/stratcliff.c: Add tests for strcmp and strncmp.
18793         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18794
18795 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18796
18797         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18798         __set_fpscr.
18799
18800 2010-09-30  Andreas Jaeger  <aj@suse.de>
18801
18802         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18803         (CGROUP_SUPER_MAGIC): Define.
18804         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18805         Handle btrfs and cgroup file systems.
18806         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18807         Likewise.
18808
18809 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18810
18811         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18812         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18813
18814 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18815
18816         [BZ #12067]
18817         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18818         trying to locate the ELF header.
18819
18820 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18821
18822         [BZ #11611]
18823         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18824         Mask out sign-bit copies when constructing f_fsid.
18825
18826 2010-09-24  Petr Baudis <pasky@suse.cz>
18827
18828         * debug/stack_chk_fail_local.c: Add missing licence exception.
18829         * debug/warning-nop.c: Likewise.
18830
18831 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18832
18833         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18834         implementing getdents64 using getdents syscall, set d_type if
18835         __ASSUME_GETDENTS32_D_TYPE.
18836
18837 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18838
18839         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18840         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18841
18842 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18843
18844         [BZ #12037]
18845         * posix/unistd.h: Undo change of feature selection for ftruncate from
18846         2010-01-11.
18847
18848 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18849
18850         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18851         detection.
18852
18853 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18854
18855         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18856         fanotify_mark.
18857         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18858
18859 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18860
18861         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18862         variables after CHECK_SP call.
18863         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18864
18865 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18866             Ulrich Drepper  <drepper@redhat.com>
18867
18868         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18869         re-relocationg ld.so.
18870         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18871         _dl_init_paths call.
18872         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18873         here anymore.
18874
18875 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18876
18877         * resolv/res_init.c (__res_vinit): Count the default server we added.
18878
18879 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18880             Ulrich Drepper  <drepper@redhat.com>
18881
18882         [BZ #11968]
18883         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18884         (____longjmp_chk): Use %ebx for saving value across system call.
18885         Add unwind info.
18886
18887 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18888
18889         * manual/Makefile: Don't mix pattern rules with normal rules.
18890
18891 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18892
18893         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18894         operation.
18895         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18896         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18897         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18898         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18899         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18900         Likewise.
18901
18902 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18903
18904         [BZ #11979]
18905         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18906         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18907
18908 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18909
18910         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18911         * sysdeps/x86_64/addmul_1.S: Likewise.
18912         * sysdeps/x86_64/lshift.S: Likewise.
18913         * sysdeps/x86_64/mul_1.S: Likewise.
18914         * sysdeps/x86_64/rshift.S: Likewise.
18915         * sysdeps/x86_64/sub_n.S: Likewise.
18916         * sysdeps/x86_64/submul_1.S: Likewise.
18917
18918 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18919
18920         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18921         Define __sched_param instead of SCHED_* and sched_param when
18922         <bits/sched.h> is included with __need_schedparam defined.
18923         * bits/sched.h [__need_schedparam]
18924         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18925         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18926         (__defined_schedparam): Define to 1.
18927         (__sched_param): New structure, identical to sched_param.
18928         (__need_schedparam): Undefine.
18929
18930 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18931
18932         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18933         (epoll_create1): Declare.
18934
18935         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18936
18937 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18938
18939         [BZ #7066]
18940         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18941         shifting retval into place.
18942
18943 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18944
18945         * nis/rpcsvc/nis.h: Update copyright notice.
18946         * nis/rpcsvc/nis.x: Likewise.
18947         * nis/rpcsvc/nis_callback.h: Likewise.
18948         * nis/rpcsvc/nis_callback.x: Likewise.
18949         * nis/rpcsvc/nis_object.x: Likewise.
18950         * nis/rpcsvc/nis_tags.h: Likewise.
18951         * nis/rpcsvc/yp.h: Likewise.
18952         * nis/rpcsvc/yp.x: Likewise.
18953         * nis/rpcsvc/ypupd.h: Likewise.
18954         * nis/yp_xdr.c: Likewise.
18955         * nis/ypupdate_xdr.c: Likewise.
18956
18957         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18958         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18959         (pmap_getport): Use __libc_rpc_getport.
18960         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18961         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18962         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18963
18964 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18965
18966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18967         fanotify_mark.
18968
18969 2010-08-27  Roland McGrath  <roland@redhat.com>
18970
18971         * sysdeps/i386/i686/multiarch/Makefile
18972         (CFLAGS-varshift.c): New variable.
18973
18974 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18975
18976         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18977         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18978
18979         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18980
18981         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18982
18983 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18984
18985         * sysdeps/x86_64/strlen.S: Unroll the loop.
18986         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18987         strlen-sse2 strlen-sse2-bsf.
18988         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18989         __strlen_no_bsf if bit_Slow_BSF is set.
18990         (__strlen_sse42): Removed.
18991         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18992         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18993
18994 2010-08-25  Roland McGrath  <roland@redhat.com>
18995
18996         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18997         * sysdeps/x86_64/multiarch/varshift.c: New file.
18998         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18999         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19000         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19001         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19002
19003 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19004
19005         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19006         strlen-sse2 strlen-sse2-bsf.
19007         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19008         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19009         (__strlen_sse2): Removed.
19010         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19011         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19012         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19013         bit_Slow_BSF for Atom.
19014         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19015         (index_Slow_BSF): Define.
19016         (HAS_SLOW_BSF): Define.
19017
19018 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19019
19020         [BZ #10851]
19021         * resolv/res_init.c (__res_vinit): When no server address at all
19022         is given default to loopback.
19023
19024 2010-08-24  Roland McGrath  <roland@redhat.com>
19025
19026         * configure.in: Remove config-name.h generation.
19027         * configure: Regenerated.
19028         * config-name.in: File removed.
19029         * scripts/config-uname.sh: New file.
19030         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19031         ($(objdir)config-name.h): New target.
19032
19033         * sunrpc/rpc_parse.h: Avoid nested comment.
19034
19035 2010-08-24  Richard Henderson  <rth@redhat.com>
19036             Ulrich Drepper  <drepper@redhat.com>
19037             H.J. Lu  <hongjiu.lu@intel.com>
19038
19039         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19040         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19041         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19042         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19043         _mm_alignr_epi8 with _mm_loadu_si128.
19044         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19045         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19046         (__m128i_shift_right): Removed.
19047         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19048         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19049         * sysdeps/x86_64/multiarch/varshift.h: New file.
19050         * sysdeps/x86_64/multiarch/varshift.S: New file.
19051
19052 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19053
19054         * configure.in: Move assembler checks to before sysdep dir checking.
19055
19056 2010-08-20  Petr Baudis  <pasky@suse.cz>
19057
19058         * LICENSES: Sync the sunrpc license.
19059
19060 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19061
19062         * sunrpc/auth_des.c: Update copyright notice once again.
19063         * sunrpc/auth_none.c: Likewise.
19064         * sunrpc/auth_unix.c: Likewise.
19065         * sunrpc/authdes_prot.c: Likewise.
19066         * sunrpc/authuxprot.c: Likewise.
19067         * sunrpc/bindrsvprt.c: Likewise.
19068         * sunrpc/clnt_gen.c: Likewise.
19069         * sunrpc/clnt_perr.c: Likewise.
19070         * sunrpc/clnt_raw.c: Likewise.
19071         * sunrpc/clnt_simp.c: Likewise.
19072         * sunrpc/clnt_tcp.c: Likewise.
19073         * sunrpc/clnt_udp.c: Likewise.
19074         * sunrpc/clnt_unix.c: Likewise.
19075         * sunrpc/des_crypt.c: Likewise.
19076         * sunrpc/des_soft.c: Likewise.
19077         * sunrpc/get_myaddr.c: Likewise.
19078         * sunrpc/getrpcport.c: Likewise.
19079         * sunrpc/key_call.c: Likewise.
19080         * sunrpc/key_prot.c: Likewise.
19081         * sunrpc/openchild.c: Likewise.
19082         * sunrpc/pm_getmaps.c: Likewise.
19083         * sunrpc/pm_getport.c: Likewise.
19084         * sunrpc/pmap_clnt.c: Likewise.
19085         * sunrpc/pmap_prot.c: Likewise.
19086         * sunrpc/pmap_prot2.c: Likewise.
19087         * sunrpc/pmap_rmt.c: Likewise.
19088         * sunrpc/rpc/auth.h: Likewise.
19089         * sunrpc/rpc/auth_unix.h: Likewise.
19090         * sunrpc/rpc/clnt.h: Likewise.
19091         * sunrpc/rpc/des_crypt.h: Likewise.
19092         * sunrpc/rpc/key_prot.h: Likewise.
19093         * sunrpc/rpc/netdb.h: Likewise.
19094         * sunrpc/rpc/pmap_clnt.h: Likewise.
19095         * sunrpc/rpc/pmap_prot.h: Likewise.
19096         * sunrpc/rpc/pmap_rmt.h: Likewise.
19097         * sunrpc/rpc/rpc.h: Likewise.
19098         * sunrpc/rpc/rpc_des.h: Likewise.
19099         * sunrpc/rpc/rpc_msg.h: Likewise.
19100         * sunrpc/rpc/svc.h: Likewise.
19101         * sunrpc/rpc/svc_auth.h: Likewise.
19102         * sunrpc/rpc/types.h: Likewise.
19103         * sunrpc/rpc/xdr.h: Likewise.
19104         * sunrpc/rpc_clntout.c: Likewise.
19105         * sunrpc/rpc_cmsg.c: Likewise.
19106         * sunrpc/rpc_common.c: Likewise.
19107         * sunrpc/rpc_cout.c: Likewise.
19108         * sunrpc/rpc_dtable.c: Likewise.
19109         * sunrpc/rpc_hout.c: Likewise.
19110         * sunrpc/rpc_main.c: Likewise.
19111         * sunrpc/rpc_parse.c: Likewise.
19112         * sunrpc/rpc_parse.h: Likewise.
19113         * sunrpc/rpc_prot.c: Likewise.
19114         * sunrpc/rpc_sample.c: Likewise.
19115         * sunrpc/rpc_scan.c: Likewise.
19116         * sunrpc/rpc_scan.h: Likewise.
19117         * sunrpc/rpc_svcout.c: Likewise.
19118         * sunrpc/rpc_tblout.c: Likewise.
19119         * sunrpc/rpc_util.c: Likewise.
19120         * sunrpc/rpc_util.h: Likewise.
19121         * sunrpc/rpcinfo.c: Likewise.
19122         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19123         * sunrpc/rpcsvc/key_prot.x: Likewise.
19124         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19125         * sunrpc/rpcsvc/mount.x: Likewise.
19126         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19127         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19128         * sunrpc/rpcsvc/rex.x: Likewise.
19129         * sunrpc/rpcsvc/rstat.x: Likewise.
19130         * sunrpc/rpcsvc/rusers.x: Likewise.
19131         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19132         * sunrpc/rpcsvc/spray.x: Likewise.
19133         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19134         * sunrpc/rtime.c: Likewise.
19135         * sunrpc/svc.c: Likewise.
19136         * sunrpc/svc_auth.c: Likewise.
19137         * sunrpc/svc_authux.c: Likewise.
19138         * sunrpc/svc_raw.c: Likewise.
19139         * sunrpc/svc_run.c: Likewise.
19140         * sunrpc/svc_simple.c: Likewise.
19141         * sunrpc/svc_tcp.c: Likewise.
19142         * sunrpc/svc_udp.c: Likewise.
19143         * sunrpc/svc_unix.c: Likewise.
19144         * sunrpc/svcauth_des.c: Likewise.
19145         * sunrpc/xcrypt.c: Likewise.
19146         * sunrpc/xdr.c: Likewise.
19147         * sunrpc/xdr_array.c: Likewise.
19148         * sunrpc/xdr_float.c: Likewise.
19149         * sunrpc/xdr_mem.c: Likewise.
19150         * sunrpc/xdr_rec.c: Likewise.
19151         * sunrpc/xdr_ref.c: Likewise.
19152         * sunrpc/xdr_sizeof.c: Likewise.
19153         * sunrpc/xdr_stdio.c: Likewise.
19154
19155         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19156         handling.
19157
19158 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19159
19160         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19161
19162 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19163
19164         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19165         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19166         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19167         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19168         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19169         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19170         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19171         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19172         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19173         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19174         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19175         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19176         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19177         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19178
19179 2010-07-26  Anton Blanchard  <anton@samba.org>
19180
19181         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19182         * malloc/arena.c (heap_trim): Likewise.
19183
19184 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19185
19186         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19187         here.  Not...
19188         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19189         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19190
19191 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19192
19193         * sysdeps/i386/elf/Makefile: New file.
19194
19195 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19196
19197         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19198         from fanotify_init.
19199         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19200         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19201
19202 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19203
19204         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19205         of strncasecmp_l.
19206         * sysdeps/multiarch/strcmp.S: Likewise.
19207
19208 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19209
19210         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19211         strncase_l-nonascii.
19212         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19213         Add strncase_l-ssse3.
19214         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19215         * sysdeps/x86_64/strcmp.S: Likewise.
19216         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19217         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19218         * sysdeps/x86_64/strncase.S: New file.
19219         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19220         * sysdeps/x86_64/strncase_l.S: New file.
19221         * string/Makefile (strop-tests): Add strncasecmp.
19222         * string/test-strncasecmp.c: New file.
19223
19224         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19225         warning.
19226
19227         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19228         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19229
19230 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19231
19232         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19233
19234 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19235
19236         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19237         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19238         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19239
19240 2010-05-01  Alan Modra  <amodra@gmail.com>
19241
19242         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19243         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19244         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19245         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19246         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19247         tidying.  Don't tail-call __sigjmp_save for static lib.
19248         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19249         save location.
19250         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19251         (CALL_MCOUNT): Add eh info, and nop after bl.
19252         (TAIL_CALL_SYSCALL_ERROR): New macro.
19253         (PSEUDO_RET): Use it.
19254         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19255         Correct save location of integer regs and cr.
19256         (_dl_profile_resolve): Correct cr save location.  Delete nops
19257         after bl when SHARED.  Reduce cfi size a little by better
19258         placement of cfi directives.
19259         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19260         make a stack frame.  Instead use parm save area as a temp.
19261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19262         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19264         Don't make a stack frame for parent, use parm save area.
19265         Increase child stack frame to 112 bytes.  Don't save unused reg,
19266         and adjust reg usage.  Set up cfi on error recovery and
19267         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19269         (__makecontext): Add dummy nop after jump to exit.
19270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19271         Use correct parm save area and cr save, reduce stack frame.
19272         Correct cfi for possible PSEUDO_RET frame setup.
19273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19274         Branch to local label emitted by PSEUDO_RET rather than
19275         __syscall_error.
19276
19277 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19278
19279         [BZ #11904]
19280         * locale/programs/locale.c (print_assignment): New function.
19281         (show_locale_vars): Use it.
19282
19283 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19284
19285         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19286         field.
19287         (struct statfs64): Likewise.
19288         (_STATFS_F_FLAGS): Define.
19289         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19290         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19291         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19292         (ST_VALID): Define locally.
19293         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19294         __statvfs_getflags, use the provided value.
19295         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19296         __ASSUME_STATFS_F_FLAGS.
19297
19298         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19299
19300         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19301         Add sys/fanotify.h.
19302         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19303         fanotify_mask for GLIBC_2.13.
19304         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19305         fanotify_init and fanotify_mark.
19306         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19307         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19308
19309         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19310         Add prlimit.
19311         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19312         prlimit64 for GLIBC_2.13.
19313         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19314         prlimit64.
19315         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19316         syscall.
19317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19318         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19319         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19320         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19321         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19322         add prlimit alias.
19323         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19324
19325         [BZ #11903]
19326         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19327         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19328
19329         * nss/Makefile: Add rules to build and run tst-nss-test1.
19330         * shlib-versions: Add entry for libnss_test1.
19331         * nss/nss_test1.c: New file.
19332         * nss/tst-nss-test1.c: New file.
19333
19334         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19335         (__nss_configure_lookup): Set appropriate entry in
19336         __nss_configure_lookup to true.
19337         * nss/nsswitch.h: Define enum with indeces of databases in
19338         databases and __nss_database_custom arrays.  Declare
19339         __nss_database_custom.
19340         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19341         to avoid using nscd when custom rules are installed.
19342         * nss/getXXbyYY_r.c: Likewise.
19343         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19344
19345         * nss/nss_files/files-parse.c: Whitespace fixes.
19346
19347 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19348
19349         [BZ #11883]
19350         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19351         * posix/fnmatch_loop.c: Likewise.
19352
19353 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19354
19355         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19356         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19357         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19358         * Versions.def [GLIBC_2.13]: Add.
19359
19360 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19361
19362         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19363         Also fail if tpwd after pwuid call is NULL.
19364
19365 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19366
19367         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19368         when converting to ms.
19369
19370 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19371
19372         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19373         EOPNOTSUPP errors with ENOTTY.
19374         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19375         EOPNOTSUPP errors with ENOTTY.
19376
19377 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19378
19379         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19380         Add strcasecmp_l-ssse3.
19381         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19382         strcasecmp.
19383         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19384         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19385         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19386
19387 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19388
19389         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19390
19391         * string/Makefile (strop-tests): Add strcasecmp.
19392         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19393         strcasecmp_l-nonascii.
19394         (gen-as-const-headers): Add locale-defines.sym.
19395         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19396         * sysdeps/x86_64/strcasecmp.S: New file.
19397         * sysdeps/x86_64/strcasecmp_l.S: New file.
19398         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19399         * sysdeps/x86_64/locale-defines.sym: New file.
19400         * string/test-strcasecmp.c: New file.
19401
19402         * string/test-strcasestr.c: Test both ends of the range of characters.
19403         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19404
19405 2010-07-29  Roland McGrath  <roland@redhat.com>
19406
19407         [BZ #11856]
19408         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19409
19410 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19411
19412         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19413         for ld.so.
19414
19415 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19416
19417         * manual/memory.texi (Malloc Tunable Parameters): Document
19418         M_PERTURB.
19419
19420 2010-07-26  Roland McGrath  <roland@redhat.com>
19421
19422         [BZ #11840]
19423         * configure.in (-fgnu89-inline check): Set and substitute
19424         gnu89_inline, not libc_cv_gnu89_inline.
19425         * configure: Regenerated.
19426         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19427
19428 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19429
19430         * string/test-strnlen.c: New file.
19431         * string/Makefile (strop-tests): Add strnlen.
19432         * string/tester.c (test_strnlen): Add a few more test cases.
19433         * string/tst-strlen.c: Better error reporting.
19434
19435         * sysdeps/x86_64/strnlen.S: New file.
19436
19437 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19438
19439         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19440         lower-latency instructions.
19441
19442 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19443
19444         * string/test-strcasestr.c: New file.
19445         * string/test-strstr.c: New file.
19446         * string/Makefile (strop-tests): Add strstr and strcasestr.
19447         * string/str-two-way.h: Don't undefine MAX.
19448         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19449
19450 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19451
19452         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19453         strcasestr-nonascii.
19454         (CFLAGS-strcasestr-nonascii.c): Define.
19455         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19456         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19457         Remove unused attribute.
19458
19459 2010-07-20  Roland McGrath  <roland@redhat.com>
19460
19461         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19462         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19463         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19464         like LD_HWCAP_MASK can disable hwcaps.
19465
19466 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19467
19468         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19469
19470 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19471
19472         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19473         call in strcasestr.
19474         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19475         __strcasestr_sse42_nonascii.
19476         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19477         strcasestr-nonascii.c.
19478         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19479
19480 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19481
19482         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19483         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19484         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19485         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19486
19487 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
19488
19489         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19490         fcntl.
19491
19492 2010-07-06  Andreas Schwab  <schwab@redhat.com>
19493
19494         [BZ #11577]
19495         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19496         dl_signal_cerror.
19497
19498 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
19499
19500         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19501         _PC_PIPE_BUF using F_GETPIPE_SZ.
19502
19503 2010-07-05  Roland McGrath  <roland@redhat.com>
19504
19505         * manual/arith.texi (Rounding Functions): Fix rint description
19506         implicit in round description.
19507
19508 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19509
19510         * elf/Makefile: Fix linking for a few tests to make recent linker
19511         happy.
19512
19513 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19514
19515         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19516         $(common-objpfx)libc_nonshared.a.
19517
19518 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19519
19520         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19521         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19522         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19523         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19524         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19525         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19526         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19527         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19542         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19543         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19544         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19545         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19546         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19547         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19548         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19549         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19550         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19551         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19552         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19553         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19568
19569 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19570
19571         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19572         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19573         * string/memmove.c (memmove): Renamed to ...
19574         (MEMMOVE): ...this.  Default to memmove.
19575         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19576         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19577         (END_CHK): Define.
19578         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19579         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19580         mempcpy-ssse3-back memmove-ssse3-back.
19581         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19582         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19583         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19584         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19585         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19586         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19587         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19588         * sysdeps/x86_64/multiarch/memmove.c: New file.
19589         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19590         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19591         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19592         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19593         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19594         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19595         Define.
19596         (index_Fast_Copy_Backward): Define.
19597         (HAS_ARCH_FEATURE): Define.
19598         (HAS_FAST_REP_STRING): Define.
19599         (HAS_FAST_COPY_BACKWARD): Define.
19600
19601 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19602
19603         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19604         Restore proper fallback handling.
19605
19606 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19607
19608         [BZ #11701]
19609         * posix/group_member.c (__group_member): Correct checking loop.
19610
19611         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19612         OOM in getpwuid_r correctly.  Return error number when the caller
19613         should return, otherwise -1.
19614         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19615         call returning > 0 value.
19616         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19617
19618 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19619
19620         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19621         libc_nonshared.a from targets in modules-names.
19622
19623 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19624
19625         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19626         requires it.
19627
19628 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19629
19630         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19631         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19632         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19633         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19634
19635 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19636
19637         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19638
19639 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19640
19641         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19642         and F_GETPIPE_SZ.
19643         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19644         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19645         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19646         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19647         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19648         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19649
19650 2010-06-14  Roland McGrath  <roland@redhat.com>
19651
19652         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19653
19654 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19655
19656         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19657         __REDIRECT followed by __THROW.
19658         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19659         * posix/getopt.h (getopt): Likewise.
19660
19661 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19662
19663         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19664         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19665         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19666         in AT_FLAGS.
19667         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19668         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19669
19670 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19671
19672         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19673
19674 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19675
19676         [BZ #11640]
19677         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19678         Properly check family and model.
19679
19680 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19681
19682         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19683
19684 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19685
19686         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19687
19688 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19689
19690         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19691         symbol reference.
19692
19693 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19694
19695         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19696         symbol reference.
19697
19698 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19699
19700         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19701         and internal_recvmmsg.
19702         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19703         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19704         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19705         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19706
19707         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19708         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19709         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19710
19711 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19712
19713         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19714
19715 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19716
19717         POWER7 optimizations.
19718         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19719         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19720
19721 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19722
19723         * version.h: Update for 2.13 development version.
19724
19725 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19726
19727         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19728         exceptions.  Return 0.
19729
19730 2010-05-07  Roland McGrath  <roland@redhat.com>
19731
19732         * elf/ldconfig.c (main): Add a const.
19733
19734 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19735
19736         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19737         (args_options): Add no-idn option.
19738         (ahosts_keys_int): Add idn_flags to ai_flags.
19739         (parse_option): Handle 'i' option to clear idn_flags.
19740
19741         * malloc/malloc.c (_int_free): Possible race in the most recently
19742         added check.  Only act on the data if no current modification
19743         happened.
19744
19745 See ChangeLog.17 for earlier changes.